diff --git a/proxy/src/CMakeLists.txt b/proxy/src/CMakeLists.txt index d7b49b93ee..ab482ec3ae 100644 --- a/proxy/src/CMakeLists.txt +++ b/proxy/src/CMakeLists.txt @@ -62,6 +62,7 @@ target_link_libraries( server PUBLIC ${link_lib} tracing pulsarStatic + message_client_cpp ${THIRD_PARTY_LIBS} ${BOOST_LIB} ) diff --git a/proxy/src/grpc/cpp_gen.sh b/proxy/src/grpc/cpp_gen.sh index 6fae0d540f..740e784269 100755 --- a/proxy/src/grpc/cpp_gen.sh +++ b/proxy/src/grpc/cpp_gen.sh @@ -1,18 +1,23 @@ #!/bin/bash -#../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --grpc_out=./gen-status --plugin=protoc-gen-grpc="../../cmake-build-debug/thirdparty/grpc/grpc-build/grpc_cpp_plugin" status.proto -# -#../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --cpp_out=./gen-status status.proto -# -#../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --grpc_out=./gen-milvus --plugin=protoc-gen-grpc="../../cmake-build-debug/thirdparty/grpc/grpc-build/grpc_cpp_plugin" milvus.proto -# -#../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --cpp_out=./gen-milvus milvus.proto -# -# -#../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --grpc_out=./gen-milvus --plugin=protoc-gen-grpc="../../cmake-build-debug/thirdparty/grpc/grpc-build/grpc_cpp_plugin" hello.proto -# -#../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --cpp_out=./gen-milvus hello.proto -# -#../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --grpc_out=./gen-milvus --plugin=protoc-gen-grpc="../../cmake-build-debug/thirdparty/grpc/grpc-build/grpc_cpp_plugin" master.proto -# -#../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --cpp_out=./gen-milvus master.proto \ No newline at end of file +../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --grpc_out=./gen-status --plugin=protoc-gen-grpc="../../cmake-build-debug/thirdparty/grpc/grpc-build/grpc_cpp_plugin" status.proto + +../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --cpp_out=./gen-status status.proto + +../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --grpc_out=./gen-milvus --plugin=protoc-gen-grpc="../../cmake-build-debug/thirdparty/grpc/grpc-build/grpc_cpp_plugin" milvus.proto + +../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --cpp_out=./gen-milvus milvus.proto + + +../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --grpc_out=./gen-milvus --plugin=protoc-gen-grpc="../../cmake-build-debug/thirdparty/grpc/grpc-build/grpc_cpp_plugin" hello.proto + +../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --cpp_out=./gen-milvus hello.proto + +../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --grpc_out=./gen-milvus --plugin=protoc-gen-grpc="../../cmake-build-debug/thirdparty/grpc/grpc-build/grpc_cpp_plugin" master.proto + +../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --cpp_out=./gen-milvus master.proto + +# TODO: spilt milvus and pulsar proto +../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --grpc_out=./gen-milvus --plugin=protoc-gen-grpc="../../cmake-build-debug/thirdparty/grpc/grpc-build/grpc_cpp_plugin" suvlim.proto + +../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --cpp_out=./gen-milvus suvlim.proto \ No newline at end of file diff --git a/proxy/src/grpc/gen-milvus/milvus.pb.cc b/proxy/src/grpc/gen-milvus/milvus.pb.cc deleted file mode 100644 index a8c7560402..0000000000 --- a/proxy/src/grpc/gen-milvus/milvus.pb.cc +++ /dev/null @@ -1,16962 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: milvus.proto - -#include "milvus.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include -extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AttrRecord_milvus_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_BooleanQuery_milvus_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CompareExpr_milvus_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Entities_milvus_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_FieldParam_milvus_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_FieldValue_milvus_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KeyValuePair_milvus_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_Mapping_milvus_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_RangeQuery_milvus_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_SearchParam_milvus_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_status_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Status_status_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TermQuery_milvus_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VectorFieldParam_milvus_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_VectorParam_milvus_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_VectorQuery_milvus_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_VectorRecord_milvus_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VectorRowRecord_milvus_2eproto; -namespace milvus { -namespace grpc { -class KeyValuePairDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _KeyValuePair_default_instance_; -class CollectionNameDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _CollectionName_default_instance_; -class CollectionNameListDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _CollectionNameList_default_instance_; -class FieldNameDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _FieldName_default_instance_; -class MappingDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Mapping_default_instance_; -class MappingListDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _MappingList_default_instance_; -class PartitionParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PartitionParam_default_instance_; -class PartitionListDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PartitionList_default_instance_; -class VectorRowRecordDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _VectorRowRecord_default_instance_; -class AttrRecordDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _AttrRecord_default_instance_; -class VectorRecordDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _VectorRecord_default_instance_; -class FieldValueDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _FieldValue_default_instance_; -class InsertParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _InsertParam_default_instance_; -class EntityIdsDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _EntityIds_default_instance_; -class VectorParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _VectorParam_default_instance_; -class SearchParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SearchParam_default_instance_; -class SearchInSegmentParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SearchInSegmentParam_default_instance_; -class EntitiesDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Entities_default_instance_; -class QueryResultDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _QueryResult_default_instance_; -class StringReplyDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _StringReply_default_instance_; -class BoolReplyDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _BoolReply_default_instance_; -class CollectionRowCountDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _CollectionRowCount_default_instance_; -class CommandDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Command_default_instance_; -class IndexParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _IndexParam_default_instance_; -class FlushParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _FlushParam_default_instance_; -class CompactParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _CompactParam_default_instance_; -class DeleteByIDParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _DeleteByIDParam_default_instance_; -class CollectionInfoDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _CollectionInfo_default_instance_; -class GetEntityIDsParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetEntityIDsParam_default_instance_; -class EntityIdentityDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _EntityIdentity_default_instance_; -class VectorFieldParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _VectorFieldParam_default_instance_; -class FieldTypeDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; - int data_type_; - const ::milvus::grpc::VectorFieldParam* vector_param_; -} _FieldType_default_instance_; -class FieldParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _FieldParam_default_instance_; -class VectorFieldRecordDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _VectorFieldRecord_default_instance_; -class TermQueryDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _TermQuery_default_instance_; -class CompareExprDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _CompareExpr_default_instance_; -class RangeQueryDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _RangeQuery_default_instance_; -class VectorQueryDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _VectorQuery_default_instance_; -class BooleanQueryDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _BooleanQuery_default_instance_; -class GeneralQueryDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; - const ::milvus::grpc::BooleanQuery* boolean_query_; - const ::milvus::grpc::TermQuery* term_query_; - const ::milvus::grpc::RangeQuery* range_query_; - const ::milvus::grpc::VectorQuery* vector_query_; -} _GeneralQuery_default_instance_; -class SearchParamPBDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SearchParamPB_default_instance_; -} // namespace grpc -} // namespace milvus -static void InitDefaultsscc_info_AttrRecord_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_AttrRecord_default_instance_; - new (ptr) ::milvus::grpc::AttrRecord(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::AttrRecord::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AttrRecord_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_AttrRecord_milvus_2eproto}, {}}; - -static void InitDefaultsscc_info_BoolReply_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_BoolReply_default_instance_; - new (ptr) ::milvus::grpc::BoolReply(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::BoolReply::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_BoolReply_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_BoolReply_milvus_2eproto}, { - &scc_info_Status_status_2eproto.base,}}; - -static void InitDefaultsscc_info_BooleanQuery_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_BooleanQuery_default_instance_; - new (ptr) ::milvus::grpc::BooleanQuery(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - { - void* ptr = &::milvus::grpc::_GeneralQuery_default_instance_; - new (ptr) ::milvus::grpc::GeneralQuery(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::BooleanQuery::InitAsDefaultInstance(); - ::milvus::grpc::GeneralQuery::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_BooleanQuery_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_BooleanQuery_milvus_2eproto}, { - &scc_info_TermQuery_milvus_2eproto.base, - &scc_info_RangeQuery_milvus_2eproto.base, - &scc_info_VectorQuery_milvus_2eproto.base,}}; - -static void InitDefaultsscc_info_CollectionInfo_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_CollectionInfo_default_instance_; - new (ptr) ::milvus::grpc::CollectionInfo(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::CollectionInfo::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionInfo_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_CollectionInfo_milvus_2eproto}, { - &scc_info_Status_status_2eproto.base,}}; - -static void InitDefaultsscc_info_CollectionName_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_CollectionName_default_instance_; - new (ptr) ::milvus::grpc::CollectionName(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::CollectionName::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CollectionName_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CollectionName_milvus_2eproto}, {}}; - -static void InitDefaultsscc_info_CollectionNameList_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_CollectionNameList_default_instance_; - new (ptr) ::milvus::grpc::CollectionNameList(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::CollectionNameList::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionNameList_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_CollectionNameList_milvus_2eproto}, { - &scc_info_Status_status_2eproto.base,}}; - -static void InitDefaultsscc_info_CollectionRowCount_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_CollectionRowCount_default_instance_; - new (ptr) ::milvus::grpc::CollectionRowCount(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::CollectionRowCount::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionRowCount_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_CollectionRowCount_milvus_2eproto}, { - &scc_info_Status_status_2eproto.base,}}; - -static void InitDefaultsscc_info_Command_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_Command_default_instance_; - new (ptr) ::milvus::grpc::Command(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::Command::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Command_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_Command_milvus_2eproto}, {}}; - -static void InitDefaultsscc_info_CompactParam_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_CompactParam_default_instance_; - new (ptr) ::milvus::grpc::CompactParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::CompactParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CompactParam_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CompactParam_milvus_2eproto}, {}}; - -static void InitDefaultsscc_info_CompareExpr_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_CompareExpr_default_instance_; - new (ptr) ::milvus::grpc::CompareExpr(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::CompareExpr::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CompareExpr_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CompareExpr_milvus_2eproto}, {}}; - -static void InitDefaultsscc_info_DeleteByIDParam_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_DeleteByIDParam_default_instance_; - new (ptr) ::milvus::grpc::DeleteByIDParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::DeleteByIDParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DeleteByIDParam_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_DeleteByIDParam_milvus_2eproto}, {}}; - -static void InitDefaultsscc_info_Entities_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_Entities_default_instance_; - new (ptr) ::milvus::grpc::Entities(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::Entities::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Entities_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_Entities_milvus_2eproto}, { - &scc_info_Status_status_2eproto.base, - &scc_info_FieldValue_milvus_2eproto.base,}}; - -static void InitDefaultsscc_info_EntityIdentity_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_EntityIdentity_default_instance_; - new (ptr) ::milvus::grpc::EntityIdentity(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::EntityIdentity::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EntityIdentity_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_EntityIdentity_milvus_2eproto}, {}}; - -static void InitDefaultsscc_info_EntityIds_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_EntityIds_default_instance_; - new (ptr) ::milvus::grpc::EntityIds(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::EntityIds::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EntityIds_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_EntityIds_milvus_2eproto}, { - &scc_info_Status_status_2eproto.base,}}; - -static void InitDefaultsscc_info_FieldName_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_FieldName_default_instance_; - new (ptr) ::milvus::grpc::FieldName(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::FieldName::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FieldName_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_FieldName_milvus_2eproto}, {}}; - -static void InitDefaultsscc_info_FieldParam_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_FieldParam_default_instance_; - new (ptr) ::milvus::grpc::FieldParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::FieldParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_FieldParam_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_FieldParam_milvus_2eproto}, { - &scc_info_KeyValuePair_milvus_2eproto.base,}}; - -static void InitDefaultsscc_info_FieldType_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_FieldType_default_instance_; - new (ptr) ::milvus::grpc::FieldType(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::FieldType::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_FieldType_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_FieldType_milvus_2eproto}, { - &scc_info_VectorFieldParam_milvus_2eproto.base,}}; - -static void InitDefaultsscc_info_FieldValue_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_FieldValue_default_instance_; - new (ptr) ::milvus::grpc::FieldValue(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::FieldValue::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_FieldValue_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_FieldValue_milvus_2eproto}, { - &scc_info_AttrRecord_milvus_2eproto.base, - &scc_info_VectorRecord_milvus_2eproto.base,}}; - -static void InitDefaultsscc_info_FlushParam_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_FlushParam_default_instance_; - new (ptr) ::milvus::grpc::FlushParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::FlushParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FlushParam_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_FlushParam_milvus_2eproto}, {}}; - -static void InitDefaultsscc_info_GetEntityIDsParam_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_GetEntityIDsParam_default_instance_; - new (ptr) ::milvus::grpc::GetEntityIDsParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::GetEntityIDsParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetEntityIDsParam_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GetEntityIDsParam_milvus_2eproto}, {}}; - -static void InitDefaultsscc_info_IndexParam_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_IndexParam_default_instance_; - new (ptr) ::milvus::grpc::IndexParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::IndexParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_IndexParam_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_IndexParam_milvus_2eproto}, { - &scc_info_Status_status_2eproto.base, - &scc_info_KeyValuePair_milvus_2eproto.base,}}; - -static void InitDefaultsscc_info_InsertParam_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_InsertParam_default_instance_; - new (ptr) ::milvus::grpc::InsertParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::InsertParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_InsertParam_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_InsertParam_milvus_2eproto}, { - &scc_info_FieldValue_milvus_2eproto.base, - &scc_info_KeyValuePair_milvus_2eproto.base,}}; - -static void InitDefaultsscc_info_KeyValuePair_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_KeyValuePair_default_instance_; - new (ptr) ::milvus::grpc::KeyValuePair(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::KeyValuePair::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KeyValuePair_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_KeyValuePair_milvus_2eproto}, {}}; - -static void InitDefaultsscc_info_Mapping_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_Mapping_default_instance_; - new (ptr) ::milvus::grpc::Mapping(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::Mapping::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_Mapping_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_Mapping_milvus_2eproto}, { - &scc_info_Status_status_2eproto.base, - &scc_info_FieldParam_milvus_2eproto.base, - &scc_info_KeyValuePair_milvus_2eproto.base,}}; - -static void InitDefaultsscc_info_MappingList_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_MappingList_default_instance_; - new (ptr) ::milvus::grpc::MappingList(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::MappingList::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_MappingList_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_MappingList_milvus_2eproto}, { - &scc_info_Status_status_2eproto.base, - &scc_info_Mapping_milvus_2eproto.base,}}; - -static void InitDefaultsscc_info_PartitionList_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_PartitionList_default_instance_; - new (ptr) ::milvus::grpc::PartitionList(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::PartitionList::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PartitionList_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_PartitionList_milvus_2eproto}, { - &scc_info_Status_status_2eproto.base,}}; - -static void InitDefaultsscc_info_PartitionParam_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_PartitionParam_default_instance_; - new (ptr) ::milvus::grpc::PartitionParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::PartitionParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PartitionParam_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_PartitionParam_milvus_2eproto}, {}}; - -static void InitDefaultsscc_info_QueryResult_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_QueryResult_default_instance_; - new (ptr) ::milvus::grpc::QueryResult(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::QueryResult::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_QueryResult_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_QueryResult_milvus_2eproto}, { - &scc_info_Status_status_2eproto.base, - &scc_info_Entities_milvus_2eproto.base, - &scc_info_KeyValuePair_milvus_2eproto.base,}}; - -static void InitDefaultsscc_info_RangeQuery_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_RangeQuery_default_instance_; - new (ptr) ::milvus::grpc::RangeQuery(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::RangeQuery::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_RangeQuery_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_RangeQuery_milvus_2eproto}, { - &scc_info_CompareExpr_milvus_2eproto.base, - &scc_info_KeyValuePair_milvus_2eproto.base,}}; - -static void InitDefaultsscc_info_SearchInSegmentParam_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_SearchInSegmentParam_default_instance_; - new (ptr) ::milvus::grpc::SearchInSegmentParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::SearchInSegmentParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SearchInSegmentParam_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_SearchInSegmentParam_milvus_2eproto}, { - &scc_info_SearchParam_milvus_2eproto.base,}}; - -static void InitDefaultsscc_info_SearchParam_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_SearchParam_default_instance_; - new (ptr) ::milvus::grpc::SearchParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::SearchParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_SearchParam_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_SearchParam_milvus_2eproto}, { - &scc_info_VectorParam_milvus_2eproto.base, - &scc_info_KeyValuePair_milvus_2eproto.base,}}; - -static void InitDefaultsscc_info_SearchParamPB_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_SearchParamPB_default_instance_; - new (ptr) ::milvus::grpc::SearchParamPB(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::SearchParamPB::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_SearchParamPB_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_SearchParamPB_milvus_2eproto}, { - &scc_info_BooleanQuery_milvus_2eproto.base, - &scc_info_KeyValuePair_milvus_2eproto.base,}}; - -static void InitDefaultsscc_info_StringReply_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_StringReply_default_instance_; - new (ptr) ::milvus::grpc::StringReply(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::StringReply::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_StringReply_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_StringReply_milvus_2eproto}, { - &scc_info_Status_status_2eproto.base,}}; - -static void InitDefaultsscc_info_TermQuery_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_TermQuery_default_instance_; - new (ptr) ::milvus::grpc::TermQuery(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::TermQuery::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TermQuery_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_TermQuery_milvus_2eproto}, { - &scc_info_KeyValuePair_milvus_2eproto.base,}}; - -static void InitDefaultsscc_info_VectorFieldParam_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_VectorFieldParam_default_instance_; - new (ptr) ::milvus::grpc::VectorFieldParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::VectorFieldParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VectorFieldParam_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_VectorFieldParam_milvus_2eproto}, {}}; - -static void InitDefaultsscc_info_VectorFieldRecord_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_VectorFieldRecord_default_instance_; - new (ptr) ::milvus::grpc::VectorFieldRecord(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::VectorFieldRecord::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_VectorFieldRecord_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_VectorFieldRecord_milvus_2eproto}, { - &scc_info_VectorRowRecord_milvus_2eproto.base,}}; - -static void InitDefaultsscc_info_VectorParam_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_VectorParam_default_instance_; - new (ptr) ::milvus::grpc::VectorParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::VectorParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_VectorParam_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_VectorParam_milvus_2eproto}, { - &scc_info_VectorRecord_milvus_2eproto.base,}}; - -static void InitDefaultsscc_info_VectorQuery_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_VectorQuery_default_instance_; - new (ptr) ::milvus::grpc::VectorQuery(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::VectorQuery::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_VectorQuery_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_VectorQuery_milvus_2eproto}, { - &scc_info_VectorRowRecord_milvus_2eproto.base, - &scc_info_KeyValuePair_milvus_2eproto.base,}}; - -static void InitDefaultsscc_info_VectorRecord_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_VectorRecord_default_instance_; - new (ptr) ::milvus::grpc::VectorRecord(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::VectorRecord::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_VectorRecord_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_VectorRecord_milvus_2eproto}, { - &scc_info_VectorRowRecord_milvus_2eproto.base,}}; - -static void InitDefaultsscc_info_VectorRowRecord_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_VectorRowRecord_default_instance_; - new (ptr) ::milvus::grpc::VectorRowRecord(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::VectorRowRecord::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VectorRowRecord_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_VectorRowRecord_milvus_2eproto}, {}}; - -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_milvus_2eproto[41]; -static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_milvus_2eproto[3]; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_milvus_2eproto = nullptr; - -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_milvus_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::KeyValuePair, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::KeyValuePair, key_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::KeyValuePair, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionName, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionName, collection_name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionNameList, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionNameList, status_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionNameList, collection_names_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldName, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldName, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldName, field_name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Mapping, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Mapping, status_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Mapping, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Mapping, fields_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Mapping, extra_params_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::MappingList, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::MappingList, status_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::MappingList, mapping_list_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::PartitionParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::PartitionParam, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::PartitionParam, tag_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::PartitionList, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::PartitionList, status_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::PartitionList, partition_tag_array_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorRowRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorRowRecord, float_data_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorRowRecord, binary_data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::AttrRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::AttrRecord, int32_value_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::AttrRecord, int64_value_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::AttrRecord, float_value_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::AttrRecord, double_value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorRecord, records_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldValue, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldValue, field_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldValue, type_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldValue, attr_record_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldValue, vector_record_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertParam, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertParam, fields_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertParam, entity_id_array_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertParam, partition_tag_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertParam, extra_params_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::EntityIds, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::EntityIds, status_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::EntityIds, entity_id_array_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorParam, json_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorParam, row_record_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParam, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParam, partition_tag_array_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParam, vector_param_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParam, dsl_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParam, extra_params_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchInSegmentParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchInSegmentParam, file_id_array_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchInSegmentParam, search_param_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Entities, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Entities, status_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Entities, ids_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Entities, valid_row_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Entities, fields_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::QueryResult, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::QueryResult, status_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::QueryResult, entities_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::QueryResult, row_num_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::QueryResult, scores_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::QueryResult, distances_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::QueryResult, extra_params_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::StringReply, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::StringReply, status_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::StringReply, string_reply_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::BoolReply, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::BoolReply, status_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::BoolReply, bool_reply_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionRowCount, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionRowCount, status_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionRowCount, collection_row_count_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Command, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Command, cmd_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::IndexParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::IndexParam, status_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::IndexParam, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::IndexParam, field_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::IndexParam, index_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::IndexParam, extra_params_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FlushParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FlushParam, collection_name_array_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CompactParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CompactParam, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CompactParam, threshold_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::DeleteByIDParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::DeleteByIDParam, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::DeleteByIDParam, id_array_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionInfo, status_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionInfo, json_info_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::GetEntityIDsParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::GetEntityIDsParam, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::GetEntityIDsParam, segment_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::EntityIdentity, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::EntityIdentity, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::EntityIdentity, id_array_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::EntityIdentity, field_names_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorFieldParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorFieldParam, dimension_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldType, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldType, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::milvus::grpc::FieldTypeDefaultTypeInternal, data_type_), - offsetof(::milvus::grpc::FieldTypeDefaultTypeInternal, vector_param_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldType, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldParam, id_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldParam, name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldParam, type_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldParam, index_params_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldParam, extra_params_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorFieldRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorFieldRecord, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::TermQuery, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::TermQuery, field_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::TermQuery, int_value_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::TermQuery, double_value_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::TermQuery, value_num_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::TermQuery, boost_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::TermQuery, extra_params_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CompareExpr, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CompareExpr, operator__), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CompareExpr, operand_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::RangeQuery, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::RangeQuery, field_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::RangeQuery, operand_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::RangeQuery, boost_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::RangeQuery, extra_params_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorQuery, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorQuery, field_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorQuery, query_boost_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorQuery, records_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorQuery, topk_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorQuery, extra_params_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::BooleanQuery, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::BooleanQuery, occur_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::BooleanQuery, general_query_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::GeneralQuery, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::GeneralQuery, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::milvus::grpc::GeneralQueryDefaultTypeInternal, boolean_query_), - offsetof(::milvus::grpc::GeneralQueryDefaultTypeInternal, term_query_), - offsetof(::milvus::grpc::GeneralQueryDefaultTypeInternal, range_query_), - offsetof(::milvus::grpc::GeneralQueryDefaultTypeInternal, vector_query_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::GeneralQuery, query_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParamPB, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParamPB, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParamPB, partition_tag_array_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParamPB, general_query_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParamPB, extra_params_), -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::milvus::grpc::KeyValuePair)}, - { 7, -1, sizeof(::milvus::grpc::CollectionName)}, - { 13, -1, sizeof(::milvus::grpc::CollectionNameList)}, - { 20, -1, sizeof(::milvus::grpc::FieldName)}, - { 27, -1, sizeof(::milvus::grpc::Mapping)}, - { 36, -1, sizeof(::milvus::grpc::MappingList)}, - { 43, -1, sizeof(::milvus::grpc::PartitionParam)}, - { 50, -1, sizeof(::milvus::grpc::PartitionList)}, - { 57, -1, sizeof(::milvus::grpc::VectorRowRecord)}, - { 64, -1, sizeof(::milvus::grpc::AttrRecord)}, - { 73, -1, sizeof(::milvus::grpc::VectorRecord)}, - { 79, -1, sizeof(::milvus::grpc::FieldValue)}, - { 88, -1, sizeof(::milvus::grpc::InsertParam)}, - { 98, -1, sizeof(::milvus::grpc::EntityIds)}, - { 105, -1, sizeof(::milvus::grpc::VectorParam)}, - { 112, -1, sizeof(::milvus::grpc::SearchParam)}, - { 122, -1, sizeof(::milvus::grpc::SearchInSegmentParam)}, - { 129, -1, sizeof(::milvus::grpc::Entities)}, - { 138, -1, sizeof(::milvus::grpc::QueryResult)}, - { 149, -1, sizeof(::milvus::grpc::StringReply)}, - { 156, -1, sizeof(::milvus::grpc::BoolReply)}, - { 163, -1, sizeof(::milvus::grpc::CollectionRowCount)}, - { 170, -1, sizeof(::milvus::grpc::Command)}, - { 176, -1, sizeof(::milvus::grpc::IndexParam)}, - { 186, -1, sizeof(::milvus::grpc::FlushParam)}, - { 192, -1, sizeof(::milvus::grpc::CompactParam)}, - { 199, -1, sizeof(::milvus::grpc::DeleteByIDParam)}, - { 206, -1, sizeof(::milvus::grpc::CollectionInfo)}, - { 213, -1, sizeof(::milvus::grpc::GetEntityIDsParam)}, - { 220, -1, sizeof(::milvus::grpc::EntityIdentity)}, - { 228, -1, sizeof(::milvus::grpc::VectorFieldParam)}, - { 234, -1, sizeof(::milvus::grpc::FieldType)}, - { 242, -1, sizeof(::milvus::grpc::FieldParam)}, - { 252, -1, sizeof(::milvus::grpc::VectorFieldRecord)}, - { 258, -1, sizeof(::milvus::grpc::TermQuery)}, - { 269, -1, sizeof(::milvus::grpc::CompareExpr)}, - { 276, -1, sizeof(::milvus::grpc::RangeQuery)}, - { 285, -1, sizeof(::milvus::grpc::VectorQuery)}, - { 295, -1, sizeof(::milvus::grpc::BooleanQuery)}, - { 302, -1, sizeof(::milvus::grpc::GeneralQuery)}, - { 312, -1, sizeof(::milvus::grpc::SearchParamPB)}, -}; - -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::milvus::grpc::_KeyValuePair_default_instance_), - reinterpret_cast(&::milvus::grpc::_CollectionName_default_instance_), - reinterpret_cast(&::milvus::grpc::_CollectionNameList_default_instance_), - reinterpret_cast(&::milvus::grpc::_FieldName_default_instance_), - reinterpret_cast(&::milvus::grpc::_Mapping_default_instance_), - reinterpret_cast(&::milvus::grpc::_MappingList_default_instance_), - reinterpret_cast(&::milvus::grpc::_PartitionParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_PartitionList_default_instance_), - reinterpret_cast(&::milvus::grpc::_VectorRowRecord_default_instance_), - reinterpret_cast(&::milvus::grpc::_AttrRecord_default_instance_), - reinterpret_cast(&::milvus::grpc::_VectorRecord_default_instance_), - reinterpret_cast(&::milvus::grpc::_FieldValue_default_instance_), - reinterpret_cast(&::milvus::grpc::_InsertParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_EntityIds_default_instance_), - reinterpret_cast(&::milvus::grpc::_VectorParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_SearchParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_SearchInSegmentParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_Entities_default_instance_), - reinterpret_cast(&::milvus::grpc::_QueryResult_default_instance_), - reinterpret_cast(&::milvus::grpc::_StringReply_default_instance_), - reinterpret_cast(&::milvus::grpc::_BoolReply_default_instance_), - reinterpret_cast(&::milvus::grpc::_CollectionRowCount_default_instance_), - reinterpret_cast(&::milvus::grpc::_Command_default_instance_), - reinterpret_cast(&::milvus::grpc::_IndexParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_FlushParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_CompactParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_DeleteByIDParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_CollectionInfo_default_instance_), - reinterpret_cast(&::milvus::grpc::_GetEntityIDsParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_EntityIdentity_default_instance_), - reinterpret_cast(&::milvus::grpc::_VectorFieldParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_FieldType_default_instance_), - reinterpret_cast(&::milvus::grpc::_FieldParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_VectorFieldRecord_default_instance_), - reinterpret_cast(&::milvus::grpc::_TermQuery_default_instance_), - reinterpret_cast(&::milvus::grpc::_CompareExpr_default_instance_), - reinterpret_cast(&::milvus::grpc::_RangeQuery_default_instance_), - reinterpret_cast(&::milvus::grpc::_VectorQuery_default_instance_), - reinterpret_cast(&::milvus::grpc::_BooleanQuery_default_instance_), - reinterpret_cast(&::milvus::grpc::_GeneralQuery_default_instance_), - reinterpret_cast(&::milvus::grpc::_SearchParamPB_default_instance_), -}; - -const char descriptor_table_protodef_milvus_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\014milvus.proto\022\013milvus.grpc\032\014status.prot" - "o\"*\n\014KeyValuePair\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - "\002 \001(\t\")\n\016CollectionName\022\027\n\017collection_na" - "me\030\001 \001(\t\"S\n\022CollectionNameList\022#\n\006status" - "\030\001 \001(\0132\023.milvus.grpc.Status\022\030\n\020collectio" - "n_names\030\002 \003(\t\"8\n\tFieldName\022\027\n\017collection" - "_name\030\001 \001(\t\022\022\n\nfield_name\030\002 \001(\t\"\241\001\n\007Mapp" - "ing\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Status" - "\022\027\n\017collection_name\030\002 \001(\t\022\'\n\006fields\030\003 \003(" - "\0132\027.milvus.grpc.FieldParam\022/\n\014extra_para" - "ms\030\004 \003(\0132\031.milvus.grpc.KeyValuePair\"^\n\013M" - "appingList\022#\n\006status\030\001 \001(\0132\023.milvus.grpc" - ".Status\022*\n\014mapping_list\030\002 \003(\0132\024.milvus.g" - "rpc.Mapping\"6\n\016PartitionParam\022\027\n\017collect" - "ion_name\030\001 \001(\t\022\013\n\003tag\030\002 \001(\t\"Q\n\rPartition" - "List\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Statu" - "s\022\033\n\023partition_tag_array\030\002 \003(\t\":\n\017Vector" - "RowRecord\022\022\n\nfloat_data\030\001 \003(\002\022\023\n\013binary_" - "data\030\002 \001(\014\"a\n\nAttrRecord\022\023\n\013int32_value\030" - "\001 \003(\005\022\023\n\013int64_value\030\002 \003(\003\022\023\n\013float_valu" - "e\030\003 \003(\002\022\024\n\014double_value\030\004 \003(\001\"=\n\014VectorR" - "ecord\022-\n\007records\030\001 \003(\0132\034.milvus.grpc.Vec" - "torRowRecord\"\245\001\n\nFieldValue\022\022\n\nfield_nam" - "e\030\001 \001(\t\022#\n\004type\030\002 \001(\0162\025.milvus.grpc.Data" - "Type\022,\n\013attr_record\030\003 \001(\0132\027.milvus.grpc." - "AttrRecord\0220\n\rvector_record\030\004 \001(\0132\031.milv" - "us.grpc.VectorRecord\"\260\001\n\013InsertParam\022\027\n\017" - "collection_name\030\001 \001(\t\022\'\n\006fields\030\002 \003(\0132\027." - "milvus.grpc.FieldValue\022\027\n\017entity_id_arra" - "y\030\003 \003(\003\022\025\n\rpartition_tag\030\004 \001(\t\022/\n\014extra_" - "params\030\005 \003(\0132\031.milvus.grpc.KeyValuePair\"" - "I\n\tEntityIds\022#\n\006status\030\001 \001(\0132\023.milvus.gr" - "pc.Status\022\027\n\017entity_id_array\030\002 \003(\003\"J\n\013Ve" - "ctorParam\022\014\n\004json\030\001 \001(\t\022-\n\nrow_record\030\002 " - "\001(\0132\031.milvus.grpc.VectorRecord\"\261\001\n\013Searc" - "hParam\022\027\n\017collection_name\030\001 \001(\t\022\033\n\023parti" - "tion_tag_array\030\002 \003(\t\022.\n\014vector_param\030\003 \003" - "(\0132\030.milvus.grpc.VectorParam\022\013\n\003dsl\030\004 \001(" - "\t\022/\n\014extra_params\030\005 \003(\0132\031.milvus.grpc.Ke" - "yValuePair\"]\n\024SearchInSegmentParam\022\025\n\rfi" - "le_id_array\030\001 \003(\t\022.\n\014search_param\030\002 \001(\0132" - "\030.milvus.grpc.SearchParam\"x\n\010Entities\022#\n" - "\006status\030\001 \001(\0132\023.milvus.grpc.Status\022\013\n\003id" - "s\030\002 \003(\003\022\021\n\tvalid_row\030\003 \003(\010\022\'\n\006fields\030\004 \003" - "(\0132\027.milvus.grpc.FieldValue\"\300\001\n\013QueryRes" - "ult\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Status" - "\022\'\n\010entities\030\002 \001(\0132\025.milvus.grpc.Entitie" - "s\022\017\n\007row_num\030\003 \001(\003\022\016\n\006scores\030\004 \003(\002\022\021\n\tdi" - "stances\030\005 \003(\002\022/\n\014extra_params\030\006 \003(\0132\031.mi" - "lvus.grpc.KeyValuePair\"H\n\013StringReply\022#\n" - "\006status\030\001 \001(\0132\023.milvus.grpc.Status\022\024\n\014st" - "ring_reply\030\002 \001(\t\"D\n\tBoolReply\022#\n\006status\030" - "\001 \001(\0132\023.milvus.grpc.Status\022\022\n\nbool_reply" - "\030\002 \001(\010\"W\n\022CollectionRowCount\022#\n\006status\030\001" - " \001(\0132\023.milvus.grpc.Status\022\034\n\024collection_" - "row_count\030\002 \001(\003\"\026\n\007Command\022\013\n\003cmd\030\001 \001(\t\"" - "\243\001\n\nIndexParam\022#\n\006status\030\001 \001(\0132\023.milvus." - "grpc.Status\022\027\n\017collection_name\030\002 \001(\t\022\022\n\n" - "field_name\030\003 \001(\t\022\022\n\nindex_name\030\004 \001(\t\022/\n\014" - "extra_params\030\005 \003(\0132\031.milvus.grpc.KeyValu" - "ePair\"+\n\nFlushParam\022\035\n\025collection_name_a" - "rray\030\001 \003(\t\":\n\014CompactParam\022\027\n\017collection" - "_name\030\001 \001(\t\022\021\n\tthreshold\030\002 \001(\001\"<\n\017Delete" - "ByIDParam\022\027\n\017collection_name\030\001 \001(\t\022\020\n\010id" - "_array\030\002 \003(\003\"H\n\016CollectionInfo\022#\n\006status" - "\030\001 \001(\0132\023.milvus.grpc.Status\022\021\n\tjson_info" - "\030\002 \001(\t\"@\n\021GetEntityIDsParam\022\027\n\017collectio" - "n_name\030\001 \001(\t\022\022\n\nsegment_id\030\002 \001(\003\"P\n\016Enti" - "tyIdentity\022\027\n\017collection_name\030\001 \001(\t\022\020\n\010i" - "d_array\030\002 \003(\003\022\023\n\013field_names\030\003 \003(\t\"%\n\020Ve" - "ctorFieldParam\022\021\n\tdimension\030\001 \001(\003\"w\n\tFie" - "ldType\022*\n\tdata_type\030\001 \001(\0162\025.milvus.grpc." - "DataTypeH\000\0225\n\014vector_param\030\002 \001(\0132\035.milvu" - "s.grpc.VectorFieldParamH\000B\007\n\005value\"\255\001\n\nF" - "ieldParam\022\n\n\002id\030\001 \001(\004\022\014\n\004name\030\002 \001(\t\022#\n\004t" - "ype\030\003 \001(\0162\025.milvus.grpc.DataType\022/\n\014inde" - "x_params\030\004 \003(\0132\031.milvus.grpc.KeyValuePai" - "r\022/\n\014extra_params\030\005 \003(\0132\031.milvus.grpc.Ke" - "yValuePair\"@\n\021VectorFieldRecord\022+\n\005value" - "\030\001 \003(\0132\034.milvus.grpc.VectorRowRecord\"\233\001\n" - "\tTermQuery\022\022\n\nfield_name\030\001 \001(\t\022\021\n\tint_va" - "lue\030\002 \003(\003\022\024\n\014double_value\030\003 \003(\001\022\021\n\tvalue" - "_num\030\004 \001(\003\022\r\n\005boost\030\005 \001(\002\022/\n\014extra_param" - "s\030\006 \003(\0132\031.milvus.grpc.KeyValuePair\"N\n\013Co" - "mpareExpr\022.\n\010operator\030\001 \001(\0162\034.milvus.grp" - "c.CompareOperator\022\017\n\007operand\030\002 \001(\t\"\213\001\n\nR" - "angeQuery\022\022\n\nfield_name\030\001 \001(\t\022)\n\007operand" - "\030\002 \003(\0132\030.milvus.grpc.CompareExpr\022\r\n\005boos" - "t\030\003 \001(\002\022/\n\014extra_params\030\004 \003(\0132\031.milvus.g" - "rpc.KeyValuePair\"\244\001\n\013VectorQuery\022\022\n\nfiel" - "d_name\030\001 \001(\t\022\023\n\013query_boost\030\002 \001(\002\022-\n\007rec" - "ords\030\003 \003(\0132\034.milvus.grpc.VectorRowRecord" - "\022\014\n\004topk\030\004 \001(\003\022/\n\014extra_params\030\005 \003(\0132\031.m" - "ilvus.grpc.KeyValuePair\"c\n\014BooleanQuery\022" - "!\n\005occur\030\001 \001(\0162\022.milvus.grpc.Occur\0220\n\rge" - "neral_query\030\002 \003(\0132\031.milvus.grpc.GeneralQ" - "uery\"\333\001\n\014GeneralQuery\0222\n\rboolean_query\030\001" - " \001(\0132\031.milvus.grpc.BooleanQueryH\000\022,\n\nter" - "m_query\030\002 \001(\0132\026.milvus.grpc.TermQueryH\000\022" - ".\n\013range_query\030\003 \001(\0132\027.milvus.grpc.Range" - "QueryH\000\0220\n\014vector_query\030\004 \001(\0132\030.milvus.g" - "rpc.VectorQueryH\000B\007\n\005query\"\250\001\n\rSearchPar" - "amPB\022\027\n\017collection_name\030\001 \001(\t\022\033\n\023partiti" - "on_tag_array\030\002 \003(\t\0220\n\rgeneral_query\030\003 \001(" - "\0132\031.milvus.grpc.GeneralQuery\022/\n\014extra_pa" - "rams\030\004 \003(\0132\031.milvus.grpc.KeyValuePair*\221\001" - "\n\010DataType\022\010\n\004NONE\020\000\022\010\n\004BOOL\020\001\022\010\n\004INT8\020\002" - "\022\t\n\005INT16\020\003\022\t\n\005INT32\020\004\022\t\n\005INT64\020\005\022\t\n\005FLO" - "AT\020\n\022\n\n\006DOUBLE\020\013\022\n\n\006STRING\020\024\022\021\n\rVECTOR_B" - "INARY\020d\022\020\n\014VECTOR_FLOAT\020e*C\n\017CompareOper" - "ator\022\006\n\002LT\020\000\022\007\n\003LTE\020\001\022\006\n\002EQ\020\002\022\006\n\002GT\020\003\022\007\n" - "\003GTE\020\004\022\006\n\002NE\020\005*8\n\005Occur\022\013\n\007INVALID\020\000\022\010\n\004" - "MUST\020\001\022\n\n\006SHOULD\020\002\022\014\n\010MUST_NOT\020\0032\333\r\n\rMil" - "vusService\022\?\n\020CreateCollection\022\024.milvus." - "grpc.Mapping\032\023.milvus.grpc.Status\"\000\022F\n\rH" - "asCollection\022\033.milvus.grpc.CollectionNam" - "e\032\026.milvus.grpc.BoolReply\"\000\022I\n\022DescribeC" - "ollection\022\033.milvus.grpc.CollectionName\032\024" - ".milvus.grpc.Mapping\"\000\022Q\n\017CountCollectio" - "n\022\033.milvus.grpc.CollectionName\032\037.milvus." - "grpc.CollectionRowCount\"\000\022J\n\017ShowCollect" - "ions\022\024.milvus.grpc.Command\032\037.milvus.grpc" - ".CollectionNameList\"\000\022P\n\022ShowCollectionI" - "nfo\022\033.milvus.grpc.CollectionName\032\033.milvu" - "s.grpc.CollectionInfo\"\000\022D\n\016DropCollectio" - "n\022\033.milvus.grpc.CollectionName\032\023.milvus." - "grpc.Status\"\000\022=\n\013CreateIndex\022\027.milvus.gr" - "pc.IndexParam\032\023.milvus.grpc.Status\"\000\022C\n\r" - "DescribeIndex\022\027.milvus.grpc.IndexParam\032\027" - ".milvus.grpc.IndexParam\"\000\022;\n\tDropIndex\022\027" - ".milvus.grpc.IndexParam\032\023.milvus.grpc.St" - "atus\"\000\022E\n\017CreatePartition\022\033.milvus.grpc." - "PartitionParam\032\023.milvus.grpc.Status\"\000\022E\n" - "\014HasPartition\022\033.milvus.grpc.PartitionPar" - "am\032\026.milvus.grpc.BoolReply\"\000\022K\n\016ShowPart" - "itions\022\033.milvus.grpc.CollectionName\032\032.mi" - "lvus.grpc.PartitionList\"\000\022C\n\rDropPartiti" - "on\022\033.milvus.grpc.PartitionParam\032\023.milvus" - ".grpc.Status\"\000\022<\n\006Insert\022\030.milvus.grpc.I" - "nsertParam\032\026.milvus.grpc.EntityIds\"\000\022E\n\r" - "GetEntityByID\022\033.milvus.grpc.EntityIdenti" - "ty\032\025.milvus.grpc.Entities\"\000\022H\n\014GetEntity" - "IDs\022\036.milvus.grpc.GetEntityIDsParam\032\026.mi" - "lvus.grpc.EntityIds\"\000\022>\n\006Search\022\030.milvus" - ".grpc.SearchParam\032\030.milvus.grpc.QueryRes" - "ult\"\000\022P\n\017SearchInSegment\022!.milvus.grpc.S" - "earchInSegmentParam\032\030.milvus.grpc.QueryR" - "esult\"\000\0227\n\003Cmd\022\024.milvus.grpc.Command\032\030.m" - "ilvus.grpc.StringReply\"\000\022A\n\nDeleteByID\022\034" - ".milvus.grpc.DeleteByIDParam\032\023.milvus.gr" - "pc.Status\"\000\022G\n\021PreloadCollection\022\033.milvu" - "s.grpc.CollectionName\032\023.milvus.grpc.Stat" - "us\"\000\0227\n\005Flush\022\027.milvus.grpc.FlushParam\032\023" - ".milvus.grpc.Status\"\000\022;\n\007Compact\022\031.milvu" - "s.grpc.CompactParam\032\023.milvus.grpc.Status" - "\"\000\022B\n\010SearchPB\022\032.milvus.grpc.SearchParam" - "PB\032\030.milvus.grpc.QueryResult\"\000b\006proto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_milvus_2eproto_deps[1] = { - &::descriptor_table_status_2eproto, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_milvus_2eproto_sccs[40] = { - &scc_info_AttrRecord_milvus_2eproto.base, - &scc_info_BoolReply_milvus_2eproto.base, - &scc_info_BooleanQuery_milvus_2eproto.base, - &scc_info_CollectionInfo_milvus_2eproto.base, - &scc_info_CollectionName_milvus_2eproto.base, - &scc_info_CollectionNameList_milvus_2eproto.base, - &scc_info_CollectionRowCount_milvus_2eproto.base, - &scc_info_Command_milvus_2eproto.base, - &scc_info_CompactParam_milvus_2eproto.base, - &scc_info_CompareExpr_milvus_2eproto.base, - &scc_info_DeleteByIDParam_milvus_2eproto.base, - &scc_info_Entities_milvus_2eproto.base, - &scc_info_EntityIdentity_milvus_2eproto.base, - &scc_info_EntityIds_milvus_2eproto.base, - &scc_info_FieldName_milvus_2eproto.base, - &scc_info_FieldParam_milvus_2eproto.base, - &scc_info_FieldType_milvus_2eproto.base, - &scc_info_FieldValue_milvus_2eproto.base, - &scc_info_FlushParam_milvus_2eproto.base, - &scc_info_GetEntityIDsParam_milvus_2eproto.base, - &scc_info_IndexParam_milvus_2eproto.base, - &scc_info_InsertParam_milvus_2eproto.base, - &scc_info_KeyValuePair_milvus_2eproto.base, - &scc_info_Mapping_milvus_2eproto.base, - &scc_info_MappingList_milvus_2eproto.base, - &scc_info_PartitionList_milvus_2eproto.base, - &scc_info_PartitionParam_milvus_2eproto.base, - &scc_info_QueryResult_milvus_2eproto.base, - &scc_info_RangeQuery_milvus_2eproto.base, - &scc_info_SearchInSegmentParam_milvus_2eproto.base, - &scc_info_SearchParam_milvus_2eproto.base, - &scc_info_SearchParamPB_milvus_2eproto.base, - &scc_info_StringReply_milvus_2eproto.base, - &scc_info_TermQuery_milvus_2eproto.base, - &scc_info_VectorFieldParam_milvus_2eproto.base, - &scc_info_VectorFieldRecord_milvus_2eproto.base, - &scc_info_VectorParam_milvus_2eproto.base, - &scc_info_VectorQuery_milvus_2eproto.base, - &scc_info_VectorRecord_milvus_2eproto.base, - &scc_info_VectorRowRecord_milvus_2eproto.base, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_milvus_2eproto_once; -static bool descriptor_table_milvus_2eproto_initialized = false; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_milvus_2eproto = { - &descriptor_table_milvus_2eproto_initialized, descriptor_table_protodef_milvus_2eproto, "milvus.proto", 6278, - &descriptor_table_milvus_2eproto_once, descriptor_table_milvus_2eproto_sccs, descriptor_table_milvus_2eproto_deps, 40, 1, - schemas, file_default_instances, TableStruct_milvus_2eproto::offsets, - file_level_metadata_milvus_2eproto, 41, file_level_enum_descriptors_milvus_2eproto, file_level_service_descriptors_milvus_2eproto, -}; - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_milvus_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_milvus_2eproto), true); -namespace milvus { -namespace grpc { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DataType_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_milvus_2eproto); - return file_level_enum_descriptors_milvus_2eproto[0]; -} -bool DataType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 10: - case 11: - case 20: - case 100: - case 101: - return true; - default: - return false; - } -} - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CompareOperator_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_milvus_2eproto); - return file_level_enum_descriptors_milvus_2eproto[1]; -} -bool CompareOperator_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - return true; - default: - return false; - } -} - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Occur_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_milvus_2eproto); - return file_level_enum_descriptors_milvus_2eproto[2]; -} -bool Occur_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} - - -// =================================================================== - -void KeyValuePair::InitAsDefaultInstance() { -} -class KeyValuePair::_Internal { - public: -}; - -KeyValuePair::KeyValuePair() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.KeyValuePair) -} -KeyValuePair::KeyValuePair(const KeyValuePair& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.key().empty()) { - key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.key_); - } - value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.value().empty()) { - value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.value_); - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.KeyValuePair) -} - -void KeyValuePair::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_KeyValuePair_milvus_2eproto.base); - key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -KeyValuePair::~KeyValuePair() { - // @@protoc_insertion_point(destructor:milvus.grpc.KeyValuePair) - SharedDtor(); -} - -void KeyValuePair::SharedDtor() { - key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void KeyValuePair::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const KeyValuePair& KeyValuePair::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_KeyValuePair_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void KeyValuePair::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.KeyValuePair) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* KeyValuePair::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string key = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_key(), ptr, ctx, "milvus.grpc.KeyValuePair.key"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string value = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_value(), ptr, ctx, "milvus.grpc.KeyValuePair.value"); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool KeyValuePair::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.KeyValuePair) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string key = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_key())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.KeyValuePair.key")); - } else { - goto handle_unusual; - } - break; - } - - // string value = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_value())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.KeyValuePair.value")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.KeyValuePair) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.KeyValuePair) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void KeyValuePair::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.KeyValuePair) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string key = 1; - if (this->key().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.KeyValuePair.key"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->key(), output); - } - - // string value = 2; - if (this->value().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.KeyValuePair.value"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->value(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.KeyValuePair) -} - -::PROTOBUF_NAMESPACE_ID::uint8* KeyValuePair::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.KeyValuePair) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string key = 1; - if (this->key().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.KeyValuePair.key"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->key(), target); - } - - // string value = 2; - if (this->value().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.KeyValuePair.value"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 2, this->value(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.KeyValuePair) - return target; -} - -size_t KeyValuePair::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.KeyValuePair) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string key = 1; - if (this->key().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->key()); - } - - // string value = 2; - if (this->value().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->value()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void KeyValuePair::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.KeyValuePair) - GOOGLE_DCHECK_NE(&from, this); - const KeyValuePair* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.KeyValuePair) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.KeyValuePair) - MergeFrom(*source); - } -} - -void KeyValuePair::MergeFrom(const KeyValuePair& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.KeyValuePair) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.key().size() > 0) { - - key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.key_); - } - if (from.value().size() > 0) { - - value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.value_); - } -} - -void KeyValuePair::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.KeyValuePair) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void KeyValuePair::CopyFrom(const KeyValuePair& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.KeyValuePair) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool KeyValuePair::IsInitialized() const { - return true; -} - -void KeyValuePair::InternalSwap(KeyValuePair* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - key_.Swap(&other->key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - value_.Swap(&other->value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata KeyValuePair::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void CollectionName::InitAsDefaultInstance() { -} -class CollectionName::_Internal { - public: -}; - -CollectionName::CollectionName() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.CollectionName) -} -CollectionName::CollectionName(const CollectionName& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.CollectionName) -} - -void CollectionName::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionName_milvus_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -CollectionName::~CollectionName() { - // @@protoc_insertion_point(destructor:milvus.grpc.CollectionName) - SharedDtor(); -} - -void CollectionName::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void CollectionName::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CollectionName& CollectionName::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionName_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void CollectionName::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.CollectionName) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CollectionName::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.CollectionName.collection_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CollectionName::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.CollectionName) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string collection_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.CollectionName.collection_name")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.CollectionName) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.CollectionName) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CollectionName::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.CollectionName) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.CollectionName.collection_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.CollectionName) -} - -::PROTOBUF_NAMESPACE_ID::uint8* CollectionName::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.CollectionName) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.CollectionName.collection_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.CollectionName) - return target; -} - -size_t CollectionName::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.CollectionName) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CollectionName::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.CollectionName) - GOOGLE_DCHECK_NE(&from, this); - const CollectionName* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.CollectionName) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.CollectionName) - MergeFrom(*source); - } -} - -void CollectionName::MergeFrom(const CollectionName& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.CollectionName) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } -} - -void CollectionName::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.CollectionName) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CollectionName::CopyFrom(const CollectionName& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.CollectionName) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CollectionName::IsInitialized() const { - return true; -} - -void CollectionName::InternalSwap(CollectionName* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata CollectionName::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void CollectionNameList::InitAsDefaultInstance() { - ::milvus::grpc::_CollectionNameList_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( - ::milvus::grpc::Status::internal_default_instance()); -} -class CollectionNameList::_Internal { - public: - static const ::milvus::grpc::Status& status(const CollectionNameList* msg); -}; - -const ::milvus::grpc::Status& -CollectionNameList::_Internal::status(const CollectionNameList* msg) { - return *msg->status_; -} -void CollectionNameList::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -CollectionNameList::CollectionNameList() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.CollectionNameList) -} -CollectionNameList::CollectionNameList(const CollectionNameList& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - collection_names_(from.collection_names_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_status()) { - status_ = new ::milvus::grpc::Status(*from.status_); - } else { - status_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.CollectionNameList) -} - -void CollectionNameList::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionNameList_milvus_2eproto.base); - status_ = nullptr; -} - -CollectionNameList::~CollectionNameList() { - // @@protoc_insertion_point(destructor:milvus.grpc.CollectionNameList) - SharedDtor(); -} - -void CollectionNameList::SharedDtor() { - if (this != internal_default_instance()) delete status_; -} - -void CollectionNameList::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CollectionNameList& CollectionNameList::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionNameList_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void CollectionNameList::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.CollectionNameList) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - collection_names_.Clear(); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CollectionNameList::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated string collection_names = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_collection_names(), ptr, ctx, "milvus.grpc.CollectionNameList.collection_names"); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CollectionNameList::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.CollectionNameList) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.grpc.Status status = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_status())); - } else { - goto handle_unusual; - } - break; - } - - // repeated string collection_names = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->add_collection_names())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_names(this->collection_names_size() - 1).data(), - static_cast(this->collection_names(this->collection_names_size() - 1).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.CollectionNameList.collection_names")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.CollectionNameList) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.CollectionNameList) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CollectionNameList::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.CollectionNameList) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::status(this), output); - } - - // repeated string collection_names = 2; - for (int i = 0, n = this->collection_names_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_names(i).data(), static_cast(this->collection_names(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.CollectionNameList.collection_names"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( - 2, this->collection_names(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.CollectionNameList) -} - -::PROTOBUF_NAMESPACE_ID::uint8* CollectionNameList::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.CollectionNameList) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::status(this), target); - } - - // repeated string collection_names = 2; - for (int i = 0, n = this->collection_names_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_names(i).data(), static_cast(this->collection_names(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.CollectionNameList.collection_names"); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteStringToArray(2, this->collection_names(i), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.CollectionNameList) - return target; -} - -size_t CollectionNameList::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.CollectionNameList) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated string collection_names = 2; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->collection_names_size()); - for (int i = 0, n = this->collection_names_size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->collection_names(i)); - } - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CollectionNameList::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.CollectionNameList) - GOOGLE_DCHECK_NE(&from, this); - const CollectionNameList* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.CollectionNameList) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.CollectionNameList) - MergeFrom(*source); - } -} - -void CollectionNameList::MergeFrom(const CollectionNameList& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.CollectionNameList) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - collection_names_.MergeFrom(from.collection_names_); - if (from.has_status()) { - mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); - } -} - -void CollectionNameList::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.CollectionNameList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CollectionNameList::CopyFrom(const CollectionNameList& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.CollectionNameList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CollectionNameList::IsInitialized() const { - return true; -} - -void CollectionNameList::InternalSwap(CollectionNameList* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - collection_names_.InternalSwap(CastToBase(&other->collection_names_)); - swap(status_, other->status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata CollectionNameList::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void FieldName::InitAsDefaultInstance() { -} -class FieldName::_Internal { - public: -}; - -FieldName::FieldName() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.FieldName) -} -FieldName::FieldName(const FieldName& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.field_name().empty()) { - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.FieldName) -} - -void FieldName::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FieldName_milvus_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -FieldName::~FieldName() { - // @@protoc_insertion_point(destructor:milvus.grpc.FieldName) - SharedDtor(); -} - -void FieldName::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void FieldName::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const FieldName& FieldName::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FieldName_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void FieldName::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.FieldName) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* FieldName::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.FieldName.collection_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string field_name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_field_name(), ptr, ctx, "milvus.grpc.FieldName.field_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool FieldName::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.FieldName) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string collection_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.FieldName.collection_name")); - } else { - goto handle_unusual; - } - break; - } - - // string field_name = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_field_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.FieldName.field_name")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.FieldName) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.FieldName) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void FieldName::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.FieldName) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.FieldName.collection_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // string field_name = 2; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.FieldName.field_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->field_name(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.FieldName) -} - -::PROTOBUF_NAMESPACE_ID::uint8* FieldName::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.FieldName) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.FieldName.collection_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // string field_name = 2; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.FieldName.field_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 2, this->field_name(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.FieldName) - return target; -} - -size_t FieldName::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.FieldName) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // string field_name = 2; - if (this->field_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->field_name()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void FieldName::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.FieldName) - GOOGLE_DCHECK_NE(&from, this); - const FieldName* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.FieldName) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.FieldName) - MergeFrom(*source); - } -} - -void FieldName::MergeFrom(const FieldName& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.FieldName) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.field_name().size() > 0) { - - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } -} - -void FieldName::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.FieldName) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FieldName::CopyFrom(const FieldName& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.FieldName) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FieldName::IsInitialized() const { - return true; -} - -void FieldName::InternalSwap(FieldName* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata FieldName::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void Mapping::InitAsDefaultInstance() { - ::milvus::grpc::_Mapping_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( - ::milvus::grpc::Status::internal_default_instance()); -} -class Mapping::_Internal { - public: - static const ::milvus::grpc::Status& status(const Mapping* msg); -}; - -const ::milvus::grpc::Status& -Mapping::_Internal::status(const Mapping* msg) { - return *msg->status_; -} -void Mapping::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -Mapping::Mapping() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.Mapping) -} -Mapping::Mapping(const Mapping& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - fields_(from.fields_), - extra_params_(from.extra_params_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.has_status()) { - status_ = new ::milvus::grpc::Status(*from.status_); - } else { - status_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.Mapping) -} - -void Mapping::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Mapping_milvus_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - status_ = nullptr; -} - -Mapping::~Mapping() { - // @@protoc_insertion_point(destructor:milvus.grpc.Mapping) - SharedDtor(); -} - -void Mapping::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete status_; -} - -void Mapping::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Mapping& Mapping::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Mapping_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void Mapping::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.Mapping) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - fields_.Clear(); - extra_params_.Clear(); - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Mapping::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string collection_name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.Mapping.collection_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.FieldParam fields = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_fields(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_extra_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Mapping::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.Mapping) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.grpc.Status status = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_status())); - } else { - goto handle_unusual; - } - break; - } - - // string collection_name = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.Mapping.collection_name")); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.grpc.FieldParam fields = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_fields())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_extra_params())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.Mapping) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.Mapping) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Mapping::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.Mapping) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::status(this), output); - } - - // string collection_name = 2; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.Mapping.collection_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->collection_name(), output); - } - - // repeated .milvus.grpc.FieldParam fields = 3; - for (unsigned int i = 0, - n = static_cast(this->fields_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, - this->fields(static_cast(i)), - output); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - for (unsigned int i = 0, - n = static_cast(this->extra_params_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, - this->extra_params(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.Mapping) -} - -::PROTOBUF_NAMESPACE_ID::uint8* Mapping::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Mapping) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::status(this), target); - } - - // string collection_name = 2; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.Mapping.collection_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 2, this->collection_name(), target); - } - - // repeated .milvus.grpc.FieldParam fields = 3; - for (unsigned int i = 0, - n = static_cast(this->fields_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->fields(static_cast(i)), target); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - for (unsigned int i = 0, - n = static_cast(this->extra_params_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, this->extra_params(static_cast(i)), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Mapping) - return target; -} - -size_t Mapping::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.Mapping) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.grpc.FieldParam fields = 3; - { - unsigned int count = static_cast(this->fields_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->fields(static_cast(i))); - } - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - { - unsigned int count = static_cast(this->extra_params_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->extra_params(static_cast(i))); - } - } - - // string collection_name = 2; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Mapping::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.Mapping) - GOOGLE_DCHECK_NE(&from, this); - const Mapping* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.Mapping) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Mapping) - MergeFrom(*source); - } -} - -void Mapping::MergeFrom(const Mapping& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.Mapping) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - fields_.MergeFrom(from.fields_); - extra_params_.MergeFrom(from.extra_params_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.has_status()) { - mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); - } -} - -void Mapping::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Mapping) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Mapping::CopyFrom(const Mapping& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.Mapping) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Mapping::IsInitialized() const { - return true; -} - -void Mapping::InternalSwap(Mapping* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&fields_)->InternalSwap(CastToBase(&other->fields_)); - CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(status_, other->status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata Mapping::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void MappingList::InitAsDefaultInstance() { - ::milvus::grpc::_MappingList_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( - ::milvus::grpc::Status::internal_default_instance()); -} -class MappingList::_Internal { - public: - static const ::milvus::grpc::Status& status(const MappingList* msg); -}; - -const ::milvus::grpc::Status& -MappingList::_Internal::status(const MappingList* msg) { - return *msg->status_; -} -void MappingList::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -MappingList::MappingList() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.MappingList) -} -MappingList::MappingList(const MappingList& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - mapping_list_(from.mapping_list_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_status()) { - status_ = new ::milvus::grpc::Status(*from.status_); - } else { - status_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.MappingList) -} - -void MappingList::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MappingList_milvus_2eproto.base); - status_ = nullptr; -} - -MappingList::~MappingList() { - // @@protoc_insertion_point(destructor:milvus.grpc.MappingList) - SharedDtor(); -} - -void MappingList::SharedDtor() { - if (this != internal_default_instance()) delete status_; -} - -void MappingList::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MappingList& MappingList::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MappingList_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void MappingList::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.MappingList) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - mapping_list_.Clear(); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* MappingList::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.Mapping mapping_list = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_mapping_list(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool MappingList::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.MappingList) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.grpc.Status status = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_status())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.grpc.Mapping mapping_list = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_mapping_list())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.MappingList) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.MappingList) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void MappingList::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.MappingList) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::status(this), output); - } - - // repeated .milvus.grpc.Mapping mapping_list = 2; - for (unsigned int i = 0, - n = static_cast(this->mapping_list_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, - this->mapping_list(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.MappingList) -} - -::PROTOBUF_NAMESPACE_ID::uint8* MappingList::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.MappingList) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::status(this), target); - } - - // repeated .milvus.grpc.Mapping mapping_list = 2; - for (unsigned int i = 0, - n = static_cast(this->mapping_list_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->mapping_list(static_cast(i)), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.MappingList) - return target; -} - -size_t MappingList::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.MappingList) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.grpc.Mapping mapping_list = 2; - { - unsigned int count = static_cast(this->mapping_list_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->mapping_list(static_cast(i))); - } - } - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MappingList::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.MappingList) - GOOGLE_DCHECK_NE(&from, this); - const MappingList* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.MappingList) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.MappingList) - MergeFrom(*source); - } -} - -void MappingList::MergeFrom(const MappingList& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.MappingList) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - mapping_list_.MergeFrom(from.mapping_list_); - if (from.has_status()) { - mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); - } -} - -void MappingList::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.MappingList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MappingList::CopyFrom(const MappingList& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.MappingList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MappingList::IsInitialized() const { - return true; -} - -void MappingList::InternalSwap(MappingList* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&mapping_list_)->InternalSwap(CastToBase(&other->mapping_list_)); - swap(status_, other->status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MappingList::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void PartitionParam::InitAsDefaultInstance() { -} -class PartitionParam::_Internal { - public: -}; - -PartitionParam::PartitionParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.PartitionParam) -} -PartitionParam::PartitionParam(const PartitionParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.tag().empty()) { - tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.tag_); - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.PartitionParam) -} - -void PartitionParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PartitionParam_milvus_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -PartitionParam::~PartitionParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.PartitionParam) - SharedDtor(); -} - -void PartitionParam::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - tag_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void PartitionParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PartitionParam& PartitionParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PartitionParam_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void PartitionParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.PartitionParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PartitionParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.PartitionParam.collection_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string tag = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_tag(), ptr, ctx, "milvus.grpc.PartitionParam.tag"); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool PartitionParam::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.PartitionParam) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string collection_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.PartitionParam.collection_name")); - } else { - goto handle_unusual; - } - break; - } - - // string tag = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_tag())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->tag().data(), static_cast(this->tag().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.PartitionParam.tag")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.PartitionParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.PartitionParam) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PartitionParam::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.PartitionParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.PartitionParam.collection_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // string tag = 2; - if (this->tag().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->tag().data(), static_cast(this->tag().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.PartitionParam.tag"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->tag(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.PartitionParam) -} - -::PROTOBUF_NAMESPACE_ID::uint8* PartitionParam::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.PartitionParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.PartitionParam.collection_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // string tag = 2; - if (this->tag().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->tag().data(), static_cast(this->tag().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.PartitionParam.tag"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 2, this->tag(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.PartitionParam) - return target; -} - -size_t PartitionParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.PartitionParam) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // string tag = 2; - if (this->tag().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->tag()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PartitionParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.PartitionParam) - GOOGLE_DCHECK_NE(&from, this); - const PartitionParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.PartitionParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.PartitionParam) - MergeFrom(*source); - } -} - -void PartitionParam::MergeFrom(const PartitionParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.PartitionParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.tag().size() > 0) { - - tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.tag_); - } -} - -void PartitionParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.PartitionParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PartitionParam::CopyFrom(const PartitionParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.PartitionParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PartitionParam::IsInitialized() const { - return true; -} - -void PartitionParam::InternalSwap(PartitionParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - tag_.Swap(&other->tag_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PartitionParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void PartitionList::InitAsDefaultInstance() { - ::milvus::grpc::_PartitionList_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( - ::milvus::grpc::Status::internal_default_instance()); -} -class PartitionList::_Internal { - public: - static const ::milvus::grpc::Status& status(const PartitionList* msg); -}; - -const ::milvus::grpc::Status& -PartitionList::_Internal::status(const PartitionList* msg) { - return *msg->status_; -} -void PartitionList::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -PartitionList::PartitionList() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.PartitionList) -} -PartitionList::PartitionList(const PartitionList& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - partition_tag_array_(from.partition_tag_array_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_status()) { - status_ = new ::milvus::grpc::Status(*from.status_); - } else { - status_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.PartitionList) -} - -void PartitionList::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PartitionList_milvus_2eproto.base); - status_ = nullptr; -} - -PartitionList::~PartitionList() { - // @@protoc_insertion_point(destructor:milvus.grpc.PartitionList) - SharedDtor(); -} - -void PartitionList::SharedDtor() { - if (this != internal_default_instance()) delete status_; -} - -void PartitionList::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PartitionList& PartitionList::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PartitionList_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void PartitionList::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.PartitionList) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - partition_tag_array_.Clear(); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PartitionList::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated string partition_tag_array = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_partition_tag_array(), ptr, ctx, "milvus.grpc.PartitionList.partition_tag_array"); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool PartitionList::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.PartitionList) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.grpc.Status status = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_status())); - } else { - goto handle_unusual; - } - break; - } - - // repeated string partition_tag_array = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->add_partition_tag_array())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag_array(this->partition_tag_array_size() - 1).data(), - static_cast(this->partition_tag_array(this->partition_tag_array_size() - 1).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.PartitionList.partition_tag_array")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.PartitionList) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.PartitionList) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PartitionList::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.PartitionList) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::status(this), output); - } - - // repeated string partition_tag_array = 2; - for (int i = 0, n = this->partition_tag_array_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag_array(i).data(), static_cast(this->partition_tag_array(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.PartitionList.partition_tag_array"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( - 2, this->partition_tag_array(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.PartitionList) -} - -::PROTOBUF_NAMESPACE_ID::uint8* PartitionList::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.PartitionList) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::status(this), target); - } - - // repeated string partition_tag_array = 2; - for (int i = 0, n = this->partition_tag_array_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag_array(i).data(), static_cast(this->partition_tag_array(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.PartitionList.partition_tag_array"); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteStringToArray(2, this->partition_tag_array(i), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.PartitionList) - return target; -} - -size_t PartitionList::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.PartitionList) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated string partition_tag_array = 2; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->partition_tag_array_size()); - for (int i = 0, n = this->partition_tag_array_size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->partition_tag_array(i)); - } - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PartitionList::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.PartitionList) - GOOGLE_DCHECK_NE(&from, this); - const PartitionList* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.PartitionList) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.PartitionList) - MergeFrom(*source); - } -} - -void PartitionList::MergeFrom(const PartitionList& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.PartitionList) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - partition_tag_array_.MergeFrom(from.partition_tag_array_); - if (from.has_status()) { - mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); - } -} - -void PartitionList::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.PartitionList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PartitionList::CopyFrom(const PartitionList& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.PartitionList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PartitionList::IsInitialized() const { - return true; -} - -void PartitionList::InternalSwap(PartitionList* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - partition_tag_array_.InternalSwap(CastToBase(&other->partition_tag_array_)); - swap(status_, other->status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PartitionList::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void VectorRowRecord::InitAsDefaultInstance() { -} -class VectorRowRecord::_Internal { - public: -}; - -VectorRowRecord::VectorRowRecord() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.VectorRowRecord) -} -VectorRowRecord::VectorRowRecord(const VectorRowRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - float_data_(from.float_data_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - binary_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.binary_data().empty()) { - binary_data_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.binary_data_); - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.VectorRowRecord) -} - -void VectorRowRecord::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_VectorRowRecord_milvus_2eproto.base); - binary_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -VectorRowRecord::~VectorRowRecord() { - // @@protoc_insertion_point(destructor:milvus.grpc.VectorRowRecord) - SharedDtor(); -} - -void VectorRowRecord::SharedDtor() { - binary_data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void VectorRowRecord::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const VectorRowRecord& VectorRowRecord::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VectorRowRecord_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void VectorRowRecord::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.VectorRowRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - float_data_.Clear(); - binary_data_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* VectorRowRecord::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated float float_data = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(mutable_float_data(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13) { - add_float_data(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // bytes binary_data = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(mutable_binary_data(), ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool VectorRowRecord::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.VectorRowRecord) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated float float_data = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< - float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_float_data()))); - } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (13 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( - 1, 10u, input, this->mutable_float_data()))); - } else { - goto handle_unusual; - } - break; - } - - // bytes binary_data = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes( - input, this->mutable_binary_data())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.VectorRowRecord) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.VectorRowRecord) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void VectorRowRecord::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.VectorRowRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated float float_data = 1; - if (this->float_data_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(1, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_float_data_cached_byte_size_.load( - std::memory_order_relaxed)); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatArray( - this->float_data().data(), this->float_data_size(), output); - } - - // bytes binary_data = 2; - if (this->binary_data().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased( - 2, this->binary_data(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.VectorRowRecord) -} - -::PROTOBUF_NAMESPACE_ID::uint8* VectorRowRecord::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.VectorRowRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated float float_data = 1; - if (this->float_data_size() > 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( - 1, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( - _float_data_cached_byte_size_.load(std::memory_order_relaxed), - target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteFloatNoTagToArray(this->float_data_, target); - } - - // bytes binary_data = 2; - if (this->binary_data().size() > 0) { - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesToArray( - 2, this->binary_data(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.VectorRowRecord) - return target; -} - -size_t VectorRowRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.VectorRowRecord) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated float float_data = 1; - { - unsigned int count = static_cast(this->float_data_size()); - size_t data_size = 4UL * count; - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _float_data_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // bytes binary_data = 2; - if (this->binary_data().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->binary_data()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void VectorRowRecord::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.VectorRowRecord) - GOOGLE_DCHECK_NE(&from, this); - const VectorRowRecord* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.VectorRowRecord) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.VectorRowRecord) - MergeFrom(*source); - } -} - -void VectorRowRecord::MergeFrom(const VectorRowRecord& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.VectorRowRecord) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - float_data_.MergeFrom(from.float_data_); - if (from.binary_data().size() > 0) { - - binary_data_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.binary_data_); - } -} - -void VectorRowRecord::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.VectorRowRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VectorRowRecord::CopyFrom(const VectorRowRecord& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.VectorRowRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VectorRowRecord::IsInitialized() const { - return true; -} - -void VectorRowRecord::InternalSwap(VectorRowRecord* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - float_data_.InternalSwap(&other->float_data_); - binary_data_.Swap(&other->binary_data_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata VectorRowRecord::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void AttrRecord::InitAsDefaultInstance() { -} -class AttrRecord::_Internal { - public: -}; - -AttrRecord::AttrRecord() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.AttrRecord) -} -AttrRecord::AttrRecord(const AttrRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - int32_value_(from.int32_value_), - int64_value_(from.int64_value_), - float_value_(from.float_value_), - double_value_(from.double_value_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:milvus.grpc.AttrRecord) -} - -void AttrRecord::SharedCtor() { -} - -AttrRecord::~AttrRecord() { - // @@protoc_insertion_point(destructor:milvus.grpc.AttrRecord) - SharedDtor(); -} - -void AttrRecord::SharedDtor() { -} - -void AttrRecord::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AttrRecord& AttrRecord::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AttrRecord_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void AttrRecord::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.AttrRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int32_value_.Clear(); - int64_value_.Clear(); - float_value_.Clear(); - double_value_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AttrRecord::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated int32 int32_value = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(mutable_int32_value(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) { - add_int32_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated int64 int64_value = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_int64_value(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) { - add_int64_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated float float_value = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(mutable_float_value(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29) { - add_float_value(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // repeated double double_value = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(mutable_double_value(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 33) { - add_double_value(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(double); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AttrRecord::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.AttrRecord) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated int32 int32_value = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< - ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>( - input, this->mutable_int32_value()))); - } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>( - 1, 10u, input, this->mutable_int32_value()))); - } else { - goto handle_unusual; - } - break; - } - - // repeated int64 int64_value = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, this->mutable_int64_value()))); - } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - 1, 18u, input, this->mutable_int64_value()))); - } else { - goto handle_unusual; - } - break; - } - - // repeated float float_value = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< - float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_float_value()))); - } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (29 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( - 1, 26u, input, this->mutable_float_value()))); - } else { - goto handle_unusual; - } - break; - } - - // repeated double double_value = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< - double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( - input, this->mutable_double_value()))); - } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (33 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( - 1, 34u, input, this->mutable_double_value()))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.AttrRecord) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.AttrRecord) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AttrRecord::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.AttrRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated int32 int32_value = 1; - if (this->int32_value_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(1, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_int32_value_cached_byte_size_.load( - std::memory_order_relaxed)); - } - for (int i = 0, n = this->int32_value_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32NoTag( - this->int32_value(i), output); - } - - // repeated int64 int64_value = 2; - if (this->int64_value_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(2, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_int64_value_cached_byte_size_.load( - std::memory_order_relaxed)); - } - for (int i = 0, n = this->int64_value_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( - this->int64_value(i), output); - } - - // repeated float float_value = 3; - if (this->float_value_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(3, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_float_value_cached_byte_size_.load( - std::memory_order_relaxed)); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatArray( - this->float_value().data(), this->float_value_size(), output); - } - - // repeated double double_value = 4; - if (this->double_value_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(4, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_double_value_cached_byte_size_.load( - std::memory_order_relaxed)); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleArray( - this->double_value().data(), this->double_value_size(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.AttrRecord) -} - -::PROTOBUF_NAMESPACE_ID::uint8* AttrRecord::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.AttrRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated int32 int32_value = 1; - if (this->int32_value_size() > 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( - 1, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( - _int32_value_cached_byte_size_.load(std::memory_order_relaxed), - target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteInt32NoTagToArray(this->int32_value_, target); - } - - // repeated int64 int64_value = 2; - if (this->int64_value_size() > 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( - 2, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( - _int64_value_cached_byte_size_.load(std::memory_order_relaxed), - target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->int64_value_, target); - } - - // repeated float float_value = 3; - if (this->float_value_size() > 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( - 3, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( - _float_value_cached_byte_size_.load(std::memory_order_relaxed), - target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteFloatNoTagToArray(this->float_value_, target); - } - - // repeated double double_value = 4; - if (this->double_value_size() > 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( - 4, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( - _double_value_cached_byte_size_.load(std::memory_order_relaxed), - target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->double_value_, target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.AttrRecord) - return target; -} - -size_t AttrRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.AttrRecord) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated int32 int32_value = 1; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int32Size(this->int32_value_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _int32_value_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated int64 int64_value = 2; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int64Size(this->int64_value_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _int64_value_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated float float_value = 3; - { - unsigned int count = static_cast(this->float_value_size()); - size_t data_size = 4UL * count; - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _float_value_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated double double_value = 4; - { - unsigned int count = static_cast(this->double_value_size()); - size_t data_size = 8UL * count; - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _double_value_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AttrRecord::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.AttrRecord) - GOOGLE_DCHECK_NE(&from, this); - const AttrRecord* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.AttrRecord) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.AttrRecord) - MergeFrom(*source); - } -} - -void AttrRecord::MergeFrom(const AttrRecord& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.AttrRecord) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - int32_value_.MergeFrom(from.int32_value_); - int64_value_.MergeFrom(from.int64_value_); - float_value_.MergeFrom(from.float_value_); - double_value_.MergeFrom(from.double_value_); -} - -void AttrRecord::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.AttrRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AttrRecord::CopyFrom(const AttrRecord& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.AttrRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AttrRecord::IsInitialized() const { - return true; -} - -void AttrRecord::InternalSwap(AttrRecord* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - int32_value_.InternalSwap(&other->int32_value_); - int64_value_.InternalSwap(&other->int64_value_); - float_value_.InternalSwap(&other->float_value_); - double_value_.InternalSwap(&other->double_value_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata AttrRecord::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void VectorRecord::InitAsDefaultInstance() { -} -class VectorRecord::_Internal { - public: -}; - -VectorRecord::VectorRecord() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.VectorRecord) -} -VectorRecord::VectorRecord(const VectorRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - records_(from.records_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:milvus.grpc.VectorRecord) -} - -void VectorRecord::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_VectorRecord_milvus_2eproto.base); -} - -VectorRecord::~VectorRecord() { - // @@protoc_insertion_point(destructor:milvus.grpc.VectorRecord) - SharedDtor(); -} - -void VectorRecord::SharedDtor() { -} - -void VectorRecord::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const VectorRecord& VectorRecord::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VectorRecord_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void VectorRecord::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.VectorRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - records_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* VectorRecord::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .milvus.grpc.VectorRowRecord records = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_records(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool VectorRecord::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.VectorRecord) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .milvus.grpc.VectorRowRecord records = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_records())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.VectorRecord) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.VectorRecord) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void VectorRecord::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.VectorRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .milvus.grpc.VectorRowRecord records = 1; - for (unsigned int i = 0, - n = static_cast(this->records_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->records(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.VectorRecord) -} - -::PROTOBUF_NAMESPACE_ID::uint8* VectorRecord::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.VectorRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .milvus.grpc.VectorRowRecord records = 1; - for (unsigned int i = 0, - n = static_cast(this->records_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->records(static_cast(i)), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.VectorRecord) - return target; -} - -size_t VectorRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.VectorRecord) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.grpc.VectorRowRecord records = 1; - { - unsigned int count = static_cast(this->records_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->records(static_cast(i))); - } - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void VectorRecord::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.VectorRecord) - GOOGLE_DCHECK_NE(&from, this); - const VectorRecord* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.VectorRecord) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.VectorRecord) - MergeFrom(*source); - } -} - -void VectorRecord::MergeFrom(const VectorRecord& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.VectorRecord) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - records_.MergeFrom(from.records_); -} - -void VectorRecord::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.VectorRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VectorRecord::CopyFrom(const VectorRecord& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.VectorRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VectorRecord::IsInitialized() const { - return true; -} - -void VectorRecord::InternalSwap(VectorRecord* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&records_)->InternalSwap(CastToBase(&other->records_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata VectorRecord::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void FieldValue::InitAsDefaultInstance() { - ::milvus::grpc::_FieldValue_default_instance_._instance.get_mutable()->attr_record_ = const_cast< ::milvus::grpc::AttrRecord*>( - ::milvus::grpc::AttrRecord::internal_default_instance()); - ::milvus::grpc::_FieldValue_default_instance_._instance.get_mutable()->vector_record_ = const_cast< ::milvus::grpc::VectorRecord*>( - ::milvus::grpc::VectorRecord::internal_default_instance()); -} -class FieldValue::_Internal { - public: - static const ::milvus::grpc::AttrRecord& attr_record(const FieldValue* msg); - static const ::milvus::grpc::VectorRecord& vector_record(const FieldValue* msg); -}; - -const ::milvus::grpc::AttrRecord& -FieldValue::_Internal::attr_record(const FieldValue* msg) { - return *msg->attr_record_; -} -const ::milvus::grpc::VectorRecord& -FieldValue::_Internal::vector_record(const FieldValue* msg) { - return *msg->vector_record_; -} -FieldValue::FieldValue() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.FieldValue) -} -FieldValue::FieldValue(const FieldValue& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.field_name().empty()) { - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - if (from.has_attr_record()) { - attr_record_ = new ::milvus::grpc::AttrRecord(*from.attr_record_); - } else { - attr_record_ = nullptr; - } - if (from.has_vector_record()) { - vector_record_ = new ::milvus::grpc::VectorRecord(*from.vector_record_); - } else { - vector_record_ = nullptr; - } - type_ = from.type_; - // @@protoc_insertion_point(copy_constructor:milvus.grpc.FieldValue) -} - -void FieldValue::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FieldValue_milvus_2eproto.base); - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&attr_record_, 0, static_cast( - reinterpret_cast(&type_) - - reinterpret_cast(&attr_record_)) + sizeof(type_)); -} - -FieldValue::~FieldValue() { - // @@protoc_insertion_point(destructor:milvus.grpc.FieldValue) - SharedDtor(); -} - -void FieldValue::SharedDtor() { - field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete attr_record_; - if (this != internal_default_instance()) delete vector_record_; -} - -void FieldValue::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const FieldValue& FieldValue::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FieldValue_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void FieldValue::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.FieldValue) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && attr_record_ != nullptr) { - delete attr_record_; - } - attr_record_ = nullptr; - if (GetArenaNoVirtual() == nullptr && vector_record_ != nullptr) { - delete vector_record_; - } - vector_record_ = nullptr; - type_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* FieldValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string field_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_field_name(), ptr, ctx, "milvus.grpc.FieldValue.field_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.grpc.DataType type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - set_type(static_cast<::milvus::grpc::DataType>(val)); - } else goto handle_unusual; - continue; - // .milvus.grpc.AttrRecord attr_record = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ctx->ParseMessage(mutable_attr_record(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.grpc.VectorRecord vector_record = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ctx->ParseMessage(mutable_vector_record(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool FieldValue::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.FieldValue) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string field_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_field_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.FieldValue.field_name")); - } else { - goto handle_unusual; - } - break; - } - - // .milvus.grpc.DataType type = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_type(static_cast< ::milvus::grpc::DataType >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .milvus.grpc.AttrRecord attr_record = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_attr_record())); - } else { - goto handle_unusual; - } - break; - } - - // .milvus.grpc.VectorRecord vector_record = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_vector_record())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.FieldValue) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.FieldValue) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void FieldValue::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.FieldValue) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string field_name = 1; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.FieldValue.field_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->field_name(), output); - } - - // .milvus.grpc.DataType type = 2; - if (this->type() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( - 2, this->type(), output); - } - - // .milvus.grpc.AttrRecord attr_record = 3; - if (this->has_attr_record()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, _Internal::attr_record(this), output); - } - - // .milvus.grpc.VectorRecord vector_record = 4; - if (this->has_vector_record()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, _Internal::vector_record(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.FieldValue) -} - -::PROTOBUF_NAMESPACE_ID::uint8* FieldValue::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.FieldValue) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string field_name = 1; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.FieldValue.field_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->field_name(), target); - } - - // .milvus.grpc.DataType type = 2; - if (this->type() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->type(), target); - } - - // .milvus.grpc.AttrRecord attr_record = 3; - if (this->has_attr_record()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, _Internal::attr_record(this), target); - } - - // .milvus.grpc.VectorRecord vector_record = 4; - if (this->has_vector_record()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, _Internal::vector_record(this), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.FieldValue) - return target; -} - -size_t FieldValue::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.FieldValue) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string field_name = 1; - if (this->field_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->field_name()); - } - - // .milvus.grpc.AttrRecord attr_record = 3; - if (this->has_attr_record()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *attr_record_); - } - - // .milvus.grpc.VectorRecord vector_record = 4; - if (this->has_vector_record()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *vector_record_); - } - - // .milvus.grpc.DataType type = 2; - if (this->type() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->type()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void FieldValue::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.FieldValue) - GOOGLE_DCHECK_NE(&from, this); - const FieldValue* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.FieldValue) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.FieldValue) - MergeFrom(*source); - } -} - -void FieldValue::MergeFrom(const FieldValue& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.FieldValue) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.field_name().size() > 0) { - - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - if (from.has_attr_record()) { - mutable_attr_record()->::milvus::grpc::AttrRecord::MergeFrom(from.attr_record()); - } - if (from.has_vector_record()) { - mutable_vector_record()->::milvus::grpc::VectorRecord::MergeFrom(from.vector_record()); - } - if (from.type() != 0) { - set_type(from.type()); - } -} - -void FieldValue::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.FieldValue) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FieldValue::CopyFrom(const FieldValue& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.FieldValue) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FieldValue::IsInitialized() const { - return true; -} - -void FieldValue::InternalSwap(FieldValue* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(attr_record_, other->attr_record_); - swap(vector_record_, other->vector_record_); - swap(type_, other->type_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata FieldValue::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void InsertParam::InitAsDefaultInstance() { -} -class InsertParam::_Internal { - public: -}; - -InsertParam::InsertParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.InsertParam) -} -InsertParam::InsertParam(const InsertParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - fields_(from.fields_), - entity_id_array_(from.entity_id_array_), - extra_params_(from.extra_params_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - partition_tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.partition_tag().empty()) { - partition_tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.InsertParam) -} - -void InsertParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_InsertParam_milvus_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - partition_tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -InsertParam::~InsertParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.InsertParam) - SharedDtor(); -} - -void InsertParam::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - partition_tag_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void InsertParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const InsertParam& InsertParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_InsertParam_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void InsertParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.InsertParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - fields_.Clear(); - entity_id_array_.Clear(); - extra_params_.Clear(); - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - partition_tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* InsertParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.InsertParam.collection_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.FieldValue fields = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_fields(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); - } else goto handle_unusual; - continue; - // repeated int64 entity_id_array = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_entity_id_array(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24) { - add_entity_id_array(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string partition_tag = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_partition_tag(), ptr, ctx, "milvus.grpc.InsertParam.partition_tag"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_extra_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 42); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool InsertParam::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.InsertParam) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string collection_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.InsertParam.collection_name")); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.grpc.FieldValue fields = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_fields())); - } else { - goto handle_unusual; - } - break; - } - - // repeated int64 entity_id_array = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, this->mutable_entity_id_array()))); - } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - 1, 26u, input, this->mutable_entity_id_array()))); - } else { - goto handle_unusual; - } - break; - } - - // string partition_tag = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_partition_tag())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), static_cast(this->partition_tag().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.InsertParam.partition_tag")); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - case 5: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_extra_params())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.InsertParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.InsertParam) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void InsertParam::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.InsertParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.InsertParam.collection_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // repeated .milvus.grpc.FieldValue fields = 2; - for (unsigned int i = 0, - n = static_cast(this->fields_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, - this->fields(static_cast(i)), - output); - } - - // repeated int64 entity_id_array = 3; - if (this->entity_id_array_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(3, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_entity_id_array_cached_byte_size_.load( - std::memory_order_relaxed)); - } - for (int i = 0, n = this->entity_id_array_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( - this->entity_id_array(i), output); - } - - // string partition_tag = 4; - if (this->partition_tag().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), static_cast(this->partition_tag().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.InsertParam.partition_tag"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->partition_tag(), output); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, - n = static_cast(this->extra_params_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, - this->extra_params(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.InsertParam) -} - -::PROTOBUF_NAMESPACE_ID::uint8* InsertParam::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.InsertParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.InsertParam.collection_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // repeated .milvus.grpc.FieldValue fields = 2; - for (unsigned int i = 0, - n = static_cast(this->fields_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->fields(static_cast(i)), target); - } - - // repeated int64 entity_id_array = 3; - if (this->entity_id_array_size() > 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( - 3, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( - _entity_id_array_cached_byte_size_.load(std::memory_order_relaxed), - target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->entity_id_array_, target); - } - - // string partition_tag = 4; - if (this->partition_tag().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), static_cast(this->partition_tag().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.InsertParam.partition_tag"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 4, this->partition_tag(), target); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, - n = static_cast(this->extra_params_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, this->extra_params(static_cast(i)), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.InsertParam) - return target; -} - -size_t InsertParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.InsertParam) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.grpc.FieldValue fields = 2; - { - unsigned int count = static_cast(this->fields_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->fields(static_cast(i))); - } - } - - // repeated int64 entity_id_array = 3; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int64Size(this->entity_id_array_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _entity_id_array_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - { - unsigned int count = static_cast(this->extra_params_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->extra_params(static_cast(i))); - } - } - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // string partition_tag = 4; - if (this->partition_tag().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->partition_tag()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void InsertParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.InsertParam) - GOOGLE_DCHECK_NE(&from, this); - const InsertParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.InsertParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.InsertParam) - MergeFrom(*source); - } -} - -void InsertParam::MergeFrom(const InsertParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.InsertParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - fields_.MergeFrom(from.fields_); - entity_id_array_.MergeFrom(from.entity_id_array_); - extra_params_.MergeFrom(from.extra_params_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.partition_tag().size() > 0) { - - partition_tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); - } -} - -void InsertParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.InsertParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void InsertParam::CopyFrom(const InsertParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.InsertParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool InsertParam::IsInitialized() const { - return true; -} - -void InsertParam::InternalSwap(InsertParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&fields_)->InternalSwap(CastToBase(&other->fields_)); - entity_id_array_.InternalSwap(&other->entity_id_array_); - CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - partition_tag_.Swap(&other->partition_tag_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata InsertParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void EntityIds::InitAsDefaultInstance() { - ::milvus::grpc::_EntityIds_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( - ::milvus::grpc::Status::internal_default_instance()); -} -class EntityIds::_Internal { - public: - static const ::milvus::grpc::Status& status(const EntityIds* msg); -}; - -const ::milvus::grpc::Status& -EntityIds::_Internal::status(const EntityIds* msg) { - return *msg->status_; -} -void EntityIds::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -EntityIds::EntityIds() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.EntityIds) -} -EntityIds::EntityIds(const EntityIds& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - entity_id_array_(from.entity_id_array_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_status()) { - status_ = new ::milvus::grpc::Status(*from.status_); - } else { - status_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.EntityIds) -} - -void EntityIds::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EntityIds_milvus_2eproto.base); - status_ = nullptr; -} - -EntityIds::~EntityIds() { - // @@protoc_insertion_point(destructor:milvus.grpc.EntityIds) - SharedDtor(); -} - -void EntityIds::SharedDtor() { - if (this != internal_default_instance()) delete status_; -} - -void EntityIds::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const EntityIds& EntityIds::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EntityIds_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void EntityIds::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.EntityIds) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - entity_id_array_.Clear(); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* EntityIds::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated int64 entity_id_array = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_entity_id_array(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) { - add_entity_id_array(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool EntityIds::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.EntityIds) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.grpc.Status status = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_status())); - } else { - goto handle_unusual; - } - break; - } - - // repeated int64 entity_id_array = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, this->mutable_entity_id_array()))); - } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - 1, 18u, input, this->mutable_entity_id_array()))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.EntityIds) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.EntityIds) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void EntityIds::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.EntityIds) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::status(this), output); - } - - // repeated int64 entity_id_array = 2; - if (this->entity_id_array_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(2, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_entity_id_array_cached_byte_size_.load( - std::memory_order_relaxed)); - } - for (int i = 0, n = this->entity_id_array_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( - this->entity_id_array(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.EntityIds) -} - -::PROTOBUF_NAMESPACE_ID::uint8* EntityIds::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.EntityIds) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::status(this), target); - } - - // repeated int64 entity_id_array = 2; - if (this->entity_id_array_size() > 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( - 2, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( - _entity_id_array_cached_byte_size_.load(std::memory_order_relaxed), - target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->entity_id_array_, target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.EntityIds) - return target; -} - -size_t EntityIds::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.EntityIds) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated int64 entity_id_array = 2; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int64Size(this->entity_id_array_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _entity_id_array_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void EntityIds::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.EntityIds) - GOOGLE_DCHECK_NE(&from, this); - const EntityIds* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.EntityIds) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.EntityIds) - MergeFrom(*source); - } -} - -void EntityIds::MergeFrom(const EntityIds& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.EntityIds) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - entity_id_array_.MergeFrom(from.entity_id_array_); - if (from.has_status()) { - mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); - } -} - -void EntityIds::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.EntityIds) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EntityIds::CopyFrom(const EntityIds& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.EntityIds) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EntityIds::IsInitialized() const { - return true; -} - -void EntityIds::InternalSwap(EntityIds* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - entity_id_array_.InternalSwap(&other->entity_id_array_); - swap(status_, other->status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata EntityIds::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void VectorParam::InitAsDefaultInstance() { - ::milvus::grpc::_VectorParam_default_instance_._instance.get_mutable()->row_record_ = const_cast< ::milvus::grpc::VectorRecord*>( - ::milvus::grpc::VectorRecord::internal_default_instance()); -} -class VectorParam::_Internal { - public: - static const ::milvus::grpc::VectorRecord& row_record(const VectorParam* msg); -}; - -const ::milvus::grpc::VectorRecord& -VectorParam::_Internal::row_record(const VectorParam* msg) { - return *msg->row_record_; -} -VectorParam::VectorParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.VectorParam) -} -VectorParam::VectorParam(const VectorParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - json_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.json().empty()) { - json_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.json_); - } - if (from.has_row_record()) { - row_record_ = new ::milvus::grpc::VectorRecord(*from.row_record_); - } else { - row_record_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.VectorParam) -} - -void VectorParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_VectorParam_milvus_2eproto.base); - json_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - row_record_ = nullptr; -} - -VectorParam::~VectorParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.VectorParam) - SharedDtor(); -} - -void VectorParam::SharedDtor() { - json_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete row_record_; -} - -void VectorParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const VectorParam& VectorParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VectorParam_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void VectorParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.VectorParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - json_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && row_record_ != nullptr) { - delete row_record_; - } - row_record_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* VectorParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string json = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_json(), ptr, ctx, "milvus.grpc.VectorParam.json"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.grpc.VectorRecord row_record = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(mutable_row_record(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool VectorParam::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.VectorParam) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string json = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_json())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->json().data(), static_cast(this->json().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.VectorParam.json")); - } else { - goto handle_unusual; - } - break; - } - - // .milvus.grpc.VectorRecord row_record = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_row_record())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.VectorParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.VectorParam) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void VectorParam::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.VectorParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string json = 1; - if (this->json().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->json().data(), static_cast(this->json().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.VectorParam.json"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->json(), output); - } - - // .milvus.grpc.VectorRecord row_record = 2; - if (this->has_row_record()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, _Internal::row_record(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.VectorParam) -} - -::PROTOBUF_NAMESPACE_ID::uint8* VectorParam::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.VectorParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string json = 1; - if (this->json().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->json().data(), static_cast(this->json().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.VectorParam.json"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->json(), target); - } - - // .milvus.grpc.VectorRecord row_record = 2; - if (this->has_row_record()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, _Internal::row_record(this), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.VectorParam) - return target; -} - -size_t VectorParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.VectorParam) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string json = 1; - if (this->json().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->json()); - } - - // .milvus.grpc.VectorRecord row_record = 2; - if (this->has_row_record()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *row_record_); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void VectorParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.VectorParam) - GOOGLE_DCHECK_NE(&from, this); - const VectorParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.VectorParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.VectorParam) - MergeFrom(*source); - } -} - -void VectorParam::MergeFrom(const VectorParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.VectorParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.json().size() > 0) { - - json_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.json_); - } - if (from.has_row_record()) { - mutable_row_record()->::milvus::grpc::VectorRecord::MergeFrom(from.row_record()); - } -} - -void VectorParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.VectorParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VectorParam::CopyFrom(const VectorParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.VectorParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VectorParam::IsInitialized() const { - return true; -} - -void VectorParam::InternalSwap(VectorParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - json_.Swap(&other->json_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(row_record_, other->row_record_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata VectorParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void SearchParam::InitAsDefaultInstance() { -} -class SearchParam::_Internal { - public: -}; - -SearchParam::SearchParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.SearchParam) -} -SearchParam::SearchParam(const SearchParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - partition_tag_array_(from.partition_tag_array_), - vector_param_(from.vector_param_), - extra_params_(from.extra_params_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - dsl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.dsl().empty()) { - dsl_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.dsl_); - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.SearchParam) -} - -void SearchParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SearchParam_milvus_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - dsl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -SearchParam::~SearchParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.SearchParam) - SharedDtor(); -} - -void SearchParam::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - dsl_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void SearchParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SearchParam& SearchParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchParam_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void SearchParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.SearchParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - partition_tag_array_.Clear(); - vector_param_.Clear(); - extra_params_.Clear(); - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - dsl_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SearchParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.SearchParam.collection_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated string partition_tag_array = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_partition_tag_array(), ptr, ctx, "milvus.grpc.SearchParam.partition_tag_array"); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.VectorParam vector_param = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_vector_param(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); - } else goto handle_unusual; - continue; - // string dsl = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_dsl(), ptr, ctx, "milvus.grpc.SearchParam.dsl"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_extra_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 42); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SearchParam::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.SearchParam) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string collection_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.SearchParam.collection_name")); - } else { - goto handle_unusual; - } - break; - } - - // repeated string partition_tag_array = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->add_partition_tag_array())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag_array(this->partition_tag_array_size() - 1).data(), - static_cast(this->partition_tag_array(this->partition_tag_array_size() - 1).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.SearchParam.partition_tag_array")); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.grpc.VectorParam vector_param = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_vector_param())); - } else { - goto handle_unusual; - } - break; - } - - // string dsl = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_dsl())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->dsl().data(), static_cast(this->dsl().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.SearchParam.dsl")); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - case 5: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_extra_params())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.SearchParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.SearchParam) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SearchParam::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.SearchParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchParam.collection_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // repeated string partition_tag_array = 2; - for (int i = 0, n = this->partition_tag_array_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag_array(i).data(), static_cast(this->partition_tag_array(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchParam.partition_tag_array"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( - 2, this->partition_tag_array(i), output); - } - - // repeated .milvus.grpc.VectorParam vector_param = 3; - for (unsigned int i = 0, - n = static_cast(this->vector_param_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, - this->vector_param(static_cast(i)), - output); - } - - // string dsl = 4; - if (this->dsl().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->dsl().data(), static_cast(this->dsl().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchParam.dsl"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->dsl(), output); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, - n = static_cast(this->extra_params_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, - this->extra_params(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.SearchParam) -} - -::PROTOBUF_NAMESPACE_ID::uint8* SearchParam::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.SearchParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchParam.collection_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // repeated string partition_tag_array = 2; - for (int i = 0, n = this->partition_tag_array_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag_array(i).data(), static_cast(this->partition_tag_array(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchParam.partition_tag_array"); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteStringToArray(2, this->partition_tag_array(i), target); - } - - // repeated .milvus.grpc.VectorParam vector_param = 3; - for (unsigned int i = 0, - n = static_cast(this->vector_param_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->vector_param(static_cast(i)), target); - } - - // string dsl = 4; - if (this->dsl().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->dsl().data(), static_cast(this->dsl().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchParam.dsl"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 4, this->dsl(), target); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, - n = static_cast(this->extra_params_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, this->extra_params(static_cast(i)), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SearchParam) - return target; -} - -size_t SearchParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.SearchParam) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated string partition_tag_array = 2; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->partition_tag_array_size()); - for (int i = 0, n = this->partition_tag_array_size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->partition_tag_array(i)); - } - - // repeated .milvus.grpc.VectorParam vector_param = 3; - { - unsigned int count = static_cast(this->vector_param_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->vector_param(static_cast(i))); - } - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - { - unsigned int count = static_cast(this->extra_params_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->extra_params(static_cast(i))); - } - } - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // string dsl = 4; - if (this->dsl().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->dsl()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SearchParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.SearchParam) - GOOGLE_DCHECK_NE(&from, this); - const SearchParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.SearchParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SearchParam) - MergeFrom(*source); - } -} - -void SearchParam::MergeFrom(const SearchParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.SearchParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - partition_tag_array_.MergeFrom(from.partition_tag_array_); - vector_param_.MergeFrom(from.vector_param_); - extra_params_.MergeFrom(from.extra_params_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.dsl().size() > 0) { - - dsl_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.dsl_); - } -} - -void SearchParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.SearchParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SearchParam::CopyFrom(const SearchParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.SearchParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SearchParam::IsInitialized() const { - return true; -} - -void SearchParam::InternalSwap(SearchParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - partition_tag_array_.InternalSwap(CastToBase(&other->partition_tag_array_)); - CastToBase(&vector_param_)->InternalSwap(CastToBase(&other->vector_param_)); - CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - dsl_.Swap(&other->dsl_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata SearchParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void SearchInSegmentParam::InitAsDefaultInstance() { - ::milvus::grpc::_SearchInSegmentParam_default_instance_._instance.get_mutable()->search_param_ = const_cast< ::milvus::grpc::SearchParam*>( - ::milvus::grpc::SearchParam::internal_default_instance()); -} -class SearchInSegmentParam::_Internal { - public: - static const ::milvus::grpc::SearchParam& search_param(const SearchInSegmentParam* msg); -}; - -const ::milvus::grpc::SearchParam& -SearchInSegmentParam::_Internal::search_param(const SearchInSegmentParam* msg) { - return *msg->search_param_; -} -SearchInSegmentParam::SearchInSegmentParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.SearchInSegmentParam) -} -SearchInSegmentParam::SearchInSegmentParam(const SearchInSegmentParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - file_id_array_(from.file_id_array_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_search_param()) { - search_param_ = new ::milvus::grpc::SearchParam(*from.search_param_); - } else { - search_param_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.SearchInSegmentParam) -} - -void SearchInSegmentParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SearchInSegmentParam_milvus_2eproto.base); - search_param_ = nullptr; -} - -SearchInSegmentParam::~SearchInSegmentParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.SearchInSegmentParam) - SharedDtor(); -} - -void SearchInSegmentParam::SharedDtor() { - if (this != internal_default_instance()) delete search_param_; -} - -void SearchInSegmentParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SearchInSegmentParam& SearchInSegmentParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchInSegmentParam_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void SearchInSegmentParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.SearchInSegmentParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - file_id_array_.Clear(); - if (GetArenaNoVirtual() == nullptr && search_param_ != nullptr) { - delete search_param_; - } - search_param_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SearchInSegmentParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated string file_id_array = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_file_id_array(), ptr, ctx, "milvus.grpc.SearchInSegmentParam.file_id_array"); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); - } else goto handle_unusual; - continue; - // .milvus.grpc.SearchParam search_param = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(mutable_search_param(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SearchInSegmentParam::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.SearchInSegmentParam) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated string file_id_array = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->add_file_id_array())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->file_id_array(this->file_id_array_size() - 1).data(), - static_cast(this->file_id_array(this->file_id_array_size() - 1).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.SearchInSegmentParam.file_id_array")); - } else { - goto handle_unusual; - } - break; - } - - // .milvus.grpc.SearchParam search_param = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_search_param())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.SearchInSegmentParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.SearchInSegmentParam) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SearchInSegmentParam::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.SearchInSegmentParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string file_id_array = 1; - for (int i = 0, n = this->file_id_array_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->file_id_array(i).data(), static_cast(this->file_id_array(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchInSegmentParam.file_id_array"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( - 1, this->file_id_array(i), output); - } - - // .milvus.grpc.SearchParam search_param = 2; - if (this->has_search_param()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, _Internal::search_param(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.SearchInSegmentParam) -} - -::PROTOBUF_NAMESPACE_ID::uint8* SearchInSegmentParam::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.SearchInSegmentParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string file_id_array = 1; - for (int i = 0, n = this->file_id_array_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->file_id_array(i).data(), static_cast(this->file_id_array(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchInSegmentParam.file_id_array"); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteStringToArray(1, this->file_id_array(i), target); - } - - // .milvus.grpc.SearchParam search_param = 2; - if (this->has_search_param()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, _Internal::search_param(this), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SearchInSegmentParam) - return target; -} - -size_t SearchInSegmentParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.SearchInSegmentParam) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated string file_id_array = 1; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->file_id_array_size()); - for (int i = 0, n = this->file_id_array_size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->file_id_array(i)); - } - - // .milvus.grpc.SearchParam search_param = 2; - if (this->has_search_param()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *search_param_); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SearchInSegmentParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.SearchInSegmentParam) - GOOGLE_DCHECK_NE(&from, this); - const SearchInSegmentParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.SearchInSegmentParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SearchInSegmentParam) - MergeFrom(*source); - } -} - -void SearchInSegmentParam::MergeFrom(const SearchInSegmentParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.SearchInSegmentParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - file_id_array_.MergeFrom(from.file_id_array_); - if (from.has_search_param()) { - mutable_search_param()->::milvus::grpc::SearchParam::MergeFrom(from.search_param()); - } -} - -void SearchInSegmentParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.SearchInSegmentParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SearchInSegmentParam::CopyFrom(const SearchInSegmentParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.SearchInSegmentParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SearchInSegmentParam::IsInitialized() const { - return true; -} - -void SearchInSegmentParam::InternalSwap(SearchInSegmentParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - file_id_array_.InternalSwap(CastToBase(&other->file_id_array_)); - swap(search_param_, other->search_param_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata SearchInSegmentParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void Entities::InitAsDefaultInstance() { - ::milvus::grpc::_Entities_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( - ::milvus::grpc::Status::internal_default_instance()); -} -class Entities::_Internal { - public: - static const ::milvus::grpc::Status& status(const Entities* msg); -}; - -const ::milvus::grpc::Status& -Entities::_Internal::status(const Entities* msg) { - return *msg->status_; -} -void Entities::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -Entities::Entities() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.Entities) -} -Entities::Entities(const Entities& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - ids_(from.ids_), - valid_row_(from.valid_row_), - fields_(from.fields_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_status()) { - status_ = new ::milvus::grpc::Status(*from.status_); - } else { - status_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.Entities) -} - -void Entities::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Entities_milvus_2eproto.base); - status_ = nullptr; -} - -Entities::~Entities() { - // @@protoc_insertion_point(destructor:milvus.grpc.Entities) - SharedDtor(); -} - -void Entities::SharedDtor() { - if (this != internal_default_instance()) delete status_; -} - -void Entities::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Entities& Entities::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Entities_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void Entities::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.Entities) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ids_.Clear(); - valid_row_.Clear(); - fields_.Clear(); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Entities::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated int64 ids = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_ids(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) { - add_ids(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated bool valid_row = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedBoolParser(mutable_valid_row(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24) { - add_valid_row(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.FieldValue fields = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_fields(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Entities::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.Entities) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.grpc.Status status = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_status())); - } else { - goto handle_unusual; - } - break; - } - - // repeated int64 ids = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, this->mutable_ids()))); - } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - 1, 18u, input, this->mutable_ids()))); - } else { - goto handle_unusual; - } - break; - } - - // repeated bool valid_row = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< - bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( - input, this->mutable_valid_row()))); - } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( - 1, 26u, input, this->mutable_valid_row()))); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.grpc.FieldValue fields = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_fields())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.Entities) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.Entities) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Entities::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.Entities) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::status(this), output); - } - - // repeated int64 ids = 2; - if (this->ids_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(2, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_ids_cached_byte_size_.load( - std::memory_order_relaxed)); - } - for (int i = 0, n = this->ids_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( - this->ids(i), output); - } - - // repeated bool valid_row = 3; - if (this->valid_row_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(3, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_valid_row_cached_byte_size_.load( - std::memory_order_relaxed)); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolArray( - this->valid_row().data(), this->valid_row_size(), output); - } - - // repeated .milvus.grpc.FieldValue fields = 4; - for (unsigned int i = 0, - n = static_cast(this->fields_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, - this->fields(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.Entities) -} - -::PROTOBUF_NAMESPACE_ID::uint8* Entities::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Entities) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::status(this), target); - } - - // repeated int64 ids = 2; - if (this->ids_size() > 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( - 2, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( - _ids_cached_byte_size_.load(std::memory_order_relaxed), - target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->ids_, target); - } - - // repeated bool valid_row = 3; - if (this->valid_row_size() > 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( - 3, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( - _valid_row_cached_byte_size_.load(std::memory_order_relaxed), - target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteBoolNoTagToArray(this->valid_row_, target); - } - - // repeated .milvus.grpc.FieldValue fields = 4; - for (unsigned int i = 0, - n = static_cast(this->fields_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, this->fields(static_cast(i)), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Entities) - return target; -} - -size_t Entities::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.Entities) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated int64 ids = 2; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int64Size(this->ids_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _ids_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated bool valid_row = 3; - { - unsigned int count = static_cast(this->valid_row_size()); - size_t data_size = 1UL * count; - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _valid_row_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated .milvus.grpc.FieldValue fields = 4; - { - unsigned int count = static_cast(this->fields_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->fields(static_cast(i))); - } - } - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Entities::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.Entities) - GOOGLE_DCHECK_NE(&from, this); - const Entities* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.Entities) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Entities) - MergeFrom(*source); - } -} - -void Entities::MergeFrom(const Entities& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.Entities) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - ids_.MergeFrom(from.ids_); - valid_row_.MergeFrom(from.valid_row_); - fields_.MergeFrom(from.fields_); - if (from.has_status()) { - mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); - } -} - -void Entities::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Entities) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Entities::CopyFrom(const Entities& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.Entities) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Entities::IsInitialized() const { - return true; -} - -void Entities::InternalSwap(Entities* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - ids_.InternalSwap(&other->ids_); - valid_row_.InternalSwap(&other->valid_row_); - CastToBase(&fields_)->InternalSwap(CastToBase(&other->fields_)); - swap(status_, other->status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata Entities::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void QueryResult::InitAsDefaultInstance() { - ::milvus::grpc::_QueryResult_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( - ::milvus::grpc::Status::internal_default_instance()); - ::milvus::grpc::_QueryResult_default_instance_._instance.get_mutable()->entities_ = const_cast< ::milvus::grpc::Entities*>( - ::milvus::grpc::Entities::internal_default_instance()); -} -class QueryResult::_Internal { - public: - static const ::milvus::grpc::Status& status(const QueryResult* msg); - static const ::milvus::grpc::Entities& entities(const QueryResult* msg); -}; - -const ::milvus::grpc::Status& -QueryResult::_Internal::status(const QueryResult* msg) { - return *msg->status_; -} -const ::milvus::grpc::Entities& -QueryResult::_Internal::entities(const QueryResult* msg) { - return *msg->entities_; -} -void QueryResult::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -QueryResult::QueryResult() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.QueryResult) -} -QueryResult::QueryResult(const QueryResult& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - scores_(from.scores_), - distances_(from.distances_), - extra_params_(from.extra_params_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_status()) { - status_ = new ::milvus::grpc::Status(*from.status_); - } else { - status_ = nullptr; - } - if (from.has_entities()) { - entities_ = new ::milvus::grpc::Entities(*from.entities_); - } else { - entities_ = nullptr; - } - row_num_ = from.row_num_; - // @@protoc_insertion_point(copy_constructor:milvus.grpc.QueryResult) -} - -void QueryResult::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_QueryResult_milvus_2eproto.base); - ::memset(&status_, 0, static_cast( - reinterpret_cast(&row_num_) - - reinterpret_cast(&status_)) + sizeof(row_num_)); -} - -QueryResult::~QueryResult() { - // @@protoc_insertion_point(destructor:milvus.grpc.QueryResult) - SharedDtor(); -} - -void QueryResult::SharedDtor() { - if (this != internal_default_instance()) delete status_; - if (this != internal_default_instance()) delete entities_; -} - -void QueryResult::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const QueryResult& QueryResult::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_QueryResult_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void QueryResult::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.QueryResult) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - scores_.Clear(); - distances_.Clear(); - extra_params_.Clear(); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - if (GetArenaNoVirtual() == nullptr && entities_ != nullptr) { - delete entities_; - } - entities_ = nullptr; - row_num_ = PROTOBUF_LONGLONG(0); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* QueryResult::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.grpc.Entities entities = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(mutable_entities(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 row_num = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - row_num_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated float scores = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(mutable_scores(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37) { - add_scores(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // repeated float distances = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(mutable_distances(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 45) { - add_distances(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.KeyValuePair extra_params = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_extra_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 50); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool QueryResult::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.QueryResult) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.grpc.Status status = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_status())); - } else { - goto handle_unusual; - } - break; - } - - // .milvus.grpc.Entities entities = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_entities())); - } else { - goto handle_unusual; - } - break; - } - - // int64 row_num = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, &row_num_))); - } else { - goto handle_unusual; - } - break; - } - - // repeated float scores = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< - float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_scores()))); - } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (37 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( - 1, 34u, input, this->mutable_scores()))); - } else { - goto handle_unusual; - } - break; - } - - // repeated float distances = 5; - case 5: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< - float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_distances()))); - } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (45 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( - 1, 42u, input, this->mutable_distances()))); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 6; - case 6: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_extra_params())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.QueryResult) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.QueryResult) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void QueryResult::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.QueryResult) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::status(this), output); - } - - // .milvus.grpc.Entities entities = 2; - if (this->has_entities()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, _Internal::entities(this), output); - } - - // int64 row_num = 3; - if (this->row_num() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->row_num(), output); - } - - // repeated float scores = 4; - if (this->scores_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(4, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_scores_cached_byte_size_.load( - std::memory_order_relaxed)); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatArray( - this->scores().data(), this->scores_size(), output); - } - - // repeated float distances = 5; - if (this->distances_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(5, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_distances_cached_byte_size_.load( - std::memory_order_relaxed)); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatArray( - this->distances().data(), this->distances_size(), output); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 6; - for (unsigned int i = 0, - n = static_cast(this->extra_params_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, - this->extra_params(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.QueryResult) -} - -::PROTOBUF_NAMESPACE_ID::uint8* QueryResult::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.QueryResult) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::status(this), target); - } - - // .milvus.grpc.Entities entities = 2; - if (this->has_entities()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, _Internal::entities(this), target); - } - - // int64 row_num = 3; - if (this->row_num() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->row_num(), target); - } - - // repeated float scores = 4; - if (this->scores_size() > 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( - 4, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( - _scores_cached_byte_size_.load(std::memory_order_relaxed), - target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteFloatNoTagToArray(this->scores_, target); - } - - // repeated float distances = 5; - if (this->distances_size() > 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( - 5, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( - _distances_cached_byte_size_.load(std::memory_order_relaxed), - target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteFloatNoTagToArray(this->distances_, target); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 6; - for (unsigned int i = 0, - n = static_cast(this->extra_params_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, this->extra_params(static_cast(i)), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.QueryResult) - return target; -} - -size_t QueryResult::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.QueryResult) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated float scores = 4; - { - unsigned int count = static_cast(this->scores_size()); - size_t data_size = 4UL * count; - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _scores_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated float distances = 5; - { - unsigned int count = static_cast(this->distances_size()); - size_t data_size = 4UL * count; - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _distances_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 6; - { - unsigned int count = static_cast(this->extra_params_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->extra_params(static_cast(i))); - } - } - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - // .milvus.grpc.Entities entities = 2; - if (this->has_entities()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *entities_); - } - - // int64 row_num = 3; - if (this->row_num() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->row_num()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void QueryResult::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.QueryResult) - GOOGLE_DCHECK_NE(&from, this); - const QueryResult* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.QueryResult) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.QueryResult) - MergeFrom(*source); - } -} - -void QueryResult::MergeFrom(const QueryResult& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.QueryResult) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - scores_.MergeFrom(from.scores_); - distances_.MergeFrom(from.distances_); - extra_params_.MergeFrom(from.extra_params_); - if (from.has_status()) { - mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); - } - if (from.has_entities()) { - mutable_entities()->::milvus::grpc::Entities::MergeFrom(from.entities()); - } - if (from.row_num() != 0) { - set_row_num(from.row_num()); - } -} - -void QueryResult::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.QueryResult) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void QueryResult::CopyFrom(const QueryResult& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.QueryResult) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool QueryResult::IsInitialized() const { - return true; -} - -void QueryResult::InternalSwap(QueryResult* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - scores_.InternalSwap(&other->scores_); - distances_.InternalSwap(&other->distances_); - CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); - swap(status_, other->status_); - swap(entities_, other->entities_); - swap(row_num_, other->row_num_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata QueryResult::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void StringReply::InitAsDefaultInstance() { - ::milvus::grpc::_StringReply_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( - ::milvus::grpc::Status::internal_default_instance()); -} -class StringReply::_Internal { - public: - static const ::milvus::grpc::Status& status(const StringReply* msg); -}; - -const ::milvus::grpc::Status& -StringReply::_Internal::status(const StringReply* msg) { - return *msg->status_; -} -void StringReply::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -StringReply::StringReply() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.StringReply) -} -StringReply::StringReply(const StringReply& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - string_reply_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.string_reply().empty()) { - string_reply_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.string_reply_); - } - if (from.has_status()) { - status_ = new ::milvus::grpc::Status(*from.status_); - } else { - status_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.StringReply) -} - -void StringReply::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_StringReply_milvus_2eproto.base); - string_reply_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - status_ = nullptr; -} - -StringReply::~StringReply() { - // @@protoc_insertion_point(destructor:milvus.grpc.StringReply) - SharedDtor(); -} - -void StringReply::SharedDtor() { - string_reply_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete status_; -} - -void StringReply::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const StringReply& StringReply::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StringReply_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void StringReply::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.StringReply) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - string_reply_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* StringReply::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string string_reply = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_string_reply(), ptr, ctx, "milvus.grpc.StringReply.string_reply"); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool StringReply::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.StringReply) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.grpc.Status status = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_status())); - } else { - goto handle_unusual; - } - break; - } - - // string string_reply = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_string_reply())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->string_reply().data(), static_cast(this->string_reply().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.StringReply.string_reply")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.StringReply) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.StringReply) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void StringReply::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.StringReply) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::status(this), output); - } - - // string string_reply = 2; - if (this->string_reply().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->string_reply().data(), static_cast(this->string_reply().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.StringReply.string_reply"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->string_reply(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.StringReply) -} - -::PROTOBUF_NAMESPACE_ID::uint8* StringReply::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.StringReply) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::status(this), target); - } - - // string string_reply = 2; - if (this->string_reply().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->string_reply().data(), static_cast(this->string_reply().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.StringReply.string_reply"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 2, this->string_reply(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.StringReply) - return target; -} - -size_t StringReply::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.StringReply) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string string_reply = 2; - if (this->string_reply().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->string_reply()); - } - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void StringReply::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.StringReply) - GOOGLE_DCHECK_NE(&from, this); - const StringReply* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.StringReply) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.StringReply) - MergeFrom(*source); - } -} - -void StringReply::MergeFrom(const StringReply& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.StringReply) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.string_reply().size() > 0) { - - string_reply_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.string_reply_); - } - if (from.has_status()) { - mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); - } -} - -void StringReply::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.StringReply) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StringReply::CopyFrom(const StringReply& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.StringReply) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StringReply::IsInitialized() const { - return true; -} - -void StringReply::InternalSwap(StringReply* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - string_reply_.Swap(&other->string_reply_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(status_, other->status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata StringReply::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void BoolReply::InitAsDefaultInstance() { - ::milvus::grpc::_BoolReply_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( - ::milvus::grpc::Status::internal_default_instance()); -} -class BoolReply::_Internal { - public: - static const ::milvus::grpc::Status& status(const BoolReply* msg); -}; - -const ::milvus::grpc::Status& -BoolReply::_Internal::status(const BoolReply* msg) { - return *msg->status_; -} -void BoolReply::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -BoolReply::BoolReply() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.BoolReply) -} -BoolReply::BoolReply(const BoolReply& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_status()) { - status_ = new ::milvus::grpc::Status(*from.status_); - } else { - status_ = nullptr; - } - bool_reply_ = from.bool_reply_; - // @@protoc_insertion_point(copy_constructor:milvus.grpc.BoolReply) -} - -void BoolReply::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BoolReply_milvus_2eproto.base); - ::memset(&status_, 0, static_cast( - reinterpret_cast(&bool_reply_) - - reinterpret_cast(&status_)) + sizeof(bool_reply_)); -} - -BoolReply::~BoolReply() { - // @@protoc_insertion_point(destructor:milvus.grpc.BoolReply) - SharedDtor(); -} - -void BoolReply::SharedDtor() { - if (this != internal_default_instance()) delete status_; -} - -void BoolReply::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const BoolReply& BoolReply::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BoolReply_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void BoolReply::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.BoolReply) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - bool_reply_ = false; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* BoolReply::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bool bool_reply = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - bool_reply_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool BoolReply::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.BoolReply) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.grpc.Status status = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_status())); - } else { - goto handle_unusual; - } - break; - } - - // bool bool_reply = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( - input, &bool_reply_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.BoolReply) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.BoolReply) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void BoolReply::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.BoolReply) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::status(this), output); - } - - // bool bool_reply = 2; - if (this->bool_reply() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(2, this->bool_reply(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.BoolReply) -} - -::PROTOBUF_NAMESPACE_ID::uint8* BoolReply::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.BoolReply) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::status(this), target); - } - - // bool bool_reply = 2; - if (this->bool_reply() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->bool_reply(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.BoolReply) - return target; -} - -size_t BoolReply::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.BoolReply) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - // bool bool_reply = 2; - if (this->bool_reply() != 0) { - total_size += 1 + 1; - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void BoolReply::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.BoolReply) - GOOGLE_DCHECK_NE(&from, this); - const BoolReply* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.BoolReply) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.BoolReply) - MergeFrom(*source); - } -} - -void BoolReply::MergeFrom(const BoolReply& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.BoolReply) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_status()) { - mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); - } - if (from.bool_reply() != 0) { - set_bool_reply(from.bool_reply()); - } -} - -void BoolReply::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.BoolReply) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BoolReply::CopyFrom(const BoolReply& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.BoolReply) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BoolReply::IsInitialized() const { - return true; -} - -void BoolReply::InternalSwap(BoolReply* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(status_, other->status_); - swap(bool_reply_, other->bool_reply_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata BoolReply::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void CollectionRowCount::InitAsDefaultInstance() { - ::milvus::grpc::_CollectionRowCount_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( - ::milvus::grpc::Status::internal_default_instance()); -} -class CollectionRowCount::_Internal { - public: - static const ::milvus::grpc::Status& status(const CollectionRowCount* msg); -}; - -const ::milvus::grpc::Status& -CollectionRowCount::_Internal::status(const CollectionRowCount* msg) { - return *msg->status_; -} -void CollectionRowCount::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -CollectionRowCount::CollectionRowCount() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.CollectionRowCount) -} -CollectionRowCount::CollectionRowCount(const CollectionRowCount& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_status()) { - status_ = new ::milvus::grpc::Status(*from.status_); - } else { - status_ = nullptr; - } - collection_row_count_ = from.collection_row_count_; - // @@protoc_insertion_point(copy_constructor:milvus.grpc.CollectionRowCount) -} - -void CollectionRowCount::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionRowCount_milvus_2eproto.base); - ::memset(&status_, 0, static_cast( - reinterpret_cast(&collection_row_count_) - - reinterpret_cast(&status_)) + sizeof(collection_row_count_)); -} - -CollectionRowCount::~CollectionRowCount() { - // @@protoc_insertion_point(destructor:milvus.grpc.CollectionRowCount) - SharedDtor(); -} - -void CollectionRowCount::SharedDtor() { - if (this != internal_default_instance()) delete status_; -} - -void CollectionRowCount::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CollectionRowCount& CollectionRowCount::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionRowCount_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void CollectionRowCount::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.CollectionRowCount) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - collection_row_count_ = PROTOBUF_LONGLONG(0); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CollectionRowCount::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 collection_row_count = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - collection_row_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CollectionRowCount::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.CollectionRowCount) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.grpc.Status status = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_status())); - } else { - goto handle_unusual; - } - break; - } - - // int64 collection_row_count = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, &collection_row_count_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.CollectionRowCount) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.CollectionRowCount) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CollectionRowCount::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.CollectionRowCount) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::status(this), output); - } - - // int64 collection_row_count = 2; - if (this->collection_row_count() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->collection_row_count(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.CollectionRowCount) -} - -::PROTOBUF_NAMESPACE_ID::uint8* CollectionRowCount::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.CollectionRowCount) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::status(this), target); - } - - // int64 collection_row_count = 2; - if (this->collection_row_count() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->collection_row_count(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.CollectionRowCount) - return target; -} - -size_t CollectionRowCount::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.CollectionRowCount) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - // int64 collection_row_count = 2; - if (this->collection_row_count() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->collection_row_count()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CollectionRowCount::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.CollectionRowCount) - GOOGLE_DCHECK_NE(&from, this); - const CollectionRowCount* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.CollectionRowCount) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.CollectionRowCount) - MergeFrom(*source); - } -} - -void CollectionRowCount::MergeFrom(const CollectionRowCount& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.CollectionRowCount) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_status()) { - mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); - } - if (from.collection_row_count() != 0) { - set_collection_row_count(from.collection_row_count()); - } -} - -void CollectionRowCount::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.CollectionRowCount) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CollectionRowCount::CopyFrom(const CollectionRowCount& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.CollectionRowCount) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CollectionRowCount::IsInitialized() const { - return true; -} - -void CollectionRowCount::InternalSwap(CollectionRowCount* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(status_, other->status_); - swap(collection_row_count_, other->collection_row_count_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata CollectionRowCount::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void Command::InitAsDefaultInstance() { -} -class Command::_Internal { - public: -}; - -Command::Command() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.Command) -} -Command::Command(const Command& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - cmd_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.cmd().empty()) { - cmd_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.cmd_); - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.Command) -} - -void Command::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Command_milvus_2eproto.base); - cmd_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -Command::~Command() { - // @@protoc_insertion_point(destructor:milvus.grpc.Command) - SharedDtor(); -} - -void Command::SharedDtor() { - cmd_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void Command::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Command& Command::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Command_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void Command::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.Command) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cmd_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Command::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string cmd = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_cmd(), ptr, ctx, "milvus.grpc.Command.cmd"); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Command::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.Command) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string cmd = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_cmd())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->cmd().data(), static_cast(this->cmd().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.Command.cmd")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.Command) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.Command) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Command::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.Command) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string cmd = 1; - if (this->cmd().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->cmd().data(), static_cast(this->cmd().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.Command.cmd"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->cmd(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.Command) -} - -::PROTOBUF_NAMESPACE_ID::uint8* Command::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Command) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string cmd = 1; - if (this->cmd().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->cmd().data(), static_cast(this->cmd().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.Command.cmd"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->cmd(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Command) - return target; -} - -size_t Command::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.Command) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string cmd = 1; - if (this->cmd().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->cmd()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Command::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.Command) - GOOGLE_DCHECK_NE(&from, this); - const Command* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.Command) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Command) - MergeFrom(*source); - } -} - -void Command::MergeFrom(const Command& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.Command) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.cmd().size() > 0) { - - cmd_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.cmd_); - } -} - -void Command::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Command) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Command::CopyFrom(const Command& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.Command) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Command::IsInitialized() const { - return true; -} - -void Command::InternalSwap(Command* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - cmd_.Swap(&other->cmd_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata Command::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void IndexParam::InitAsDefaultInstance() { - ::milvus::grpc::_IndexParam_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( - ::milvus::grpc::Status::internal_default_instance()); -} -class IndexParam::_Internal { - public: - static const ::milvus::grpc::Status& status(const IndexParam* msg); -}; - -const ::milvus::grpc::Status& -IndexParam::_Internal::status(const IndexParam* msg) { - return *msg->status_; -} -void IndexParam::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -IndexParam::IndexParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.IndexParam) -} -IndexParam::IndexParam(const IndexParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - extra_params_(from.extra_params_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.field_name().empty()) { - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - index_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.index_name().empty()) { - index_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.index_name_); - } - if (from.has_status()) { - status_ = new ::milvus::grpc::Status(*from.status_); - } else { - status_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.IndexParam) -} - -void IndexParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_IndexParam_milvus_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - index_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - status_ = nullptr; -} - -IndexParam::~IndexParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.IndexParam) - SharedDtor(); -} - -void IndexParam::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - index_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete status_; -} - -void IndexParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const IndexParam& IndexParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_IndexParam_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void IndexParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.IndexParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - extra_params_.Clear(); - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - index_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* IndexParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string collection_name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.IndexParam.collection_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string field_name = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_field_name(), ptr, ctx, "milvus.grpc.IndexParam.field_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string index_name = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_index_name(), ptr, ctx, "milvus.grpc.IndexParam.index_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_extra_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 42); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool IndexParam::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.IndexParam) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.grpc.Status status = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_status())); - } else { - goto handle_unusual; - } - break; - } - - // string collection_name = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.IndexParam.collection_name")); - } else { - goto handle_unusual; - } - break; - } - - // string field_name = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_field_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.IndexParam.field_name")); - } else { - goto handle_unusual; - } - break; - } - - // string index_name = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_index_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->index_name().data(), static_cast(this->index_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.IndexParam.index_name")); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - case 5: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_extra_params())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.IndexParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.IndexParam) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void IndexParam::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.IndexParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::status(this), output); - } - - // string collection_name = 2; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.IndexParam.collection_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->collection_name(), output); - } - - // string field_name = 3; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.IndexParam.field_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->field_name(), output); - } - - // string index_name = 4; - if (this->index_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->index_name().data(), static_cast(this->index_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.IndexParam.index_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->index_name(), output); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, - n = static_cast(this->extra_params_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, - this->extra_params(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.IndexParam) -} - -::PROTOBUF_NAMESPACE_ID::uint8* IndexParam::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.IndexParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::status(this), target); - } - - // string collection_name = 2; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.IndexParam.collection_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 2, this->collection_name(), target); - } - - // string field_name = 3; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.IndexParam.field_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 3, this->field_name(), target); - } - - // string index_name = 4; - if (this->index_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->index_name().data(), static_cast(this->index_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.IndexParam.index_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 4, this->index_name(), target); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, - n = static_cast(this->extra_params_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, this->extra_params(static_cast(i)), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.IndexParam) - return target; -} - -size_t IndexParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.IndexParam) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - { - unsigned int count = static_cast(this->extra_params_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->extra_params(static_cast(i))); - } - } - - // string collection_name = 2; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // string field_name = 3; - if (this->field_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->field_name()); - } - - // string index_name = 4; - if (this->index_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->index_name()); - } - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void IndexParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.IndexParam) - GOOGLE_DCHECK_NE(&from, this); - const IndexParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.IndexParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.IndexParam) - MergeFrom(*source); - } -} - -void IndexParam::MergeFrom(const IndexParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.IndexParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - extra_params_.MergeFrom(from.extra_params_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.field_name().size() > 0) { - - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - if (from.index_name().size() > 0) { - - index_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.index_name_); - } - if (from.has_status()) { - mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); - } -} - -void IndexParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.IndexParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void IndexParam::CopyFrom(const IndexParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.IndexParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool IndexParam::IsInitialized() const { - return true; -} - -void IndexParam::InternalSwap(IndexParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - index_name_.Swap(&other->index_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(status_, other->status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata IndexParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void FlushParam::InitAsDefaultInstance() { -} -class FlushParam::_Internal { - public: -}; - -FlushParam::FlushParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.FlushParam) -} -FlushParam::FlushParam(const FlushParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - collection_name_array_(from.collection_name_array_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:milvus.grpc.FlushParam) -} - -void FlushParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FlushParam_milvus_2eproto.base); -} - -FlushParam::~FlushParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.FlushParam) - SharedDtor(); -} - -void FlushParam::SharedDtor() { -} - -void FlushParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const FlushParam& FlushParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FlushParam_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void FlushParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.FlushParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - collection_name_array_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* FlushParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated string collection_name_array = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_collection_name_array(), ptr, ctx, "milvus.grpc.FlushParam.collection_name_array"); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool FlushParam::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.FlushParam) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated string collection_name_array = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->add_collection_name_array())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name_array(this->collection_name_array_size() - 1).data(), - static_cast(this->collection_name_array(this->collection_name_array_size() - 1).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.FlushParam.collection_name_array")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.FlushParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.FlushParam) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void FlushParam::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.FlushParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string collection_name_array = 1; - for (int i = 0, n = this->collection_name_array_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name_array(i).data(), static_cast(this->collection_name_array(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.FlushParam.collection_name_array"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( - 1, this->collection_name_array(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.FlushParam) -} - -::PROTOBUF_NAMESPACE_ID::uint8* FlushParam::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.FlushParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string collection_name_array = 1; - for (int i = 0, n = this->collection_name_array_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name_array(i).data(), static_cast(this->collection_name_array(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.FlushParam.collection_name_array"); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteStringToArray(1, this->collection_name_array(i), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.FlushParam) - return target; -} - -size_t FlushParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.FlushParam) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated string collection_name_array = 1; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->collection_name_array_size()); - for (int i = 0, n = this->collection_name_array_size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->collection_name_array(i)); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void FlushParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.FlushParam) - GOOGLE_DCHECK_NE(&from, this); - const FlushParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.FlushParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.FlushParam) - MergeFrom(*source); - } -} - -void FlushParam::MergeFrom(const FlushParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.FlushParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - collection_name_array_.MergeFrom(from.collection_name_array_); -} - -void FlushParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.FlushParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FlushParam::CopyFrom(const FlushParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.FlushParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FlushParam::IsInitialized() const { - return true; -} - -void FlushParam::InternalSwap(FlushParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - collection_name_array_.InternalSwap(CastToBase(&other->collection_name_array_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata FlushParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void CompactParam::InitAsDefaultInstance() { -} -class CompactParam::_Internal { - public: -}; - -CompactParam::CompactParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.CompactParam) -} -CompactParam::CompactParam(const CompactParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - threshold_ = from.threshold_; - // @@protoc_insertion_point(copy_constructor:milvus.grpc.CompactParam) -} - -void CompactParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CompactParam_milvus_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - threshold_ = 0; -} - -CompactParam::~CompactParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.CompactParam) - SharedDtor(); -} - -void CompactParam::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void CompactParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CompactParam& CompactParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CompactParam_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void CompactParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.CompactParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - threshold_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CompactParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.CompactParam.collection_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // double threshold = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { - threshold_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CompactParam::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.CompactParam) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string collection_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.CompactParam.collection_name")); - } else { - goto handle_unusual; - } - break; - } - - // double threshold = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (17 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( - input, &threshold_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.CompactParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.CompactParam) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CompactParam::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.CompactParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.CompactParam.collection_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // double threshold = 2; - if (!(this->threshold() <= 0 && this->threshold() >= 0)) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDouble(2, this->threshold(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.CompactParam) -} - -::PROTOBUF_NAMESPACE_ID::uint8* CompactParam::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.CompactParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.CompactParam.collection_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // double threshold = 2; - if (!(this->threshold() <= 0 && this->threshold() >= 0)) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->threshold(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.CompactParam) - return target; -} - -size_t CompactParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.CompactParam) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // double threshold = 2; - if (!(this->threshold() <= 0 && this->threshold() >= 0)) { - total_size += 1 + 8; - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CompactParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.CompactParam) - GOOGLE_DCHECK_NE(&from, this); - const CompactParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.CompactParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.CompactParam) - MergeFrom(*source); - } -} - -void CompactParam::MergeFrom(const CompactParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.CompactParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (!(from.threshold() <= 0 && from.threshold() >= 0)) { - set_threshold(from.threshold()); - } -} - -void CompactParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.CompactParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CompactParam::CopyFrom(const CompactParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.CompactParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CompactParam::IsInitialized() const { - return true; -} - -void CompactParam::InternalSwap(CompactParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(threshold_, other->threshold_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata CompactParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void DeleteByIDParam::InitAsDefaultInstance() { -} -class DeleteByIDParam::_Internal { - public: -}; - -DeleteByIDParam::DeleteByIDParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.DeleteByIDParam) -} -DeleteByIDParam::DeleteByIDParam(const DeleteByIDParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - id_array_(from.id_array_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.DeleteByIDParam) -} - -void DeleteByIDParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DeleteByIDParam_milvus_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -DeleteByIDParam::~DeleteByIDParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.DeleteByIDParam) - SharedDtor(); -} - -void DeleteByIDParam::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void DeleteByIDParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DeleteByIDParam& DeleteByIDParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DeleteByIDParam_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void DeleteByIDParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.DeleteByIDParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - id_array_.Clear(); - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DeleteByIDParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.DeleteByIDParam.collection_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated int64 id_array = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_id_array(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) { - add_id_array(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DeleteByIDParam::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.DeleteByIDParam) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string collection_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.DeleteByIDParam.collection_name")); - } else { - goto handle_unusual; - } - break; - } - - // repeated int64 id_array = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, this->mutable_id_array()))); - } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - 1, 18u, input, this->mutable_id_array()))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.DeleteByIDParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.DeleteByIDParam) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DeleteByIDParam::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.DeleteByIDParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.DeleteByIDParam.collection_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // repeated int64 id_array = 2; - if (this->id_array_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(2, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_id_array_cached_byte_size_.load( - std::memory_order_relaxed)); - } - for (int i = 0, n = this->id_array_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( - this->id_array(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.DeleteByIDParam) -} - -::PROTOBUF_NAMESPACE_ID::uint8* DeleteByIDParam::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.DeleteByIDParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.DeleteByIDParam.collection_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // repeated int64 id_array = 2; - if (this->id_array_size() > 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( - 2, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( - _id_array_cached_byte_size_.load(std::memory_order_relaxed), - target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->id_array_, target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.DeleteByIDParam) - return target; -} - -size_t DeleteByIDParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.DeleteByIDParam) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated int64 id_array = 2; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int64Size(this->id_array_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _id_array_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DeleteByIDParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.DeleteByIDParam) - GOOGLE_DCHECK_NE(&from, this); - const DeleteByIDParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.DeleteByIDParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.DeleteByIDParam) - MergeFrom(*source); - } -} - -void DeleteByIDParam::MergeFrom(const DeleteByIDParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.DeleteByIDParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - id_array_.MergeFrom(from.id_array_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } -} - -void DeleteByIDParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.DeleteByIDParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DeleteByIDParam::CopyFrom(const DeleteByIDParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.DeleteByIDParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DeleteByIDParam::IsInitialized() const { - return true; -} - -void DeleteByIDParam::InternalSwap(DeleteByIDParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - id_array_.InternalSwap(&other->id_array_); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata DeleteByIDParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void CollectionInfo::InitAsDefaultInstance() { - ::milvus::grpc::_CollectionInfo_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( - ::milvus::grpc::Status::internal_default_instance()); -} -class CollectionInfo::_Internal { - public: - static const ::milvus::grpc::Status& status(const CollectionInfo* msg); -}; - -const ::milvus::grpc::Status& -CollectionInfo::_Internal::status(const CollectionInfo* msg) { - return *msg->status_; -} -void CollectionInfo::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -CollectionInfo::CollectionInfo() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.CollectionInfo) -} -CollectionInfo::CollectionInfo(const CollectionInfo& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - json_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.json_info().empty()) { - json_info_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.json_info_); - } - if (from.has_status()) { - status_ = new ::milvus::grpc::Status(*from.status_); - } else { - status_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.CollectionInfo) -} - -void CollectionInfo::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionInfo_milvus_2eproto.base); - json_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - status_ = nullptr; -} - -CollectionInfo::~CollectionInfo() { - // @@protoc_insertion_point(destructor:milvus.grpc.CollectionInfo) - SharedDtor(); -} - -void CollectionInfo::SharedDtor() { - json_info_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete status_; -} - -void CollectionInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CollectionInfo& CollectionInfo::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionInfo_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void CollectionInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.CollectionInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - json_info_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CollectionInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string json_info = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_json_info(), ptr, ctx, "milvus.grpc.CollectionInfo.json_info"); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CollectionInfo::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.CollectionInfo) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.grpc.Status status = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_status())); - } else { - goto handle_unusual; - } - break; - } - - // string json_info = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_json_info())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->json_info().data(), static_cast(this->json_info().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.CollectionInfo.json_info")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.CollectionInfo) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.CollectionInfo) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CollectionInfo::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.CollectionInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::status(this), output); - } - - // string json_info = 2; - if (this->json_info().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->json_info().data(), static_cast(this->json_info().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.CollectionInfo.json_info"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->json_info(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.CollectionInfo) -} - -::PROTOBUF_NAMESPACE_ID::uint8* CollectionInfo::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.CollectionInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::status(this), target); - } - - // string json_info = 2; - if (this->json_info().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->json_info().data(), static_cast(this->json_info().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.CollectionInfo.json_info"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 2, this->json_info(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.CollectionInfo) - return target; -} - -size_t CollectionInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.CollectionInfo) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string json_info = 2; - if (this->json_info().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->json_info()); - } - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CollectionInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.CollectionInfo) - GOOGLE_DCHECK_NE(&from, this); - const CollectionInfo* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.CollectionInfo) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.CollectionInfo) - MergeFrom(*source); - } -} - -void CollectionInfo::MergeFrom(const CollectionInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.CollectionInfo) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.json_info().size() > 0) { - - json_info_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.json_info_); - } - if (from.has_status()) { - mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); - } -} - -void CollectionInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.CollectionInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CollectionInfo::CopyFrom(const CollectionInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.CollectionInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CollectionInfo::IsInitialized() const { - return true; -} - -void CollectionInfo::InternalSwap(CollectionInfo* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - json_info_.Swap(&other->json_info_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(status_, other->status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata CollectionInfo::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void GetEntityIDsParam::InitAsDefaultInstance() { -} -class GetEntityIDsParam::_Internal { - public: -}; - -GetEntityIDsParam::GetEntityIDsParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.GetEntityIDsParam) -} -GetEntityIDsParam::GetEntityIDsParam(const GetEntityIDsParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - segment_id_ = from.segment_id_; - // @@protoc_insertion_point(copy_constructor:milvus.grpc.GetEntityIDsParam) -} - -void GetEntityIDsParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetEntityIDsParam_milvus_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - segment_id_ = PROTOBUF_LONGLONG(0); -} - -GetEntityIDsParam::~GetEntityIDsParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.GetEntityIDsParam) - SharedDtor(); -} - -void GetEntityIDsParam::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void GetEntityIDsParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetEntityIDsParam& GetEntityIDsParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetEntityIDsParam_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void GetEntityIDsParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.GetEntityIDsParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - segment_id_ = PROTOBUF_LONGLONG(0); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetEntityIDsParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.GetEntityIDsParam.collection_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 segment_id = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - segment_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GetEntityIDsParam::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.GetEntityIDsParam) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string collection_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.GetEntityIDsParam.collection_name")); - } else { - goto handle_unusual; - } - break; - } - - // int64 segment_id = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, &segment_id_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.GetEntityIDsParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.GetEntityIDsParam) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetEntityIDsParam::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.GetEntityIDsParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.GetEntityIDsParam.collection_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // int64 segment_id = 2; - if (this->segment_id() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->segment_id(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.GetEntityIDsParam) -} - -::PROTOBUF_NAMESPACE_ID::uint8* GetEntityIDsParam::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.GetEntityIDsParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.GetEntityIDsParam.collection_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // int64 segment_id = 2; - if (this->segment_id() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->segment_id(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.GetEntityIDsParam) - return target; -} - -size_t GetEntityIDsParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.GetEntityIDsParam) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // int64 segment_id = 2; - if (this->segment_id() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->segment_id()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetEntityIDsParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.GetEntityIDsParam) - GOOGLE_DCHECK_NE(&from, this); - const GetEntityIDsParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.GetEntityIDsParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.GetEntityIDsParam) - MergeFrom(*source); - } -} - -void GetEntityIDsParam::MergeFrom(const GetEntityIDsParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.GetEntityIDsParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.segment_id() != 0) { - set_segment_id(from.segment_id()); - } -} - -void GetEntityIDsParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.GetEntityIDsParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetEntityIDsParam::CopyFrom(const GetEntityIDsParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.GetEntityIDsParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetEntityIDsParam::IsInitialized() const { - return true; -} - -void GetEntityIDsParam::InternalSwap(GetEntityIDsParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(segment_id_, other->segment_id_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetEntityIDsParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void EntityIdentity::InitAsDefaultInstance() { -} -class EntityIdentity::_Internal { - public: -}; - -EntityIdentity::EntityIdentity() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.EntityIdentity) -} -EntityIdentity::EntityIdentity(const EntityIdentity& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - id_array_(from.id_array_), - field_names_(from.field_names_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.EntityIdentity) -} - -void EntityIdentity::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EntityIdentity_milvus_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -EntityIdentity::~EntityIdentity() { - // @@protoc_insertion_point(destructor:milvus.grpc.EntityIdentity) - SharedDtor(); -} - -void EntityIdentity::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void EntityIdentity::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const EntityIdentity& EntityIdentity::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EntityIdentity_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void EntityIdentity::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.EntityIdentity) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - id_array_.Clear(); - field_names_.Clear(); - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* EntityIdentity::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.EntityIdentity.collection_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated int64 id_array = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_id_array(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) { - add_id_array(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated string field_names = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_field_names(), ptr, ctx, "milvus.grpc.EntityIdentity.field_names"); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool EntityIdentity::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.EntityIdentity) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string collection_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.EntityIdentity.collection_name")); - } else { - goto handle_unusual; - } - break; - } - - // repeated int64 id_array = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, this->mutable_id_array()))); - } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - 1, 18u, input, this->mutable_id_array()))); - } else { - goto handle_unusual; - } - break; - } - - // repeated string field_names = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->add_field_names())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_names(this->field_names_size() - 1).data(), - static_cast(this->field_names(this->field_names_size() - 1).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.EntityIdentity.field_names")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.EntityIdentity) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.EntityIdentity) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void EntityIdentity::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.EntityIdentity) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.EntityIdentity.collection_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // repeated int64 id_array = 2; - if (this->id_array_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(2, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_id_array_cached_byte_size_.load( - std::memory_order_relaxed)); - } - for (int i = 0, n = this->id_array_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( - this->id_array(i), output); - } - - // repeated string field_names = 3; - for (int i = 0, n = this->field_names_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_names(i).data(), static_cast(this->field_names(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.EntityIdentity.field_names"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( - 3, this->field_names(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.EntityIdentity) -} - -::PROTOBUF_NAMESPACE_ID::uint8* EntityIdentity::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.EntityIdentity) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.EntityIdentity.collection_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // repeated int64 id_array = 2; - if (this->id_array_size() > 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( - 2, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( - _id_array_cached_byte_size_.load(std::memory_order_relaxed), - target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->id_array_, target); - } - - // repeated string field_names = 3; - for (int i = 0, n = this->field_names_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_names(i).data(), static_cast(this->field_names(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.EntityIdentity.field_names"); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteStringToArray(3, this->field_names(i), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.EntityIdentity) - return target; -} - -size_t EntityIdentity::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.EntityIdentity) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated int64 id_array = 2; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int64Size(this->id_array_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _id_array_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated string field_names = 3; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->field_names_size()); - for (int i = 0, n = this->field_names_size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->field_names(i)); - } - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void EntityIdentity::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.EntityIdentity) - GOOGLE_DCHECK_NE(&from, this); - const EntityIdentity* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.EntityIdentity) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.EntityIdentity) - MergeFrom(*source); - } -} - -void EntityIdentity::MergeFrom(const EntityIdentity& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.EntityIdentity) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - id_array_.MergeFrom(from.id_array_); - field_names_.MergeFrom(from.field_names_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } -} - -void EntityIdentity::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.EntityIdentity) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EntityIdentity::CopyFrom(const EntityIdentity& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.EntityIdentity) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EntityIdentity::IsInitialized() const { - return true; -} - -void EntityIdentity::InternalSwap(EntityIdentity* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - id_array_.InternalSwap(&other->id_array_); - field_names_.InternalSwap(CastToBase(&other->field_names_)); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata EntityIdentity::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void VectorFieldParam::InitAsDefaultInstance() { -} -class VectorFieldParam::_Internal { - public: -}; - -VectorFieldParam::VectorFieldParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.VectorFieldParam) -} -VectorFieldParam::VectorFieldParam(const VectorFieldParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - dimension_ = from.dimension_; - // @@protoc_insertion_point(copy_constructor:milvus.grpc.VectorFieldParam) -} - -void VectorFieldParam::SharedCtor() { - dimension_ = PROTOBUF_LONGLONG(0); -} - -VectorFieldParam::~VectorFieldParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.VectorFieldParam) - SharedDtor(); -} - -void VectorFieldParam::SharedDtor() { -} - -void VectorFieldParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const VectorFieldParam& VectorFieldParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VectorFieldParam_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void VectorFieldParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.VectorFieldParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - dimension_ = PROTOBUF_LONGLONG(0); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* VectorFieldParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // int64 dimension = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - dimension_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool VectorFieldParam::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.VectorFieldParam) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // int64 dimension = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, &dimension_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.VectorFieldParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.VectorFieldParam) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void VectorFieldParam::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.VectorFieldParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 dimension = 1; - if (this->dimension() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->dimension(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.VectorFieldParam) -} - -::PROTOBUF_NAMESPACE_ID::uint8* VectorFieldParam::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.VectorFieldParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 dimension = 1; - if (this->dimension() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->dimension(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.VectorFieldParam) - return target; -} - -size_t VectorFieldParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.VectorFieldParam) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // int64 dimension = 1; - if (this->dimension() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->dimension()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void VectorFieldParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.VectorFieldParam) - GOOGLE_DCHECK_NE(&from, this); - const VectorFieldParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.VectorFieldParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.VectorFieldParam) - MergeFrom(*source); - } -} - -void VectorFieldParam::MergeFrom(const VectorFieldParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.VectorFieldParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.dimension() != 0) { - set_dimension(from.dimension()); - } -} - -void VectorFieldParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.VectorFieldParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VectorFieldParam::CopyFrom(const VectorFieldParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.VectorFieldParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VectorFieldParam::IsInitialized() const { - return true; -} - -void VectorFieldParam::InternalSwap(VectorFieldParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(dimension_, other->dimension_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata VectorFieldParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void FieldType::InitAsDefaultInstance() { - ::milvus::grpc::_FieldType_default_instance_.data_type_ = 0; - ::milvus::grpc::_FieldType_default_instance_.vector_param_ = const_cast< ::milvus::grpc::VectorFieldParam*>( - ::milvus::grpc::VectorFieldParam::internal_default_instance()); -} -class FieldType::_Internal { - public: - static const ::milvus::grpc::VectorFieldParam& vector_param(const FieldType* msg); -}; - -const ::milvus::grpc::VectorFieldParam& -FieldType::_Internal::vector_param(const FieldType* msg) { - return *msg->value_.vector_param_; -} -void FieldType::set_allocated_vector_param(::milvus::grpc::VectorFieldParam* vector_param) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - clear_value(); - if (vector_param) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - vector_param = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, vector_param, submessage_arena); - } - set_has_vector_param(); - value_.vector_param_ = vector_param; - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.FieldType.vector_param) -} -FieldType::FieldType() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.FieldType) -} -FieldType::FieldType(const FieldType& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_value(); - switch (from.value_case()) { - case kDataType: { - set_data_type(from.data_type()); - break; - } - case kVectorParam: { - mutable_vector_param()->::milvus::grpc::VectorFieldParam::MergeFrom(from.vector_param()); - break; - } - case VALUE_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.FieldType) -} - -void FieldType::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FieldType_milvus_2eproto.base); - clear_has_value(); -} - -FieldType::~FieldType() { - // @@protoc_insertion_point(destructor:milvus.grpc.FieldType) - SharedDtor(); -} - -void FieldType::SharedDtor() { - if (has_value()) { - clear_value(); - } -} - -void FieldType::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const FieldType& FieldType::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FieldType_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void FieldType::clear_value() { -// @@protoc_insertion_point(one_of_clear_start:milvus.grpc.FieldType) - switch (value_case()) { - case kDataType: { - // No need to clear - break; - } - case kVectorParam: { - delete value_.vector_param_; - break; - } - case VALUE_NOT_SET: { - break; - } - } - _oneof_case_[0] = VALUE_NOT_SET; -} - - -void FieldType::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.FieldType) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_value(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* FieldType::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.DataType data_type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - set_data_type(static_cast<::milvus::grpc::DataType>(val)); - } else goto handle_unusual; - continue; - // .milvus.grpc.VectorFieldParam vector_param = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(mutable_vector_param(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool FieldType::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.FieldType) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.grpc.DataType data_type = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_data_type(static_cast< ::milvus::grpc::DataType >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .milvus.grpc.VectorFieldParam vector_param = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_vector_param())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.FieldType) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.FieldType) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void FieldType::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.FieldType) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.DataType data_type = 1; - if (has_data_type()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( - 1, this->data_type(), output); - } - - // .milvus.grpc.VectorFieldParam vector_param = 2; - if (has_vector_param()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, _Internal::vector_param(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.FieldType) -} - -::PROTOBUF_NAMESPACE_ID::uint8* FieldType::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.FieldType) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.DataType data_type = 1; - if (has_data_type()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->data_type(), target); - } - - // .milvus.grpc.VectorFieldParam vector_param = 2; - if (has_vector_param()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, _Internal::vector_param(this), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.FieldType) - return target; -} - -size_t FieldType::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.FieldType) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - switch (value_case()) { - // .milvus.grpc.DataType data_type = 1; - case kDataType: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->data_type()); - break; - } - // .milvus.grpc.VectorFieldParam vector_param = 2; - case kVectorParam: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *value_.vector_param_); - break; - } - case VALUE_NOT_SET: { - break; - } - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void FieldType::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.FieldType) - GOOGLE_DCHECK_NE(&from, this); - const FieldType* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.FieldType) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.FieldType) - MergeFrom(*source); - } -} - -void FieldType::MergeFrom(const FieldType& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.FieldType) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.value_case()) { - case kDataType: { - set_data_type(from.data_type()); - break; - } - case kVectorParam: { - mutable_vector_param()->::milvus::grpc::VectorFieldParam::MergeFrom(from.vector_param()); - break; - } - case VALUE_NOT_SET: { - break; - } - } -} - -void FieldType::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.FieldType) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FieldType::CopyFrom(const FieldType& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.FieldType) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FieldType::IsInitialized() const { - return true; -} - -void FieldType::InternalSwap(FieldType* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(value_, other->value_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::PROTOBUF_NAMESPACE_ID::Metadata FieldType::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void FieldParam::InitAsDefaultInstance() { -} -class FieldParam::_Internal { - public: -}; - -FieldParam::FieldParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.FieldParam) -} -FieldParam::FieldParam(const FieldParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - index_params_(from.index_params_), - extra_params_(from.extra_params_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.name().empty()) { - name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); - } - ::memcpy(&id_, &from.id_, - static_cast(reinterpret_cast(&type_) - - reinterpret_cast(&id_)) + sizeof(type_)); - // @@protoc_insertion_point(copy_constructor:milvus.grpc.FieldParam) -} - -void FieldParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FieldParam_milvus_2eproto.base); - name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&type_) - - reinterpret_cast(&id_)) + sizeof(type_)); -} - -FieldParam::~FieldParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.FieldParam) - SharedDtor(); -} - -void FieldParam::SharedDtor() { - name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void FieldParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const FieldParam& FieldParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FieldParam_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void FieldParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.FieldParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - index_params_.Clear(); - extra_params_.Clear(); - name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&type_) - - reinterpret_cast(&id_)) + sizeof(type_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* FieldParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // uint64 id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "milvus.grpc.FieldParam.name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.grpc.DataType type = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - set_type(static_cast<::milvus::grpc::DataType>(val)); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.KeyValuePair index_params = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_index_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_extra_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 42); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool FieldParam::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.FieldParam) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // uint64 id = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64>( - input, &id_))); - } else { - goto handle_unusual; - } - break; - } - - // string name = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.FieldParam.name")); - } else { - goto handle_unusual; - } - break; - } - - // .milvus.grpc.DataType type = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { - int value = 0; - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_type(static_cast< ::milvus::grpc::DataType >(value)); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.grpc.KeyValuePair index_params = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_index_params())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - case 5: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_extra_params())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.FieldParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.FieldParam) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void FieldParam::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.FieldParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint64 id = 1; - if (this->id() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64(1, this->id(), output); - } - - // string name = 2; - if (this->name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.FieldParam.name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->name(), output); - } - - // .milvus.grpc.DataType type = 3; - if (this->type() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( - 3, this->type(), output); - } - - // repeated .milvus.grpc.KeyValuePair index_params = 4; - for (unsigned int i = 0, - n = static_cast(this->index_params_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, - this->index_params(static_cast(i)), - output); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, - n = static_cast(this->extra_params_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, - this->extra_params(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.FieldParam) -} - -::PROTOBUF_NAMESPACE_ID::uint8* FieldParam::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.FieldParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint64 id = 1; - if (this->id() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->id(), target); - } - - // string name = 2; - if (this->name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.FieldParam.name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 2, this->name(), target); - } - - // .milvus.grpc.DataType type = 3; - if (this->type() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 3, this->type(), target); - } - - // repeated .milvus.grpc.KeyValuePair index_params = 4; - for (unsigned int i = 0, - n = static_cast(this->index_params_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, this->index_params(static_cast(i)), target); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, - n = static_cast(this->extra_params_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, this->extra_params(static_cast(i)), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.FieldParam) - return target; -} - -size_t FieldParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.FieldParam) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.grpc.KeyValuePair index_params = 4; - { - unsigned int count = static_cast(this->index_params_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->index_params(static_cast(i))); - } - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - { - unsigned int count = static_cast(this->extra_params_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->extra_params(static_cast(i))); - } - } - - // string name = 2; - if (this->name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->name()); - } - - // uint64 id = 1; - if (this->id() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->id()); - } - - // .milvus.grpc.DataType type = 3; - if (this->type() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->type()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void FieldParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.FieldParam) - GOOGLE_DCHECK_NE(&from, this); - const FieldParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.FieldParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.FieldParam) - MergeFrom(*source); - } -} - -void FieldParam::MergeFrom(const FieldParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.FieldParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - index_params_.MergeFrom(from.index_params_); - extra_params_.MergeFrom(from.extra_params_); - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.id() != 0) { - set_id(from.id()); - } - if (from.type() != 0) { - set_type(from.type()); - } -} - -void FieldParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.FieldParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FieldParam::CopyFrom(const FieldParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.FieldParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FieldParam::IsInitialized() const { - return true; -} - -void FieldParam::InternalSwap(FieldParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&index_params_)->InternalSwap(CastToBase(&other->index_params_)); - CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); - name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(id_, other->id_); - swap(type_, other->type_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata FieldParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void VectorFieldRecord::InitAsDefaultInstance() { -} -class VectorFieldRecord::_Internal { - public: -}; - -VectorFieldRecord::VectorFieldRecord() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.VectorFieldRecord) -} -VectorFieldRecord::VectorFieldRecord(const VectorFieldRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - value_(from.value_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:milvus.grpc.VectorFieldRecord) -} - -void VectorFieldRecord::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_VectorFieldRecord_milvus_2eproto.base); -} - -VectorFieldRecord::~VectorFieldRecord() { - // @@protoc_insertion_point(destructor:milvus.grpc.VectorFieldRecord) - SharedDtor(); -} - -void VectorFieldRecord::SharedDtor() { -} - -void VectorFieldRecord::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const VectorFieldRecord& VectorFieldRecord::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VectorFieldRecord_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void VectorFieldRecord::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.VectorFieldRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - value_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* VectorFieldRecord::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .milvus.grpc.VectorRowRecord value = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_value(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool VectorFieldRecord::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.VectorFieldRecord) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .milvus.grpc.VectorRowRecord value = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_value())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.VectorFieldRecord) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.VectorFieldRecord) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void VectorFieldRecord::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.VectorFieldRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .milvus.grpc.VectorRowRecord value = 1; - for (unsigned int i = 0, - n = static_cast(this->value_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->value(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.VectorFieldRecord) -} - -::PROTOBUF_NAMESPACE_ID::uint8* VectorFieldRecord::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.VectorFieldRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .milvus.grpc.VectorRowRecord value = 1; - for (unsigned int i = 0, - n = static_cast(this->value_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->value(static_cast(i)), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.VectorFieldRecord) - return target; -} - -size_t VectorFieldRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.VectorFieldRecord) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.grpc.VectorRowRecord value = 1; - { - unsigned int count = static_cast(this->value_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->value(static_cast(i))); - } - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void VectorFieldRecord::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.VectorFieldRecord) - GOOGLE_DCHECK_NE(&from, this); - const VectorFieldRecord* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.VectorFieldRecord) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.VectorFieldRecord) - MergeFrom(*source); - } -} - -void VectorFieldRecord::MergeFrom(const VectorFieldRecord& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.VectorFieldRecord) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - value_.MergeFrom(from.value_); -} - -void VectorFieldRecord::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.VectorFieldRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VectorFieldRecord::CopyFrom(const VectorFieldRecord& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.VectorFieldRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VectorFieldRecord::IsInitialized() const { - return true; -} - -void VectorFieldRecord::InternalSwap(VectorFieldRecord* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&value_)->InternalSwap(CastToBase(&other->value_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata VectorFieldRecord::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void TermQuery::InitAsDefaultInstance() { -} -class TermQuery::_Internal { - public: -}; - -TermQuery::TermQuery() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.TermQuery) -} -TermQuery::TermQuery(const TermQuery& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - int_value_(from.int_value_), - double_value_(from.double_value_), - extra_params_(from.extra_params_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.field_name().empty()) { - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - ::memcpy(&value_num_, &from.value_num_, - static_cast(reinterpret_cast(&boost_) - - reinterpret_cast(&value_num_)) + sizeof(boost_)); - // @@protoc_insertion_point(copy_constructor:milvus.grpc.TermQuery) -} - -void TermQuery::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TermQuery_milvus_2eproto.base); - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&value_num_, 0, static_cast( - reinterpret_cast(&boost_) - - reinterpret_cast(&value_num_)) + sizeof(boost_)); -} - -TermQuery::~TermQuery() { - // @@protoc_insertion_point(destructor:milvus.grpc.TermQuery) - SharedDtor(); -} - -void TermQuery::SharedDtor() { - field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void TermQuery::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TermQuery& TermQuery::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TermQuery_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void TermQuery::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.TermQuery) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int_value_.Clear(); - double_value_.Clear(); - extra_params_.Clear(); - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&value_num_, 0, static_cast( - reinterpret_cast(&boost_) - - reinterpret_cast(&value_num_)) + sizeof(boost_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TermQuery::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string field_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_field_name(), ptr, ctx, "milvus.grpc.TermQuery.field_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated int64 int_value = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_int_value(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) { - add_int_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated double double_value = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(mutable_double_value(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25) { - add_double_value(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(double); - } else goto handle_unusual; - continue; - // int64 value_num = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - value_num_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // float boost = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 45)) { - boost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.KeyValuePair extra_params = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_extra_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 50); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TermQuery::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.TermQuery) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string field_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_field_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.TermQuery.field_name")); - } else { - goto handle_unusual; - } - break; - } - - // repeated int64 int_value = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, this->mutable_int_value()))); - } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - 1, 18u, input, this->mutable_int_value()))); - } else { - goto handle_unusual; - } - break; - } - - // repeated double double_value = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< - double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( - input, this->mutable_double_value()))); - } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (25 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( - 1, 26u, input, this->mutable_double_value()))); - } else { - goto handle_unusual; - } - break; - } - - // int64 value_num = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, &value_num_))); - } else { - goto handle_unusual; - } - break; - } - - // float boost = 5; - case 5: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (45 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( - input, &boost_))); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 6; - case 6: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_extra_params())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.TermQuery) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.TermQuery) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TermQuery::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.TermQuery) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string field_name = 1; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.TermQuery.field_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->field_name(), output); - } - - // repeated int64 int_value = 2; - if (this->int_value_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(2, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_int_value_cached_byte_size_.load( - std::memory_order_relaxed)); - } - for (int i = 0, n = this->int_value_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( - this->int_value(i), output); - } - - // repeated double double_value = 3; - if (this->double_value_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(3, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_double_value_cached_byte_size_.load( - std::memory_order_relaxed)); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleArray( - this->double_value().data(), this->double_value_size(), output); - } - - // int64 value_num = 4; - if (this->value_num() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(4, this->value_num(), output); - } - - // float boost = 5; - if (!(this->boost() <= 0 && this->boost() >= 0)) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(5, this->boost(), output); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 6; - for (unsigned int i = 0, - n = static_cast(this->extra_params_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, - this->extra_params(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.TermQuery) -} - -::PROTOBUF_NAMESPACE_ID::uint8* TermQuery::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.TermQuery) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string field_name = 1; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.TermQuery.field_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->field_name(), target); - } - - // repeated int64 int_value = 2; - if (this->int_value_size() > 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( - 2, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( - _int_value_cached_byte_size_.load(std::memory_order_relaxed), - target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->int_value_, target); - } - - // repeated double double_value = 3; - if (this->double_value_size() > 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( - 3, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( - _double_value_cached_byte_size_.load(std::memory_order_relaxed), - target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->double_value_, target); - } - - // int64 value_num = 4; - if (this->value_num() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->value_num(), target); - } - - // float boost = 5; - if (!(this->boost() <= 0 && this->boost() >= 0)) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->boost(), target); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 6; - for (unsigned int i = 0, - n = static_cast(this->extra_params_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, this->extra_params(static_cast(i)), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.TermQuery) - return target; -} - -size_t TermQuery::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.TermQuery) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated int64 int_value = 2; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int64Size(this->int_value_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _int_value_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated double double_value = 3; - { - unsigned int count = static_cast(this->double_value_size()); - size_t data_size = 8UL * count; - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _double_value_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 6; - { - unsigned int count = static_cast(this->extra_params_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->extra_params(static_cast(i))); - } - } - - // string field_name = 1; - if (this->field_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->field_name()); - } - - // int64 value_num = 4; - if (this->value_num() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->value_num()); - } - - // float boost = 5; - if (!(this->boost() <= 0 && this->boost() >= 0)) { - total_size += 1 + 4; - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TermQuery::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.TermQuery) - GOOGLE_DCHECK_NE(&from, this); - const TermQuery* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.TermQuery) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.TermQuery) - MergeFrom(*source); - } -} - -void TermQuery::MergeFrom(const TermQuery& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.TermQuery) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - int_value_.MergeFrom(from.int_value_); - double_value_.MergeFrom(from.double_value_); - extra_params_.MergeFrom(from.extra_params_); - if (from.field_name().size() > 0) { - - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - if (from.value_num() != 0) { - set_value_num(from.value_num()); - } - if (!(from.boost() <= 0 && from.boost() >= 0)) { - set_boost(from.boost()); - } -} - -void TermQuery::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.TermQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TermQuery::CopyFrom(const TermQuery& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.TermQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TermQuery::IsInitialized() const { - return true; -} - -void TermQuery::InternalSwap(TermQuery* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - int_value_.InternalSwap(&other->int_value_); - double_value_.InternalSwap(&other->double_value_); - CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); - field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(value_num_, other->value_num_); - swap(boost_, other->boost_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata TermQuery::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void CompareExpr::InitAsDefaultInstance() { -} -class CompareExpr::_Internal { - public: -}; - -CompareExpr::CompareExpr() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.CompareExpr) -} -CompareExpr::CompareExpr(const CompareExpr& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - operand_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.operand().empty()) { - operand_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.operand_); - } - operator__ = from.operator__; - // @@protoc_insertion_point(copy_constructor:milvus.grpc.CompareExpr) -} - -void CompareExpr::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CompareExpr_milvus_2eproto.base); - operand_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - operator__ = 0; -} - -CompareExpr::~CompareExpr() { - // @@protoc_insertion_point(destructor:milvus.grpc.CompareExpr) - SharedDtor(); -} - -void CompareExpr::SharedDtor() { - operand_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void CompareExpr::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CompareExpr& CompareExpr::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CompareExpr_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void CompareExpr::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.CompareExpr) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - operand_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - operator__ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CompareExpr::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.CompareOperator operator = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - set_operator_(static_cast<::milvus::grpc::CompareOperator>(val)); - } else goto handle_unusual; - continue; - // string operand = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_operand(), ptr, ctx, "milvus.grpc.CompareExpr.operand"); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CompareExpr::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.CompareExpr) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.grpc.CompareOperator operator = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_operator_(static_cast< ::milvus::grpc::CompareOperator >(value)); - } else { - goto handle_unusual; - } - break; - } - - // string operand = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_operand())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->operand().data(), static_cast(this->operand().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.CompareExpr.operand")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.CompareExpr) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.CompareExpr) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CompareExpr::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.CompareExpr) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.CompareOperator operator = 1; - if (this->operator_() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( - 1, this->operator_(), output); - } - - // string operand = 2; - if (this->operand().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->operand().data(), static_cast(this->operand().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.CompareExpr.operand"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->operand(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.CompareExpr) -} - -::PROTOBUF_NAMESPACE_ID::uint8* CompareExpr::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.CompareExpr) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.CompareOperator operator = 1; - if (this->operator_() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->operator_(), target); - } - - // string operand = 2; - if (this->operand().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->operand().data(), static_cast(this->operand().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.CompareExpr.operand"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 2, this->operand(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.CompareExpr) - return target; -} - -size_t CompareExpr::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.CompareExpr) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string operand = 2; - if (this->operand().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->operand()); - } - - // .milvus.grpc.CompareOperator operator = 1; - if (this->operator_() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->operator_()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CompareExpr::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.CompareExpr) - GOOGLE_DCHECK_NE(&from, this); - const CompareExpr* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.CompareExpr) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.CompareExpr) - MergeFrom(*source); - } -} - -void CompareExpr::MergeFrom(const CompareExpr& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.CompareExpr) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.operand().size() > 0) { - - operand_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.operand_); - } - if (from.operator_() != 0) { - set_operator_(from.operator_()); - } -} - -void CompareExpr::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.CompareExpr) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CompareExpr::CopyFrom(const CompareExpr& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.CompareExpr) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CompareExpr::IsInitialized() const { - return true; -} - -void CompareExpr::InternalSwap(CompareExpr* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - operand_.Swap(&other->operand_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(operator__, other->operator__); -} - -::PROTOBUF_NAMESPACE_ID::Metadata CompareExpr::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void RangeQuery::InitAsDefaultInstance() { -} -class RangeQuery::_Internal { - public: -}; - -RangeQuery::RangeQuery() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.RangeQuery) -} -RangeQuery::RangeQuery(const RangeQuery& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - operand_(from.operand_), - extra_params_(from.extra_params_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.field_name().empty()) { - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - boost_ = from.boost_; - // @@protoc_insertion_point(copy_constructor:milvus.grpc.RangeQuery) -} - -void RangeQuery::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RangeQuery_milvus_2eproto.base); - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - boost_ = 0; -} - -RangeQuery::~RangeQuery() { - // @@protoc_insertion_point(destructor:milvus.grpc.RangeQuery) - SharedDtor(); -} - -void RangeQuery::SharedDtor() { - field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void RangeQuery::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const RangeQuery& RangeQuery::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RangeQuery_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void RangeQuery::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.RangeQuery) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - operand_.Clear(); - extra_params_.Clear(); - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - boost_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* RangeQuery::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string field_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_field_name(), ptr, ctx, "milvus.grpc.RangeQuery.field_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.CompareExpr operand = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_operand(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); - } else goto handle_unusual; - continue; - // float boost = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) { - boost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_extra_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool RangeQuery::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.RangeQuery) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string field_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_field_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.RangeQuery.field_name")); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.grpc.CompareExpr operand = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_operand())); - } else { - goto handle_unusual; - } - break; - } - - // float boost = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (29 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( - input, &boost_))); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_extra_params())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.RangeQuery) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.RangeQuery) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void RangeQuery::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.RangeQuery) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string field_name = 1; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.RangeQuery.field_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->field_name(), output); - } - - // repeated .milvus.grpc.CompareExpr operand = 2; - for (unsigned int i = 0, - n = static_cast(this->operand_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, - this->operand(static_cast(i)), - output); - } - - // float boost = 3; - if (!(this->boost() <= 0 && this->boost() >= 0)) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(3, this->boost(), output); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - for (unsigned int i = 0, - n = static_cast(this->extra_params_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, - this->extra_params(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.RangeQuery) -} - -::PROTOBUF_NAMESPACE_ID::uint8* RangeQuery::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.RangeQuery) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string field_name = 1; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.RangeQuery.field_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->field_name(), target); - } - - // repeated .milvus.grpc.CompareExpr operand = 2; - for (unsigned int i = 0, - n = static_cast(this->operand_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->operand(static_cast(i)), target); - } - - // float boost = 3; - if (!(this->boost() <= 0 && this->boost() >= 0)) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->boost(), target); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - for (unsigned int i = 0, - n = static_cast(this->extra_params_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, this->extra_params(static_cast(i)), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.RangeQuery) - return target; -} - -size_t RangeQuery::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.RangeQuery) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.grpc.CompareExpr operand = 2; - { - unsigned int count = static_cast(this->operand_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->operand(static_cast(i))); - } - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - { - unsigned int count = static_cast(this->extra_params_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->extra_params(static_cast(i))); - } - } - - // string field_name = 1; - if (this->field_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->field_name()); - } - - // float boost = 3; - if (!(this->boost() <= 0 && this->boost() >= 0)) { - total_size += 1 + 4; - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void RangeQuery::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.RangeQuery) - GOOGLE_DCHECK_NE(&from, this); - const RangeQuery* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.RangeQuery) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.RangeQuery) - MergeFrom(*source); - } -} - -void RangeQuery::MergeFrom(const RangeQuery& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.RangeQuery) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - operand_.MergeFrom(from.operand_); - extra_params_.MergeFrom(from.extra_params_); - if (from.field_name().size() > 0) { - - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - if (!(from.boost() <= 0 && from.boost() >= 0)) { - set_boost(from.boost()); - } -} - -void RangeQuery::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.RangeQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RangeQuery::CopyFrom(const RangeQuery& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.RangeQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RangeQuery::IsInitialized() const { - return true; -} - -void RangeQuery::InternalSwap(RangeQuery* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&operand_)->InternalSwap(CastToBase(&other->operand_)); - CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); - field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(boost_, other->boost_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata RangeQuery::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void VectorQuery::InitAsDefaultInstance() { -} -class VectorQuery::_Internal { - public: -}; - -VectorQuery::VectorQuery() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.VectorQuery) -} -VectorQuery::VectorQuery(const VectorQuery& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - records_(from.records_), - extra_params_(from.extra_params_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.field_name().empty()) { - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - ::memcpy(&topk_, &from.topk_, - static_cast(reinterpret_cast(&query_boost_) - - reinterpret_cast(&topk_)) + sizeof(query_boost_)); - // @@protoc_insertion_point(copy_constructor:milvus.grpc.VectorQuery) -} - -void VectorQuery::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_VectorQuery_milvus_2eproto.base); - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&topk_, 0, static_cast( - reinterpret_cast(&query_boost_) - - reinterpret_cast(&topk_)) + sizeof(query_boost_)); -} - -VectorQuery::~VectorQuery() { - // @@protoc_insertion_point(destructor:milvus.grpc.VectorQuery) - SharedDtor(); -} - -void VectorQuery::SharedDtor() { - field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void VectorQuery::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const VectorQuery& VectorQuery::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VectorQuery_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void VectorQuery::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.VectorQuery) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - records_.Clear(); - extra_params_.Clear(); - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&topk_, 0, static_cast( - reinterpret_cast(&query_boost_) - - reinterpret_cast(&topk_)) + sizeof(query_boost_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* VectorQuery::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string field_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_field_name(), ptr, ctx, "milvus.grpc.VectorQuery.field_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // float query_boost = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) { - query_boost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.VectorRowRecord records = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_records(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); - } else goto handle_unusual; - continue; - // int64 topk = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - topk_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_extra_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 42); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool VectorQuery::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.VectorQuery) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string field_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_field_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.VectorQuery.field_name")); - } else { - goto handle_unusual; - } - break; - } - - // float query_boost = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (21 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( - input, &query_boost_))); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.grpc.VectorRowRecord records = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_records())); - } else { - goto handle_unusual; - } - break; - } - - // int64 topk = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, &topk_))); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - case 5: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_extra_params())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.VectorQuery) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.VectorQuery) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void VectorQuery::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.VectorQuery) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string field_name = 1; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.VectorQuery.field_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->field_name(), output); - } - - // float query_boost = 2; - if (!(this->query_boost() <= 0 && this->query_boost() >= 0)) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(2, this->query_boost(), output); - } - - // repeated .milvus.grpc.VectorRowRecord records = 3; - for (unsigned int i = 0, - n = static_cast(this->records_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, - this->records(static_cast(i)), - output); - } - - // int64 topk = 4; - if (this->topk() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(4, this->topk(), output); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, - n = static_cast(this->extra_params_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, - this->extra_params(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.VectorQuery) -} - -::PROTOBUF_NAMESPACE_ID::uint8* VectorQuery::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.VectorQuery) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string field_name = 1; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.VectorQuery.field_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->field_name(), target); - } - - // float query_boost = 2; - if (!(this->query_boost() <= 0 && this->query_boost() >= 0)) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->query_boost(), target); - } - - // repeated .milvus.grpc.VectorRowRecord records = 3; - for (unsigned int i = 0, - n = static_cast(this->records_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->records(static_cast(i)), target); - } - - // int64 topk = 4; - if (this->topk() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->topk(), target); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, - n = static_cast(this->extra_params_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, this->extra_params(static_cast(i)), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.VectorQuery) - return target; -} - -size_t VectorQuery::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.VectorQuery) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.grpc.VectorRowRecord records = 3; - { - unsigned int count = static_cast(this->records_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->records(static_cast(i))); - } - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - { - unsigned int count = static_cast(this->extra_params_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->extra_params(static_cast(i))); - } - } - - // string field_name = 1; - if (this->field_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->field_name()); - } - - // int64 topk = 4; - if (this->topk() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->topk()); - } - - // float query_boost = 2; - if (!(this->query_boost() <= 0 && this->query_boost() >= 0)) { - total_size += 1 + 4; - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void VectorQuery::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.VectorQuery) - GOOGLE_DCHECK_NE(&from, this); - const VectorQuery* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.VectorQuery) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.VectorQuery) - MergeFrom(*source); - } -} - -void VectorQuery::MergeFrom(const VectorQuery& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.VectorQuery) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - records_.MergeFrom(from.records_); - extra_params_.MergeFrom(from.extra_params_); - if (from.field_name().size() > 0) { - - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - if (from.topk() != 0) { - set_topk(from.topk()); - } - if (!(from.query_boost() <= 0 && from.query_boost() >= 0)) { - set_query_boost(from.query_boost()); - } -} - -void VectorQuery::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.VectorQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VectorQuery::CopyFrom(const VectorQuery& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.VectorQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VectorQuery::IsInitialized() const { - return true; -} - -void VectorQuery::InternalSwap(VectorQuery* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&records_)->InternalSwap(CastToBase(&other->records_)); - CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); - field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(topk_, other->topk_); - swap(query_boost_, other->query_boost_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata VectorQuery::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void BooleanQuery::InitAsDefaultInstance() { -} -class BooleanQuery::_Internal { - public: -}; - -BooleanQuery::BooleanQuery() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.BooleanQuery) -} -BooleanQuery::BooleanQuery(const BooleanQuery& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - general_query_(from.general_query_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - occur_ = from.occur_; - // @@protoc_insertion_point(copy_constructor:milvus.grpc.BooleanQuery) -} - -void BooleanQuery::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BooleanQuery_milvus_2eproto.base); - occur_ = 0; -} - -BooleanQuery::~BooleanQuery() { - // @@protoc_insertion_point(destructor:milvus.grpc.BooleanQuery) - SharedDtor(); -} - -void BooleanQuery::SharedDtor() { -} - -void BooleanQuery::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const BooleanQuery& BooleanQuery::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BooleanQuery_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void BooleanQuery::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.BooleanQuery) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - general_query_.Clear(); - occur_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* BooleanQuery::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Occur occur = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - set_occur(static_cast<::milvus::grpc::Occur>(val)); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.GeneralQuery general_query = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_general_query(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool BooleanQuery::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.BooleanQuery) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.grpc.Occur occur = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_occur(static_cast< ::milvus::grpc::Occur >(value)); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.grpc.GeneralQuery general_query = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_general_query())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.BooleanQuery) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.BooleanQuery) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void BooleanQuery::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.BooleanQuery) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Occur occur = 1; - if (this->occur() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( - 1, this->occur(), output); - } - - // repeated .milvus.grpc.GeneralQuery general_query = 2; - for (unsigned int i = 0, - n = static_cast(this->general_query_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, - this->general_query(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.BooleanQuery) -} - -::PROTOBUF_NAMESPACE_ID::uint8* BooleanQuery::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.BooleanQuery) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Occur occur = 1; - if (this->occur() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->occur(), target); - } - - // repeated .milvus.grpc.GeneralQuery general_query = 2; - for (unsigned int i = 0, - n = static_cast(this->general_query_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->general_query(static_cast(i)), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.BooleanQuery) - return target; -} - -size_t BooleanQuery::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.BooleanQuery) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.grpc.GeneralQuery general_query = 2; - { - unsigned int count = static_cast(this->general_query_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->general_query(static_cast(i))); - } - } - - // .milvus.grpc.Occur occur = 1; - if (this->occur() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->occur()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void BooleanQuery::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.BooleanQuery) - GOOGLE_DCHECK_NE(&from, this); - const BooleanQuery* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.BooleanQuery) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.BooleanQuery) - MergeFrom(*source); - } -} - -void BooleanQuery::MergeFrom(const BooleanQuery& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.BooleanQuery) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - general_query_.MergeFrom(from.general_query_); - if (from.occur() != 0) { - set_occur(from.occur()); - } -} - -void BooleanQuery::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.BooleanQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BooleanQuery::CopyFrom(const BooleanQuery& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.BooleanQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BooleanQuery::IsInitialized() const { - return true; -} - -void BooleanQuery::InternalSwap(BooleanQuery* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&general_query_)->InternalSwap(CastToBase(&other->general_query_)); - swap(occur_, other->occur_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata BooleanQuery::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void GeneralQuery::InitAsDefaultInstance() { - ::milvus::grpc::_GeneralQuery_default_instance_.boolean_query_ = const_cast< ::milvus::grpc::BooleanQuery*>( - ::milvus::grpc::BooleanQuery::internal_default_instance()); - ::milvus::grpc::_GeneralQuery_default_instance_.term_query_ = const_cast< ::milvus::grpc::TermQuery*>( - ::milvus::grpc::TermQuery::internal_default_instance()); - ::milvus::grpc::_GeneralQuery_default_instance_.range_query_ = const_cast< ::milvus::grpc::RangeQuery*>( - ::milvus::grpc::RangeQuery::internal_default_instance()); - ::milvus::grpc::_GeneralQuery_default_instance_.vector_query_ = const_cast< ::milvus::grpc::VectorQuery*>( - ::milvus::grpc::VectorQuery::internal_default_instance()); -} -class GeneralQuery::_Internal { - public: - static const ::milvus::grpc::BooleanQuery& boolean_query(const GeneralQuery* msg); - static const ::milvus::grpc::TermQuery& term_query(const GeneralQuery* msg); - static const ::milvus::grpc::RangeQuery& range_query(const GeneralQuery* msg); - static const ::milvus::grpc::VectorQuery& vector_query(const GeneralQuery* msg); -}; - -const ::milvus::grpc::BooleanQuery& -GeneralQuery::_Internal::boolean_query(const GeneralQuery* msg) { - return *msg->query_.boolean_query_; -} -const ::milvus::grpc::TermQuery& -GeneralQuery::_Internal::term_query(const GeneralQuery* msg) { - return *msg->query_.term_query_; -} -const ::milvus::grpc::RangeQuery& -GeneralQuery::_Internal::range_query(const GeneralQuery* msg) { - return *msg->query_.range_query_; -} -const ::milvus::grpc::VectorQuery& -GeneralQuery::_Internal::vector_query(const GeneralQuery* msg) { - return *msg->query_.vector_query_; -} -void GeneralQuery::set_allocated_boolean_query(::milvus::grpc::BooleanQuery* boolean_query) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - clear_query(); - if (boolean_query) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - boolean_query = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, boolean_query, submessage_arena); - } - set_has_boolean_query(); - query_.boolean_query_ = boolean_query; - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GeneralQuery.boolean_query) -} -void GeneralQuery::set_allocated_term_query(::milvus::grpc::TermQuery* term_query) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - clear_query(); - if (term_query) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - term_query = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, term_query, submessage_arena); - } - set_has_term_query(); - query_.term_query_ = term_query; - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GeneralQuery.term_query) -} -void GeneralQuery::set_allocated_range_query(::milvus::grpc::RangeQuery* range_query) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - clear_query(); - if (range_query) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - range_query = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, range_query, submessage_arena); - } - set_has_range_query(); - query_.range_query_ = range_query; - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GeneralQuery.range_query) -} -void GeneralQuery::set_allocated_vector_query(::milvus::grpc::VectorQuery* vector_query) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - clear_query(); - if (vector_query) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - vector_query = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, vector_query, submessage_arena); - } - set_has_vector_query(); - query_.vector_query_ = vector_query; - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GeneralQuery.vector_query) -} -GeneralQuery::GeneralQuery() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.GeneralQuery) -} -GeneralQuery::GeneralQuery(const GeneralQuery& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_query(); - switch (from.query_case()) { - case kBooleanQuery: { - mutable_boolean_query()->::milvus::grpc::BooleanQuery::MergeFrom(from.boolean_query()); - break; - } - case kTermQuery: { - mutable_term_query()->::milvus::grpc::TermQuery::MergeFrom(from.term_query()); - break; - } - case kRangeQuery: { - mutable_range_query()->::milvus::grpc::RangeQuery::MergeFrom(from.range_query()); - break; - } - case kVectorQuery: { - mutable_vector_query()->::milvus::grpc::VectorQuery::MergeFrom(from.vector_query()); - break; - } - case QUERY_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.GeneralQuery) -} - -void GeneralQuery::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BooleanQuery_milvus_2eproto.base); - clear_has_query(); -} - -GeneralQuery::~GeneralQuery() { - // @@protoc_insertion_point(destructor:milvus.grpc.GeneralQuery) - SharedDtor(); -} - -void GeneralQuery::SharedDtor() { - if (has_query()) { - clear_query(); - } -} - -void GeneralQuery::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GeneralQuery& GeneralQuery::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BooleanQuery_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void GeneralQuery::clear_query() { -// @@protoc_insertion_point(one_of_clear_start:milvus.grpc.GeneralQuery) - switch (query_case()) { - case kBooleanQuery: { - delete query_.boolean_query_; - break; - } - case kTermQuery: { - delete query_.term_query_; - break; - } - case kRangeQuery: { - delete query_.range_query_; - break; - } - case kVectorQuery: { - delete query_.vector_query_; - break; - } - case QUERY_NOT_SET: { - break; - } - } - _oneof_case_[0] = QUERY_NOT_SET; -} - - -void GeneralQuery::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.GeneralQuery) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_query(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GeneralQuery::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.BooleanQuery boolean_query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_boolean_query(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.grpc.TermQuery term_query = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(mutable_term_query(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.grpc.RangeQuery range_query = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ctx->ParseMessage(mutable_range_query(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.grpc.VectorQuery vector_query = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ctx->ParseMessage(mutable_vector_query(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GeneralQuery::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.GeneralQuery) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.grpc.BooleanQuery boolean_query = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_boolean_query())); - } else { - goto handle_unusual; - } - break; - } - - // .milvus.grpc.TermQuery term_query = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_term_query())); - } else { - goto handle_unusual; - } - break; - } - - // .milvus.grpc.RangeQuery range_query = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_range_query())); - } else { - goto handle_unusual; - } - break; - } - - // .milvus.grpc.VectorQuery vector_query = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_vector_query())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.GeneralQuery) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.GeneralQuery) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GeneralQuery::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.GeneralQuery) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.BooleanQuery boolean_query = 1; - if (has_boolean_query()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::boolean_query(this), output); - } - - // .milvus.grpc.TermQuery term_query = 2; - if (has_term_query()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, _Internal::term_query(this), output); - } - - // .milvus.grpc.RangeQuery range_query = 3; - if (has_range_query()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, _Internal::range_query(this), output); - } - - // .milvus.grpc.VectorQuery vector_query = 4; - if (has_vector_query()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, _Internal::vector_query(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.GeneralQuery) -} - -::PROTOBUF_NAMESPACE_ID::uint8* GeneralQuery::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.GeneralQuery) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.BooleanQuery boolean_query = 1; - if (has_boolean_query()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::boolean_query(this), target); - } - - // .milvus.grpc.TermQuery term_query = 2; - if (has_term_query()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, _Internal::term_query(this), target); - } - - // .milvus.grpc.RangeQuery range_query = 3; - if (has_range_query()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, _Internal::range_query(this), target); - } - - // .milvus.grpc.VectorQuery vector_query = 4; - if (has_vector_query()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, _Internal::vector_query(this), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.GeneralQuery) - return target; -} - -size_t GeneralQuery::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.GeneralQuery) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - switch (query_case()) { - // .milvus.grpc.BooleanQuery boolean_query = 1; - case kBooleanQuery: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *query_.boolean_query_); - break; - } - // .milvus.grpc.TermQuery term_query = 2; - case kTermQuery: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *query_.term_query_); - break; - } - // .milvus.grpc.RangeQuery range_query = 3; - case kRangeQuery: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *query_.range_query_); - break; - } - // .milvus.grpc.VectorQuery vector_query = 4; - case kVectorQuery: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *query_.vector_query_); - break; - } - case QUERY_NOT_SET: { - break; - } - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GeneralQuery::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.GeneralQuery) - GOOGLE_DCHECK_NE(&from, this); - const GeneralQuery* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.GeneralQuery) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.GeneralQuery) - MergeFrom(*source); - } -} - -void GeneralQuery::MergeFrom(const GeneralQuery& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.GeneralQuery) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.query_case()) { - case kBooleanQuery: { - mutable_boolean_query()->::milvus::grpc::BooleanQuery::MergeFrom(from.boolean_query()); - break; - } - case kTermQuery: { - mutable_term_query()->::milvus::grpc::TermQuery::MergeFrom(from.term_query()); - break; - } - case kRangeQuery: { - mutable_range_query()->::milvus::grpc::RangeQuery::MergeFrom(from.range_query()); - break; - } - case kVectorQuery: { - mutable_vector_query()->::milvus::grpc::VectorQuery::MergeFrom(from.vector_query()); - break; - } - case QUERY_NOT_SET: { - break; - } - } -} - -void GeneralQuery::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.GeneralQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GeneralQuery::CopyFrom(const GeneralQuery& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.GeneralQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GeneralQuery::IsInitialized() const { - return true; -} - -void GeneralQuery::InternalSwap(GeneralQuery* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(query_, other->query_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GeneralQuery::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void SearchParamPB::InitAsDefaultInstance() { - ::milvus::grpc::_SearchParamPB_default_instance_._instance.get_mutable()->general_query_ = const_cast< ::milvus::grpc::GeneralQuery*>( - ::milvus::grpc::GeneralQuery::internal_default_instance()); -} -class SearchParamPB::_Internal { - public: - static const ::milvus::grpc::GeneralQuery& general_query(const SearchParamPB* msg); -}; - -const ::milvus::grpc::GeneralQuery& -SearchParamPB::_Internal::general_query(const SearchParamPB* msg) { - return *msg->general_query_; -} -SearchParamPB::SearchParamPB() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.SearchParamPB) -} -SearchParamPB::SearchParamPB(const SearchParamPB& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - partition_tag_array_(from.partition_tag_array_), - extra_params_(from.extra_params_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.has_general_query()) { - general_query_ = new ::milvus::grpc::GeneralQuery(*from.general_query_); - } else { - general_query_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.SearchParamPB) -} - -void SearchParamPB::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SearchParamPB_milvus_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - general_query_ = nullptr; -} - -SearchParamPB::~SearchParamPB() { - // @@protoc_insertion_point(destructor:milvus.grpc.SearchParamPB) - SharedDtor(); -} - -void SearchParamPB::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete general_query_; -} - -void SearchParamPB::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SearchParamPB& SearchParamPB::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchParamPB_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void SearchParamPB::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.SearchParamPB) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - partition_tag_array_.Clear(); - extra_params_.Clear(); - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && general_query_ != nullptr) { - delete general_query_; - } - general_query_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SearchParamPB::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.SearchParamPB.collection_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated string partition_tag_array = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_partition_tag_array(), ptr, ctx, "milvus.grpc.SearchParamPB.partition_tag_array"); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); - } else goto handle_unusual; - continue; - // .milvus.grpc.GeneralQuery general_query = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ctx->ParseMessage(mutable_general_query(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_extra_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SearchParamPB::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.SearchParamPB) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string collection_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.SearchParamPB.collection_name")); - } else { - goto handle_unusual; - } - break; - } - - // repeated string partition_tag_array = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->add_partition_tag_array())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag_array(this->partition_tag_array_size() - 1).data(), - static_cast(this->partition_tag_array(this->partition_tag_array_size() - 1).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.SearchParamPB.partition_tag_array")); - } else { - goto handle_unusual; - } - break; - } - - // .milvus.grpc.GeneralQuery general_query = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_general_query())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_extra_params())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.SearchParamPB) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.SearchParamPB) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SearchParamPB::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.SearchParamPB) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchParamPB.collection_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // repeated string partition_tag_array = 2; - for (int i = 0, n = this->partition_tag_array_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag_array(i).data(), static_cast(this->partition_tag_array(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchParamPB.partition_tag_array"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( - 2, this->partition_tag_array(i), output); - } - - // .milvus.grpc.GeneralQuery general_query = 3; - if (this->has_general_query()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, _Internal::general_query(this), output); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - for (unsigned int i = 0, - n = static_cast(this->extra_params_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, - this->extra_params(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.SearchParamPB) -} - -::PROTOBUF_NAMESPACE_ID::uint8* SearchParamPB::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.SearchParamPB) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchParamPB.collection_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // repeated string partition_tag_array = 2; - for (int i = 0, n = this->partition_tag_array_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag_array(i).data(), static_cast(this->partition_tag_array(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchParamPB.partition_tag_array"); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteStringToArray(2, this->partition_tag_array(i), target); - } - - // .milvus.grpc.GeneralQuery general_query = 3; - if (this->has_general_query()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, _Internal::general_query(this), target); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - for (unsigned int i = 0, - n = static_cast(this->extra_params_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, this->extra_params(static_cast(i)), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SearchParamPB) - return target; -} - -size_t SearchParamPB::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.SearchParamPB) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated string partition_tag_array = 2; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->partition_tag_array_size()); - for (int i = 0, n = this->partition_tag_array_size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->partition_tag_array(i)); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - { - unsigned int count = static_cast(this->extra_params_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->extra_params(static_cast(i))); - } - } - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // .milvus.grpc.GeneralQuery general_query = 3; - if (this->has_general_query()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *general_query_); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SearchParamPB::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.SearchParamPB) - GOOGLE_DCHECK_NE(&from, this); - const SearchParamPB* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.SearchParamPB) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SearchParamPB) - MergeFrom(*source); - } -} - -void SearchParamPB::MergeFrom(const SearchParamPB& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.SearchParamPB) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - partition_tag_array_.MergeFrom(from.partition_tag_array_); - extra_params_.MergeFrom(from.extra_params_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.has_general_query()) { - mutable_general_query()->::milvus::grpc::GeneralQuery::MergeFrom(from.general_query()); - } -} - -void SearchParamPB::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.SearchParamPB) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SearchParamPB::CopyFrom(const SearchParamPB& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.SearchParamPB) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SearchParamPB::IsInitialized() const { - return true; -} - -void SearchParamPB::InternalSwap(SearchParamPB* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - partition_tag_array_.InternalSwap(CastToBase(&other->partition_tag_array_)); - CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(general_query_, other->general_query_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata SearchParamPB::GetMetadata() const { - return GetMetadataStatic(); -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace grpc -} // namespace milvus -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::milvus::grpc::KeyValuePair* Arena::CreateMaybeMessage< ::milvus::grpc::KeyValuePair >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::KeyValuePair >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::CollectionName* Arena::CreateMaybeMessage< ::milvus::grpc::CollectionName >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::CollectionName >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::CollectionNameList* Arena::CreateMaybeMessage< ::milvus::grpc::CollectionNameList >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::CollectionNameList >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::FieldName* Arena::CreateMaybeMessage< ::milvus::grpc::FieldName >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::FieldName >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::Mapping* Arena::CreateMaybeMessage< ::milvus::grpc::Mapping >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::Mapping >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::MappingList* Arena::CreateMaybeMessage< ::milvus::grpc::MappingList >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::MappingList >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::PartitionParam* Arena::CreateMaybeMessage< ::milvus::grpc::PartitionParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::PartitionParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::PartitionList* Arena::CreateMaybeMessage< ::milvus::grpc::PartitionList >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::PartitionList >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::VectorRowRecord* Arena::CreateMaybeMessage< ::milvus::grpc::VectorRowRecord >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::VectorRowRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::AttrRecord* Arena::CreateMaybeMessage< ::milvus::grpc::AttrRecord >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::AttrRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::VectorRecord* Arena::CreateMaybeMessage< ::milvus::grpc::VectorRecord >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::VectorRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::FieldValue* Arena::CreateMaybeMessage< ::milvus::grpc::FieldValue >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::FieldValue >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::InsertParam* Arena::CreateMaybeMessage< ::milvus::grpc::InsertParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::InsertParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::EntityIds* Arena::CreateMaybeMessage< ::milvus::grpc::EntityIds >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::EntityIds >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::VectorParam* Arena::CreateMaybeMessage< ::milvus::grpc::VectorParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::VectorParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::SearchParam* Arena::CreateMaybeMessage< ::milvus::grpc::SearchParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::SearchParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::SearchInSegmentParam* Arena::CreateMaybeMessage< ::milvus::grpc::SearchInSegmentParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::SearchInSegmentParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::Entities* Arena::CreateMaybeMessage< ::milvus::grpc::Entities >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::Entities >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::QueryResult* Arena::CreateMaybeMessage< ::milvus::grpc::QueryResult >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::QueryResult >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::StringReply* Arena::CreateMaybeMessage< ::milvus::grpc::StringReply >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::StringReply >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::BoolReply* Arena::CreateMaybeMessage< ::milvus::grpc::BoolReply >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::BoolReply >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::CollectionRowCount* Arena::CreateMaybeMessage< ::milvus::grpc::CollectionRowCount >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::CollectionRowCount >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::Command* Arena::CreateMaybeMessage< ::milvus::grpc::Command >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::Command >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::IndexParam* Arena::CreateMaybeMessage< ::milvus::grpc::IndexParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::IndexParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::FlushParam* Arena::CreateMaybeMessage< ::milvus::grpc::FlushParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::FlushParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::CompactParam* Arena::CreateMaybeMessage< ::milvus::grpc::CompactParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::CompactParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::DeleteByIDParam* Arena::CreateMaybeMessage< ::milvus::grpc::DeleteByIDParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::DeleteByIDParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::CollectionInfo* Arena::CreateMaybeMessage< ::milvus::grpc::CollectionInfo >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::CollectionInfo >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::GetEntityIDsParam* Arena::CreateMaybeMessage< ::milvus::grpc::GetEntityIDsParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::GetEntityIDsParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::EntityIdentity* Arena::CreateMaybeMessage< ::milvus::grpc::EntityIdentity >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::EntityIdentity >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::VectorFieldParam* Arena::CreateMaybeMessage< ::milvus::grpc::VectorFieldParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::VectorFieldParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::FieldType* Arena::CreateMaybeMessage< ::milvus::grpc::FieldType >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::FieldType >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::FieldParam* Arena::CreateMaybeMessage< ::milvus::grpc::FieldParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::FieldParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::VectorFieldRecord* Arena::CreateMaybeMessage< ::milvus::grpc::VectorFieldRecord >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::VectorFieldRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::TermQuery* Arena::CreateMaybeMessage< ::milvus::grpc::TermQuery >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::TermQuery >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::CompareExpr* Arena::CreateMaybeMessage< ::milvus::grpc::CompareExpr >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::CompareExpr >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::RangeQuery* Arena::CreateMaybeMessage< ::milvus::grpc::RangeQuery >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::RangeQuery >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::VectorQuery* Arena::CreateMaybeMessage< ::milvus::grpc::VectorQuery >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::VectorQuery >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::BooleanQuery* Arena::CreateMaybeMessage< ::milvus::grpc::BooleanQuery >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::BooleanQuery >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::GeneralQuery* Arena::CreateMaybeMessage< ::milvus::grpc::GeneralQuery >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::GeneralQuery >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::SearchParamPB* Arena::CreateMaybeMessage< ::milvus::grpc::SearchParamPB >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::SearchParamPB >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) -#include diff --git a/proxy/src/grpc/gen-milvus/milvus.pb.h b/proxy/src/grpc/gen-milvus/milvus.pb.h deleted file mode 100644 index e7d1f19122..0000000000 --- a/proxy/src/grpc/gen-milvus/milvus.pb.h +++ /dev/null @@ -1,11538 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: milvus.proto - -#ifndef GOOGLE_PROTOBUF_INCLUDED_milvus_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_milvus_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 -#include "status.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_milvus_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_milvus_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[41] - 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_milvus_2eproto; -namespace milvus { -namespace grpc { -class AttrRecord; -class AttrRecordDefaultTypeInternal; -extern AttrRecordDefaultTypeInternal _AttrRecord_default_instance_; -class BoolReply; -class BoolReplyDefaultTypeInternal; -extern BoolReplyDefaultTypeInternal _BoolReply_default_instance_; -class BooleanQuery; -class BooleanQueryDefaultTypeInternal; -extern BooleanQueryDefaultTypeInternal _BooleanQuery_default_instance_; -class CollectionInfo; -class CollectionInfoDefaultTypeInternal; -extern CollectionInfoDefaultTypeInternal _CollectionInfo_default_instance_; -class CollectionName; -class CollectionNameDefaultTypeInternal; -extern CollectionNameDefaultTypeInternal _CollectionName_default_instance_; -class CollectionNameList; -class CollectionNameListDefaultTypeInternal; -extern CollectionNameListDefaultTypeInternal _CollectionNameList_default_instance_; -class CollectionRowCount; -class CollectionRowCountDefaultTypeInternal; -extern CollectionRowCountDefaultTypeInternal _CollectionRowCount_default_instance_; -class Command; -class CommandDefaultTypeInternal; -extern CommandDefaultTypeInternal _Command_default_instance_; -class CompactParam; -class CompactParamDefaultTypeInternal; -extern CompactParamDefaultTypeInternal _CompactParam_default_instance_; -class CompareExpr; -class CompareExprDefaultTypeInternal; -extern CompareExprDefaultTypeInternal _CompareExpr_default_instance_; -class DeleteByIDParam; -class DeleteByIDParamDefaultTypeInternal; -extern DeleteByIDParamDefaultTypeInternal _DeleteByIDParam_default_instance_; -class Entities; -class EntitiesDefaultTypeInternal; -extern EntitiesDefaultTypeInternal _Entities_default_instance_; -class EntityIdentity; -class EntityIdentityDefaultTypeInternal; -extern EntityIdentityDefaultTypeInternal _EntityIdentity_default_instance_; -class EntityIds; -class EntityIdsDefaultTypeInternal; -extern EntityIdsDefaultTypeInternal _EntityIds_default_instance_; -class FieldName; -class FieldNameDefaultTypeInternal; -extern FieldNameDefaultTypeInternal _FieldName_default_instance_; -class FieldParam; -class FieldParamDefaultTypeInternal; -extern FieldParamDefaultTypeInternal _FieldParam_default_instance_; -class FieldType; -class FieldTypeDefaultTypeInternal; -extern FieldTypeDefaultTypeInternal _FieldType_default_instance_; -class FieldValue; -class FieldValueDefaultTypeInternal; -extern FieldValueDefaultTypeInternal _FieldValue_default_instance_; -class FlushParam; -class FlushParamDefaultTypeInternal; -extern FlushParamDefaultTypeInternal _FlushParam_default_instance_; -class GeneralQuery; -class GeneralQueryDefaultTypeInternal; -extern GeneralQueryDefaultTypeInternal _GeneralQuery_default_instance_; -class GetEntityIDsParam; -class GetEntityIDsParamDefaultTypeInternal; -extern GetEntityIDsParamDefaultTypeInternal _GetEntityIDsParam_default_instance_; -class IndexParam; -class IndexParamDefaultTypeInternal; -extern IndexParamDefaultTypeInternal _IndexParam_default_instance_; -class InsertParam; -class InsertParamDefaultTypeInternal; -extern InsertParamDefaultTypeInternal _InsertParam_default_instance_; -class KeyValuePair; -class KeyValuePairDefaultTypeInternal; -extern KeyValuePairDefaultTypeInternal _KeyValuePair_default_instance_; -class Mapping; -class MappingDefaultTypeInternal; -extern MappingDefaultTypeInternal _Mapping_default_instance_; -class MappingList; -class MappingListDefaultTypeInternal; -extern MappingListDefaultTypeInternal _MappingList_default_instance_; -class PartitionList; -class PartitionListDefaultTypeInternal; -extern PartitionListDefaultTypeInternal _PartitionList_default_instance_; -class PartitionParam; -class PartitionParamDefaultTypeInternal; -extern PartitionParamDefaultTypeInternal _PartitionParam_default_instance_; -class QueryResult; -class QueryResultDefaultTypeInternal; -extern QueryResultDefaultTypeInternal _QueryResult_default_instance_; -class RangeQuery; -class RangeQueryDefaultTypeInternal; -extern RangeQueryDefaultTypeInternal _RangeQuery_default_instance_; -class SearchInSegmentParam; -class SearchInSegmentParamDefaultTypeInternal; -extern SearchInSegmentParamDefaultTypeInternal _SearchInSegmentParam_default_instance_; -class SearchParam; -class SearchParamDefaultTypeInternal; -extern SearchParamDefaultTypeInternal _SearchParam_default_instance_; -class SearchParamPB; -class SearchParamPBDefaultTypeInternal; -extern SearchParamPBDefaultTypeInternal _SearchParamPB_default_instance_; -class StringReply; -class StringReplyDefaultTypeInternal; -extern StringReplyDefaultTypeInternal _StringReply_default_instance_; -class TermQuery; -class TermQueryDefaultTypeInternal; -extern TermQueryDefaultTypeInternal _TermQuery_default_instance_; -class VectorFieldParam; -class VectorFieldParamDefaultTypeInternal; -extern VectorFieldParamDefaultTypeInternal _VectorFieldParam_default_instance_; -class VectorFieldRecord; -class VectorFieldRecordDefaultTypeInternal; -extern VectorFieldRecordDefaultTypeInternal _VectorFieldRecord_default_instance_; -class VectorParam; -class VectorParamDefaultTypeInternal; -extern VectorParamDefaultTypeInternal _VectorParam_default_instance_; -class VectorQuery; -class VectorQueryDefaultTypeInternal; -extern VectorQueryDefaultTypeInternal _VectorQuery_default_instance_; -class VectorRecord; -class VectorRecordDefaultTypeInternal; -extern VectorRecordDefaultTypeInternal _VectorRecord_default_instance_; -class VectorRowRecord; -class VectorRowRecordDefaultTypeInternal; -extern VectorRowRecordDefaultTypeInternal _VectorRowRecord_default_instance_; -} // namespace grpc -} // namespace milvus -PROTOBUF_NAMESPACE_OPEN -template<> ::milvus::grpc::AttrRecord* Arena::CreateMaybeMessage<::milvus::grpc::AttrRecord>(Arena*); -template<> ::milvus::grpc::BoolReply* Arena::CreateMaybeMessage<::milvus::grpc::BoolReply>(Arena*); -template<> ::milvus::grpc::BooleanQuery* Arena::CreateMaybeMessage<::milvus::grpc::BooleanQuery>(Arena*); -template<> ::milvus::grpc::CollectionInfo* Arena::CreateMaybeMessage<::milvus::grpc::CollectionInfo>(Arena*); -template<> ::milvus::grpc::CollectionName* Arena::CreateMaybeMessage<::milvus::grpc::CollectionName>(Arena*); -template<> ::milvus::grpc::CollectionNameList* Arena::CreateMaybeMessage<::milvus::grpc::CollectionNameList>(Arena*); -template<> ::milvus::grpc::CollectionRowCount* Arena::CreateMaybeMessage<::milvus::grpc::CollectionRowCount>(Arena*); -template<> ::milvus::grpc::Command* Arena::CreateMaybeMessage<::milvus::grpc::Command>(Arena*); -template<> ::milvus::grpc::CompactParam* Arena::CreateMaybeMessage<::milvus::grpc::CompactParam>(Arena*); -template<> ::milvus::grpc::CompareExpr* Arena::CreateMaybeMessage<::milvus::grpc::CompareExpr>(Arena*); -template<> ::milvus::grpc::DeleteByIDParam* Arena::CreateMaybeMessage<::milvus::grpc::DeleteByIDParam>(Arena*); -template<> ::milvus::grpc::Entities* Arena::CreateMaybeMessage<::milvus::grpc::Entities>(Arena*); -template<> ::milvus::grpc::EntityIdentity* Arena::CreateMaybeMessage<::milvus::grpc::EntityIdentity>(Arena*); -template<> ::milvus::grpc::EntityIds* Arena::CreateMaybeMessage<::milvus::grpc::EntityIds>(Arena*); -template<> ::milvus::grpc::FieldName* Arena::CreateMaybeMessage<::milvus::grpc::FieldName>(Arena*); -template<> ::milvus::grpc::FieldParam* Arena::CreateMaybeMessage<::milvus::grpc::FieldParam>(Arena*); -template<> ::milvus::grpc::FieldType* Arena::CreateMaybeMessage<::milvus::grpc::FieldType>(Arena*); -template<> ::milvus::grpc::FieldValue* Arena::CreateMaybeMessage<::milvus::grpc::FieldValue>(Arena*); -template<> ::milvus::grpc::FlushParam* Arena::CreateMaybeMessage<::milvus::grpc::FlushParam>(Arena*); -template<> ::milvus::grpc::GeneralQuery* Arena::CreateMaybeMessage<::milvus::grpc::GeneralQuery>(Arena*); -template<> ::milvus::grpc::GetEntityIDsParam* Arena::CreateMaybeMessage<::milvus::grpc::GetEntityIDsParam>(Arena*); -template<> ::milvus::grpc::IndexParam* Arena::CreateMaybeMessage<::milvus::grpc::IndexParam>(Arena*); -template<> ::milvus::grpc::InsertParam* Arena::CreateMaybeMessage<::milvus::grpc::InsertParam>(Arena*); -template<> ::milvus::grpc::KeyValuePair* Arena::CreateMaybeMessage<::milvus::grpc::KeyValuePair>(Arena*); -template<> ::milvus::grpc::Mapping* Arena::CreateMaybeMessage<::milvus::grpc::Mapping>(Arena*); -template<> ::milvus::grpc::MappingList* Arena::CreateMaybeMessage<::milvus::grpc::MappingList>(Arena*); -template<> ::milvus::grpc::PartitionList* Arena::CreateMaybeMessage<::milvus::grpc::PartitionList>(Arena*); -template<> ::milvus::grpc::PartitionParam* Arena::CreateMaybeMessage<::milvus::grpc::PartitionParam>(Arena*); -template<> ::milvus::grpc::QueryResult* Arena::CreateMaybeMessage<::milvus::grpc::QueryResult>(Arena*); -template<> ::milvus::grpc::RangeQuery* Arena::CreateMaybeMessage<::milvus::grpc::RangeQuery>(Arena*); -template<> ::milvus::grpc::SearchInSegmentParam* Arena::CreateMaybeMessage<::milvus::grpc::SearchInSegmentParam>(Arena*); -template<> ::milvus::grpc::SearchParam* Arena::CreateMaybeMessage<::milvus::grpc::SearchParam>(Arena*); -template<> ::milvus::grpc::SearchParamPB* Arena::CreateMaybeMessage<::milvus::grpc::SearchParamPB>(Arena*); -template<> ::milvus::grpc::StringReply* Arena::CreateMaybeMessage<::milvus::grpc::StringReply>(Arena*); -template<> ::milvus::grpc::TermQuery* Arena::CreateMaybeMessage<::milvus::grpc::TermQuery>(Arena*); -template<> ::milvus::grpc::VectorFieldParam* Arena::CreateMaybeMessage<::milvus::grpc::VectorFieldParam>(Arena*); -template<> ::milvus::grpc::VectorFieldRecord* Arena::CreateMaybeMessage<::milvus::grpc::VectorFieldRecord>(Arena*); -template<> ::milvus::grpc::VectorParam* Arena::CreateMaybeMessage<::milvus::grpc::VectorParam>(Arena*); -template<> ::milvus::grpc::VectorQuery* Arena::CreateMaybeMessage<::milvus::grpc::VectorQuery>(Arena*); -template<> ::milvus::grpc::VectorRecord* Arena::CreateMaybeMessage<::milvus::grpc::VectorRecord>(Arena*); -template<> ::milvus::grpc::VectorRowRecord* Arena::CreateMaybeMessage<::milvus::grpc::VectorRowRecord>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace milvus { -namespace grpc { - -enum DataType : int { - NONE = 0, - BOOL = 1, - INT8 = 2, - INT16 = 3, - INT32 = 4, - INT64 = 5, - FLOAT = 10, - DOUBLE = 11, - STRING = 20, - VECTOR_BINARY = 100, - VECTOR_FLOAT = 101, - DataType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - DataType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() -}; -bool DataType_IsValid(int value); -constexpr DataType DataType_MIN = NONE; -constexpr DataType DataType_MAX = VECTOR_FLOAT; -constexpr int DataType_ARRAYSIZE = DataType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DataType_descriptor(); -template -inline const std::string& DataType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function DataType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - DataType_descriptor(), enum_t_value); -} -inline bool DataType_Parse( - const std::string& name, DataType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - DataType_descriptor(), name, value); -} -enum CompareOperator : int { - LT = 0, - LTE = 1, - EQ = 2, - GT = 3, - GTE = 4, - NE = 5, - CompareOperator_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - CompareOperator_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() -}; -bool CompareOperator_IsValid(int value); -constexpr CompareOperator CompareOperator_MIN = LT; -constexpr CompareOperator CompareOperator_MAX = NE; -constexpr int CompareOperator_ARRAYSIZE = CompareOperator_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CompareOperator_descriptor(); -template -inline const std::string& CompareOperator_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function CompareOperator_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - CompareOperator_descriptor(), enum_t_value); -} -inline bool CompareOperator_Parse( - const std::string& name, CompareOperator* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - CompareOperator_descriptor(), name, value); -} -enum Occur : int { - INVALID = 0, - MUST = 1, - SHOULD = 2, - MUST_NOT = 3, - Occur_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - Occur_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() -}; -bool Occur_IsValid(int value); -constexpr Occur Occur_MIN = INVALID; -constexpr Occur Occur_MAX = MUST_NOT; -constexpr int Occur_ARRAYSIZE = Occur_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Occur_descriptor(); -template -inline const std::string& Occur_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Occur_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - Occur_descriptor(), enum_t_value); -} -inline bool Occur_Parse( - const std::string& name, Occur* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - Occur_descriptor(), name, value); -} -// =================================================================== - -class KeyValuePair : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.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 = - 0; - - 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.grpc.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_milvus_2eproto); - return ::descriptor_table_milvus_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.grpc.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_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class CollectionName : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.CollectionName) */ { - public: - CollectionName(); - virtual ~CollectionName(); - - CollectionName(const CollectionName& from); - CollectionName(CollectionName&& from) noexcept - : CollectionName() { - *this = ::std::move(from); - } - - inline CollectionName& operator=(const CollectionName& from) { - CopyFrom(from); - return *this; - } - inline CollectionName& operator=(CollectionName&& 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 CollectionName& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CollectionName* internal_default_instance() { - return reinterpret_cast( - &_CollectionName_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(CollectionName& a, CollectionName& b) { - a.Swap(&b); - } - inline void Swap(CollectionName* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline CollectionName* New() const final { - return CreateMaybeMessage(nullptr); - } - - CollectionName* 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 CollectionName& from); - void MergeFrom(const CollectionName& 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(CollectionName* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.CollectionName"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCollectionNameFieldNumber = 1, - }; - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - - // @@protoc_insertion_point(class_scope:milvus.grpc.CollectionName) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class CollectionNameList : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.CollectionNameList) */ { - public: - CollectionNameList(); - virtual ~CollectionNameList(); - - CollectionNameList(const CollectionNameList& from); - CollectionNameList(CollectionNameList&& from) noexcept - : CollectionNameList() { - *this = ::std::move(from); - } - - inline CollectionNameList& operator=(const CollectionNameList& from) { - CopyFrom(from); - return *this; - } - inline CollectionNameList& operator=(CollectionNameList&& 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 CollectionNameList& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CollectionNameList* internal_default_instance() { - return reinterpret_cast( - &_CollectionNameList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(CollectionNameList& a, CollectionNameList& b) { - a.Swap(&b); - } - inline void Swap(CollectionNameList* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline CollectionNameList* New() const final { - return CreateMaybeMessage(nullptr); - } - - CollectionNameList* 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 CollectionNameList& from); - void MergeFrom(const CollectionNameList& 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(CollectionNameList* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.CollectionNameList"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCollectionNamesFieldNumber = 2, - kStatusFieldNumber = 1, - }; - // repeated string collection_names = 2; - int collection_names_size() const; - void clear_collection_names(); - const std::string& collection_names(int index) const; - std::string* mutable_collection_names(int index); - void set_collection_names(int index, const std::string& value); - void set_collection_names(int index, std::string&& value); - void set_collection_names(int index, const char* value); - void set_collection_names(int index, const char* value, size_t size); - std::string* add_collection_names(); - void add_collection_names(const std::string& value); - void add_collection_names(std::string&& value); - void add_collection_names(const char* value); - void add_collection_names(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& collection_names() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_collection_names(); - - // .milvus.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* release_status(); - ::milvus::grpc::Status* mutable_status(); - void set_allocated_status(::milvus::grpc::Status* status); - - // @@protoc_insertion_point(class_scope:milvus.grpc.CollectionNameList) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField collection_names_; - ::milvus::grpc::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class FieldName : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.FieldName) */ { - public: - FieldName(); - virtual ~FieldName(); - - FieldName(const FieldName& from); - FieldName(FieldName&& from) noexcept - : FieldName() { - *this = ::std::move(from); - } - - inline FieldName& operator=(const FieldName& from) { - CopyFrom(from); - return *this; - } - inline FieldName& operator=(FieldName&& 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 FieldName& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const FieldName* internal_default_instance() { - return reinterpret_cast( - &_FieldName_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(FieldName& a, FieldName& b) { - a.Swap(&b); - } - inline void Swap(FieldName* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline FieldName* New() const final { - return CreateMaybeMessage(nullptr); - } - - FieldName* 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 FieldName& from); - void MergeFrom(const FieldName& 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(FieldName* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.FieldName"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCollectionNameFieldNumber = 1, - kFieldNameFieldNumber = 2, - }; - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - - // string field_name = 2; - void clear_field_name(); - const std::string& field_name() const; - void set_field_name(const std::string& value); - void set_field_name(std::string&& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - std::string* mutable_field_name(); - std::string* release_field_name(); - void set_allocated_field_name(std::string* field_name); - - // @@protoc_insertion_point(class_scope:milvus.grpc.FieldName) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class Mapping : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Mapping) */ { - public: - Mapping(); - virtual ~Mapping(); - - Mapping(const Mapping& from); - Mapping(Mapping&& from) noexcept - : Mapping() { - *this = ::std::move(from); - } - - inline Mapping& operator=(const Mapping& from) { - CopyFrom(from); - return *this; - } - inline Mapping& operator=(Mapping&& 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 Mapping& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Mapping* internal_default_instance() { - return reinterpret_cast( - &_Mapping_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(Mapping& a, Mapping& b) { - a.Swap(&b); - } - inline void Swap(Mapping* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Mapping* New() const final { - return CreateMaybeMessage(nullptr); - } - - Mapping* 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 Mapping& from); - void MergeFrom(const Mapping& 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(Mapping* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.Mapping"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFieldsFieldNumber = 3, - kExtraParamsFieldNumber = 4, - kCollectionNameFieldNumber = 2, - kStatusFieldNumber = 1, - }; - // repeated .milvus.grpc.FieldParam fields = 3; - int fields_size() const; - void clear_fields(); - ::milvus::grpc::FieldParam* mutable_fields(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldParam >* - mutable_fields(); - const ::milvus::grpc::FieldParam& fields(int index) const; - ::milvus::grpc::FieldParam* add_fields(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldParam >& - fields() const; - - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - int extra_params_size() const; - void clear_extra_params(); - ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* - mutable_extra_params(); - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; - ::milvus::grpc::KeyValuePair* add_extra_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& - extra_params() const; - - // string collection_name = 2; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - - // .milvus.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* release_status(); - ::milvus::grpc::Status* mutable_status(); - void set_allocated_status(::milvus::grpc::Status* status); - - // @@protoc_insertion_point(class_scope:milvus.grpc.Mapping) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldParam > fields_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::milvus::grpc::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class MappingList : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.MappingList) */ { - public: - MappingList(); - virtual ~MappingList(); - - MappingList(const MappingList& from); - MappingList(MappingList&& from) noexcept - : MappingList() { - *this = ::std::move(from); - } - - inline MappingList& operator=(const MappingList& from) { - CopyFrom(from); - return *this; - } - inline MappingList& operator=(MappingList&& 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 MappingList& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const MappingList* internal_default_instance() { - return reinterpret_cast( - &_MappingList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(MappingList& a, MappingList& b) { - a.Swap(&b); - } - inline void Swap(MappingList* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MappingList* New() const final { - return CreateMaybeMessage(nullptr); - } - - MappingList* 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 MappingList& from); - void MergeFrom(const MappingList& 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(MappingList* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.MappingList"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMappingListFieldNumber = 2, - kStatusFieldNumber = 1, - }; - // repeated .milvus.grpc.Mapping mapping_list = 2; - int mapping_list_size() const; - void clear_mapping_list(); - ::milvus::grpc::Mapping* mutable_mapping_list(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::Mapping >* - mutable_mapping_list(); - const ::milvus::grpc::Mapping& mapping_list(int index) const; - ::milvus::grpc::Mapping* add_mapping_list(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::Mapping >& - mapping_list() const; - - // .milvus.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* release_status(); - ::milvus::grpc::Status* mutable_status(); - void set_allocated_status(::milvus::grpc::Status* status); - - // @@protoc_insertion_point(class_scope:milvus.grpc.MappingList) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::Mapping > mapping_list_; - ::milvus::grpc::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class PartitionParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.PartitionParam) */ { - public: - PartitionParam(); - virtual ~PartitionParam(); - - PartitionParam(const PartitionParam& from); - PartitionParam(PartitionParam&& from) noexcept - : PartitionParam() { - *this = ::std::move(from); - } - - inline PartitionParam& operator=(const PartitionParam& from) { - CopyFrom(from); - return *this; - } - inline PartitionParam& operator=(PartitionParam&& 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 PartitionParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PartitionParam* internal_default_instance() { - return reinterpret_cast( - &_PartitionParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(PartitionParam& a, PartitionParam& b) { - a.Swap(&b); - } - inline void Swap(PartitionParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PartitionParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - PartitionParam* 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 PartitionParam& from); - void MergeFrom(const PartitionParam& 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(PartitionParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.PartitionParam"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCollectionNameFieldNumber = 1, - kTagFieldNumber = 2, - }; - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - - // string tag = 2; - void clear_tag(); - const std::string& tag() const; - void set_tag(const std::string& value); - void set_tag(std::string&& value); - void set_tag(const char* value); - void set_tag(const char* value, size_t size); - std::string* mutable_tag(); - std::string* release_tag(); - void set_allocated_tag(std::string* tag); - - // @@protoc_insertion_point(class_scope:milvus.grpc.PartitionParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tag_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class PartitionList : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.PartitionList) */ { - public: - PartitionList(); - virtual ~PartitionList(); - - PartitionList(const PartitionList& from); - PartitionList(PartitionList&& from) noexcept - : PartitionList() { - *this = ::std::move(from); - } - - inline PartitionList& operator=(const PartitionList& from) { - CopyFrom(from); - return *this; - } - inline PartitionList& operator=(PartitionList&& 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 PartitionList& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PartitionList* internal_default_instance() { - return reinterpret_cast( - &_PartitionList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(PartitionList& a, PartitionList& b) { - a.Swap(&b); - } - inline void Swap(PartitionList* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PartitionList* New() const final { - return CreateMaybeMessage(nullptr); - } - - PartitionList* 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 PartitionList& from); - void MergeFrom(const PartitionList& 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(PartitionList* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.PartitionList"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartitionTagArrayFieldNumber = 2, - kStatusFieldNumber = 1, - }; - // repeated string partition_tag_array = 2; - int partition_tag_array_size() const; - void clear_partition_tag_array(); - const std::string& partition_tag_array(int index) const; - std::string* mutable_partition_tag_array(int index); - void set_partition_tag_array(int index, const std::string& value); - void set_partition_tag_array(int index, std::string&& value); - void set_partition_tag_array(int index, const char* value); - void set_partition_tag_array(int index, const char* value, size_t size); - std::string* add_partition_tag_array(); - void add_partition_tag_array(const std::string& value); - void add_partition_tag_array(std::string&& value); - void add_partition_tag_array(const char* value); - void add_partition_tag_array(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& partition_tag_array() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_partition_tag_array(); - - // .milvus.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* release_status(); - ::milvus::grpc::Status* mutable_status(); - void set_allocated_status(::milvus::grpc::Status* status); - - // @@protoc_insertion_point(class_scope:milvus.grpc.PartitionList) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField partition_tag_array_; - ::milvus::grpc::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class VectorRowRecord : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorRowRecord) */ { - public: - VectorRowRecord(); - virtual ~VectorRowRecord(); - - VectorRowRecord(const VectorRowRecord& from); - VectorRowRecord(VectorRowRecord&& from) noexcept - : VectorRowRecord() { - *this = ::std::move(from); - } - - inline VectorRowRecord& operator=(const VectorRowRecord& from) { - CopyFrom(from); - return *this; - } - inline VectorRowRecord& operator=(VectorRowRecord&& 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 VectorRowRecord& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const VectorRowRecord* internal_default_instance() { - return reinterpret_cast( - &_VectorRowRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(VectorRowRecord& a, VectorRowRecord& b) { - a.Swap(&b); - } - inline void Swap(VectorRowRecord* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline VectorRowRecord* New() const final { - return CreateMaybeMessage(nullptr); - } - - VectorRowRecord* 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 VectorRowRecord& from); - void MergeFrom(const VectorRowRecord& 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(VectorRowRecord* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.VectorRowRecord"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFloatDataFieldNumber = 1, - kBinaryDataFieldNumber = 2, - }; - // repeated float float_data = 1; - int float_data_size() const; - void clear_float_data(); - float float_data(int index) const; - void set_float_data(int index, float value); - void add_float_data(float value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& - float_data() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* - mutable_float_data(); - - // bytes binary_data = 2; - void clear_binary_data(); - const std::string& binary_data() const; - void set_binary_data(const std::string& value); - void set_binary_data(std::string&& value); - void set_binary_data(const char* value); - void set_binary_data(const void* value, size_t size); - std::string* mutable_binary_data(); - std::string* release_binary_data(); - void set_allocated_binary_data(std::string* binary_data); - - // @@protoc_insertion_point(class_scope:milvus.grpc.VectorRowRecord) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > float_data_; - mutable std::atomic _float_data_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr binary_data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class AttrRecord : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.AttrRecord) */ { - public: - AttrRecord(); - virtual ~AttrRecord(); - - AttrRecord(const AttrRecord& from); - AttrRecord(AttrRecord&& from) noexcept - : AttrRecord() { - *this = ::std::move(from); - } - - inline AttrRecord& operator=(const AttrRecord& from) { - CopyFrom(from); - return *this; - } - inline AttrRecord& operator=(AttrRecord&& 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 AttrRecord& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AttrRecord* internal_default_instance() { - return reinterpret_cast( - &_AttrRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - friend void swap(AttrRecord& a, AttrRecord& b) { - a.Swap(&b); - } - inline void Swap(AttrRecord* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline AttrRecord* New() const final { - return CreateMaybeMessage(nullptr); - } - - AttrRecord* 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 AttrRecord& from); - void MergeFrom(const AttrRecord& 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(AttrRecord* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.AttrRecord"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kInt32ValueFieldNumber = 1, - kInt64ValueFieldNumber = 2, - kFloatValueFieldNumber = 3, - kDoubleValueFieldNumber = 4, - }; - // repeated int32 int32_value = 1; - int int32_value_size() const; - void clear_int32_value(); - ::PROTOBUF_NAMESPACE_ID::int32 int32_value(int index) const; - void set_int32_value(int index, ::PROTOBUF_NAMESPACE_ID::int32 value); - void add_int32_value(::PROTOBUF_NAMESPACE_ID::int32 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& - int32_value() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* - mutable_int32_value(); - - // repeated int64 int64_value = 2; - int int64_value_size() const; - void clear_int64_value(); - ::PROTOBUF_NAMESPACE_ID::int64 int64_value(int index) const; - void set_int64_value(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); - void add_int64_value(::PROTOBUF_NAMESPACE_ID::int64 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - int64_value() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - mutable_int64_value(); - - // repeated float float_value = 3; - int float_value_size() const; - void clear_float_value(); - float float_value(int index) const; - void set_float_value(int index, float value); - void add_float_value(float value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& - float_value() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* - mutable_float_value(); - - // repeated double double_value = 4; - int double_value_size() const; - void clear_double_value(); - double double_value(int index) const; - void set_double_value(int index, double value); - void add_double_value(double value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - double_value() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - mutable_double_value(); - - // @@protoc_insertion_point(class_scope:milvus.grpc.AttrRecord) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > int32_value_; - mutable std::atomic _int32_value_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > int64_value_; - mutable std::atomic _int64_value_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > float_value_; - mutable std::atomic _float_value_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > double_value_; - mutable std::atomic _double_value_cached_byte_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class VectorRecord : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorRecord) */ { - public: - VectorRecord(); - virtual ~VectorRecord(); - - VectorRecord(const VectorRecord& from); - VectorRecord(VectorRecord&& from) noexcept - : VectorRecord() { - *this = ::std::move(from); - } - - inline VectorRecord& operator=(const VectorRecord& from) { - CopyFrom(from); - return *this; - } - inline VectorRecord& operator=(VectorRecord&& 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 VectorRecord& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const VectorRecord* internal_default_instance() { - return reinterpret_cast( - &_VectorRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - friend void swap(VectorRecord& a, VectorRecord& b) { - a.Swap(&b); - } - inline void Swap(VectorRecord* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline VectorRecord* New() const final { - return CreateMaybeMessage(nullptr); - } - - VectorRecord* 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 VectorRecord& from); - void MergeFrom(const VectorRecord& 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(VectorRecord* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.VectorRecord"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRecordsFieldNumber = 1, - }; - // repeated .milvus.grpc.VectorRowRecord records = 1; - int records_size() const; - void clear_records(); - ::milvus::grpc::VectorRowRecord* mutable_records(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* - mutable_records(); - const ::milvus::grpc::VectorRowRecord& records(int index) const; - ::milvus::grpc::VectorRowRecord* add_records(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& - records() const; - - // @@protoc_insertion_point(class_scope:milvus.grpc.VectorRecord) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord > records_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class FieldValue : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.FieldValue) */ { - public: - FieldValue(); - virtual ~FieldValue(); - - FieldValue(const FieldValue& from); - FieldValue(FieldValue&& from) noexcept - : FieldValue() { - *this = ::std::move(from); - } - - inline FieldValue& operator=(const FieldValue& from) { - CopyFrom(from); - return *this; - } - inline FieldValue& operator=(FieldValue&& 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 FieldValue& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const FieldValue* internal_default_instance() { - return reinterpret_cast( - &_FieldValue_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - friend void swap(FieldValue& a, FieldValue& b) { - a.Swap(&b); - } - inline void Swap(FieldValue* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline FieldValue* New() const final { - return CreateMaybeMessage(nullptr); - } - - FieldValue* 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 FieldValue& from); - void MergeFrom(const FieldValue& 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(FieldValue* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.FieldValue"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFieldNameFieldNumber = 1, - kAttrRecordFieldNumber = 3, - kVectorRecordFieldNumber = 4, - kTypeFieldNumber = 2, - }; - // string field_name = 1; - void clear_field_name(); - const std::string& field_name() const; - void set_field_name(const std::string& value); - void set_field_name(std::string&& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - std::string* mutable_field_name(); - std::string* release_field_name(); - void set_allocated_field_name(std::string* field_name); - - // .milvus.grpc.AttrRecord attr_record = 3; - bool has_attr_record() const; - void clear_attr_record(); - const ::milvus::grpc::AttrRecord& attr_record() const; - ::milvus::grpc::AttrRecord* release_attr_record(); - ::milvus::grpc::AttrRecord* mutable_attr_record(); - void set_allocated_attr_record(::milvus::grpc::AttrRecord* attr_record); - - // .milvus.grpc.VectorRecord vector_record = 4; - bool has_vector_record() const; - void clear_vector_record(); - const ::milvus::grpc::VectorRecord& vector_record() const; - ::milvus::grpc::VectorRecord* release_vector_record(); - ::milvus::grpc::VectorRecord* mutable_vector_record(); - void set_allocated_vector_record(::milvus::grpc::VectorRecord* vector_record); - - // .milvus.grpc.DataType type = 2; - void clear_type(); - ::milvus::grpc::DataType type() const; - void set_type(::milvus::grpc::DataType value); - - // @@protoc_insertion_point(class_scope:milvus.grpc.FieldValue) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; - ::milvus::grpc::AttrRecord* attr_record_; - ::milvus::grpc::VectorRecord* vector_record_; - int type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class InsertParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.InsertParam) */ { - public: - InsertParam(); - virtual ~InsertParam(); - - InsertParam(const InsertParam& from); - InsertParam(InsertParam&& from) noexcept - : InsertParam() { - *this = ::std::move(from); - } - - inline InsertParam& operator=(const InsertParam& from) { - CopyFrom(from); - return *this; - } - inline InsertParam& operator=(InsertParam&& 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 InsertParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const InsertParam* internal_default_instance() { - return reinterpret_cast( - &_InsertParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(InsertParam& a, InsertParam& b) { - a.Swap(&b); - } - inline void Swap(InsertParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline InsertParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - InsertParam* 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 InsertParam& from); - void MergeFrom(const InsertParam& 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(InsertParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.InsertParam"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFieldsFieldNumber = 2, - kEntityIdArrayFieldNumber = 3, - kExtraParamsFieldNumber = 5, - kCollectionNameFieldNumber = 1, - kPartitionTagFieldNumber = 4, - }; - // repeated .milvus.grpc.FieldValue fields = 2; - int fields_size() const; - void clear_fields(); - ::milvus::grpc::FieldValue* mutable_fields(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldValue >* - mutable_fields(); - const ::milvus::grpc::FieldValue& fields(int index) const; - ::milvus::grpc::FieldValue* add_fields(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldValue >& - fields() const; - - // repeated int64 entity_id_array = 3; - int entity_id_array_size() const; - void clear_entity_id_array(); - ::PROTOBUF_NAMESPACE_ID::int64 entity_id_array(int index) const; - void set_entity_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); - void add_entity_id_array(::PROTOBUF_NAMESPACE_ID::int64 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - entity_id_array() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - mutable_entity_id_array(); - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - int extra_params_size() const; - void clear_extra_params(); - ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* - mutable_extra_params(); - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; - ::milvus::grpc::KeyValuePair* add_extra_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& - extra_params() const; - - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - - // string partition_tag = 4; - void clear_partition_tag(); - const std::string& partition_tag() const; - void set_partition_tag(const std::string& value); - void set_partition_tag(std::string&& value); - void set_partition_tag(const char* value); - void set_partition_tag(const char* value, size_t size); - std::string* mutable_partition_tag(); - std::string* release_partition_tag(); - void set_allocated_partition_tag(std::string* partition_tag); - - // @@protoc_insertion_point(class_scope:milvus.grpc.InsertParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldValue > fields_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > entity_id_array_; - mutable std::atomic _entity_id_array_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr partition_tag_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class EntityIds : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.EntityIds) */ { - public: - EntityIds(); - virtual ~EntityIds(); - - EntityIds(const EntityIds& from); - EntityIds(EntityIds&& from) noexcept - : EntityIds() { - *this = ::std::move(from); - } - - inline EntityIds& operator=(const EntityIds& from) { - CopyFrom(from); - return *this; - } - inline EntityIds& operator=(EntityIds&& 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 EntityIds& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const EntityIds* internal_default_instance() { - return reinterpret_cast( - &_EntityIds_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - friend void swap(EntityIds& a, EntityIds& b) { - a.Swap(&b); - } - inline void Swap(EntityIds* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline EntityIds* New() const final { - return CreateMaybeMessage(nullptr); - } - - EntityIds* 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 EntityIds& from); - void MergeFrom(const EntityIds& 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(EntityIds* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.EntityIds"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kEntityIdArrayFieldNumber = 2, - kStatusFieldNumber = 1, - }; - // repeated int64 entity_id_array = 2; - int entity_id_array_size() const; - void clear_entity_id_array(); - ::PROTOBUF_NAMESPACE_ID::int64 entity_id_array(int index) const; - void set_entity_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); - void add_entity_id_array(::PROTOBUF_NAMESPACE_ID::int64 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - entity_id_array() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - mutable_entity_id_array(); - - // .milvus.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* release_status(); - ::milvus::grpc::Status* mutable_status(); - void set_allocated_status(::milvus::grpc::Status* status); - - // @@protoc_insertion_point(class_scope:milvus.grpc.EntityIds) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > entity_id_array_; - mutable std::atomic _entity_id_array_cached_byte_size_; - ::milvus::grpc::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class VectorParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorParam) */ { - public: - VectorParam(); - virtual ~VectorParam(); - - VectorParam(const VectorParam& from); - VectorParam(VectorParam&& from) noexcept - : VectorParam() { - *this = ::std::move(from); - } - - inline VectorParam& operator=(const VectorParam& from) { - CopyFrom(from); - return *this; - } - inline VectorParam& operator=(VectorParam&& 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 VectorParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const VectorParam* internal_default_instance() { - return reinterpret_cast( - &_VectorParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - friend void swap(VectorParam& a, VectorParam& b) { - a.Swap(&b); - } - inline void Swap(VectorParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline VectorParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - VectorParam* 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 VectorParam& from); - void MergeFrom(const VectorParam& 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(VectorParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.VectorParam"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kJsonFieldNumber = 1, - kRowRecordFieldNumber = 2, - }; - // string json = 1; - void clear_json(); - const std::string& json() const; - void set_json(const std::string& value); - void set_json(std::string&& value); - void set_json(const char* value); - void set_json(const char* value, size_t size); - std::string* mutable_json(); - std::string* release_json(); - void set_allocated_json(std::string* json); - - // .milvus.grpc.VectorRecord row_record = 2; - bool has_row_record() const; - void clear_row_record(); - const ::milvus::grpc::VectorRecord& row_record() const; - ::milvus::grpc::VectorRecord* release_row_record(); - ::milvus::grpc::VectorRecord* mutable_row_record(); - void set_allocated_row_record(::milvus::grpc::VectorRecord* row_record); - - // @@protoc_insertion_point(class_scope:milvus.grpc.VectorParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr json_; - ::milvus::grpc::VectorRecord* row_record_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class SearchParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchParam) */ { - public: - SearchParam(); - virtual ~SearchParam(); - - SearchParam(const SearchParam& from); - SearchParam(SearchParam&& from) noexcept - : SearchParam() { - *this = ::std::move(from); - } - - inline SearchParam& operator=(const SearchParam& from) { - CopyFrom(from); - return *this; - } - inline SearchParam& operator=(SearchParam&& 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 SearchParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SearchParam* internal_default_instance() { - return reinterpret_cast( - &_SearchParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - friend void swap(SearchParam& a, SearchParam& b) { - a.Swap(&b); - } - inline void Swap(SearchParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline SearchParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - SearchParam* 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 SearchParam& from); - void MergeFrom(const SearchParam& 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(SearchParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.SearchParam"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartitionTagArrayFieldNumber = 2, - kVectorParamFieldNumber = 3, - kExtraParamsFieldNumber = 5, - kCollectionNameFieldNumber = 1, - kDslFieldNumber = 4, - }; - // repeated string partition_tag_array = 2; - int partition_tag_array_size() const; - void clear_partition_tag_array(); - const std::string& partition_tag_array(int index) const; - std::string* mutable_partition_tag_array(int index); - void set_partition_tag_array(int index, const std::string& value); - void set_partition_tag_array(int index, std::string&& value); - void set_partition_tag_array(int index, const char* value); - void set_partition_tag_array(int index, const char* value, size_t size); - std::string* add_partition_tag_array(); - void add_partition_tag_array(const std::string& value); - void add_partition_tag_array(std::string&& value); - void add_partition_tag_array(const char* value); - void add_partition_tag_array(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& partition_tag_array() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_partition_tag_array(); - - // repeated .milvus.grpc.VectorParam vector_param = 3; - int vector_param_size() const; - void clear_vector_param(); - ::milvus::grpc::VectorParam* mutable_vector_param(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorParam >* - mutable_vector_param(); - const ::milvus::grpc::VectorParam& vector_param(int index) const; - ::milvus::grpc::VectorParam* add_vector_param(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorParam >& - vector_param() const; - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - int extra_params_size() const; - void clear_extra_params(); - ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* - mutable_extra_params(); - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; - ::milvus::grpc::KeyValuePair* add_extra_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& - extra_params() const; - - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - - // string dsl = 4; - void clear_dsl(); - const std::string& dsl() const; - void set_dsl(const std::string& value); - void set_dsl(std::string&& value); - void set_dsl(const char* value); - void set_dsl(const char* value, size_t size); - std::string* mutable_dsl(); - std::string* release_dsl(); - void set_allocated_dsl(std::string* dsl); - - // @@protoc_insertion_point(class_scope:milvus.grpc.SearchParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField partition_tag_array_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorParam > vector_param_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dsl_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class SearchInSegmentParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchInSegmentParam) */ { - public: - SearchInSegmentParam(); - virtual ~SearchInSegmentParam(); - - SearchInSegmentParam(const SearchInSegmentParam& from); - SearchInSegmentParam(SearchInSegmentParam&& from) noexcept - : SearchInSegmentParam() { - *this = ::std::move(from); - } - - inline SearchInSegmentParam& operator=(const SearchInSegmentParam& from) { - CopyFrom(from); - return *this; - } - inline SearchInSegmentParam& operator=(SearchInSegmentParam&& 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 SearchInSegmentParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SearchInSegmentParam* internal_default_instance() { - return reinterpret_cast( - &_SearchInSegmentParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - friend void swap(SearchInSegmentParam& a, SearchInSegmentParam& b) { - a.Swap(&b); - } - inline void Swap(SearchInSegmentParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline SearchInSegmentParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - SearchInSegmentParam* 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 SearchInSegmentParam& from); - void MergeFrom(const SearchInSegmentParam& 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(SearchInSegmentParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.SearchInSegmentParam"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFileIdArrayFieldNumber = 1, - kSearchParamFieldNumber = 2, - }; - // repeated string file_id_array = 1; - int file_id_array_size() const; - void clear_file_id_array(); - const std::string& file_id_array(int index) const; - std::string* mutable_file_id_array(int index); - void set_file_id_array(int index, const std::string& value); - void set_file_id_array(int index, std::string&& value); - void set_file_id_array(int index, const char* value); - void set_file_id_array(int index, const char* value, size_t size); - std::string* add_file_id_array(); - void add_file_id_array(const std::string& value); - void add_file_id_array(std::string&& value); - void add_file_id_array(const char* value); - void add_file_id_array(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& file_id_array() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_file_id_array(); - - // .milvus.grpc.SearchParam search_param = 2; - bool has_search_param() const; - void clear_search_param(); - const ::milvus::grpc::SearchParam& search_param() const; - ::milvus::grpc::SearchParam* release_search_param(); - ::milvus::grpc::SearchParam* mutable_search_param(); - void set_allocated_search_param(::milvus::grpc::SearchParam* search_param); - - // @@protoc_insertion_point(class_scope:milvus.grpc.SearchInSegmentParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField file_id_array_; - ::milvus::grpc::SearchParam* search_param_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class Entities : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Entities) */ { - public: - Entities(); - virtual ~Entities(); - - Entities(const Entities& from); - Entities(Entities&& from) noexcept - : Entities() { - *this = ::std::move(from); - } - - inline Entities& operator=(const Entities& from) { - CopyFrom(from); - return *this; - } - inline Entities& operator=(Entities&& 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 Entities& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Entities* internal_default_instance() { - return reinterpret_cast( - &_Entities_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - friend void swap(Entities& a, Entities& b) { - a.Swap(&b); - } - inline void Swap(Entities* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Entities* New() const final { - return CreateMaybeMessage(nullptr); - } - - Entities* 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 Entities& from); - void MergeFrom(const Entities& 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(Entities* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.Entities"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIdsFieldNumber = 2, - kValidRowFieldNumber = 3, - kFieldsFieldNumber = 4, - kStatusFieldNumber = 1, - }; - // repeated int64 ids = 2; - int ids_size() const; - void clear_ids(); - ::PROTOBUF_NAMESPACE_ID::int64 ids(int index) const; - void set_ids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); - void add_ids(::PROTOBUF_NAMESPACE_ID::int64 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - ids() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - mutable_ids(); - - // repeated bool valid_row = 3; - int valid_row_size() const; - void clear_valid_row(); - bool valid_row(int index) const; - void set_valid_row(int index, bool value); - void add_valid_row(bool value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >& - valid_row() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >* - mutable_valid_row(); - - // repeated .milvus.grpc.FieldValue fields = 4; - int fields_size() const; - void clear_fields(); - ::milvus::grpc::FieldValue* mutable_fields(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldValue >* - mutable_fields(); - const ::milvus::grpc::FieldValue& fields(int index) const; - ::milvus::grpc::FieldValue* add_fields(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldValue >& - fields() const; - - // .milvus.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* release_status(); - ::milvus::grpc::Status* mutable_status(); - void set_allocated_status(::milvus::grpc::Status* status); - - // @@protoc_insertion_point(class_scope:milvus.grpc.Entities) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > ids_; - mutable std::atomic _ids_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool > valid_row_; - mutable std::atomic _valid_row_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldValue > fields_; - ::milvus::grpc::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class QueryResult : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.QueryResult) */ { - public: - QueryResult(); - virtual ~QueryResult(); - - QueryResult(const QueryResult& from); - QueryResult(QueryResult&& from) noexcept - : QueryResult() { - *this = ::std::move(from); - } - - inline QueryResult& operator=(const QueryResult& from) { - CopyFrom(from); - return *this; - } - inline QueryResult& operator=(QueryResult&& 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 QueryResult& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const QueryResult* internal_default_instance() { - return reinterpret_cast( - &_QueryResult_default_instance_); - } - static constexpr int kIndexInFileMessages = - 18; - - friend void swap(QueryResult& a, QueryResult& b) { - a.Swap(&b); - } - inline void Swap(QueryResult* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline QueryResult* New() const final { - return CreateMaybeMessage(nullptr); - } - - QueryResult* 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 QueryResult& from); - void MergeFrom(const QueryResult& 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(QueryResult* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.QueryResult"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kScoresFieldNumber = 4, - kDistancesFieldNumber = 5, - kExtraParamsFieldNumber = 6, - kStatusFieldNumber = 1, - kEntitiesFieldNumber = 2, - kRowNumFieldNumber = 3, - }; - // repeated float scores = 4; - int scores_size() const; - void clear_scores(); - float scores(int index) const; - void set_scores(int index, float value); - void add_scores(float value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& - scores() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* - mutable_scores(); - - // repeated float distances = 5; - int distances_size() const; - void clear_distances(); - float distances(int index) const; - void set_distances(int index, float value); - void add_distances(float value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& - distances() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* - mutable_distances(); - - // repeated .milvus.grpc.KeyValuePair extra_params = 6; - int extra_params_size() const; - void clear_extra_params(); - ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* - mutable_extra_params(); - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; - ::milvus::grpc::KeyValuePair* add_extra_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& - extra_params() const; - - // .milvus.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* release_status(); - ::milvus::grpc::Status* mutable_status(); - void set_allocated_status(::milvus::grpc::Status* status); - - // .milvus.grpc.Entities entities = 2; - bool has_entities() const; - void clear_entities(); - const ::milvus::grpc::Entities& entities() const; - ::milvus::grpc::Entities* release_entities(); - ::milvus::grpc::Entities* mutable_entities(); - void set_allocated_entities(::milvus::grpc::Entities* entities); - - // int64 row_num = 3; - void clear_row_num(); - ::PROTOBUF_NAMESPACE_ID::int64 row_num() const; - void set_row_num(::PROTOBUF_NAMESPACE_ID::int64 value); - - // @@protoc_insertion_point(class_scope:milvus.grpc.QueryResult) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > scores_; - mutable std::atomic _scores_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > distances_; - mutable std::atomic _distances_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - ::milvus::grpc::Status* status_; - ::milvus::grpc::Entities* entities_; - ::PROTOBUF_NAMESPACE_ID::int64 row_num_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class StringReply : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.StringReply) */ { - public: - StringReply(); - virtual ~StringReply(); - - StringReply(const StringReply& from); - StringReply(StringReply&& from) noexcept - : StringReply() { - *this = ::std::move(from); - } - - inline StringReply& operator=(const StringReply& from) { - CopyFrom(from); - return *this; - } - inline StringReply& operator=(StringReply&& 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 StringReply& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const StringReply* internal_default_instance() { - return reinterpret_cast( - &_StringReply_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - - friend void swap(StringReply& a, StringReply& b) { - a.Swap(&b); - } - inline void Swap(StringReply* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline StringReply* New() const final { - return CreateMaybeMessage(nullptr); - } - - StringReply* 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 StringReply& from); - void MergeFrom(const StringReply& 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(StringReply* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.StringReply"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStringReplyFieldNumber = 2, - kStatusFieldNumber = 1, - }; - // string string_reply = 2; - void clear_string_reply(); - const std::string& string_reply() const; - void set_string_reply(const std::string& value); - void set_string_reply(std::string&& value); - void set_string_reply(const char* value); - void set_string_reply(const char* value, size_t size); - std::string* mutable_string_reply(); - std::string* release_string_reply(); - void set_allocated_string_reply(std::string* string_reply); - - // .milvus.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* release_status(); - ::milvus::grpc::Status* mutable_status(); - void set_allocated_status(::milvus::grpc::Status* status); - - // @@protoc_insertion_point(class_scope:milvus.grpc.StringReply) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_reply_; - ::milvus::grpc::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class BoolReply : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.BoolReply) */ { - public: - BoolReply(); - virtual ~BoolReply(); - - BoolReply(const BoolReply& from); - BoolReply(BoolReply&& from) noexcept - : BoolReply() { - *this = ::std::move(from); - } - - inline BoolReply& operator=(const BoolReply& from) { - CopyFrom(from); - return *this; - } - inline BoolReply& operator=(BoolReply&& 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 BoolReply& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const BoolReply* internal_default_instance() { - return reinterpret_cast( - &_BoolReply_default_instance_); - } - static constexpr int kIndexInFileMessages = - 20; - - friend void swap(BoolReply& a, BoolReply& b) { - a.Swap(&b); - } - inline void Swap(BoolReply* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline BoolReply* New() const final { - return CreateMaybeMessage(nullptr); - } - - BoolReply* 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 BoolReply& from); - void MergeFrom(const BoolReply& 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(BoolReply* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.BoolReply"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStatusFieldNumber = 1, - kBoolReplyFieldNumber = 2, - }; - // .milvus.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* release_status(); - ::milvus::grpc::Status* mutable_status(); - void set_allocated_status(::milvus::grpc::Status* status); - - // bool bool_reply = 2; - void clear_bool_reply(); - bool bool_reply() const; - void set_bool_reply(bool value); - - // @@protoc_insertion_point(class_scope:milvus.grpc.BoolReply) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::milvus::grpc::Status* status_; - bool bool_reply_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class CollectionRowCount : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.CollectionRowCount) */ { - public: - CollectionRowCount(); - virtual ~CollectionRowCount(); - - CollectionRowCount(const CollectionRowCount& from); - CollectionRowCount(CollectionRowCount&& from) noexcept - : CollectionRowCount() { - *this = ::std::move(from); - } - - inline CollectionRowCount& operator=(const CollectionRowCount& from) { - CopyFrom(from); - return *this; - } - inline CollectionRowCount& operator=(CollectionRowCount&& 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 CollectionRowCount& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CollectionRowCount* internal_default_instance() { - return reinterpret_cast( - &_CollectionRowCount_default_instance_); - } - static constexpr int kIndexInFileMessages = - 21; - - friend void swap(CollectionRowCount& a, CollectionRowCount& b) { - a.Swap(&b); - } - inline void Swap(CollectionRowCount* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline CollectionRowCount* New() const final { - return CreateMaybeMessage(nullptr); - } - - CollectionRowCount* 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 CollectionRowCount& from); - void MergeFrom(const CollectionRowCount& 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(CollectionRowCount* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.CollectionRowCount"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStatusFieldNumber = 1, - kCollectionRowCountFieldNumber = 2, - }; - // .milvus.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* release_status(); - ::milvus::grpc::Status* mutable_status(); - void set_allocated_status(::milvus::grpc::Status* status); - - // int64 collection_row_count = 2; - void clear_collection_row_count(); - ::PROTOBUF_NAMESPACE_ID::int64 collection_row_count() const; - void set_collection_row_count(::PROTOBUF_NAMESPACE_ID::int64 value); - - // @@protoc_insertion_point(class_scope:milvus.grpc.CollectionRowCount) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::milvus::grpc::Status* status_; - ::PROTOBUF_NAMESPACE_ID::int64 collection_row_count_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class Command : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Command) */ { - public: - Command(); - virtual ~Command(); - - Command(const Command& from); - Command(Command&& from) noexcept - : Command() { - *this = ::std::move(from); - } - - inline Command& operator=(const Command& from) { - CopyFrom(from); - return *this; - } - inline Command& operator=(Command&& 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 Command& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Command* internal_default_instance() { - return reinterpret_cast( - &_Command_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - - friend void swap(Command& a, Command& b) { - a.Swap(&b); - } - inline void Swap(Command* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Command* New() const final { - return CreateMaybeMessage(nullptr); - } - - Command* 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 Command& from); - void MergeFrom(const Command& 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(Command* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.Command"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCmdFieldNumber = 1, - }; - // string cmd = 1; - void clear_cmd(); - const std::string& cmd() const; - void set_cmd(const std::string& value); - void set_cmd(std::string&& value); - void set_cmd(const char* value); - void set_cmd(const char* value, size_t size); - std::string* mutable_cmd(); - std::string* release_cmd(); - void set_allocated_cmd(std::string* cmd); - - // @@protoc_insertion_point(class_scope:milvus.grpc.Command) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr cmd_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class IndexParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.IndexParam) */ { - public: - IndexParam(); - virtual ~IndexParam(); - - IndexParam(const IndexParam& from); - IndexParam(IndexParam&& from) noexcept - : IndexParam() { - *this = ::std::move(from); - } - - inline IndexParam& operator=(const IndexParam& from) { - CopyFrom(from); - return *this; - } - inline IndexParam& operator=(IndexParam&& 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 IndexParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const IndexParam* internal_default_instance() { - return reinterpret_cast( - &_IndexParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 23; - - friend void swap(IndexParam& a, IndexParam& b) { - a.Swap(&b); - } - inline void Swap(IndexParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline IndexParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - IndexParam* 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 IndexParam& from); - void MergeFrom(const IndexParam& 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(IndexParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.IndexParam"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kExtraParamsFieldNumber = 5, - kCollectionNameFieldNumber = 2, - kFieldNameFieldNumber = 3, - kIndexNameFieldNumber = 4, - kStatusFieldNumber = 1, - }; - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - int extra_params_size() const; - void clear_extra_params(); - ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* - mutable_extra_params(); - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; - ::milvus::grpc::KeyValuePair* add_extra_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& - extra_params() const; - - // string collection_name = 2; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - - // string field_name = 3; - void clear_field_name(); - const std::string& field_name() const; - void set_field_name(const std::string& value); - void set_field_name(std::string&& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - std::string* mutable_field_name(); - std::string* release_field_name(); - void set_allocated_field_name(std::string* field_name); - - // string index_name = 4; - void clear_index_name(); - const std::string& index_name() const; - void set_index_name(const std::string& value); - void set_index_name(std::string&& value); - void set_index_name(const char* value); - void set_index_name(const char* value, size_t size); - std::string* mutable_index_name(); - std::string* release_index_name(); - void set_allocated_index_name(std::string* index_name); - - // .milvus.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* release_status(); - ::milvus::grpc::Status* mutable_status(); - void set_allocated_status(::milvus::grpc::Status* status); - - // @@protoc_insertion_point(class_scope:milvus.grpc.IndexParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr index_name_; - ::milvus::grpc::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class FlushParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.FlushParam) */ { - public: - FlushParam(); - virtual ~FlushParam(); - - FlushParam(const FlushParam& from); - FlushParam(FlushParam&& from) noexcept - : FlushParam() { - *this = ::std::move(from); - } - - inline FlushParam& operator=(const FlushParam& from) { - CopyFrom(from); - return *this; - } - inline FlushParam& operator=(FlushParam&& 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 FlushParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const FlushParam* internal_default_instance() { - return reinterpret_cast( - &_FlushParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 24; - - friend void swap(FlushParam& a, FlushParam& b) { - a.Swap(&b); - } - inline void Swap(FlushParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline FlushParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - FlushParam* 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 FlushParam& from); - void MergeFrom(const FlushParam& 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(FlushParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.FlushParam"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCollectionNameArrayFieldNumber = 1, - }; - // repeated string collection_name_array = 1; - int collection_name_array_size() const; - void clear_collection_name_array(); - const std::string& collection_name_array(int index) const; - std::string* mutable_collection_name_array(int index); - void set_collection_name_array(int index, const std::string& value); - void set_collection_name_array(int index, std::string&& value); - void set_collection_name_array(int index, const char* value); - void set_collection_name_array(int index, const char* value, size_t size); - std::string* add_collection_name_array(); - void add_collection_name_array(const std::string& value); - void add_collection_name_array(std::string&& value); - void add_collection_name_array(const char* value); - void add_collection_name_array(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& collection_name_array() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_collection_name_array(); - - // @@protoc_insertion_point(class_scope:milvus.grpc.FlushParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField collection_name_array_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class CompactParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.CompactParam) */ { - public: - CompactParam(); - virtual ~CompactParam(); - - CompactParam(const CompactParam& from); - CompactParam(CompactParam&& from) noexcept - : CompactParam() { - *this = ::std::move(from); - } - - inline CompactParam& operator=(const CompactParam& from) { - CopyFrom(from); - return *this; - } - inline CompactParam& operator=(CompactParam&& 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 CompactParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CompactParam* internal_default_instance() { - return reinterpret_cast( - &_CompactParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 25; - - friend void swap(CompactParam& a, CompactParam& b) { - a.Swap(&b); - } - inline void Swap(CompactParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline CompactParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - CompactParam* 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 CompactParam& from); - void MergeFrom(const CompactParam& 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(CompactParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.CompactParam"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCollectionNameFieldNumber = 1, - kThresholdFieldNumber = 2, - }; - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - - // double threshold = 2; - void clear_threshold(); - double threshold() const; - void set_threshold(double value); - - // @@protoc_insertion_point(class_scope:milvus.grpc.CompactParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - double threshold_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class DeleteByIDParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.DeleteByIDParam) */ { - public: - DeleteByIDParam(); - virtual ~DeleteByIDParam(); - - DeleteByIDParam(const DeleteByIDParam& from); - DeleteByIDParam(DeleteByIDParam&& from) noexcept - : DeleteByIDParam() { - *this = ::std::move(from); - } - - inline DeleteByIDParam& operator=(const DeleteByIDParam& from) { - CopyFrom(from); - return *this; - } - inline DeleteByIDParam& operator=(DeleteByIDParam&& 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 DeleteByIDParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DeleteByIDParam* internal_default_instance() { - return reinterpret_cast( - &_DeleteByIDParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 26; - - friend void swap(DeleteByIDParam& a, DeleteByIDParam& b) { - a.Swap(&b); - } - inline void Swap(DeleteByIDParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline DeleteByIDParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - DeleteByIDParam* 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 DeleteByIDParam& from); - void MergeFrom(const DeleteByIDParam& 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(DeleteByIDParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.DeleteByIDParam"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIdArrayFieldNumber = 2, - kCollectionNameFieldNumber = 1, - }; - // repeated int64 id_array = 2; - int id_array_size() const; - void clear_id_array(); - ::PROTOBUF_NAMESPACE_ID::int64 id_array(int index) const; - void set_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); - void add_id_array(::PROTOBUF_NAMESPACE_ID::int64 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - id_array() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - mutable_id_array(); - - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - - // @@protoc_insertion_point(class_scope:milvus.grpc.DeleteByIDParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > id_array_; - mutable std::atomic _id_array_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class CollectionInfo : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.CollectionInfo) */ { - public: - CollectionInfo(); - virtual ~CollectionInfo(); - - CollectionInfo(const CollectionInfo& from); - CollectionInfo(CollectionInfo&& from) noexcept - : CollectionInfo() { - *this = ::std::move(from); - } - - inline CollectionInfo& operator=(const CollectionInfo& from) { - CopyFrom(from); - return *this; - } - inline CollectionInfo& operator=(CollectionInfo&& 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 CollectionInfo& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CollectionInfo* internal_default_instance() { - return reinterpret_cast( - &_CollectionInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 27; - - friend void swap(CollectionInfo& a, CollectionInfo& b) { - a.Swap(&b); - } - inline void Swap(CollectionInfo* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline CollectionInfo* New() const final { - return CreateMaybeMessage(nullptr); - } - - CollectionInfo* 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 CollectionInfo& from); - void MergeFrom(const CollectionInfo& 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(CollectionInfo* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.CollectionInfo"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kJsonInfoFieldNumber = 2, - kStatusFieldNumber = 1, - }; - // string json_info = 2; - void clear_json_info(); - const std::string& json_info() const; - void set_json_info(const std::string& value); - void set_json_info(std::string&& value); - void set_json_info(const char* value); - void set_json_info(const char* value, size_t size); - std::string* mutable_json_info(); - std::string* release_json_info(); - void set_allocated_json_info(std::string* json_info); - - // .milvus.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* release_status(); - ::milvus::grpc::Status* mutable_status(); - void set_allocated_status(::milvus::grpc::Status* status); - - // @@protoc_insertion_point(class_scope:milvus.grpc.CollectionInfo) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr json_info_; - ::milvus::grpc::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class GetEntityIDsParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.GetEntityIDsParam) */ { - public: - GetEntityIDsParam(); - virtual ~GetEntityIDsParam(); - - GetEntityIDsParam(const GetEntityIDsParam& from); - GetEntityIDsParam(GetEntityIDsParam&& from) noexcept - : GetEntityIDsParam() { - *this = ::std::move(from); - } - - inline GetEntityIDsParam& operator=(const GetEntityIDsParam& from) { - CopyFrom(from); - return *this; - } - inline GetEntityIDsParam& operator=(GetEntityIDsParam&& 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 GetEntityIDsParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetEntityIDsParam* internal_default_instance() { - return reinterpret_cast( - &_GetEntityIDsParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 28; - - friend void swap(GetEntityIDsParam& a, GetEntityIDsParam& b) { - a.Swap(&b); - } - inline void Swap(GetEntityIDsParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GetEntityIDsParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetEntityIDsParam* 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 GetEntityIDsParam& from); - void MergeFrom(const GetEntityIDsParam& 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(GetEntityIDsParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.GetEntityIDsParam"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCollectionNameFieldNumber = 1, - kSegmentIdFieldNumber = 2, - }; - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - - // int64 segment_id = 2; - void clear_segment_id(); - ::PROTOBUF_NAMESPACE_ID::int64 segment_id() const; - void set_segment_id(::PROTOBUF_NAMESPACE_ID::int64 value); - - // @@protoc_insertion_point(class_scope:milvus.grpc.GetEntityIDsParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::PROTOBUF_NAMESPACE_ID::int64 segment_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class EntityIdentity : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.EntityIdentity) */ { - public: - EntityIdentity(); - virtual ~EntityIdentity(); - - EntityIdentity(const EntityIdentity& from); - EntityIdentity(EntityIdentity&& from) noexcept - : EntityIdentity() { - *this = ::std::move(from); - } - - inline EntityIdentity& operator=(const EntityIdentity& from) { - CopyFrom(from); - return *this; - } - inline EntityIdentity& operator=(EntityIdentity&& 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 EntityIdentity& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const EntityIdentity* internal_default_instance() { - return reinterpret_cast( - &_EntityIdentity_default_instance_); - } - static constexpr int kIndexInFileMessages = - 29; - - friend void swap(EntityIdentity& a, EntityIdentity& b) { - a.Swap(&b); - } - inline void Swap(EntityIdentity* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline EntityIdentity* New() const final { - return CreateMaybeMessage(nullptr); - } - - EntityIdentity* 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 EntityIdentity& from); - void MergeFrom(const EntityIdentity& 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(EntityIdentity* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.EntityIdentity"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIdArrayFieldNumber = 2, - kFieldNamesFieldNumber = 3, - kCollectionNameFieldNumber = 1, - }; - // repeated int64 id_array = 2; - int id_array_size() const; - void clear_id_array(); - ::PROTOBUF_NAMESPACE_ID::int64 id_array(int index) const; - void set_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); - void add_id_array(::PROTOBUF_NAMESPACE_ID::int64 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - id_array() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - mutable_id_array(); - - // repeated string field_names = 3; - int field_names_size() const; - void clear_field_names(); - const std::string& field_names(int index) const; - std::string* mutable_field_names(int index); - void set_field_names(int index, const std::string& value); - void set_field_names(int index, std::string&& value); - void set_field_names(int index, const char* value); - void set_field_names(int index, const char* value, size_t size); - std::string* add_field_names(); - void add_field_names(const std::string& value); - void add_field_names(std::string&& value); - void add_field_names(const char* value); - void add_field_names(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& field_names() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_field_names(); - - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - - // @@protoc_insertion_point(class_scope:milvus.grpc.EntityIdentity) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > id_array_; - mutable std::atomic _id_array_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField field_names_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class VectorFieldParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorFieldParam) */ { - public: - VectorFieldParam(); - virtual ~VectorFieldParam(); - - VectorFieldParam(const VectorFieldParam& from); - VectorFieldParam(VectorFieldParam&& from) noexcept - : VectorFieldParam() { - *this = ::std::move(from); - } - - inline VectorFieldParam& operator=(const VectorFieldParam& from) { - CopyFrom(from); - return *this; - } - inline VectorFieldParam& operator=(VectorFieldParam&& 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 VectorFieldParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const VectorFieldParam* internal_default_instance() { - return reinterpret_cast( - &_VectorFieldParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 30; - - friend void swap(VectorFieldParam& a, VectorFieldParam& b) { - a.Swap(&b); - } - inline void Swap(VectorFieldParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline VectorFieldParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - VectorFieldParam* 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 VectorFieldParam& from); - void MergeFrom(const VectorFieldParam& 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(VectorFieldParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.VectorFieldParam"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDimensionFieldNumber = 1, - }; - // int64 dimension = 1; - void clear_dimension(); - ::PROTOBUF_NAMESPACE_ID::int64 dimension() const; - void set_dimension(::PROTOBUF_NAMESPACE_ID::int64 value); - - // @@protoc_insertion_point(class_scope:milvus.grpc.VectorFieldParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::int64 dimension_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class FieldType : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.FieldType) */ { - public: - FieldType(); - virtual ~FieldType(); - - FieldType(const FieldType& from); - FieldType(FieldType&& from) noexcept - : FieldType() { - *this = ::std::move(from); - } - - inline FieldType& operator=(const FieldType& from) { - CopyFrom(from); - return *this; - } - inline FieldType& operator=(FieldType&& 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 FieldType& default_instance(); - - enum ValueCase { - kDataType = 1, - kVectorParam = 2, - VALUE_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const FieldType* internal_default_instance() { - return reinterpret_cast( - &_FieldType_default_instance_); - } - static constexpr int kIndexInFileMessages = - 31; - - friend void swap(FieldType& a, FieldType& b) { - a.Swap(&b); - } - inline void Swap(FieldType* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline FieldType* New() const final { - return CreateMaybeMessage(nullptr); - } - - FieldType* 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 FieldType& from); - void MergeFrom(const FieldType& 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(FieldType* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.FieldType"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDataTypeFieldNumber = 1, - kVectorParamFieldNumber = 2, - }; - // .milvus.grpc.DataType data_type = 1; - private: - bool has_data_type() const; - public: - void clear_data_type(); - ::milvus::grpc::DataType data_type() const; - void set_data_type(::milvus::grpc::DataType value); - - // .milvus.grpc.VectorFieldParam vector_param = 2; - bool has_vector_param() const; - void clear_vector_param(); - const ::milvus::grpc::VectorFieldParam& vector_param() const; - ::milvus::grpc::VectorFieldParam* release_vector_param(); - ::milvus::grpc::VectorFieldParam* mutable_vector_param(); - void set_allocated_vector_param(::milvus::grpc::VectorFieldParam* vector_param); - - void clear_value(); - ValueCase value_case() const; - // @@protoc_insertion_point(class_scope:milvus.grpc.FieldType) - private: - class _Internal; - void set_has_data_type(); - void set_has_vector_param(); - - inline bool has_value() const; - inline void clear_has_value(); - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - union ValueUnion { - ValueUnion() {} - int data_type_; - ::milvus::grpc::VectorFieldParam* vector_param_; - } value_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class FieldParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.FieldParam) */ { - public: - FieldParam(); - virtual ~FieldParam(); - - FieldParam(const FieldParam& from); - FieldParam(FieldParam&& from) noexcept - : FieldParam() { - *this = ::std::move(from); - } - - inline FieldParam& operator=(const FieldParam& from) { - CopyFrom(from); - return *this; - } - inline FieldParam& operator=(FieldParam&& 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 FieldParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const FieldParam* internal_default_instance() { - return reinterpret_cast( - &_FieldParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 32; - - friend void swap(FieldParam& a, FieldParam& b) { - a.Swap(&b); - } - inline void Swap(FieldParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline FieldParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - FieldParam* 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 FieldParam& from); - void MergeFrom(const FieldParam& 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(FieldParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.FieldParam"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIndexParamsFieldNumber = 4, - kExtraParamsFieldNumber = 5, - kNameFieldNumber = 2, - kIdFieldNumber = 1, - kTypeFieldNumber = 3, - }; - // repeated .milvus.grpc.KeyValuePair index_params = 4; - int index_params_size() const; - void clear_index_params(); - ::milvus::grpc::KeyValuePair* mutable_index_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* - mutable_index_params(); - const ::milvus::grpc::KeyValuePair& index_params(int index) const; - ::milvus::grpc::KeyValuePair* add_index_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& - index_params() const; - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - int extra_params_size() const; - void clear_extra_params(); - ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* - mutable_extra_params(); - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; - ::milvus::grpc::KeyValuePair* add_extra_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& - extra_params() const; - - // string name = 2; - void clear_name(); - const std::string& name() const; - void set_name(const std::string& value); - void set_name(std::string&& value); - void set_name(const char* value); - void set_name(const char* value, size_t size); - std::string* mutable_name(); - std::string* release_name(); - void set_allocated_name(std::string* name); - - // uint64 id = 1; - void clear_id(); - ::PROTOBUF_NAMESPACE_ID::uint64 id() const; - void set_id(::PROTOBUF_NAMESPACE_ID::uint64 value); - - // .milvus.grpc.DataType type = 3; - void clear_type(); - ::milvus::grpc::DataType type() const; - void set_type(::milvus::grpc::DataType value); - - // @@protoc_insertion_point(class_scope:milvus.grpc.FieldParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > index_params_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::uint64 id_; - int type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class VectorFieldRecord : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorFieldRecord) */ { - public: - VectorFieldRecord(); - virtual ~VectorFieldRecord(); - - VectorFieldRecord(const VectorFieldRecord& from); - VectorFieldRecord(VectorFieldRecord&& from) noexcept - : VectorFieldRecord() { - *this = ::std::move(from); - } - - inline VectorFieldRecord& operator=(const VectorFieldRecord& from) { - CopyFrom(from); - return *this; - } - inline VectorFieldRecord& operator=(VectorFieldRecord&& 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 VectorFieldRecord& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const VectorFieldRecord* internal_default_instance() { - return reinterpret_cast( - &_VectorFieldRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 33; - - friend void swap(VectorFieldRecord& a, VectorFieldRecord& b) { - a.Swap(&b); - } - inline void Swap(VectorFieldRecord* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline VectorFieldRecord* New() const final { - return CreateMaybeMessage(nullptr); - } - - VectorFieldRecord* 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 VectorFieldRecord& from); - void MergeFrom(const VectorFieldRecord& 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(VectorFieldRecord* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.VectorFieldRecord"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kValueFieldNumber = 1, - }; - // repeated .milvus.grpc.VectorRowRecord value = 1; - int value_size() const; - void clear_value(); - ::milvus::grpc::VectorRowRecord* mutable_value(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* - mutable_value(); - const ::milvus::grpc::VectorRowRecord& value(int index) const; - ::milvus::grpc::VectorRowRecord* add_value(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& - value() const; - - // @@protoc_insertion_point(class_scope:milvus.grpc.VectorFieldRecord) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord > value_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class TermQuery : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.TermQuery) */ { - public: - TermQuery(); - virtual ~TermQuery(); - - TermQuery(const TermQuery& from); - TermQuery(TermQuery&& from) noexcept - : TermQuery() { - *this = ::std::move(from); - } - - inline TermQuery& operator=(const TermQuery& from) { - CopyFrom(from); - return *this; - } - inline TermQuery& operator=(TermQuery&& 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 TermQuery& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TermQuery* internal_default_instance() { - return reinterpret_cast( - &_TermQuery_default_instance_); - } - static constexpr int kIndexInFileMessages = - 34; - - friend void swap(TermQuery& a, TermQuery& b) { - a.Swap(&b); - } - inline void Swap(TermQuery* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline TermQuery* New() const final { - return CreateMaybeMessage(nullptr); - } - - TermQuery* 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 TermQuery& from); - void MergeFrom(const TermQuery& 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(TermQuery* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.TermQuery"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIntValueFieldNumber = 2, - kDoubleValueFieldNumber = 3, - kExtraParamsFieldNumber = 6, - kFieldNameFieldNumber = 1, - kValueNumFieldNumber = 4, - kBoostFieldNumber = 5, - }; - // repeated int64 int_value = 2; - int int_value_size() const; - void clear_int_value(); - ::PROTOBUF_NAMESPACE_ID::int64 int_value(int index) const; - void set_int_value(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); - void add_int_value(::PROTOBUF_NAMESPACE_ID::int64 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - int_value() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - mutable_int_value(); - - // repeated double double_value = 3; - int double_value_size() const; - void clear_double_value(); - double double_value(int index) const; - void set_double_value(int index, double value); - void add_double_value(double value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - double_value() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - mutable_double_value(); - - // repeated .milvus.grpc.KeyValuePair extra_params = 6; - int extra_params_size() const; - void clear_extra_params(); - ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* - mutable_extra_params(); - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; - ::milvus::grpc::KeyValuePair* add_extra_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& - extra_params() const; - - // string field_name = 1; - void clear_field_name(); - const std::string& field_name() const; - void set_field_name(const std::string& value); - void set_field_name(std::string&& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - std::string* mutable_field_name(); - std::string* release_field_name(); - void set_allocated_field_name(std::string* field_name); - - // int64 value_num = 4; - void clear_value_num(); - ::PROTOBUF_NAMESPACE_ID::int64 value_num() const; - void set_value_num(::PROTOBUF_NAMESPACE_ID::int64 value); - - // float boost = 5; - void clear_boost(); - float boost() const; - void set_boost(float value); - - // @@protoc_insertion_point(class_scope:milvus.grpc.TermQuery) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > int_value_; - mutable std::atomic _int_value_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > double_value_; - mutable std::atomic _double_value_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; - ::PROTOBUF_NAMESPACE_ID::int64 value_num_; - float boost_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class CompareExpr : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.CompareExpr) */ { - public: - CompareExpr(); - virtual ~CompareExpr(); - - CompareExpr(const CompareExpr& from); - CompareExpr(CompareExpr&& from) noexcept - : CompareExpr() { - *this = ::std::move(from); - } - - inline CompareExpr& operator=(const CompareExpr& from) { - CopyFrom(from); - return *this; - } - inline CompareExpr& operator=(CompareExpr&& 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 CompareExpr& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CompareExpr* internal_default_instance() { - return reinterpret_cast( - &_CompareExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 35; - - friend void swap(CompareExpr& a, CompareExpr& b) { - a.Swap(&b); - } - inline void Swap(CompareExpr* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline CompareExpr* New() const final { - return CreateMaybeMessage(nullptr); - } - - CompareExpr* 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 CompareExpr& from); - void MergeFrom(const CompareExpr& 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(CompareExpr* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.CompareExpr"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOperandFieldNumber = 2, - kOperatorFieldNumber = 1, - }; - // string operand = 2; - void clear_operand(); - const std::string& operand() const; - void set_operand(const std::string& value); - void set_operand(std::string&& value); - void set_operand(const char* value); - void set_operand(const char* value, size_t size); - std::string* mutable_operand(); - std::string* release_operand(); - void set_allocated_operand(std::string* operand); - - // .milvus.grpc.CompareOperator operator = 1; - void clear_operator_(); - ::milvus::grpc::CompareOperator operator_() const; - void set_operator_(::milvus::grpc::CompareOperator value); - - // @@protoc_insertion_point(class_scope:milvus.grpc.CompareExpr) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr operand_; - int operator__; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class RangeQuery : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.RangeQuery) */ { - public: - RangeQuery(); - virtual ~RangeQuery(); - - RangeQuery(const RangeQuery& from); - RangeQuery(RangeQuery&& from) noexcept - : RangeQuery() { - *this = ::std::move(from); - } - - inline RangeQuery& operator=(const RangeQuery& from) { - CopyFrom(from); - return *this; - } - inline RangeQuery& operator=(RangeQuery&& 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 RangeQuery& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const RangeQuery* internal_default_instance() { - return reinterpret_cast( - &_RangeQuery_default_instance_); - } - static constexpr int kIndexInFileMessages = - 36; - - friend void swap(RangeQuery& a, RangeQuery& b) { - a.Swap(&b); - } - inline void Swap(RangeQuery* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline RangeQuery* New() const final { - return CreateMaybeMessage(nullptr); - } - - RangeQuery* 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 RangeQuery& from); - void MergeFrom(const RangeQuery& 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(RangeQuery* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.RangeQuery"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOperandFieldNumber = 2, - kExtraParamsFieldNumber = 4, - kFieldNameFieldNumber = 1, - kBoostFieldNumber = 3, - }; - // repeated .milvus.grpc.CompareExpr operand = 2; - int operand_size() const; - void clear_operand(); - ::milvus::grpc::CompareExpr* mutable_operand(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::CompareExpr >* - mutable_operand(); - const ::milvus::grpc::CompareExpr& operand(int index) const; - ::milvus::grpc::CompareExpr* add_operand(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::CompareExpr >& - operand() const; - - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - int extra_params_size() const; - void clear_extra_params(); - ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* - mutable_extra_params(); - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; - ::milvus::grpc::KeyValuePair* add_extra_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& - extra_params() const; - - // string field_name = 1; - void clear_field_name(); - const std::string& field_name() const; - void set_field_name(const std::string& value); - void set_field_name(std::string&& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - std::string* mutable_field_name(); - std::string* release_field_name(); - void set_allocated_field_name(std::string* field_name); - - // float boost = 3; - void clear_boost(); - float boost() const; - void set_boost(float value); - - // @@protoc_insertion_point(class_scope:milvus.grpc.RangeQuery) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::CompareExpr > operand_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; - float boost_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class VectorQuery : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorQuery) */ { - public: - VectorQuery(); - virtual ~VectorQuery(); - - VectorQuery(const VectorQuery& from); - VectorQuery(VectorQuery&& from) noexcept - : VectorQuery() { - *this = ::std::move(from); - } - - inline VectorQuery& operator=(const VectorQuery& from) { - CopyFrom(from); - return *this; - } - inline VectorQuery& operator=(VectorQuery&& 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 VectorQuery& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const VectorQuery* internal_default_instance() { - return reinterpret_cast( - &_VectorQuery_default_instance_); - } - static constexpr int kIndexInFileMessages = - 37; - - friend void swap(VectorQuery& a, VectorQuery& b) { - a.Swap(&b); - } - inline void Swap(VectorQuery* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline VectorQuery* New() const final { - return CreateMaybeMessage(nullptr); - } - - VectorQuery* 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 VectorQuery& from); - void MergeFrom(const VectorQuery& 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(VectorQuery* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.VectorQuery"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRecordsFieldNumber = 3, - kExtraParamsFieldNumber = 5, - kFieldNameFieldNumber = 1, - kTopkFieldNumber = 4, - kQueryBoostFieldNumber = 2, - }; - // repeated .milvus.grpc.VectorRowRecord records = 3; - int records_size() const; - void clear_records(); - ::milvus::grpc::VectorRowRecord* mutable_records(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* - mutable_records(); - const ::milvus::grpc::VectorRowRecord& records(int index) const; - ::milvus::grpc::VectorRowRecord* add_records(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& - records() const; - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - int extra_params_size() const; - void clear_extra_params(); - ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* - mutable_extra_params(); - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; - ::milvus::grpc::KeyValuePair* add_extra_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& - extra_params() const; - - // string field_name = 1; - void clear_field_name(); - const std::string& field_name() const; - void set_field_name(const std::string& value); - void set_field_name(std::string&& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - std::string* mutable_field_name(); - std::string* release_field_name(); - void set_allocated_field_name(std::string* field_name); - - // int64 topk = 4; - void clear_topk(); - ::PROTOBUF_NAMESPACE_ID::int64 topk() const; - void set_topk(::PROTOBUF_NAMESPACE_ID::int64 value); - - // float query_boost = 2; - void clear_query_boost(); - float query_boost() const; - void set_query_boost(float value); - - // @@protoc_insertion_point(class_scope:milvus.grpc.VectorQuery) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord > records_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; - ::PROTOBUF_NAMESPACE_ID::int64 topk_; - float query_boost_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class BooleanQuery : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.BooleanQuery) */ { - public: - BooleanQuery(); - virtual ~BooleanQuery(); - - BooleanQuery(const BooleanQuery& from); - BooleanQuery(BooleanQuery&& from) noexcept - : BooleanQuery() { - *this = ::std::move(from); - } - - inline BooleanQuery& operator=(const BooleanQuery& from) { - CopyFrom(from); - return *this; - } - inline BooleanQuery& operator=(BooleanQuery&& 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 BooleanQuery& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const BooleanQuery* internal_default_instance() { - return reinterpret_cast( - &_BooleanQuery_default_instance_); - } - static constexpr int kIndexInFileMessages = - 38; - - friend void swap(BooleanQuery& a, BooleanQuery& b) { - a.Swap(&b); - } - inline void Swap(BooleanQuery* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline BooleanQuery* New() const final { - return CreateMaybeMessage(nullptr); - } - - BooleanQuery* 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 BooleanQuery& from); - void MergeFrom(const BooleanQuery& 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(BooleanQuery* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.BooleanQuery"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kGeneralQueryFieldNumber = 2, - kOccurFieldNumber = 1, - }; - // repeated .milvus.grpc.GeneralQuery general_query = 2; - int general_query_size() const; - void clear_general_query(); - ::milvus::grpc::GeneralQuery* mutable_general_query(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::GeneralQuery >* - mutable_general_query(); - const ::milvus::grpc::GeneralQuery& general_query(int index) const; - ::milvus::grpc::GeneralQuery* add_general_query(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::GeneralQuery >& - general_query() const; - - // .milvus.grpc.Occur occur = 1; - void clear_occur(); - ::milvus::grpc::Occur occur() const; - void set_occur(::milvus::grpc::Occur value); - - // @@protoc_insertion_point(class_scope:milvus.grpc.BooleanQuery) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::GeneralQuery > general_query_; - int occur_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class GeneralQuery : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.GeneralQuery) */ { - public: - GeneralQuery(); - virtual ~GeneralQuery(); - - GeneralQuery(const GeneralQuery& from); - GeneralQuery(GeneralQuery&& from) noexcept - : GeneralQuery() { - *this = ::std::move(from); - } - - inline GeneralQuery& operator=(const GeneralQuery& from) { - CopyFrom(from); - return *this; - } - inline GeneralQuery& operator=(GeneralQuery&& 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 GeneralQuery& default_instance(); - - enum QueryCase { - kBooleanQuery = 1, - kTermQuery = 2, - kRangeQuery = 3, - kVectorQuery = 4, - QUERY_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GeneralQuery* internal_default_instance() { - return reinterpret_cast( - &_GeneralQuery_default_instance_); - } - static constexpr int kIndexInFileMessages = - 39; - - friend void swap(GeneralQuery& a, GeneralQuery& b) { - a.Swap(&b); - } - inline void Swap(GeneralQuery* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GeneralQuery* New() const final { - return CreateMaybeMessage(nullptr); - } - - GeneralQuery* 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 GeneralQuery& from); - void MergeFrom(const GeneralQuery& 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(GeneralQuery* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.GeneralQuery"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kBooleanQueryFieldNumber = 1, - kTermQueryFieldNumber = 2, - kRangeQueryFieldNumber = 3, - kVectorQueryFieldNumber = 4, - }; - // .milvus.grpc.BooleanQuery boolean_query = 1; - bool has_boolean_query() const; - void clear_boolean_query(); - const ::milvus::grpc::BooleanQuery& boolean_query() const; - ::milvus::grpc::BooleanQuery* release_boolean_query(); - ::milvus::grpc::BooleanQuery* mutable_boolean_query(); - void set_allocated_boolean_query(::milvus::grpc::BooleanQuery* boolean_query); - - // .milvus.grpc.TermQuery term_query = 2; - bool has_term_query() const; - void clear_term_query(); - const ::milvus::grpc::TermQuery& term_query() const; - ::milvus::grpc::TermQuery* release_term_query(); - ::milvus::grpc::TermQuery* mutable_term_query(); - void set_allocated_term_query(::milvus::grpc::TermQuery* term_query); - - // .milvus.grpc.RangeQuery range_query = 3; - bool has_range_query() const; - void clear_range_query(); - const ::milvus::grpc::RangeQuery& range_query() const; - ::milvus::grpc::RangeQuery* release_range_query(); - ::milvus::grpc::RangeQuery* mutable_range_query(); - void set_allocated_range_query(::milvus::grpc::RangeQuery* range_query); - - // .milvus.grpc.VectorQuery vector_query = 4; - bool has_vector_query() const; - void clear_vector_query(); - const ::milvus::grpc::VectorQuery& vector_query() const; - ::milvus::grpc::VectorQuery* release_vector_query(); - ::milvus::grpc::VectorQuery* mutable_vector_query(); - void set_allocated_vector_query(::milvus::grpc::VectorQuery* vector_query); - - void clear_query(); - QueryCase query_case() const; - // @@protoc_insertion_point(class_scope:milvus.grpc.GeneralQuery) - private: - class _Internal; - void set_has_boolean_query(); - void set_has_term_query(); - void set_has_range_query(); - void set_has_vector_query(); - - inline bool has_query() const; - inline void clear_has_query(); - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - union QueryUnion { - QueryUnion() {} - ::milvus::grpc::BooleanQuery* boolean_query_; - ::milvus::grpc::TermQuery* term_query_; - ::milvus::grpc::RangeQuery* range_query_; - ::milvus::grpc::VectorQuery* vector_query_; - } query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class SearchParamPB : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchParamPB) */ { - public: - SearchParamPB(); - virtual ~SearchParamPB(); - - SearchParamPB(const SearchParamPB& from); - SearchParamPB(SearchParamPB&& from) noexcept - : SearchParamPB() { - *this = ::std::move(from); - } - - inline SearchParamPB& operator=(const SearchParamPB& from) { - CopyFrom(from); - return *this; - } - inline SearchParamPB& operator=(SearchParamPB&& 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 SearchParamPB& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SearchParamPB* internal_default_instance() { - return reinterpret_cast( - &_SearchParamPB_default_instance_); - } - static constexpr int kIndexInFileMessages = - 40; - - friend void swap(SearchParamPB& a, SearchParamPB& b) { - a.Swap(&b); - } - inline void Swap(SearchParamPB* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline SearchParamPB* New() const final { - return CreateMaybeMessage(nullptr); - } - - SearchParamPB* 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 SearchParamPB& from); - void MergeFrom(const SearchParamPB& 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(SearchParamPB* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.SearchParamPB"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartitionTagArrayFieldNumber = 2, - kExtraParamsFieldNumber = 4, - kCollectionNameFieldNumber = 1, - kGeneralQueryFieldNumber = 3, - }; - // repeated string partition_tag_array = 2; - int partition_tag_array_size() const; - void clear_partition_tag_array(); - const std::string& partition_tag_array(int index) const; - std::string* mutable_partition_tag_array(int index); - void set_partition_tag_array(int index, const std::string& value); - void set_partition_tag_array(int index, std::string&& value); - void set_partition_tag_array(int index, const char* value); - void set_partition_tag_array(int index, const char* value, size_t size); - std::string* add_partition_tag_array(); - void add_partition_tag_array(const std::string& value); - void add_partition_tag_array(std::string&& value); - void add_partition_tag_array(const char* value); - void add_partition_tag_array(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& partition_tag_array() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_partition_tag_array(); - - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - int extra_params_size() const; - void clear_extra_params(); - ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* - mutable_extra_params(); - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; - ::milvus::grpc::KeyValuePair* add_extra_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& - extra_params() const; - - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - - // .milvus.grpc.GeneralQuery general_query = 3; - bool has_general_query() const; - void clear_general_query(); - const ::milvus::grpc::GeneralQuery& general_query() const; - ::milvus::grpc::GeneralQuery* release_general_query(); - ::milvus::grpc::GeneralQuery* mutable_general_query(); - void set_allocated_general_query(::milvus::grpc::GeneralQuery* general_query); - - // @@protoc_insertion_point(class_scope:milvus.grpc.SearchParamPB) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField partition_tag_array_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::milvus::grpc::GeneralQuery* general_query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// 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.grpc.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.grpc.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.grpc.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.grpc.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.grpc.KeyValuePair.key) -} -inline std::string* KeyValuePair::mutable_key() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.KeyValuePair.key) - return key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* KeyValuePair::release_key() { - // @@protoc_insertion_point(field_release:milvus.grpc.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.grpc.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.grpc.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.grpc.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.grpc.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.grpc.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.grpc.KeyValuePair.value) -} -inline std::string* KeyValuePair::mutable_value() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.KeyValuePair.value) - return value_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* KeyValuePair::release_value() { - // @@protoc_insertion_point(field_release:milvus.grpc.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.grpc.KeyValuePair.value) -} - -// ------------------------------------------------------------------- - -// CollectionName - -// string collection_name = 1; -inline void CollectionName::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& CollectionName::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CollectionName.collection_name) - return collection_name_.GetNoArena(); -} -inline void CollectionName::set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.CollectionName.collection_name) -} -inline void CollectionName::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.CollectionName.collection_name) -} -inline void CollectionName::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.CollectionName.collection_name) -} -inline void CollectionName::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.CollectionName.collection_name) -} -inline std::string* CollectionName::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionName.collection_name) - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* CollectionName::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.CollectionName.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void CollectionName::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CollectionName.collection_name) -} - -// ------------------------------------------------------------------- - -// CollectionNameList - -// .milvus.grpc.Status status = 1; -inline bool CollectionNameList::has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline const ::milvus::grpc::Status& CollectionNameList::status() const { - const ::milvus::grpc::Status* p = status_; - // @@protoc_insertion_point(field_get:milvus.grpc.CollectionNameList.status) - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Status_default_instance_); -} -inline ::milvus::grpc::Status* CollectionNameList::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.CollectionNameList.status) - - ::milvus::grpc::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::grpc::Status* CollectionNameList::mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); - status_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionNameList.status) - return status_; -} -inline void CollectionNameList::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CollectionNameList.status) -} - -// repeated string collection_names = 2; -inline int CollectionNameList::collection_names_size() const { - return collection_names_.size(); -} -inline void CollectionNameList::clear_collection_names() { - collection_names_.Clear(); -} -inline const std::string& CollectionNameList::collection_names(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.CollectionNameList.collection_names) - return collection_names_.Get(index); -} -inline std::string* CollectionNameList::mutable_collection_names(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionNameList.collection_names) - return collection_names_.Mutable(index); -} -inline void CollectionNameList::set_collection_names(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.CollectionNameList.collection_names) - collection_names_.Mutable(index)->assign(value); -} -inline void CollectionNameList::set_collection_names(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.CollectionNameList.collection_names) - collection_names_.Mutable(index)->assign(std::move(value)); -} -inline void CollectionNameList::set_collection_names(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - collection_names_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.grpc.CollectionNameList.collection_names) -} -inline void CollectionNameList::set_collection_names(int index, const char* value, size_t size) { - collection_names_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.CollectionNameList.collection_names) -} -inline std::string* CollectionNameList::add_collection_names() { - // @@protoc_insertion_point(field_add_mutable:milvus.grpc.CollectionNameList.collection_names) - return collection_names_.Add(); -} -inline void CollectionNameList::add_collection_names(const std::string& value) { - collection_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.grpc.CollectionNameList.collection_names) -} -inline void CollectionNameList::add_collection_names(std::string&& value) { - collection_names_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.grpc.CollectionNameList.collection_names) -} -inline void CollectionNameList::add_collection_names(const char* value) { - GOOGLE_DCHECK(value != nullptr); - collection_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.grpc.CollectionNameList.collection_names) -} -inline void CollectionNameList::add_collection_names(const char* value, size_t size) { - collection_names_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.grpc.CollectionNameList.collection_names) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -CollectionNameList::collection_names() const { - // @@protoc_insertion_point(field_list:milvus.grpc.CollectionNameList.collection_names) - return collection_names_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -CollectionNameList::mutable_collection_names() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.CollectionNameList.collection_names) - return &collection_names_; -} - -// ------------------------------------------------------------------- - -// FieldName - -// string collection_name = 1; -inline void FieldName::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& FieldName::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldName.collection_name) - return collection_name_.GetNoArena(); -} -inline void FieldName::set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.FieldName.collection_name) -} -inline void FieldName::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.FieldName.collection_name) -} -inline void FieldName::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.FieldName.collection_name) -} -inline void FieldName::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.FieldName.collection_name) -} -inline std::string* FieldName::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldName.collection_name) - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* FieldName::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.FieldName.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void FieldName::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.FieldName.collection_name) -} - -// string field_name = 2; -inline void FieldName::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& FieldName::field_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldName.field_name) - return field_name_.GetNoArena(); -} -inline void FieldName::set_field_name(const std::string& value) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.FieldName.field_name) -} -inline void FieldName::set_field_name(std::string&& value) { - - field_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.FieldName.field_name) -} -inline void FieldName::set_field_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.FieldName.field_name) -} -inline void FieldName::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.FieldName.field_name) -} -inline std::string* FieldName::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldName.field_name) - return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* FieldName::release_field_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.FieldName.field_name) - - return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void FieldName::set_allocated_field_name(std::string* field_name) { - if (field_name != nullptr) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.FieldName.field_name) -} - -// ------------------------------------------------------------------- - -// Mapping - -// .milvus.grpc.Status status = 1; -inline bool Mapping::has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline const ::milvus::grpc::Status& Mapping::status() const { - const ::milvus::grpc::Status* p = status_; - // @@protoc_insertion_point(field_get:milvus.grpc.Mapping.status) - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Status_default_instance_); -} -inline ::milvus::grpc::Status* Mapping::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.Mapping.status) - - ::milvus::grpc::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::grpc::Status* Mapping::mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); - status_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.Mapping.status) - return status_; -} -inline void Mapping::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Mapping.status) -} - -// string collection_name = 2; -inline void Mapping::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& Mapping::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.Mapping.collection_name) - return collection_name_.GetNoArena(); -} -inline void Mapping::set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.Mapping.collection_name) -} -inline void Mapping::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.Mapping.collection_name) -} -inline void Mapping::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.Mapping.collection_name) -} -inline void Mapping::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.Mapping.collection_name) -} -inline std::string* Mapping::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.Mapping.collection_name) - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* Mapping::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.Mapping.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void Mapping::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Mapping.collection_name) -} - -// repeated .milvus.grpc.FieldParam fields = 3; -inline int Mapping::fields_size() const { - return fields_.size(); -} -inline void Mapping::clear_fields() { - fields_.Clear(); -} -inline ::milvus::grpc::FieldParam* Mapping::mutable_fields(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.Mapping.fields) - return fields_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldParam >* -Mapping::mutable_fields() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Mapping.fields) - return &fields_; -} -inline const ::milvus::grpc::FieldParam& Mapping::fields(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.Mapping.fields) - return fields_.Get(index); -} -inline ::milvus::grpc::FieldParam* Mapping::add_fields() { - // @@protoc_insertion_point(field_add:milvus.grpc.Mapping.fields) - return fields_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldParam >& -Mapping::fields() const { - // @@protoc_insertion_point(field_list:milvus.grpc.Mapping.fields) - return fields_; -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 4; -inline int Mapping::extra_params_size() const { - return extra_params_.size(); -} -inline void Mapping::clear_extra_params() { - extra_params_.Clear(); -} -inline ::milvus::grpc::KeyValuePair* Mapping::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.Mapping.extra_params) - return extra_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -Mapping::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Mapping.extra_params) - return &extra_params_; -} -inline const ::milvus::grpc::KeyValuePair& Mapping::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.Mapping.extra_params) - return extra_params_.Get(index); -} -inline ::milvus::grpc::KeyValuePair* Mapping::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.Mapping.extra_params) - return extra_params_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -Mapping::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.Mapping.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// MappingList - -// .milvus.grpc.Status status = 1; -inline bool MappingList::has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline const ::milvus::grpc::Status& MappingList::status() const { - const ::milvus::grpc::Status* p = status_; - // @@protoc_insertion_point(field_get:milvus.grpc.MappingList.status) - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Status_default_instance_); -} -inline ::milvus::grpc::Status* MappingList::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.MappingList.status) - - ::milvus::grpc::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::grpc::Status* MappingList::mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); - status_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.MappingList.status) - return status_; -} -inline void MappingList::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.MappingList.status) -} - -// repeated .milvus.grpc.Mapping mapping_list = 2; -inline int MappingList::mapping_list_size() const { - return mapping_list_.size(); -} -inline void MappingList::clear_mapping_list() { - mapping_list_.Clear(); -} -inline ::milvus::grpc::Mapping* MappingList::mutable_mapping_list(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.MappingList.mapping_list) - return mapping_list_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::Mapping >* -MappingList::mutable_mapping_list() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.MappingList.mapping_list) - return &mapping_list_; -} -inline const ::milvus::grpc::Mapping& MappingList::mapping_list(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.MappingList.mapping_list) - return mapping_list_.Get(index); -} -inline ::milvus::grpc::Mapping* MappingList::add_mapping_list() { - // @@protoc_insertion_point(field_add:milvus.grpc.MappingList.mapping_list) - return mapping_list_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::Mapping >& -MappingList::mapping_list() const { - // @@protoc_insertion_point(field_list:milvus.grpc.MappingList.mapping_list) - return mapping_list_; -} - -// ------------------------------------------------------------------- - -// PartitionParam - -// string collection_name = 1; -inline void PartitionParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& PartitionParam::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.PartitionParam.collection_name) - return collection_name_.GetNoArena(); -} -inline void PartitionParam::set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.PartitionParam.collection_name) -} -inline void PartitionParam::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.PartitionParam.collection_name) -} -inline void PartitionParam::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.PartitionParam.collection_name) -} -inline void PartitionParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.PartitionParam.collection_name) -} -inline std::string* PartitionParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.PartitionParam.collection_name) - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* PartitionParam::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.PartitionParam.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void PartitionParam::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.PartitionParam.collection_name) -} - -// string tag = 2; -inline void PartitionParam::clear_tag() { - tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& PartitionParam::tag() const { - // @@protoc_insertion_point(field_get:milvus.grpc.PartitionParam.tag) - return tag_.GetNoArena(); -} -inline void PartitionParam::set_tag(const std::string& value) { - - tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.PartitionParam.tag) -} -inline void PartitionParam::set_tag(std::string&& value) { - - tag_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.PartitionParam.tag) -} -inline void PartitionParam::set_tag(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.PartitionParam.tag) -} -inline void PartitionParam::set_tag(const char* value, size_t size) { - - tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.PartitionParam.tag) -} -inline std::string* PartitionParam::mutable_tag() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.PartitionParam.tag) - return tag_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* PartitionParam::release_tag() { - // @@protoc_insertion_point(field_release:milvus.grpc.PartitionParam.tag) - - return tag_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void PartitionParam::set_allocated_tag(std::string* tag) { - if (tag != nullptr) { - - } else { - - } - tag_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), tag); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.PartitionParam.tag) -} - -// ------------------------------------------------------------------- - -// PartitionList - -// .milvus.grpc.Status status = 1; -inline bool PartitionList::has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline const ::milvus::grpc::Status& PartitionList::status() const { - const ::milvus::grpc::Status* p = status_; - // @@protoc_insertion_point(field_get:milvus.grpc.PartitionList.status) - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Status_default_instance_); -} -inline ::milvus::grpc::Status* PartitionList::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.PartitionList.status) - - ::milvus::grpc::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::grpc::Status* PartitionList::mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); - status_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.PartitionList.status) - return status_; -} -inline void PartitionList::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.PartitionList.status) -} - -// repeated string partition_tag_array = 2; -inline int PartitionList::partition_tag_array_size() const { - return partition_tag_array_.size(); -} -inline void PartitionList::clear_partition_tag_array() { - partition_tag_array_.Clear(); -} -inline const std::string& PartitionList::partition_tag_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.PartitionList.partition_tag_array) - return partition_tag_array_.Get(index); -} -inline std::string* PartitionList::mutable_partition_tag_array(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.PartitionList.partition_tag_array) - return partition_tag_array_.Mutable(index); -} -inline void PartitionList::set_partition_tag_array(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.PartitionList.partition_tag_array) - partition_tag_array_.Mutable(index)->assign(value); -} -inline void PartitionList::set_partition_tag_array(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.PartitionList.partition_tag_array) - partition_tag_array_.Mutable(index)->assign(std::move(value)); -} -inline void PartitionList::set_partition_tag_array(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - partition_tag_array_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.grpc.PartitionList.partition_tag_array) -} -inline void PartitionList::set_partition_tag_array(int index, const char* value, size_t size) { - partition_tag_array_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.PartitionList.partition_tag_array) -} -inline std::string* PartitionList::add_partition_tag_array() { - // @@protoc_insertion_point(field_add_mutable:milvus.grpc.PartitionList.partition_tag_array) - return partition_tag_array_.Add(); -} -inline void PartitionList::add_partition_tag_array(const std::string& value) { - partition_tag_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.grpc.PartitionList.partition_tag_array) -} -inline void PartitionList::add_partition_tag_array(std::string&& value) { - partition_tag_array_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.grpc.PartitionList.partition_tag_array) -} -inline void PartitionList::add_partition_tag_array(const char* value) { - GOOGLE_DCHECK(value != nullptr); - partition_tag_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.grpc.PartitionList.partition_tag_array) -} -inline void PartitionList::add_partition_tag_array(const char* value, size_t size) { - partition_tag_array_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.grpc.PartitionList.partition_tag_array) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -PartitionList::partition_tag_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.PartitionList.partition_tag_array) - return partition_tag_array_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -PartitionList::mutable_partition_tag_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.PartitionList.partition_tag_array) - return &partition_tag_array_; -} - -// ------------------------------------------------------------------- - -// VectorRowRecord - -// repeated float float_data = 1; -inline int VectorRowRecord::float_data_size() const { - return float_data_.size(); -} -inline void VectorRowRecord::clear_float_data() { - float_data_.Clear(); -} -inline float VectorRowRecord::float_data(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorRowRecord.float_data) - return float_data_.Get(index); -} -inline void VectorRowRecord::set_float_data(int index, float value) { - float_data_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.VectorRowRecord.float_data) -} -inline void VectorRowRecord::add_float_data(float value) { - float_data_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.VectorRowRecord.float_data) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& -VectorRowRecord::float_data() const { - // @@protoc_insertion_point(field_list:milvus.grpc.VectorRowRecord.float_data) - return float_data_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* -VectorRowRecord::mutable_float_data() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorRowRecord.float_data) - return &float_data_; -} - -// bytes binary_data = 2; -inline void VectorRowRecord::clear_binary_data() { - binary_data_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& VectorRowRecord::binary_data() const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorRowRecord.binary_data) - return binary_data_.GetNoArena(); -} -inline void VectorRowRecord::set_binary_data(const std::string& value) { - - binary_data_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.VectorRowRecord.binary_data) -} -inline void VectorRowRecord::set_binary_data(std::string&& value) { - - binary_data_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.VectorRowRecord.binary_data) -} -inline void VectorRowRecord::set_binary_data(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - binary_data_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.VectorRowRecord.binary_data) -} -inline void VectorRowRecord::set_binary_data(const void* value, size_t size) { - - binary_data_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.VectorRowRecord.binary_data) -} -inline std::string* VectorRowRecord::mutable_binary_data() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorRowRecord.binary_data) - return binary_data_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* VectorRowRecord::release_binary_data() { - // @@protoc_insertion_point(field_release:milvus.grpc.VectorRowRecord.binary_data) - - return binary_data_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void VectorRowRecord::set_allocated_binary_data(std::string* binary_data) { - if (binary_data != nullptr) { - - } else { - - } - binary_data_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), binary_data); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.VectorRowRecord.binary_data) -} - -// ------------------------------------------------------------------- - -// AttrRecord - -// repeated int32 int32_value = 1; -inline int AttrRecord::int32_value_size() const { - return int32_value_.size(); -} -inline void AttrRecord::clear_int32_value() { - int32_value_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::int32 AttrRecord::int32_value(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.AttrRecord.int32_value) - return int32_value_.Get(index); -} -inline void AttrRecord::set_int32_value(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) { - int32_value_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.AttrRecord.int32_value) -} -inline void AttrRecord::add_int32_value(::PROTOBUF_NAMESPACE_ID::int32 value) { - int32_value_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.AttrRecord.int32_value) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& -AttrRecord::int32_value() const { - // @@protoc_insertion_point(field_list:milvus.grpc.AttrRecord.int32_value) - return int32_value_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* -AttrRecord::mutable_int32_value() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.AttrRecord.int32_value) - return &int32_value_; -} - -// repeated int64 int64_value = 2; -inline int AttrRecord::int64_value_size() const { - return int64_value_.size(); -} -inline void AttrRecord::clear_int64_value() { - int64_value_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 AttrRecord::int64_value(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.AttrRecord.int64_value) - return int64_value_.Get(index); -} -inline void AttrRecord::set_int64_value(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { - int64_value_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.AttrRecord.int64_value) -} -inline void AttrRecord::add_int64_value(::PROTOBUF_NAMESPACE_ID::int64 value) { - int64_value_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.AttrRecord.int64_value) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -AttrRecord::int64_value() const { - // @@protoc_insertion_point(field_list:milvus.grpc.AttrRecord.int64_value) - return int64_value_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -AttrRecord::mutable_int64_value() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.AttrRecord.int64_value) - return &int64_value_; -} - -// repeated float float_value = 3; -inline int AttrRecord::float_value_size() const { - return float_value_.size(); -} -inline void AttrRecord::clear_float_value() { - float_value_.Clear(); -} -inline float AttrRecord::float_value(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.AttrRecord.float_value) - return float_value_.Get(index); -} -inline void AttrRecord::set_float_value(int index, float value) { - float_value_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.AttrRecord.float_value) -} -inline void AttrRecord::add_float_value(float value) { - float_value_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.AttrRecord.float_value) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& -AttrRecord::float_value() const { - // @@protoc_insertion_point(field_list:milvus.grpc.AttrRecord.float_value) - return float_value_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* -AttrRecord::mutable_float_value() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.AttrRecord.float_value) - return &float_value_; -} - -// repeated double double_value = 4; -inline int AttrRecord::double_value_size() const { - return double_value_.size(); -} -inline void AttrRecord::clear_double_value() { - double_value_.Clear(); -} -inline double AttrRecord::double_value(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.AttrRecord.double_value) - return double_value_.Get(index); -} -inline void AttrRecord::set_double_value(int index, double value) { - double_value_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.AttrRecord.double_value) -} -inline void AttrRecord::add_double_value(double value) { - double_value_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.AttrRecord.double_value) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -AttrRecord::double_value() const { - // @@protoc_insertion_point(field_list:milvus.grpc.AttrRecord.double_value) - return double_value_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -AttrRecord::mutable_double_value() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.AttrRecord.double_value) - return &double_value_; -} - -// ------------------------------------------------------------------- - -// VectorRecord - -// repeated .milvus.grpc.VectorRowRecord records = 1; -inline int VectorRecord::records_size() const { - return records_.size(); -} -inline void VectorRecord::clear_records() { - records_.Clear(); -} -inline ::milvus::grpc::VectorRowRecord* VectorRecord::mutable_records(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorRecord.records) - return records_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* -VectorRecord::mutable_records() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorRecord.records) - return &records_; -} -inline const ::milvus::grpc::VectorRowRecord& VectorRecord::records(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorRecord.records) - return records_.Get(index); -} -inline ::milvus::grpc::VectorRowRecord* VectorRecord::add_records() { - // @@protoc_insertion_point(field_add:milvus.grpc.VectorRecord.records) - return records_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& -VectorRecord::records() const { - // @@protoc_insertion_point(field_list:milvus.grpc.VectorRecord.records) - return records_; -} - -// ------------------------------------------------------------------- - -// FieldValue - -// string field_name = 1; -inline void FieldValue::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& FieldValue::field_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldValue.field_name) - return field_name_.GetNoArena(); -} -inline void FieldValue::set_field_name(const std::string& value) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.FieldValue.field_name) -} -inline void FieldValue::set_field_name(std::string&& value) { - - field_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.FieldValue.field_name) -} -inline void FieldValue::set_field_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.FieldValue.field_name) -} -inline void FieldValue::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.FieldValue.field_name) -} -inline std::string* FieldValue::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldValue.field_name) - return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* FieldValue::release_field_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.FieldValue.field_name) - - return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void FieldValue::set_allocated_field_name(std::string* field_name) { - if (field_name != nullptr) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.FieldValue.field_name) -} - -// .milvus.grpc.DataType type = 2; -inline void FieldValue::clear_type() { - type_ = 0; -} -inline ::milvus::grpc::DataType FieldValue::type() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldValue.type) - return static_cast< ::milvus::grpc::DataType >(type_); -} -inline void FieldValue::set_type(::milvus::grpc::DataType value) { - - type_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.FieldValue.type) -} - -// .milvus.grpc.AttrRecord attr_record = 3; -inline bool FieldValue::has_attr_record() const { - return this != internal_default_instance() && attr_record_ != nullptr; -} -inline void FieldValue::clear_attr_record() { - if (GetArenaNoVirtual() == nullptr && attr_record_ != nullptr) { - delete attr_record_; - } - attr_record_ = nullptr; -} -inline const ::milvus::grpc::AttrRecord& FieldValue::attr_record() const { - const ::milvus::grpc::AttrRecord* p = attr_record_; - // @@protoc_insertion_point(field_get:milvus.grpc.FieldValue.attr_record) - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_AttrRecord_default_instance_); -} -inline ::milvus::grpc::AttrRecord* FieldValue::release_attr_record() { - // @@protoc_insertion_point(field_release:milvus.grpc.FieldValue.attr_record) - - ::milvus::grpc::AttrRecord* temp = attr_record_; - attr_record_ = nullptr; - return temp; -} -inline ::milvus::grpc::AttrRecord* FieldValue::mutable_attr_record() { - - if (attr_record_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::AttrRecord>(GetArenaNoVirtual()); - attr_record_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldValue.attr_record) - return attr_record_; -} -inline void FieldValue::set_allocated_attr_record(::milvus::grpc::AttrRecord* attr_record) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete attr_record_; - } - if (attr_record) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - attr_record = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, attr_record, submessage_arena); - } - - } else { - - } - attr_record_ = attr_record; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.FieldValue.attr_record) -} - -// .milvus.grpc.VectorRecord vector_record = 4; -inline bool FieldValue::has_vector_record() const { - return this != internal_default_instance() && vector_record_ != nullptr; -} -inline void FieldValue::clear_vector_record() { - if (GetArenaNoVirtual() == nullptr && vector_record_ != nullptr) { - delete vector_record_; - } - vector_record_ = nullptr; -} -inline const ::milvus::grpc::VectorRecord& FieldValue::vector_record() const { - const ::milvus::grpc::VectorRecord* p = vector_record_; - // @@protoc_insertion_point(field_get:milvus.grpc.FieldValue.vector_record) - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_VectorRecord_default_instance_); -} -inline ::milvus::grpc::VectorRecord* FieldValue::release_vector_record() { - // @@protoc_insertion_point(field_release:milvus.grpc.FieldValue.vector_record) - - ::milvus::grpc::VectorRecord* temp = vector_record_; - vector_record_ = nullptr; - return temp; -} -inline ::milvus::grpc::VectorRecord* FieldValue::mutable_vector_record() { - - if (vector_record_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::VectorRecord>(GetArenaNoVirtual()); - vector_record_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldValue.vector_record) - return vector_record_; -} -inline void FieldValue::set_allocated_vector_record(::milvus::grpc::VectorRecord* vector_record) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete vector_record_; - } - if (vector_record) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - vector_record = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, vector_record, submessage_arena); - } - - } else { - - } - vector_record_ = vector_record; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.FieldValue.vector_record) -} - -// ------------------------------------------------------------------- - -// InsertParam - -// string collection_name = 1; -inline void InsertParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& InsertParam::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.collection_name) - return collection_name_.GetNoArena(); -} -inline void InsertParam::set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.InsertParam.collection_name) -} -inline void InsertParam::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.InsertParam.collection_name) -} -inline void InsertParam::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.InsertParam.collection_name) -} -inline void InsertParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.InsertParam.collection_name) -} -inline std::string* InsertParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertParam.collection_name) - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* InsertParam::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.InsertParam.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void InsertParam::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.InsertParam.collection_name) -} - -// repeated .milvus.grpc.FieldValue fields = 2; -inline int InsertParam::fields_size() const { - return fields_.size(); -} -inline void InsertParam::clear_fields() { - fields_.Clear(); -} -inline ::milvus::grpc::FieldValue* InsertParam::mutable_fields(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertParam.fields) - return fields_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldValue >* -InsertParam::mutable_fields() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.InsertParam.fields) - return &fields_; -} -inline const ::milvus::grpc::FieldValue& InsertParam::fields(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.fields) - return fields_.Get(index); -} -inline ::milvus::grpc::FieldValue* InsertParam::add_fields() { - // @@protoc_insertion_point(field_add:milvus.grpc.InsertParam.fields) - return fields_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldValue >& -InsertParam::fields() const { - // @@protoc_insertion_point(field_list:milvus.grpc.InsertParam.fields) - return fields_; -} - -// repeated int64 entity_id_array = 3; -inline int InsertParam::entity_id_array_size() const { - return entity_id_array_.size(); -} -inline void InsertParam::clear_entity_id_array() { - entity_id_array_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 InsertParam::entity_id_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.entity_id_array) - return entity_id_array_.Get(index); -} -inline void InsertParam::set_entity_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { - entity_id_array_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.InsertParam.entity_id_array) -} -inline void InsertParam::add_entity_id_array(::PROTOBUF_NAMESPACE_ID::int64 value) { - entity_id_array_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.InsertParam.entity_id_array) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -InsertParam::entity_id_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.InsertParam.entity_id_array) - return entity_id_array_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -InsertParam::mutable_entity_id_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.InsertParam.entity_id_array) - return &entity_id_array_; -} - -// string partition_tag = 4; -inline void InsertParam::clear_partition_tag() { - partition_tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& InsertParam::partition_tag() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.partition_tag) - return partition_tag_.GetNoArena(); -} -inline void InsertParam::set_partition_tag(const std::string& value) { - - partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.InsertParam.partition_tag) -} -inline void InsertParam::set_partition_tag(std::string&& value) { - - partition_tag_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.InsertParam.partition_tag) -} -inline void InsertParam::set_partition_tag(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.InsertParam.partition_tag) -} -inline void InsertParam::set_partition_tag(const char* value, size_t size) { - - partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.InsertParam.partition_tag) -} -inline std::string* InsertParam::mutable_partition_tag() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertParam.partition_tag) - return partition_tag_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* InsertParam::release_partition_tag() { - // @@protoc_insertion_point(field_release:milvus.grpc.InsertParam.partition_tag) - - return partition_tag_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void InsertParam::set_allocated_partition_tag(std::string* partition_tag) { - if (partition_tag != nullptr) { - - } else { - - } - partition_tag_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), partition_tag); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.InsertParam.partition_tag) -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 5; -inline int InsertParam::extra_params_size() const { - return extra_params_.size(); -} -inline void InsertParam::clear_extra_params() { - extra_params_.Clear(); -} -inline ::milvus::grpc::KeyValuePair* InsertParam::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertParam.extra_params) - return extra_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -InsertParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.InsertParam.extra_params) - return &extra_params_; -} -inline const ::milvus::grpc::KeyValuePair& InsertParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.extra_params) - return extra_params_.Get(index); -} -inline ::milvus::grpc::KeyValuePair* InsertParam::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.InsertParam.extra_params) - return extra_params_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -InsertParam::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.InsertParam.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// EntityIds - -// .milvus.grpc.Status status = 1; -inline bool EntityIds::has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline const ::milvus::grpc::Status& EntityIds::status() const { - const ::milvus::grpc::Status* p = status_; - // @@protoc_insertion_point(field_get:milvus.grpc.EntityIds.status) - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Status_default_instance_); -} -inline ::milvus::grpc::Status* EntityIds::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.EntityIds.status) - - ::milvus::grpc::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::grpc::Status* EntityIds::mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); - status_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.EntityIds.status) - return status_; -} -inline void EntityIds::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.EntityIds.status) -} - -// repeated int64 entity_id_array = 2; -inline int EntityIds::entity_id_array_size() const { - return entity_id_array_.size(); -} -inline void EntityIds::clear_entity_id_array() { - entity_id_array_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 EntityIds::entity_id_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.EntityIds.entity_id_array) - return entity_id_array_.Get(index); -} -inline void EntityIds::set_entity_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { - entity_id_array_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.EntityIds.entity_id_array) -} -inline void EntityIds::add_entity_id_array(::PROTOBUF_NAMESPACE_ID::int64 value) { - entity_id_array_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.EntityIds.entity_id_array) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -EntityIds::entity_id_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.EntityIds.entity_id_array) - return entity_id_array_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -EntityIds::mutable_entity_id_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.EntityIds.entity_id_array) - return &entity_id_array_; -} - -// ------------------------------------------------------------------- - -// VectorParam - -// string json = 1; -inline void VectorParam::clear_json() { - json_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& VectorParam::json() const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorParam.json) - return json_.GetNoArena(); -} -inline void VectorParam::set_json(const std::string& value) { - - json_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.VectorParam.json) -} -inline void VectorParam::set_json(std::string&& value) { - - json_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.VectorParam.json) -} -inline void VectorParam::set_json(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - json_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.VectorParam.json) -} -inline void VectorParam::set_json(const char* value, size_t size) { - - json_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.VectorParam.json) -} -inline std::string* VectorParam::mutable_json() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorParam.json) - return json_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* VectorParam::release_json() { - // @@protoc_insertion_point(field_release:milvus.grpc.VectorParam.json) - - return json_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void VectorParam::set_allocated_json(std::string* json) { - if (json != nullptr) { - - } else { - - } - json_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), json); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.VectorParam.json) -} - -// .milvus.grpc.VectorRecord row_record = 2; -inline bool VectorParam::has_row_record() const { - return this != internal_default_instance() && row_record_ != nullptr; -} -inline void VectorParam::clear_row_record() { - if (GetArenaNoVirtual() == nullptr && row_record_ != nullptr) { - delete row_record_; - } - row_record_ = nullptr; -} -inline const ::milvus::grpc::VectorRecord& VectorParam::row_record() const { - const ::milvus::grpc::VectorRecord* p = row_record_; - // @@protoc_insertion_point(field_get:milvus.grpc.VectorParam.row_record) - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_VectorRecord_default_instance_); -} -inline ::milvus::grpc::VectorRecord* VectorParam::release_row_record() { - // @@protoc_insertion_point(field_release:milvus.grpc.VectorParam.row_record) - - ::milvus::grpc::VectorRecord* temp = row_record_; - row_record_ = nullptr; - return temp; -} -inline ::milvus::grpc::VectorRecord* VectorParam::mutable_row_record() { - - if (row_record_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::VectorRecord>(GetArenaNoVirtual()); - row_record_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorParam.row_record) - return row_record_; -} -inline void VectorParam::set_allocated_row_record(::milvus::grpc::VectorRecord* row_record) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete row_record_; - } - if (row_record) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - row_record = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, row_record, submessage_arena); - } - - } else { - - } - row_record_ = row_record; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.VectorParam.row_record) -} - -// ------------------------------------------------------------------- - -// SearchParam - -// string collection_name = 1; -inline void SearchParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& SearchParam::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.collection_name) - return collection_name_.GetNoArena(); -} -inline void SearchParam::set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.SearchParam.collection_name) -} -inline void SearchParam::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.SearchParam.collection_name) -} -inline void SearchParam::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchParam.collection_name) -} -inline void SearchParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchParam.collection_name) -} -inline std::string* SearchParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParam.collection_name) - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* SearchParam::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.SearchParam.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void SearchParam::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchParam.collection_name) -} - -// repeated string partition_tag_array = 2; -inline int SearchParam::partition_tag_array_size() const { - return partition_tag_array_.size(); -} -inline void SearchParam::clear_partition_tag_array() { - partition_tag_array_.Clear(); -} -inline const std::string& SearchParam::partition_tag_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.partition_tag_array) - return partition_tag_array_.Get(index); -} -inline std::string* SearchParam::mutable_partition_tag_array(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParam.partition_tag_array) - return partition_tag_array_.Mutable(index); -} -inline void SearchParam::set_partition_tag_array(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.SearchParam.partition_tag_array) - partition_tag_array_.Mutable(index)->assign(value); -} -inline void SearchParam::set_partition_tag_array(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.SearchParam.partition_tag_array) - partition_tag_array_.Mutable(index)->assign(std::move(value)); -} -inline void SearchParam::set_partition_tag_array(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - partition_tag_array_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchParam.partition_tag_array) -} -inline void SearchParam::set_partition_tag_array(int index, const char* value, size_t size) { - partition_tag_array_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchParam.partition_tag_array) -} -inline std::string* SearchParam::add_partition_tag_array() { - // @@protoc_insertion_point(field_add_mutable:milvus.grpc.SearchParam.partition_tag_array) - return partition_tag_array_.Add(); -} -inline void SearchParam::add_partition_tag_array(const std::string& value) { - partition_tag_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.grpc.SearchParam.partition_tag_array) -} -inline void SearchParam::add_partition_tag_array(std::string&& value) { - partition_tag_array_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.grpc.SearchParam.partition_tag_array) -} -inline void SearchParam::add_partition_tag_array(const char* value) { - GOOGLE_DCHECK(value != nullptr); - partition_tag_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.grpc.SearchParam.partition_tag_array) -} -inline void SearchParam::add_partition_tag_array(const char* value, size_t size) { - partition_tag_array_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.grpc.SearchParam.partition_tag_array) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -SearchParam::partition_tag_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchParam.partition_tag_array) - return partition_tag_array_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -SearchParam::mutable_partition_tag_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchParam.partition_tag_array) - return &partition_tag_array_; -} - -// repeated .milvus.grpc.VectorParam vector_param = 3; -inline int SearchParam::vector_param_size() const { - return vector_param_.size(); -} -inline void SearchParam::clear_vector_param() { - vector_param_.Clear(); -} -inline ::milvus::grpc::VectorParam* SearchParam::mutable_vector_param(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParam.vector_param) - return vector_param_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorParam >* -SearchParam::mutable_vector_param() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchParam.vector_param) - return &vector_param_; -} -inline const ::milvus::grpc::VectorParam& SearchParam::vector_param(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.vector_param) - return vector_param_.Get(index); -} -inline ::milvus::grpc::VectorParam* SearchParam::add_vector_param() { - // @@protoc_insertion_point(field_add:milvus.grpc.SearchParam.vector_param) - return vector_param_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorParam >& -SearchParam::vector_param() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchParam.vector_param) - return vector_param_; -} - -// string dsl = 4; -inline void SearchParam::clear_dsl() { - dsl_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& SearchParam::dsl() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.dsl) - return dsl_.GetNoArena(); -} -inline void SearchParam::set_dsl(const std::string& value) { - - dsl_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.SearchParam.dsl) -} -inline void SearchParam::set_dsl(std::string&& value) { - - dsl_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.SearchParam.dsl) -} -inline void SearchParam::set_dsl(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - dsl_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchParam.dsl) -} -inline void SearchParam::set_dsl(const char* value, size_t size) { - - dsl_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchParam.dsl) -} -inline std::string* SearchParam::mutable_dsl() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParam.dsl) - return dsl_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* SearchParam::release_dsl() { - // @@protoc_insertion_point(field_release:milvus.grpc.SearchParam.dsl) - - return dsl_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void SearchParam::set_allocated_dsl(std::string* dsl) { - if (dsl != nullptr) { - - } else { - - } - dsl_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), dsl); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchParam.dsl) -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 5; -inline int SearchParam::extra_params_size() const { - return extra_params_.size(); -} -inline void SearchParam::clear_extra_params() { - extra_params_.Clear(); -} -inline ::milvus::grpc::KeyValuePair* SearchParam::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParam.extra_params) - return extra_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -SearchParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchParam.extra_params) - return &extra_params_; -} -inline const ::milvus::grpc::KeyValuePair& SearchParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.extra_params) - return extra_params_.Get(index); -} -inline ::milvus::grpc::KeyValuePair* SearchParam::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.SearchParam.extra_params) - return extra_params_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -SearchParam::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchParam.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// SearchInSegmentParam - -// repeated string file_id_array = 1; -inline int SearchInSegmentParam::file_id_array_size() const { - return file_id_array_.size(); -} -inline void SearchInSegmentParam::clear_file_id_array() { - file_id_array_.Clear(); -} -inline const std::string& SearchInSegmentParam::file_id_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchInSegmentParam.file_id_array) - return file_id_array_.Get(index); -} -inline std::string* SearchInSegmentParam::mutable_file_id_array(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchInSegmentParam.file_id_array) - return file_id_array_.Mutable(index); -} -inline void SearchInSegmentParam::set_file_id_array(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.SearchInSegmentParam.file_id_array) - file_id_array_.Mutable(index)->assign(value); -} -inline void SearchInSegmentParam::set_file_id_array(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.SearchInSegmentParam.file_id_array) - file_id_array_.Mutable(index)->assign(std::move(value)); -} -inline void SearchInSegmentParam::set_file_id_array(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - file_id_array_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchInSegmentParam.file_id_array) -} -inline void SearchInSegmentParam::set_file_id_array(int index, const char* value, size_t size) { - file_id_array_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchInSegmentParam.file_id_array) -} -inline std::string* SearchInSegmentParam::add_file_id_array() { - // @@protoc_insertion_point(field_add_mutable:milvus.grpc.SearchInSegmentParam.file_id_array) - return file_id_array_.Add(); -} -inline void SearchInSegmentParam::add_file_id_array(const std::string& value) { - file_id_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.grpc.SearchInSegmentParam.file_id_array) -} -inline void SearchInSegmentParam::add_file_id_array(std::string&& value) { - file_id_array_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.grpc.SearchInSegmentParam.file_id_array) -} -inline void SearchInSegmentParam::add_file_id_array(const char* value) { - GOOGLE_DCHECK(value != nullptr); - file_id_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.grpc.SearchInSegmentParam.file_id_array) -} -inline void SearchInSegmentParam::add_file_id_array(const char* value, size_t size) { - file_id_array_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.grpc.SearchInSegmentParam.file_id_array) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -SearchInSegmentParam::file_id_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchInSegmentParam.file_id_array) - return file_id_array_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -SearchInSegmentParam::mutable_file_id_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchInSegmentParam.file_id_array) - return &file_id_array_; -} - -// .milvus.grpc.SearchParam search_param = 2; -inline bool SearchInSegmentParam::has_search_param() const { - return this != internal_default_instance() && search_param_ != nullptr; -} -inline void SearchInSegmentParam::clear_search_param() { - if (GetArenaNoVirtual() == nullptr && search_param_ != nullptr) { - delete search_param_; - } - search_param_ = nullptr; -} -inline const ::milvus::grpc::SearchParam& SearchInSegmentParam::search_param() const { - const ::milvus::grpc::SearchParam* p = search_param_; - // @@protoc_insertion_point(field_get:milvus.grpc.SearchInSegmentParam.search_param) - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_SearchParam_default_instance_); -} -inline ::milvus::grpc::SearchParam* SearchInSegmentParam::release_search_param() { - // @@protoc_insertion_point(field_release:milvus.grpc.SearchInSegmentParam.search_param) - - ::milvus::grpc::SearchParam* temp = search_param_; - search_param_ = nullptr; - return temp; -} -inline ::milvus::grpc::SearchParam* SearchInSegmentParam::mutable_search_param() { - - if (search_param_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::SearchParam>(GetArenaNoVirtual()); - search_param_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchInSegmentParam.search_param) - return search_param_; -} -inline void SearchInSegmentParam::set_allocated_search_param(::milvus::grpc::SearchParam* search_param) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete search_param_; - } - if (search_param) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - search_param = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, search_param, submessage_arena); - } - - } else { - - } - search_param_ = search_param; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchInSegmentParam.search_param) -} - -// ------------------------------------------------------------------- - -// Entities - -// .milvus.grpc.Status status = 1; -inline bool Entities::has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline const ::milvus::grpc::Status& Entities::status() const { - const ::milvus::grpc::Status* p = status_; - // @@protoc_insertion_point(field_get:milvus.grpc.Entities.status) - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Status_default_instance_); -} -inline ::milvus::grpc::Status* Entities::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.Entities.status) - - ::milvus::grpc::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::grpc::Status* Entities::mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); - status_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.Entities.status) - return status_; -} -inline void Entities::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Entities.status) -} - -// repeated int64 ids = 2; -inline int Entities::ids_size() const { - return ids_.size(); -} -inline void Entities::clear_ids() { - ids_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 Entities::ids(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.Entities.ids) - return ids_.Get(index); -} -inline void Entities::set_ids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { - ids_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.Entities.ids) -} -inline void Entities::add_ids(::PROTOBUF_NAMESPACE_ID::int64 value) { - ids_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.Entities.ids) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -Entities::ids() const { - // @@protoc_insertion_point(field_list:milvus.grpc.Entities.ids) - return ids_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -Entities::mutable_ids() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Entities.ids) - return &ids_; -} - -// repeated bool valid_row = 3; -inline int Entities::valid_row_size() const { - return valid_row_.size(); -} -inline void Entities::clear_valid_row() { - valid_row_.Clear(); -} -inline bool Entities::valid_row(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.Entities.valid_row) - return valid_row_.Get(index); -} -inline void Entities::set_valid_row(int index, bool value) { - valid_row_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.Entities.valid_row) -} -inline void Entities::add_valid_row(bool value) { - valid_row_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.Entities.valid_row) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >& -Entities::valid_row() const { - // @@protoc_insertion_point(field_list:milvus.grpc.Entities.valid_row) - return valid_row_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >* -Entities::mutable_valid_row() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Entities.valid_row) - return &valid_row_; -} - -// repeated .milvus.grpc.FieldValue fields = 4; -inline int Entities::fields_size() const { - return fields_.size(); -} -inline void Entities::clear_fields() { - fields_.Clear(); -} -inline ::milvus::grpc::FieldValue* Entities::mutable_fields(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.Entities.fields) - return fields_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldValue >* -Entities::mutable_fields() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Entities.fields) - return &fields_; -} -inline const ::milvus::grpc::FieldValue& Entities::fields(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.Entities.fields) - return fields_.Get(index); -} -inline ::milvus::grpc::FieldValue* Entities::add_fields() { - // @@protoc_insertion_point(field_add:milvus.grpc.Entities.fields) - return fields_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldValue >& -Entities::fields() const { - // @@protoc_insertion_point(field_list:milvus.grpc.Entities.fields) - return fields_; -} - -// ------------------------------------------------------------------- - -// QueryResult - -// .milvus.grpc.Status status = 1; -inline bool QueryResult::has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline const ::milvus::grpc::Status& QueryResult::status() const { - const ::milvus::grpc::Status* p = status_; - // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.status) - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Status_default_instance_); -} -inline ::milvus::grpc::Status* QueryResult::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.QueryResult.status) - - ::milvus::grpc::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::grpc::Status* QueryResult::mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); - status_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.QueryResult.status) - return status_; -} -inline void QueryResult::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.QueryResult.status) -} - -// .milvus.grpc.Entities entities = 2; -inline bool QueryResult::has_entities() const { - return this != internal_default_instance() && entities_ != nullptr; -} -inline void QueryResult::clear_entities() { - if (GetArenaNoVirtual() == nullptr && entities_ != nullptr) { - delete entities_; - } - entities_ = nullptr; -} -inline const ::milvus::grpc::Entities& QueryResult::entities() const { - const ::milvus::grpc::Entities* p = entities_; - // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.entities) - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Entities_default_instance_); -} -inline ::milvus::grpc::Entities* QueryResult::release_entities() { - // @@protoc_insertion_point(field_release:milvus.grpc.QueryResult.entities) - - ::milvus::grpc::Entities* temp = entities_; - entities_ = nullptr; - return temp; -} -inline ::milvus::grpc::Entities* QueryResult::mutable_entities() { - - if (entities_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Entities>(GetArenaNoVirtual()); - entities_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.QueryResult.entities) - return entities_; -} -inline void QueryResult::set_allocated_entities(::milvus::grpc::Entities* entities) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete entities_; - } - if (entities) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - entities = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, entities, submessage_arena); - } - - } else { - - } - entities_ = entities; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.QueryResult.entities) -} - -// int64 row_num = 3; -inline void QueryResult::clear_row_num() { - row_num_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 QueryResult::row_num() const { - // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.row_num) - return row_num_; -} -inline void QueryResult::set_row_num(::PROTOBUF_NAMESPACE_ID::int64 value) { - - row_num_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.QueryResult.row_num) -} - -// repeated float scores = 4; -inline int QueryResult::scores_size() const { - return scores_.size(); -} -inline void QueryResult::clear_scores() { - scores_.Clear(); -} -inline float QueryResult::scores(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.scores) - return scores_.Get(index); -} -inline void QueryResult::set_scores(int index, float value) { - scores_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.QueryResult.scores) -} -inline void QueryResult::add_scores(float value) { - scores_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.QueryResult.scores) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& -QueryResult::scores() const { - // @@protoc_insertion_point(field_list:milvus.grpc.QueryResult.scores) - return scores_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* -QueryResult::mutable_scores() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.QueryResult.scores) - return &scores_; -} - -// repeated float distances = 5; -inline int QueryResult::distances_size() const { - return distances_.size(); -} -inline void QueryResult::clear_distances() { - distances_.Clear(); -} -inline float QueryResult::distances(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.distances) - return distances_.Get(index); -} -inline void QueryResult::set_distances(int index, float value) { - distances_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.QueryResult.distances) -} -inline void QueryResult::add_distances(float value) { - distances_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.QueryResult.distances) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& -QueryResult::distances() const { - // @@protoc_insertion_point(field_list:milvus.grpc.QueryResult.distances) - return distances_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* -QueryResult::mutable_distances() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.QueryResult.distances) - return &distances_; -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 6; -inline int QueryResult::extra_params_size() const { - return extra_params_.size(); -} -inline void QueryResult::clear_extra_params() { - extra_params_.Clear(); -} -inline ::milvus::grpc::KeyValuePair* QueryResult::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.QueryResult.extra_params) - return extra_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -QueryResult::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.QueryResult.extra_params) - return &extra_params_; -} -inline const ::milvus::grpc::KeyValuePair& QueryResult::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.extra_params) - return extra_params_.Get(index); -} -inline ::milvus::grpc::KeyValuePair* QueryResult::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.QueryResult.extra_params) - return extra_params_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -QueryResult::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.QueryResult.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// StringReply - -// .milvus.grpc.Status status = 1; -inline bool StringReply::has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline const ::milvus::grpc::Status& StringReply::status() const { - const ::milvus::grpc::Status* p = status_; - // @@protoc_insertion_point(field_get:milvus.grpc.StringReply.status) - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Status_default_instance_); -} -inline ::milvus::grpc::Status* StringReply::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.StringReply.status) - - ::milvus::grpc::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::grpc::Status* StringReply::mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); - status_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.StringReply.status) - return status_; -} -inline void StringReply::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.StringReply.status) -} - -// string string_reply = 2; -inline void StringReply::clear_string_reply() { - string_reply_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& StringReply::string_reply() const { - // @@protoc_insertion_point(field_get:milvus.grpc.StringReply.string_reply) - return string_reply_.GetNoArena(); -} -inline void StringReply::set_string_reply(const std::string& value) { - - string_reply_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.StringReply.string_reply) -} -inline void StringReply::set_string_reply(std::string&& value) { - - string_reply_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.StringReply.string_reply) -} -inline void StringReply::set_string_reply(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - string_reply_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.StringReply.string_reply) -} -inline void StringReply::set_string_reply(const char* value, size_t size) { - - string_reply_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.StringReply.string_reply) -} -inline std::string* StringReply::mutable_string_reply() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.StringReply.string_reply) - return string_reply_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* StringReply::release_string_reply() { - // @@protoc_insertion_point(field_release:milvus.grpc.StringReply.string_reply) - - return string_reply_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void StringReply::set_allocated_string_reply(std::string* string_reply) { - if (string_reply != nullptr) { - - } else { - - } - string_reply_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), string_reply); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.StringReply.string_reply) -} - -// ------------------------------------------------------------------- - -// BoolReply - -// .milvus.grpc.Status status = 1; -inline bool BoolReply::has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline const ::milvus::grpc::Status& BoolReply::status() const { - const ::milvus::grpc::Status* p = status_; - // @@protoc_insertion_point(field_get:milvus.grpc.BoolReply.status) - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Status_default_instance_); -} -inline ::milvus::grpc::Status* BoolReply::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.BoolReply.status) - - ::milvus::grpc::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::grpc::Status* BoolReply::mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); - status_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.BoolReply.status) - return status_; -} -inline void BoolReply::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.BoolReply.status) -} - -// bool bool_reply = 2; -inline void BoolReply::clear_bool_reply() { - bool_reply_ = false; -} -inline bool BoolReply::bool_reply() const { - // @@protoc_insertion_point(field_get:milvus.grpc.BoolReply.bool_reply) - return bool_reply_; -} -inline void BoolReply::set_bool_reply(bool value) { - - bool_reply_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.BoolReply.bool_reply) -} - -// ------------------------------------------------------------------- - -// CollectionRowCount - -// .milvus.grpc.Status status = 1; -inline bool CollectionRowCount::has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline const ::milvus::grpc::Status& CollectionRowCount::status() const { - const ::milvus::grpc::Status* p = status_; - // @@protoc_insertion_point(field_get:milvus.grpc.CollectionRowCount.status) - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Status_default_instance_); -} -inline ::milvus::grpc::Status* CollectionRowCount::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.CollectionRowCount.status) - - ::milvus::grpc::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::grpc::Status* CollectionRowCount::mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); - status_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionRowCount.status) - return status_; -} -inline void CollectionRowCount::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CollectionRowCount.status) -} - -// int64 collection_row_count = 2; -inline void CollectionRowCount::clear_collection_row_count() { - collection_row_count_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 CollectionRowCount::collection_row_count() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CollectionRowCount.collection_row_count) - return collection_row_count_; -} -inline void CollectionRowCount::set_collection_row_count(::PROTOBUF_NAMESPACE_ID::int64 value) { - - collection_row_count_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.CollectionRowCount.collection_row_count) -} - -// ------------------------------------------------------------------- - -// Command - -// string cmd = 1; -inline void Command::clear_cmd() { - cmd_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& Command::cmd() const { - // @@protoc_insertion_point(field_get:milvus.grpc.Command.cmd) - return cmd_.GetNoArena(); -} -inline void Command::set_cmd(const std::string& value) { - - cmd_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.Command.cmd) -} -inline void Command::set_cmd(std::string&& value) { - - cmd_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.Command.cmd) -} -inline void Command::set_cmd(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - cmd_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.Command.cmd) -} -inline void Command::set_cmd(const char* value, size_t size) { - - cmd_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.Command.cmd) -} -inline std::string* Command::mutable_cmd() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.Command.cmd) - return cmd_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* Command::release_cmd() { - // @@protoc_insertion_point(field_release:milvus.grpc.Command.cmd) - - return cmd_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void Command::set_allocated_cmd(std::string* cmd) { - if (cmd != nullptr) { - - } else { - - } - cmd_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), cmd); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Command.cmd) -} - -// ------------------------------------------------------------------- - -// IndexParam - -// .milvus.grpc.Status status = 1; -inline bool IndexParam::has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline const ::milvus::grpc::Status& IndexParam::status() const { - const ::milvus::grpc::Status* p = status_; - // @@protoc_insertion_point(field_get:milvus.grpc.IndexParam.status) - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Status_default_instance_); -} -inline ::milvus::grpc::Status* IndexParam::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.IndexParam.status) - - ::milvus::grpc::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::grpc::Status* IndexParam::mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); - status_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.IndexParam.status) - return status_; -} -inline void IndexParam::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.IndexParam.status) -} - -// string collection_name = 2; -inline void IndexParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& IndexParam::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.IndexParam.collection_name) - return collection_name_.GetNoArena(); -} -inline void IndexParam::set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.IndexParam.collection_name) -} -inline void IndexParam::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.IndexParam.collection_name) -} -inline void IndexParam::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.IndexParam.collection_name) -} -inline void IndexParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.IndexParam.collection_name) -} -inline std::string* IndexParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.IndexParam.collection_name) - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* IndexParam::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.IndexParam.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void IndexParam::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.IndexParam.collection_name) -} - -// string field_name = 3; -inline void IndexParam::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& IndexParam::field_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.IndexParam.field_name) - return field_name_.GetNoArena(); -} -inline void IndexParam::set_field_name(const std::string& value) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.IndexParam.field_name) -} -inline void IndexParam::set_field_name(std::string&& value) { - - field_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.IndexParam.field_name) -} -inline void IndexParam::set_field_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.IndexParam.field_name) -} -inline void IndexParam::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.IndexParam.field_name) -} -inline std::string* IndexParam::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.IndexParam.field_name) - return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* IndexParam::release_field_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.IndexParam.field_name) - - return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void IndexParam::set_allocated_field_name(std::string* field_name) { - if (field_name != nullptr) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.IndexParam.field_name) -} - -// string index_name = 4; -inline void IndexParam::clear_index_name() { - index_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& IndexParam::index_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.IndexParam.index_name) - return index_name_.GetNoArena(); -} -inline void IndexParam::set_index_name(const std::string& value) { - - index_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.IndexParam.index_name) -} -inline void IndexParam::set_index_name(std::string&& value) { - - index_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.IndexParam.index_name) -} -inline void IndexParam::set_index_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - index_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.IndexParam.index_name) -} -inline void IndexParam::set_index_name(const char* value, size_t size) { - - index_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.IndexParam.index_name) -} -inline std::string* IndexParam::mutable_index_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.IndexParam.index_name) - return index_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* IndexParam::release_index_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.IndexParam.index_name) - - return index_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void IndexParam::set_allocated_index_name(std::string* index_name) { - if (index_name != nullptr) { - - } else { - - } - index_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), index_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.IndexParam.index_name) -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 5; -inline int IndexParam::extra_params_size() const { - return extra_params_.size(); -} -inline void IndexParam::clear_extra_params() { - extra_params_.Clear(); -} -inline ::milvus::grpc::KeyValuePair* IndexParam::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.IndexParam.extra_params) - return extra_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -IndexParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.IndexParam.extra_params) - return &extra_params_; -} -inline const ::milvus::grpc::KeyValuePair& IndexParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.IndexParam.extra_params) - return extra_params_.Get(index); -} -inline ::milvus::grpc::KeyValuePair* IndexParam::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.IndexParam.extra_params) - return extra_params_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -IndexParam::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.IndexParam.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// FlushParam - -// repeated string collection_name_array = 1; -inline int FlushParam::collection_name_array_size() const { - return collection_name_array_.size(); -} -inline void FlushParam::clear_collection_name_array() { - collection_name_array_.Clear(); -} -inline const std::string& FlushParam::collection_name_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.FlushParam.collection_name_array) - return collection_name_array_.Get(index); -} -inline std::string* FlushParam::mutable_collection_name_array(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.FlushParam.collection_name_array) - return collection_name_array_.Mutable(index); -} -inline void FlushParam::set_collection_name_array(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.FlushParam.collection_name_array) - collection_name_array_.Mutable(index)->assign(value); -} -inline void FlushParam::set_collection_name_array(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.FlushParam.collection_name_array) - collection_name_array_.Mutable(index)->assign(std::move(value)); -} -inline void FlushParam::set_collection_name_array(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - collection_name_array_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.grpc.FlushParam.collection_name_array) -} -inline void FlushParam::set_collection_name_array(int index, const char* value, size_t size) { - collection_name_array_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.FlushParam.collection_name_array) -} -inline std::string* FlushParam::add_collection_name_array() { - // @@protoc_insertion_point(field_add_mutable:milvus.grpc.FlushParam.collection_name_array) - return collection_name_array_.Add(); -} -inline void FlushParam::add_collection_name_array(const std::string& value) { - collection_name_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.grpc.FlushParam.collection_name_array) -} -inline void FlushParam::add_collection_name_array(std::string&& value) { - collection_name_array_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.grpc.FlushParam.collection_name_array) -} -inline void FlushParam::add_collection_name_array(const char* value) { - GOOGLE_DCHECK(value != nullptr); - collection_name_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.grpc.FlushParam.collection_name_array) -} -inline void FlushParam::add_collection_name_array(const char* value, size_t size) { - collection_name_array_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.grpc.FlushParam.collection_name_array) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -FlushParam::collection_name_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.FlushParam.collection_name_array) - return collection_name_array_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -FlushParam::mutable_collection_name_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.FlushParam.collection_name_array) - return &collection_name_array_; -} - -// ------------------------------------------------------------------- - -// CompactParam - -// string collection_name = 1; -inline void CompactParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& CompactParam::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CompactParam.collection_name) - return collection_name_.GetNoArena(); -} -inline void CompactParam::set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.CompactParam.collection_name) -} -inline void CompactParam::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.CompactParam.collection_name) -} -inline void CompactParam::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.CompactParam.collection_name) -} -inline void CompactParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.CompactParam.collection_name) -} -inline std::string* CompactParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.CompactParam.collection_name) - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* CompactParam::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.CompactParam.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void CompactParam::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CompactParam.collection_name) -} - -// double threshold = 2; -inline void CompactParam::clear_threshold() { - threshold_ = 0; -} -inline double CompactParam::threshold() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CompactParam.threshold) - return threshold_; -} -inline void CompactParam::set_threshold(double value) { - - threshold_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.CompactParam.threshold) -} - -// ------------------------------------------------------------------- - -// DeleteByIDParam - -// string collection_name = 1; -inline void DeleteByIDParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& DeleteByIDParam::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.DeleteByIDParam.collection_name) - return collection_name_.GetNoArena(); -} -inline void DeleteByIDParam::set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.DeleteByIDParam.collection_name) -} -inline void DeleteByIDParam::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.DeleteByIDParam.collection_name) -} -inline void DeleteByIDParam::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.DeleteByIDParam.collection_name) -} -inline void DeleteByIDParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.DeleteByIDParam.collection_name) -} -inline std::string* DeleteByIDParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.DeleteByIDParam.collection_name) - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* DeleteByIDParam::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.DeleteByIDParam.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void DeleteByIDParam::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.DeleteByIDParam.collection_name) -} - -// repeated int64 id_array = 2; -inline int DeleteByIDParam::id_array_size() const { - return id_array_.size(); -} -inline void DeleteByIDParam::clear_id_array() { - id_array_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 DeleteByIDParam::id_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.DeleteByIDParam.id_array) - return id_array_.Get(index); -} -inline void DeleteByIDParam::set_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { - id_array_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.DeleteByIDParam.id_array) -} -inline void DeleteByIDParam::add_id_array(::PROTOBUF_NAMESPACE_ID::int64 value) { - id_array_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.DeleteByIDParam.id_array) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -DeleteByIDParam::id_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.DeleteByIDParam.id_array) - return id_array_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -DeleteByIDParam::mutable_id_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.DeleteByIDParam.id_array) - return &id_array_; -} - -// ------------------------------------------------------------------- - -// CollectionInfo - -// .milvus.grpc.Status status = 1; -inline bool CollectionInfo::has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline const ::milvus::grpc::Status& CollectionInfo::status() const { - const ::milvus::grpc::Status* p = status_; - // @@protoc_insertion_point(field_get:milvus.grpc.CollectionInfo.status) - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Status_default_instance_); -} -inline ::milvus::grpc::Status* CollectionInfo::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.CollectionInfo.status) - - ::milvus::grpc::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::grpc::Status* CollectionInfo::mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); - status_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionInfo.status) - return status_; -} -inline void CollectionInfo::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CollectionInfo.status) -} - -// string json_info = 2; -inline void CollectionInfo::clear_json_info() { - json_info_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& CollectionInfo::json_info() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CollectionInfo.json_info) - return json_info_.GetNoArena(); -} -inline void CollectionInfo::set_json_info(const std::string& value) { - - json_info_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.CollectionInfo.json_info) -} -inline void CollectionInfo::set_json_info(std::string&& value) { - - json_info_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.CollectionInfo.json_info) -} -inline void CollectionInfo::set_json_info(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - json_info_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.CollectionInfo.json_info) -} -inline void CollectionInfo::set_json_info(const char* value, size_t size) { - - json_info_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.CollectionInfo.json_info) -} -inline std::string* CollectionInfo::mutable_json_info() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionInfo.json_info) - return json_info_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* CollectionInfo::release_json_info() { - // @@protoc_insertion_point(field_release:milvus.grpc.CollectionInfo.json_info) - - return json_info_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void CollectionInfo::set_allocated_json_info(std::string* json_info) { - if (json_info != nullptr) { - - } else { - - } - json_info_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), json_info); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CollectionInfo.json_info) -} - -// ------------------------------------------------------------------- - -// GetEntityIDsParam - -// string collection_name = 1; -inline void GetEntityIDsParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GetEntityIDsParam::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.GetEntityIDsParam.collection_name) - return collection_name_.GetNoArena(); -} -inline void GetEntityIDsParam::set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.GetEntityIDsParam.collection_name) -} -inline void GetEntityIDsParam::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.GetEntityIDsParam.collection_name) -} -inline void GetEntityIDsParam::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.GetEntityIDsParam.collection_name) -} -inline void GetEntityIDsParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.GetEntityIDsParam.collection_name) -} -inline std::string* GetEntityIDsParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.GetEntityIDsParam.collection_name) - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GetEntityIDsParam::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.GetEntityIDsParam.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GetEntityIDsParam::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GetEntityIDsParam.collection_name) -} - -// int64 segment_id = 2; -inline void GetEntityIDsParam::clear_segment_id() { - segment_id_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 GetEntityIDsParam::segment_id() const { - // @@protoc_insertion_point(field_get:milvus.grpc.GetEntityIDsParam.segment_id) - return segment_id_; -} -inline void GetEntityIDsParam::set_segment_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - - segment_id_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.GetEntityIDsParam.segment_id) -} - -// ------------------------------------------------------------------- - -// EntityIdentity - -// string collection_name = 1; -inline void EntityIdentity::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& EntityIdentity::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.EntityIdentity.collection_name) - return collection_name_.GetNoArena(); -} -inline void EntityIdentity::set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.EntityIdentity.collection_name) -} -inline void EntityIdentity::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.EntityIdentity.collection_name) -} -inline void EntityIdentity::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.EntityIdentity.collection_name) -} -inline void EntityIdentity::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.EntityIdentity.collection_name) -} -inline std::string* EntityIdentity::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.EntityIdentity.collection_name) - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* EntityIdentity::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.EntityIdentity.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void EntityIdentity::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.EntityIdentity.collection_name) -} - -// repeated int64 id_array = 2; -inline int EntityIdentity::id_array_size() const { - return id_array_.size(); -} -inline void EntityIdentity::clear_id_array() { - id_array_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 EntityIdentity::id_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.EntityIdentity.id_array) - return id_array_.Get(index); -} -inline void EntityIdentity::set_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { - id_array_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.EntityIdentity.id_array) -} -inline void EntityIdentity::add_id_array(::PROTOBUF_NAMESPACE_ID::int64 value) { - id_array_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.EntityIdentity.id_array) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -EntityIdentity::id_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.EntityIdentity.id_array) - return id_array_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -EntityIdentity::mutable_id_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.EntityIdentity.id_array) - return &id_array_; -} - -// repeated string field_names = 3; -inline int EntityIdentity::field_names_size() const { - return field_names_.size(); -} -inline void EntityIdentity::clear_field_names() { - field_names_.Clear(); -} -inline const std::string& EntityIdentity::field_names(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.EntityIdentity.field_names) - return field_names_.Get(index); -} -inline std::string* EntityIdentity::mutable_field_names(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.EntityIdentity.field_names) - return field_names_.Mutable(index); -} -inline void EntityIdentity::set_field_names(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.EntityIdentity.field_names) - field_names_.Mutable(index)->assign(value); -} -inline void EntityIdentity::set_field_names(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.EntityIdentity.field_names) - field_names_.Mutable(index)->assign(std::move(value)); -} -inline void EntityIdentity::set_field_names(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - field_names_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.grpc.EntityIdentity.field_names) -} -inline void EntityIdentity::set_field_names(int index, const char* value, size_t size) { - field_names_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.EntityIdentity.field_names) -} -inline std::string* EntityIdentity::add_field_names() { - // @@protoc_insertion_point(field_add_mutable:milvus.grpc.EntityIdentity.field_names) - return field_names_.Add(); -} -inline void EntityIdentity::add_field_names(const std::string& value) { - field_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.grpc.EntityIdentity.field_names) -} -inline void EntityIdentity::add_field_names(std::string&& value) { - field_names_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.grpc.EntityIdentity.field_names) -} -inline void EntityIdentity::add_field_names(const char* value) { - GOOGLE_DCHECK(value != nullptr); - field_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.grpc.EntityIdentity.field_names) -} -inline void EntityIdentity::add_field_names(const char* value, size_t size) { - field_names_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.grpc.EntityIdentity.field_names) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -EntityIdentity::field_names() const { - // @@protoc_insertion_point(field_list:milvus.grpc.EntityIdentity.field_names) - return field_names_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -EntityIdentity::mutable_field_names() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.EntityIdentity.field_names) - return &field_names_; -} - -// ------------------------------------------------------------------- - -// VectorFieldParam - -// int64 dimension = 1; -inline void VectorFieldParam::clear_dimension() { - dimension_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 VectorFieldParam::dimension() const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorFieldParam.dimension) - return dimension_; -} -inline void VectorFieldParam::set_dimension(::PROTOBUF_NAMESPACE_ID::int64 value) { - - dimension_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.VectorFieldParam.dimension) -} - -// ------------------------------------------------------------------- - -// FieldType - -// .milvus.grpc.DataType data_type = 1; -inline bool FieldType::has_data_type() const { - return value_case() == kDataType; -} -inline void FieldType::set_has_data_type() { - _oneof_case_[0] = kDataType; -} -inline void FieldType::clear_data_type() { - if (has_data_type()) { - value_.data_type_ = 0; - clear_has_value(); - } -} -inline ::milvus::grpc::DataType FieldType::data_type() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldType.data_type) - if (has_data_type()) { - return static_cast< ::milvus::grpc::DataType >(value_.data_type_); - } - return static_cast< ::milvus::grpc::DataType >(0); -} -inline void FieldType::set_data_type(::milvus::grpc::DataType value) { - if (!has_data_type()) { - clear_value(); - set_has_data_type(); - } - value_.data_type_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.FieldType.data_type) -} - -// .milvus.grpc.VectorFieldParam vector_param = 2; -inline bool FieldType::has_vector_param() const { - return value_case() == kVectorParam; -} -inline void FieldType::set_has_vector_param() { - _oneof_case_[0] = kVectorParam; -} -inline void FieldType::clear_vector_param() { - if (has_vector_param()) { - delete value_.vector_param_; - clear_has_value(); - } -} -inline ::milvus::grpc::VectorFieldParam* FieldType::release_vector_param() { - // @@protoc_insertion_point(field_release:milvus.grpc.FieldType.vector_param) - if (has_vector_param()) { - clear_has_value(); - ::milvus::grpc::VectorFieldParam* temp = value_.vector_param_; - value_.vector_param_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::milvus::grpc::VectorFieldParam& FieldType::vector_param() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldType.vector_param) - return has_vector_param() - ? *value_.vector_param_ - : *reinterpret_cast< ::milvus::grpc::VectorFieldParam*>(&::milvus::grpc::_VectorFieldParam_default_instance_); -} -inline ::milvus::grpc::VectorFieldParam* FieldType::mutable_vector_param() { - if (!has_vector_param()) { - clear_value(); - set_has_vector_param(); - value_.vector_param_ = CreateMaybeMessage< ::milvus::grpc::VectorFieldParam >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldType.vector_param) - return value_.vector_param_; -} - -inline bool FieldType::has_value() const { - return value_case() != VALUE_NOT_SET; -} -inline void FieldType::clear_has_value() { - _oneof_case_[0] = VALUE_NOT_SET; -} -inline FieldType::ValueCase FieldType::value_case() const { - return FieldType::ValueCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// FieldParam - -// uint64 id = 1; -inline void FieldParam::clear_id() { - id_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 FieldParam::id() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldParam.id) - return id_; -} -inline void FieldParam::set_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - id_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.FieldParam.id) -} - -// string name = 2; -inline void FieldParam::clear_name() { - name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& FieldParam::name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldParam.name) - return name_.GetNoArena(); -} -inline void FieldParam::set_name(const std::string& value) { - - name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.FieldParam.name) -} -inline void FieldParam::set_name(std::string&& value) { - - name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.FieldParam.name) -} -inline void FieldParam::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.FieldParam.name) -} -inline void FieldParam::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.FieldParam.name) -} -inline std::string* FieldParam::mutable_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldParam.name) - return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* FieldParam::release_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.FieldParam.name) - - return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void FieldParam::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.FieldParam.name) -} - -// .milvus.grpc.DataType type = 3; -inline void FieldParam::clear_type() { - type_ = 0; -} -inline ::milvus::grpc::DataType FieldParam::type() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldParam.type) - return static_cast< ::milvus::grpc::DataType >(type_); -} -inline void FieldParam::set_type(::milvus::grpc::DataType value) { - - type_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.FieldParam.type) -} - -// repeated .milvus.grpc.KeyValuePair index_params = 4; -inline int FieldParam::index_params_size() const { - return index_params_.size(); -} -inline void FieldParam::clear_index_params() { - index_params_.Clear(); -} -inline ::milvus::grpc::KeyValuePair* FieldParam::mutable_index_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldParam.index_params) - return index_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -FieldParam::mutable_index_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.FieldParam.index_params) - return &index_params_; -} -inline const ::milvus::grpc::KeyValuePair& FieldParam::index_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldParam.index_params) - return index_params_.Get(index); -} -inline ::milvus::grpc::KeyValuePair* FieldParam::add_index_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.FieldParam.index_params) - return index_params_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -FieldParam::index_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.FieldParam.index_params) - return index_params_; -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 5; -inline int FieldParam::extra_params_size() const { - return extra_params_.size(); -} -inline void FieldParam::clear_extra_params() { - extra_params_.Clear(); -} -inline ::milvus::grpc::KeyValuePair* FieldParam::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldParam.extra_params) - return extra_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -FieldParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.FieldParam.extra_params) - return &extra_params_; -} -inline const ::milvus::grpc::KeyValuePair& FieldParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldParam.extra_params) - return extra_params_.Get(index); -} -inline ::milvus::grpc::KeyValuePair* FieldParam::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.FieldParam.extra_params) - return extra_params_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -FieldParam::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.FieldParam.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// VectorFieldRecord - -// repeated .milvus.grpc.VectorRowRecord value = 1; -inline int VectorFieldRecord::value_size() const { - return value_.size(); -} -inline void VectorFieldRecord::clear_value() { - value_.Clear(); -} -inline ::milvus::grpc::VectorRowRecord* VectorFieldRecord::mutable_value(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorFieldRecord.value) - return value_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* -VectorFieldRecord::mutable_value() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorFieldRecord.value) - return &value_; -} -inline const ::milvus::grpc::VectorRowRecord& VectorFieldRecord::value(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorFieldRecord.value) - return value_.Get(index); -} -inline ::milvus::grpc::VectorRowRecord* VectorFieldRecord::add_value() { - // @@protoc_insertion_point(field_add:milvus.grpc.VectorFieldRecord.value) - return value_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& -VectorFieldRecord::value() const { - // @@protoc_insertion_point(field_list:milvus.grpc.VectorFieldRecord.value) - return value_; -} - -// ------------------------------------------------------------------- - -// TermQuery - -// string field_name = 1; -inline void TermQuery::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& TermQuery::field_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.TermQuery.field_name) - return field_name_.GetNoArena(); -} -inline void TermQuery::set_field_name(const std::string& value) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.TermQuery.field_name) -} -inline void TermQuery::set_field_name(std::string&& value) { - - field_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.TermQuery.field_name) -} -inline void TermQuery::set_field_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.TermQuery.field_name) -} -inline void TermQuery::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.TermQuery.field_name) -} -inline std::string* TermQuery::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.TermQuery.field_name) - return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* TermQuery::release_field_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.TermQuery.field_name) - - return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void TermQuery::set_allocated_field_name(std::string* field_name) { - if (field_name != nullptr) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.TermQuery.field_name) -} - -// repeated int64 int_value = 2; -inline int TermQuery::int_value_size() const { - return int_value_.size(); -} -inline void TermQuery::clear_int_value() { - int_value_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 TermQuery::int_value(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.TermQuery.int_value) - return int_value_.Get(index); -} -inline void TermQuery::set_int_value(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { - int_value_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.TermQuery.int_value) -} -inline void TermQuery::add_int_value(::PROTOBUF_NAMESPACE_ID::int64 value) { - int_value_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.TermQuery.int_value) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -TermQuery::int_value() const { - // @@protoc_insertion_point(field_list:milvus.grpc.TermQuery.int_value) - return int_value_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -TermQuery::mutable_int_value() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.TermQuery.int_value) - return &int_value_; -} - -// repeated double double_value = 3; -inline int TermQuery::double_value_size() const { - return double_value_.size(); -} -inline void TermQuery::clear_double_value() { - double_value_.Clear(); -} -inline double TermQuery::double_value(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.TermQuery.double_value) - return double_value_.Get(index); -} -inline void TermQuery::set_double_value(int index, double value) { - double_value_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.TermQuery.double_value) -} -inline void TermQuery::add_double_value(double value) { - double_value_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.TermQuery.double_value) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -TermQuery::double_value() const { - // @@protoc_insertion_point(field_list:milvus.grpc.TermQuery.double_value) - return double_value_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -TermQuery::mutable_double_value() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.TermQuery.double_value) - return &double_value_; -} - -// int64 value_num = 4; -inline void TermQuery::clear_value_num() { - value_num_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 TermQuery::value_num() const { - // @@protoc_insertion_point(field_get:milvus.grpc.TermQuery.value_num) - return value_num_; -} -inline void TermQuery::set_value_num(::PROTOBUF_NAMESPACE_ID::int64 value) { - - value_num_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.TermQuery.value_num) -} - -// float boost = 5; -inline void TermQuery::clear_boost() { - boost_ = 0; -} -inline float TermQuery::boost() const { - // @@protoc_insertion_point(field_get:milvus.grpc.TermQuery.boost) - return boost_; -} -inline void TermQuery::set_boost(float value) { - - boost_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.TermQuery.boost) -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 6; -inline int TermQuery::extra_params_size() const { - return extra_params_.size(); -} -inline void TermQuery::clear_extra_params() { - extra_params_.Clear(); -} -inline ::milvus::grpc::KeyValuePair* TermQuery::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.TermQuery.extra_params) - return extra_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -TermQuery::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.TermQuery.extra_params) - return &extra_params_; -} -inline const ::milvus::grpc::KeyValuePair& TermQuery::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.TermQuery.extra_params) - return extra_params_.Get(index); -} -inline ::milvus::grpc::KeyValuePair* TermQuery::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.TermQuery.extra_params) - return extra_params_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -TermQuery::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.TermQuery.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// CompareExpr - -// .milvus.grpc.CompareOperator operator = 1; -inline void CompareExpr::clear_operator_() { - operator__ = 0; -} -inline ::milvus::grpc::CompareOperator CompareExpr::operator_() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CompareExpr.operator) - return static_cast< ::milvus::grpc::CompareOperator >(operator__); -} -inline void CompareExpr::set_operator_(::milvus::grpc::CompareOperator value) { - - operator__ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.CompareExpr.operator) -} - -// string operand = 2; -inline void CompareExpr::clear_operand() { - operand_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& CompareExpr::operand() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CompareExpr.operand) - return operand_.GetNoArena(); -} -inline void CompareExpr::set_operand(const std::string& value) { - - operand_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.CompareExpr.operand) -} -inline void CompareExpr::set_operand(std::string&& value) { - - operand_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.CompareExpr.operand) -} -inline void CompareExpr::set_operand(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - operand_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.CompareExpr.operand) -} -inline void CompareExpr::set_operand(const char* value, size_t size) { - - operand_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.CompareExpr.operand) -} -inline std::string* CompareExpr::mutable_operand() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.CompareExpr.operand) - return operand_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* CompareExpr::release_operand() { - // @@protoc_insertion_point(field_release:milvus.grpc.CompareExpr.operand) - - return operand_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void CompareExpr::set_allocated_operand(std::string* operand) { - if (operand != nullptr) { - - } else { - - } - operand_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), operand); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CompareExpr.operand) -} - -// ------------------------------------------------------------------- - -// RangeQuery - -// string field_name = 1; -inline void RangeQuery::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& RangeQuery::field_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.RangeQuery.field_name) - return field_name_.GetNoArena(); -} -inline void RangeQuery::set_field_name(const std::string& value) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.RangeQuery.field_name) -} -inline void RangeQuery::set_field_name(std::string&& value) { - - field_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.RangeQuery.field_name) -} -inline void RangeQuery::set_field_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.RangeQuery.field_name) -} -inline void RangeQuery::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.RangeQuery.field_name) -} -inline std::string* RangeQuery::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.RangeQuery.field_name) - return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* RangeQuery::release_field_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.RangeQuery.field_name) - - return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void RangeQuery::set_allocated_field_name(std::string* field_name) { - if (field_name != nullptr) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.RangeQuery.field_name) -} - -// repeated .milvus.grpc.CompareExpr operand = 2; -inline int RangeQuery::operand_size() const { - return operand_.size(); -} -inline void RangeQuery::clear_operand() { - operand_.Clear(); -} -inline ::milvus::grpc::CompareExpr* RangeQuery::mutable_operand(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.RangeQuery.operand) - return operand_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::CompareExpr >* -RangeQuery::mutable_operand() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.RangeQuery.operand) - return &operand_; -} -inline const ::milvus::grpc::CompareExpr& RangeQuery::operand(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.RangeQuery.operand) - return operand_.Get(index); -} -inline ::milvus::grpc::CompareExpr* RangeQuery::add_operand() { - // @@protoc_insertion_point(field_add:milvus.grpc.RangeQuery.operand) - return operand_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::CompareExpr >& -RangeQuery::operand() const { - // @@protoc_insertion_point(field_list:milvus.grpc.RangeQuery.operand) - return operand_; -} - -// float boost = 3; -inline void RangeQuery::clear_boost() { - boost_ = 0; -} -inline float RangeQuery::boost() const { - // @@protoc_insertion_point(field_get:milvus.grpc.RangeQuery.boost) - return boost_; -} -inline void RangeQuery::set_boost(float value) { - - boost_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.RangeQuery.boost) -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 4; -inline int RangeQuery::extra_params_size() const { - return extra_params_.size(); -} -inline void RangeQuery::clear_extra_params() { - extra_params_.Clear(); -} -inline ::milvus::grpc::KeyValuePair* RangeQuery::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.RangeQuery.extra_params) - return extra_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -RangeQuery::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.RangeQuery.extra_params) - return &extra_params_; -} -inline const ::milvus::grpc::KeyValuePair& RangeQuery::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.RangeQuery.extra_params) - return extra_params_.Get(index); -} -inline ::milvus::grpc::KeyValuePair* RangeQuery::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.RangeQuery.extra_params) - return extra_params_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -RangeQuery::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.RangeQuery.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// VectorQuery - -// string field_name = 1; -inline void VectorQuery::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& VectorQuery::field_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorQuery.field_name) - return field_name_.GetNoArena(); -} -inline void VectorQuery::set_field_name(const std::string& value) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.VectorQuery.field_name) -} -inline void VectorQuery::set_field_name(std::string&& value) { - - field_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.VectorQuery.field_name) -} -inline void VectorQuery::set_field_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.VectorQuery.field_name) -} -inline void VectorQuery::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.VectorQuery.field_name) -} -inline std::string* VectorQuery::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorQuery.field_name) - return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* VectorQuery::release_field_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.VectorQuery.field_name) - - return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void VectorQuery::set_allocated_field_name(std::string* field_name) { - if (field_name != nullptr) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.VectorQuery.field_name) -} - -// float query_boost = 2; -inline void VectorQuery::clear_query_boost() { - query_boost_ = 0; -} -inline float VectorQuery::query_boost() const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorQuery.query_boost) - return query_boost_; -} -inline void VectorQuery::set_query_boost(float value) { - - query_boost_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.VectorQuery.query_boost) -} - -// repeated .milvus.grpc.VectorRowRecord records = 3; -inline int VectorQuery::records_size() const { - return records_.size(); -} -inline void VectorQuery::clear_records() { - records_.Clear(); -} -inline ::milvus::grpc::VectorRowRecord* VectorQuery::mutable_records(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorQuery.records) - return records_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* -VectorQuery::mutable_records() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorQuery.records) - return &records_; -} -inline const ::milvus::grpc::VectorRowRecord& VectorQuery::records(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorQuery.records) - return records_.Get(index); -} -inline ::milvus::grpc::VectorRowRecord* VectorQuery::add_records() { - // @@protoc_insertion_point(field_add:milvus.grpc.VectorQuery.records) - return records_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& -VectorQuery::records() const { - // @@protoc_insertion_point(field_list:milvus.grpc.VectorQuery.records) - return records_; -} - -// int64 topk = 4; -inline void VectorQuery::clear_topk() { - topk_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 VectorQuery::topk() const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorQuery.topk) - return topk_; -} -inline void VectorQuery::set_topk(::PROTOBUF_NAMESPACE_ID::int64 value) { - - topk_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.VectorQuery.topk) -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 5; -inline int VectorQuery::extra_params_size() const { - return extra_params_.size(); -} -inline void VectorQuery::clear_extra_params() { - extra_params_.Clear(); -} -inline ::milvus::grpc::KeyValuePair* VectorQuery::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorQuery.extra_params) - return extra_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -VectorQuery::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorQuery.extra_params) - return &extra_params_; -} -inline const ::milvus::grpc::KeyValuePair& VectorQuery::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorQuery.extra_params) - return extra_params_.Get(index); -} -inline ::milvus::grpc::KeyValuePair* VectorQuery::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.VectorQuery.extra_params) - return extra_params_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -VectorQuery::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.VectorQuery.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// BooleanQuery - -// .milvus.grpc.Occur occur = 1; -inline void BooleanQuery::clear_occur() { - occur_ = 0; -} -inline ::milvus::grpc::Occur BooleanQuery::occur() const { - // @@protoc_insertion_point(field_get:milvus.grpc.BooleanQuery.occur) - return static_cast< ::milvus::grpc::Occur >(occur_); -} -inline void BooleanQuery::set_occur(::milvus::grpc::Occur value) { - - occur_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.BooleanQuery.occur) -} - -// repeated .milvus.grpc.GeneralQuery general_query = 2; -inline int BooleanQuery::general_query_size() const { - return general_query_.size(); -} -inline void BooleanQuery::clear_general_query() { - general_query_.Clear(); -} -inline ::milvus::grpc::GeneralQuery* BooleanQuery::mutable_general_query(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.BooleanQuery.general_query) - return general_query_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::GeneralQuery >* -BooleanQuery::mutable_general_query() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.BooleanQuery.general_query) - return &general_query_; -} -inline const ::milvus::grpc::GeneralQuery& BooleanQuery::general_query(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.BooleanQuery.general_query) - return general_query_.Get(index); -} -inline ::milvus::grpc::GeneralQuery* BooleanQuery::add_general_query() { - // @@protoc_insertion_point(field_add:milvus.grpc.BooleanQuery.general_query) - return general_query_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::GeneralQuery >& -BooleanQuery::general_query() const { - // @@protoc_insertion_point(field_list:milvus.grpc.BooleanQuery.general_query) - return general_query_; -} - -// ------------------------------------------------------------------- - -// GeneralQuery - -// .milvus.grpc.BooleanQuery boolean_query = 1; -inline bool GeneralQuery::has_boolean_query() const { - return query_case() == kBooleanQuery; -} -inline void GeneralQuery::set_has_boolean_query() { - _oneof_case_[0] = kBooleanQuery; -} -inline void GeneralQuery::clear_boolean_query() { - if (has_boolean_query()) { - delete query_.boolean_query_; - clear_has_query(); - } -} -inline ::milvus::grpc::BooleanQuery* GeneralQuery::release_boolean_query() { - // @@protoc_insertion_point(field_release:milvus.grpc.GeneralQuery.boolean_query) - if (has_boolean_query()) { - clear_has_query(); - ::milvus::grpc::BooleanQuery* temp = query_.boolean_query_; - query_.boolean_query_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::milvus::grpc::BooleanQuery& GeneralQuery::boolean_query() const { - // @@protoc_insertion_point(field_get:milvus.grpc.GeneralQuery.boolean_query) - return has_boolean_query() - ? *query_.boolean_query_ - : *reinterpret_cast< ::milvus::grpc::BooleanQuery*>(&::milvus::grpc::_BooleanQuery_default_instance_); -} -inline ::milvus::grpc::BooleanQuery* GeneralQuery::mutable_boolean_query() { - if (!has_boolean_query()) { - clear_query(); - set_has_boolean_query(); - query_.boolean_query_ = CreateMaybeMessage< ::milvus::grpc::BooleanQuery >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.GeneralQuery.boolean_query) - return query_.boolean_query_; -} - -// .milvus.grpc.TermQuery term_query = 2; -inline bool GeneralQuery::has_term_query() const { - return query_case() == kTermQuery; -} -inline void GeneralQuery::set_has_term_query() { - _oneof_case_[0] = kTermQuery; -} -inline void GeneralQuery::clear_term_query() { - if (has_term_query()) { - delete query_.term_query_; - clear_has_query(); - } -} -inline ::milvus::grpc::TermQuery* GeneralQuery::release_term_query() { - // @@protoc_insertion_point(field_release:milvus.grpc.GeneralQuery.term_query) - if (has_term_query()) { - clear_has_query(); - ::milvus::grpc::TermQuery* temp = query_.term_query_; - query_.term_query_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::milvus::grpc::TermQuery& GeneralQuery::term_query() const { - // @@protoc_insertion_point(field_get:milvus.grpc.GeneralQuery.term_query) - return has_term_query() - ? *query_.term_query_ - : *reinterpret_cast< ::milvus::grpc::TermQuery*>(&::milvus::grpc::_TermQuery_default_instance_); -} -inline ::milvus::grpc::TermQuery* GeneralQuery::mutable_term_query() { - if (!has_term_query()) { - clear_query(); - set_has_term_query(); - query_.term_query_ = CreateMaybeMessage< ::milvus::grpc::TermQuery >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.GeneralQuery.term_query) - return query_.term_query_; -} - -// .milvus.grpc.RangeQuery range_query = 3; -inline bool GeneralQuery::has_range_query() const { - return query_case() == kRangeQuery; -} -inline void GeneralQuery::set_has_range_query() { - _oneof_case_[0] = kRangeQuery; -} -inline void GeneralQuery::clear_range_query() { - if (has_range_query()) { - delete query_.range_query_; - clear_has_query(); - } -} -inline ::milvus::grpc::RangeQuery* GeneralQuery::release_range_query() { - // @@protoc_insertion_point(field_release:milvus.grpc.GeneralQuery.range_query) - if (has_range_query()) { - clear_has_query(); - ::milvus::grpc::RangeQuery* temp = query_.range_query_; - query_.range_query_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::milvus::grpc::RangeQuery& GeneralQuery::range_query() const { - // @@protoc_insertion_point(field_get:milvus.grpc.GeneralQuery.range_query) - return has_range_query() - ? *query_.range_query_ - : *reinterpret_cast< ::milvus::grpc::RangeQuery*>(&::milvus::grpc::_RangeQuery_default_instance_); -} -inline ::milvus::grpc::RangeQuery* GeneralQuery::mutable_range_query() { - if (!has_range_query()) { - clear_query(); - set_has_range_query(); - query_.range_query_ = CreateMaybeMessage< ::milvus::grpc::RangeQuery >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.GeneralQuery.range_query) - return query_.range_query_; -} - -// .milvus.grpc.VectorQuery vector_query = 4; -inline bool GeneralQuery::has_vector_query() const { - return query_case() == kVectorQuery; -} -inline void GeneralQuery::set_has_vector_query() { - _oneof_case_[0] = kVectorQuery; -} -inline void GeneralQuery::clear_vector_query() { - if (has_vector_query()) { - delete query_.vector_query_; - clear_has_query(); - } -} -inline ::milvus::grpc::VectorQuery* GeneralQuery::release_vector_query() { - // @@protoc_insertion_point(field_release:milvus.grpc.GeneralQuery.vector_query) - if (has_vector_query()) { - clear_has_query(); - ::milvus::grpc::VectorQuery* temp = query_.vector_query_; - query_.vector_query_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::milvus::grpc::VectorQuery& GeneralQuery::vector_query() const { - // @@protoc_insertion_point(field_get:milvus.grpc.GeneralQuery.vector_query) - return has_vector_query() - ? *query_.vector_query_ - : *reinterpret_cast< ::milvus::grpc::VectorQuery*>(&::milvus::grpc::_VectorQuery_default_instance_); -} -inline ::milvus::grpc::VectorQuery* GeneralQuery::mutable_vector_query() { - if (!has_vector_query()) { - clear_query(); - set_has_vector_query(); - query_.vector_query_ = CreateMaybeMessage< ::milvus::grpc::VectorQuery >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.GeneralQuery.vector_query) - return query_.vector_query_; -} - -inline bool GeneralQuery::has_query() const { - return query_case() != QUERY_NOT_SET; -} -inline void GeneralQuery::clear_has_query() { - _oneof_case_[0] = QUERY_NOT_SET; -} -inline GeneralQuery::QueryCase GeneralQuery::query_case() const { - return GeneralQuery::QueryCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// SearchParamPB - -// string collection_name = 1; -inline void SearchParamPB::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& SearchParamPB::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParamPB.collection_name) - return collection_name_.GetNoArena(); -} -inline void SearchParamPB::set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.SearchParamPB.collection_name) -} -inline void SearchParamPB::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.SearchParamPB.collection_name) -} -inline void SearchParamPB::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchParamPB.collection_name) -} -inline void SearchParamPB::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchParamPB.collection_name) -} -inline std::string* SearchParamPB::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParamPB.collection_name) - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* SearchParamPB::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.SearchParamPB.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void SearchParamPB::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchParamPB.collection_name) -} - -// repeated string partition_tag_array = 2; -inline int SearchParamPB::partition_tag_array_size() const { - return partition_tag_array_.size(); -} -inline void SearchParamPB::clear_partition_tag_array() { - partition_tag_array_.Clear(); -} -inline const std::string& SearchParamPB::partition_tag_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParamPB.partition_tag_array) - return partition_tag_array_.Get(index); -} -inline std::string* SearchParamPB::mutable_partition_tag_array(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParamPB.partition_tag_array) - return partition_tag_array_.Mutable(index); -} -inline void SearchParamPB::set_partition_tag_array(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.SearchParamPB.partition_tag_array) - partition_tag_array_.Mutable(index)->assign(value); -} -inline void SearchParamPB::set_partition_tag_array(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.SearchParamPB.partition_tag_array) - partition_tag_array_.Mutable(index)->assign(std::move(value)); -} -inline void SearchParamPB::set_partition_tag_array(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - partition_tag_array_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchParamPB.partition_tag_array) -} -inline void SearchParamPB::set_partition_tag_array(int index, const char* value, size_t size) { - partition_tag_array_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchParamPB.partition_tag_array) -} -inline std::string* SearchParamPB::add_partition_tag_array() { - // @@protoc_insertion_point(field_add_mutable:milvus.grpc.SearchParamPB.partition_tag_array) - return partition_tag_array_.Add(); -} -inline void SearchParamPB::add_partition_tag_array(const std::string& value) { - partition_tag_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.grpc.SearchParamPB.partition_tag_array) -} -inline void SearchParamPB::add_partition_tag_array(std::string&& value) { - partition_tag_array_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.grpc.SearchParamPB.partition_tag_array) -} -inline void SearchParamPB::add_partition_tag_array(const char* value) { - GOOGLE_DCHECK(value != nullptr); - partition_tag_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.grpc.SearchParamPB.partition_tag_array) -} -inline void SearchParamPB::add_partition_tag_array(const char* value, size_t size) { - partition_tag_array_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.grpc.SearchParamPB.partition_tag_array) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -SearchParamPB::partition_tag_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchParamPB.partition_tag_array) - return partition_tag_array_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -SearchParamPB::mutable_partition_tag_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchParamPB.partition_tag_array) - return &partition_tag_array_; -} - -// .milvus.grpc.GeneralQuery general_query = 3; -inline bool SearchParamPB::has_general_query() const { - return this != internal_default_instance() && general_query_ != nullptr; -} -inline void SearchParamPB::clear_general_query() { - if (GetArenaNoVirtual() == nullptr && general_query_ != nullptr) { - delete general_query_; - } - general_query_ = nullptr; -} -inline const ::milvus::grpc::GeneralQuery& SearchParamPB::general_query() const { - const ::milvus::grpc::GeneralQuery* p = general_query_; - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParamPB.general_query) - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_GeneralQuery_default_instance_); -} -inline ::milvus::grpc::GeneralQuery* SearchParamPB::release_general_query() { - // @@protoc_insertion_point(field_release:milvus.grpc.SearchParamPB.general_query) - - ::milvus::grpc::GeneralQuery* temp = general_query_; - general_query_ = nullptr; - return temp; -} -inline ::milvus::grpc::GeneralQuery* SearchParamPB::mutable_general_query() { - - if (general_query_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::GeneralQuery>(GetArenaNoVirtual()); - general_query_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParamPB.general_query) - return general_query_; -} -inline void SearchParamPB::set_allocated_general_query(::milvus::grpc::GeneralQuery* general_query) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete general_query_; - } - if (general_query) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - general_query = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, general_query, submessage_arena); - } - - } else { - - } - general_query_ = general_query; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchParamPB.general_query) -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 4; -inline int SearchParamPB::extra_params_size() const { - return extra_params_.size(); -} -inline void SearchParamPB::clear_extra_params() { - extra_params_.Clear(); -} -inline ::milvus::grpc::KeyValuePair* SearchParamPB::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParamPB.extra_params) - return extra_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -SearchParamPB::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchParamPB.extra_params) - return &extra_params_; -} -inline const ::milvus::grpc::KeyValuePair& SearchParamPB::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParamPB.extra_params) - return extra_params_.Get(index); -} -inline ::milvus::grpc::KeyValuePair* SearchParamPB::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.SearchParamPB.extra_params) - return extra_params_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -SearchParamPB::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchParamPB.extra_params) - return extra_params_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace grpc -} // namespace milvus - -PROTOBUF_NAMESPACE_OPEN - -template <> struct is_proto_enum< ::milvus::grpc::DataType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::milvus::grpc::DataType>() { - return ::milvus::grpc::DataType_descriptor(); -} -template <> struct is_proto_enum< ::milvus::grpc::CompareOperator> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::milvus::grpc::CompareOperator>() { - return ::milvus::grpc::CompareOperator_descriptor(); -} -template <> struct is_proto_enum< ::milvus::grpc::Occur> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::milvus::grpc::Occur>() { - return ::milvus::grpc::Occur_descriptor(); -} - -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) - -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_milvus_2eproto diff --git a/proxy/src/grpc/gen-milvus/milvus.grpc.pb.cc b/proxy/src/grpc/gen-milvus/suvlim.grpc.pb.cc similarity index 99% rename from proxy/src/grpc/gen-milvus/milvus.grpc.pb.cc rename to proxy/src/grpc/gen-milvus/suvlim.grpc.pb.cc index 6542c6a862..1d173b8219 100644 --- a/proxy/src/grpc/gen-milvus/milvus.grpc.pb.cc +++ b/proxy/src/grpc/gen-milvus/suvlim.grpc.pb.cc @@ -1,9 +1,9 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: milvus.proto +// source: suvlim.proto -#include "milvus.pb.h" -#include "milvus.grpc.pb.h" +#include "suvlim.pb.h" +#include "suvlim.grpc.pb.h" #include #include diff --git a/proxy/src/grpc/gen-milvus/milvus.grpc.pb.h b/proxy/src/grpc/gen-milvus/suvlim.grpc.pb.h similarity index 99% rename from proxy/src/grpc/gen-milvus/milvus.grpc.pb.h rename to proxy/src/grpc/gen-milvus/suvlim.grpc.pb.h index 2b771e3748..8d04624007 100644 --- a/proxy/src/grpc/gen-milvus/milvus.grpc.pb.h +++ b/proxy/src/grpc/gen-milvus/suvlim.grpc.pb.h @@ -1,10 +1,10 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: milvus.proto -#ifndef GRPC_milvus_2eproto__INCLUDED -#define GRPC_milvus_2eproto__INCLUDED +// source: suvlim.proto +#ifndef GRPC_suvlim_2eproto__INCLUDED +#define GRPC_suvlim_2eproto__INCLUDED -#include "milvus.pb.h" +#include "suvlim.pb.h" #include #include @@ -4553,4 +4553,4 @@ class MilvusService final { } // namespace milvus -#endif // GRPC_milvus_2eproto__INCLUDED +#endif // GRPC_suvlim_2eproto__INCLUDED diff --git a/proxy/src/grpc/gen-milvus/suvlim.pb.cc b/proxy/src/grpc/gen-milvus/suvlim.pb.cc index 85db1ac49a..f3911d8e76 100644 --- a/proxy/src/grpc/gen-milvus/suvlim.pb.cc +++ b/proxy/src/grpc/gen-milvus/suvlim.pb.cc @@ -1,1583 +1,1661 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: suvlim.proto -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "suvlim.pb.h" #include #include -#include -#include #include -#include +#include +#include #include #include #include #include // @@protoc_insertion_point(includes) - +#include +extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_BooleanQuery_suvlim_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CompareExpr_suvlim_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Entities_suvlim_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FieldMeta_suvlim_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_FieldParam_suvlim_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KeyValuePair_suvlim_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_Mapping_suvlim_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_RangeQuery_suvlim_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RowData_suvlim_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Schema_suvlim_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_SearchParam_suvlim_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SegmentRecord_suvlim_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_status_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Status_status_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TermQuery_suvlim_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VectorFieldParam_suvlim_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_VectorParam_suvlim_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_VectorQuery_suvlim_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_VectorRecord_suvlim_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VectorRowRecord_suvlim_2eproto; namespace milvus { namespace grpc { - -namespace { - -const ::google::protobuf::Descriptor* Status_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - Status_reflection_ = NULL; -const ::google::protobuf::Descriptor* KeyValuePair_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - KeyValuePair_reflection_ = NULL; -const ::google::protobuf::Descriptor* CollectionName_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - CollectionName_reflection_ = NULL; -const ::google::protobuf::Descriptor* CollectionNameList_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - CollectionNameList_reflection_ = NULL; -const ::google::protobuf::Descriptor* FieldName_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - FieldName_reflection_ = NULL; -const ::google::protobuf::Descriptor* Mapping_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - Mapping_reflection_ = NULL; -const ::google::protobuf::Descriptor* MappingList_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - MappingList_reflection_ = NULL; -const ::google::protobuf::Descriptor* PartitionParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - PartitionParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* PartitionList_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - PartitionList_reflection_ = NULL; -const ::google::protobuf::Descriptor* VectorRowRecord_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - VectorRowRecord_reflection_ = NULL; -const ::google::protobuf::Descriptor* EntityIds_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - EntityIds_reflection_ = NULL; -const ::google::protobuf::Descriptor* VectorRecord_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - VectorRecord_reflection_ = NULL; -const ::google::protobuf::Descriptor* VectorParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - VectorParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* FieldMeta_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - FieldMeta_reflection_ = NULL; -const ::google::protobuf::Descriptor* Schema_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - Schema_reflection_ = NULL; -const ::google::protobuf::Descriptor* RowData_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - RowData_reflection_ = NULL; -const ::google::protobuf::Descriptor* InsertParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - InsertParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* SearchParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SearchParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* SearchInSegmentParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SearchInSegmentParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* Entities_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - Entities_reflection_ = NULL; -const ::google::protobuf::Descriptor* QueryResult_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - QueryResult_reflection_ = NULL; -const ::google::protobuf::Descriptor* StringReply_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - StringReply_reflection_ = NULL; -const ::google::protobuf::Descriptor* BoolReply_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - BoolReply_reflection_ = NULL; -const ::google::protobuf::Descriptor* CollectionRowCount_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - CollectionRowCount_reflection_ = NULL; -const ::google::protobuf::Descriptor* Command_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - Command_reflection_ = NULL; -const ::google::protobuf::Descriptor* IndexParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - IndexParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* FlushParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - FlushParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* CompactParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - CompactParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* DeleteByIDParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - DeleteByIDParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* CollectionInfo_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - CollectionInfo_reflection_ = NULL; -const ::google::protobuf::Descriptor* GetEntityIDsParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - GetEntityIDsParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* EntityIdentity_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - EntityIdentity_reflection_ = NULL; -const ::google::protobuf::Descriptor* VectorFieldParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - VectorFieldParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* FieldType_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - FieldType_reflection_ = NULL; -struct FieldTypeOneofInstance { +class KeyValuePairDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _KeyValuePair_default_instance_; +class CollectionNameDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _CollectionName_default_instance_; +class CollectionNameListDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _CollectionNameList_default_instance_; +class FieldNameDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _FieldName_default_instance_; +class MappingDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _Mapping_default_instance_; +class MappingListDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _MappingList_default_instance_; +class PartitionParamDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _PartitionParam_default_instance_; +class PartitionListDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _PartitionList_default_instance_; +class VectorRowRecordDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _VectorRowRecord_default_instance_; +class EntityIdsDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _EntityIds_default_instance_; +class VectorRecordDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _VectorRecord_default_instance_; +class VectorParamDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _VectorParam_default_instance_; +class FieldMetaDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _FieldMeta_default_instance_; +class SchemaDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _Schema_default_instance_; +class RowDataDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _RowData_default_instance_; +class InsertParamDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _InsertParam_default_instance_; +class SearchParamDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _SearchParam_default_instance_; +class SearchInSegmentParamDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _SearchInSegmentParam_default_instance_; +class EntitiesDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _Entities_default_instance_; +class QueryResultDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _QueryResult_default_instance_; +class StringReplyDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _StringReply_default_instance_; +class BoolReplyDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _BoolReply_default_instance_; +class CollectionRowCountDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _CollectionRowCount_default_instance_; +class CommandDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _Command_default_instance_; +class IndexParamDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _IndexParam_default_instance_; +class FlushParamDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _FlushParam_default_instance_; +class CompactParamDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _CompactParam_default_instance_; +class DeleteByIDParamDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _DeleteByIDParam_default_instance_; +class CollectionInfoDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _CollectionInfo_default_instance_; +class GetEntityIDsParamDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _GetEntityIDsParam_default_instance_; +class EntityIdentityDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _EntityIdentity_default_instance_; +class VectorFieldParamDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _VectorFieldParam_default_instance_; +class FieldTypeDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; int data_type_; const ::milvus::grpc::VectorFieldParam* vector_param_; -}* FieldType_default_oneof_instance_ = NULL; -const ::google::protobuf::Descriptor* FieldParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - FieldParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* VectorFieldRecord_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - VectorFieldRecord_reflection_ = NULL; -const ::google::protobuf::Descriptor* TermQuery_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - TermQuery_reflection_ = NULL; -const ::google::protobuf::Descriptor* CompareExpr_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - CompareExpr_reflection_ = NULL; -const ::google::protobuf::Descriptor* RangeQuery_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - RangeQuery_reflection_ = NULL; -const ::google::protobuf::Descriptor* VectorQuery_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - VectorQuery_reflection_ = NULL; -const ::google::protobuf::Descriptor* BooleanQuery_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - BooleanQuery_reflection_ = NULL; -const ::google::protobuf::Descriptor* GeneralQuery_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - GeneralQuery_reflection_ = NULL; -struct GeneralQueryOneofInstance { +} _FieldType_default_instance_; +class FieldParamDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _FieldParam_default_instance_; +class VectorFieldRecordDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _VectorFieldRecord_default_instance_; +class TermQueryDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _TermQuery_default_instance_; +class CompareExprDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _CompareExpr_default_instance_; +class RangeQueryDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _RangeQuery_default_instance_; +class VectorQueryDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _VectorQuery_default_instance_; +class BooleanQueryDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _BooleanQuery_default_instance_; +class GeneralQueryDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; const ::milvus::grpc::BooleanQuery* boolean_query_; const ::milvus::grpc::TermQuery* term_query_; const ::milvus::grpc::RangeQuery* range_query_; const ::milvus::grpc::VectorQuery* vector_query_; -}* GeneralQuery_default_oneof_instance_ = NULL; -const ::google::protobuf::Descriptor* SearchParamPB_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SearchParamPB_reflection_ = NULL; -const ::google::protobuf::Descriptor* InsertOrDeleteMsg_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - InsertOrDeleteMsg_reflection_ = NULL; -const ::google::protobuf::Descriptor* SearchMsg_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SearchMsg_reflection_ = NULL; -const ::google::protobuf::Descriptor* TimeSyncMsg_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - TimeSyncMsg_reflection_ = NULL; -const ::google::protobuf::Descriptor* SegmentRecord_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SegmentRecord_reflection_ = NULL; -const ::google::protobuf::Descriptor* Key2SegMsg_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - Key2SegMsg_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* ErrorCode_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* DataType_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* CompareOperator_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* Occur_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* OpType_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* SyncType_descriptor_ = NULL; - -} // namespace - - -void protobuf_AssignDesc_suvlim_2eproto() GOOGLE_ATTRIBUTE_COLD; -void protobuf_AssignDesc_suvlim_2eproto() { - protobuf_AddDesc_suvlim_2eproto(); - const ::google::protobuf::FileDescriptor* file = - ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( - "suvlim.proto"); - GOOGLE_CHECK(file != NULL); - Status_descriptor_ = file->message_type(0); - static const int Status_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Status, error_code_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Status, reason_), - }; - Status_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - Status_descriptor_, - Status::default_instance_, - Status_offsets_, - -1, - -1, - -1, - sizeof(Status), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Status, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Status, _is_default_instance_)); - KeyValuePair_descriptor_ = file->message_type(1); - static const int KeyValuePair_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyValuePair, key_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyValuePair, value_), - }; - KeyValuePair_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - KeyValuePair_descriptor_, - KeyValuePair::default_instance_, - KeyValuePair_offsets_, - -1, - -1, - -1, - sizeof(KeyValuePair), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyValuePair, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyValuePair, _is_default_instance_)); - CollectionName_descriptor_ = file->message_type(2); - static const int CollectionName_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionName, collection_name_), - }; - CollectionName_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - CollectionName_descriptor_, - CollectionName::default_instance_, - CollectionName_offsets_, - -1, - -1, - -1, - sizeof(CollectionName), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionName, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionName, _is_default_instance_)); - CollectionNameList_descriptor_ = file->message_type(3); - static const int CollectionNameList_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionNameList, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionNameList, collection_names_), - }; - CollectionNameList_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - CollectionNameList_descriptor_, - CollectionNameList::default_instance_, - CollectionNameList_offsets_, - -1, - -1, - -1, - sizeof(CollectionNameList), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionNameList, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionNameList, _is_default_instance_)); - FieldName_descriptor_ = file->message_type(4); - static const int FieldName_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldName, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldName, field_name_), - }; - FieldName_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - FieldName_descriptor_, - FieldName::default_instance_, - FieldName_offsets_, - -1, - -1, - -1, - sizeof(FieldName), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldName, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldName, _is_default_instance_)); - Mapping_descriptor_ = file->message_type(5); - static const int Mapping_offsets_[4] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mapping, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mapping, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mapping, fields_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mapping, extra_params_), - }; - Mapping_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - Mapping_descriptor_, - Mapping::default_instance_, - Mapping_offsets_, - -1, - -1, - -1, - sizeof(Mapping), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mapping, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mapping, _is_default_instance_)); - MappingList_descriptor_ = file->message_type(6); - static const int MappingList_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MappingList, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MappingList, mapping_list_), - }; - MappingList_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - MappingList_descriptor_, - MappingList::default_instance_, - MappingList_offsets_, - -1, - -1, - -1, - sizeof(MappingList), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MappingList, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MappingList, _is_default_instance_)); - PartitionParam_descriptor_ = file->message_type(7); - static const int PartitionParam_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PartitionParam, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PartitionParam, tag_), - }; - PartitionParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - PartitionParam_descriptor_, - PartitionParam::default_instance_, - PartitionParam_offsets_, - -1, - -1, - -1, - sizeof(PartitionParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PartitionParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PartitionParam, _is_default_instance_)); - PartitionList_descriptor_ = file->message_type(8); - static const int PartitionList_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PartitionList, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PartitionList, partition_tag_array_), - }; - PartitionList_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - PartitionList_descriptor_, - PartitionList::default_instance_, - PartitionList_offsets_, - -1, - -1, - -1, - sizeof(PartitionList), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PartitionList, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PartitionList, _is_default_instance_)); - VectorRowRecord_descriptor_ = file->message_type(9); - static const int VectorRowRecord_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRowRecord, float_data_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRowRecord, binary_data_), - }; - VectorRowRecord_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - VectorRowRecord_descriptor_, - VectorRowRecord::default_instance_, - VectorRowRecord_offsets_, - -1, - -1, - -1, - sizeof(VectorRowRecord), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRowRecord, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRowRecord, _is_default_instance_)); - EntityIds_descriptor_ = file->message_type(10); - static const int EntityIds_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EntityIds, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EntityIds, entity_id_array_), - }; - EntityIds_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - EntityIds_descriptor_, - EntityIds::default_instance_, - EntityIds_offsets_, - -1, - -1, - -1, - sizeof(EntityIds), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EntityIds, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EntityIds, _is_default_instance_)); - VectorRecord_descriptor_ = file->message_type(11); - static const int VectorRecord_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRecord, records_), - }; - VectorRecord_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - VectorRecord_descriptor_, - VectorRecord::default_instance_, - VectorRecord_offsets_, - -1, - -1, - -1, - sizeof(VectorRecord), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRecord, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRecord, _is_default_instance_)); - VectorParam_descriptor_ = file->message_type(12); - static const int VectorParam_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorParam, json_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorParam, row_record_), - }; - VectorParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - VectorParam_descriptor_, - VectorParam::default_instance_, - VectorParam_offsets_, - -1, - -1, - -1, - sizeof(VectorParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorParam, _is_default_instance_)); - FieldMeta_descriptor_ = file->message_type(13); - static const int FieldMeta_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, field_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, dim_), - }; - FieldMeta_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - FieldMeta_descriptor_, - FieldMeta::default_instance_, - FieldMeta_offsets_, - -1, - -1, - -1, - sizeof(FieldMeta), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, _is_default_instance_)); - Schema_descriptor_ = file->message_type(14); - static const int Schema_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema, field_metas_), - }; - Schema_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - Schema_descriptor_, - Schema::default_instance_, - Schema_offsets_, - -1, - -1, - -1, - sizeof(Schema), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema, _is_default_instance_)); - RowData_descriptor_ = file->message_type(15); - static const int RowData_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RowData, blob_), - }; - RowData_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - RowData_descriptor_, - RowData::default_instance_, - RowData_offsets_, - -1, - -1, - -1, - sizeof(RowData), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RowData, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RowData, _is_default_instance_)); - InsertParam_descriptor_ = file->message_type(16); - static const int InsertParam_offsets_[6] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertParam, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertParam, schema_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertParam, rows_data_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertParam, entity_id_array_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertParam, partition_tag_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertParam, extra_params_), - }; - InsertParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - InsertParam_descriptor_, - InsertParam::default_instance_, - InsertParam_offsets_, - -1, - -1, - -1, - sizeof(InsertParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertParam, _is_default_instance_)); - SearchParam_descriptor_ = file->message_type(17); - static const int SearchParam_offsets_[5] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParam, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParam, vector_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParam, dsl_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParam, partition_tag_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParam, extra_params_), - }; - SearchParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - SearchParam_descriptor_, - SearchParam::default_instance_, - SearchParam_offsets_, - -1, - -1, - -1, - sizeof(SearchParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParam, _is_default_instance_)); - SearchInSegmentParam_descriptor_ = file->message_type(18); - static const int SearchInSegmentParam_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchInSegmentParam, file_id_array_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchInSegmentParam, search_param_), - }; - SearchInSegmentParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - SearchInSegmentParam_descriptor_, - SearchInSegmentParam::default_instance_, - SearchInSegmentParam_offsets_, - -1, - -1, - -1, - sizeof(SearchInSegmentParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchInSegmentParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchInSegmentParam, _is_default_instance_)); - Entities_descriptor_ = file->message_type(19); - static const int Entities_offsets_[4] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entities, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entities, ids_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entities, valid_row_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entities, rows_data_), - }; - Entities_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - Entities_descriptor_, - Entities::default_instance_, - Entities_offsets_, - -1, - -1, - -1, - sizeof(Entities), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entities, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entities, _is_default_instance_)); - QueryResult_descriptor_ = file->message_type(20); - static const int QueryResult_offsets_[6] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryResult, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryResult, entities_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryResult, row_num_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryResult, scores_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryResult, distances_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryResult, extra_params_), - }; - QueryResult_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - QueryResult_descriptor_, - QueryResult::default_instance_, - QueryResult_offsets_, - -1, - -1, - -1, - sizeof(QueryResult), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryResult, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryResult, _is_default_instance_)); - StringReply_descriptor_ = file->message_type(21); - static const int StringReply_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StringReply, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StringReply, string_reply_), - }; - StringReply_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - StringReply_descriptor_, - StringReply::default_instance_, - StringReply_offsets_, - -1, - -1, - -1, - sizeof(StringReply), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StringReply, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StringReply, _is_default_instance_)); - BoolReply_descriptor_ = file->message_type(22); - static const int BoolReply_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BoolReply, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BoolReply, bool_reply_), - }; - BoolReply_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - BoolReply_descriptor_, - BoolReply::default_instance_, - BoolReply_offsets_, - -1, - -1, - -1, - sizeof(BoolReply), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BoolReply, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BoolReply, _is_default_instance_)); - CollectionRowCount_descriptor_ = file->message_type(23); - static const int CollectionRowCount_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRowCount, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRowCount, collection_row_count_), - }; - CollectionRowCount_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - CollectionRowCount_descriptor_, - CollectionRowCount::default_instance_, - CollectionRowCount_offsets_, - -1, - -1, - -1, - sizeof(CollectionRowCount), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRowCount, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRowCount, _is_default_instance_)); - Command_descriptor_ = file->message_type(24); - static const int Command_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Command, cmd_), - }; - Command_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - Command_descriptor_, - Command::default_instance_, - Command_offsets_, - -1, - -1, - -1, - sizeof(Command), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Command, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Command, _is_default_instance_)); - IndexParam_descriptor_ = file->message_type(25); - static const int IndexParam_offsets_[5] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IndexParam, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IndexParam, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IndexParam, field_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IndexParam, index_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IndexParam, extra_params_), - }; - IndexParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - IndexParam_descriptor_, - IndexParam::default_instance_, - IndexParam_offsets_, - -1, - -1, - -1, - sizeof(IndexParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IndexParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IndexParam, _is_default_instance_)); - FlushParam_descriptor_ = file->message_type(26); - static const int FlushParam_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushParam, collection_name_array_), - }; - FlushParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - FlushParam_descriptor_, - FlushParam::default_instance_, - FlushParam_offsets_, - -1, - -1, - -1, - sizeof(FlushParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushParam, _is_default_instance_)); - CompactParam_descriptor_ = file->message_type(27); - static const int CompactParam_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompactParam, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompactParam, threshold_), - }; - CompactParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - CompactParam_descriptor_, - CompactParam::default_instance_, - CompactParam_offsets_, - -1, - -1, - -1, - sizeof(CompactParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompactParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompactParam, _is_default_instance_)); - DeleteByIDParam_descriptor_ = file->message_type(28); - static const int DeleteByIDParam_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteByIDParam, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteByIDParam, id_array_), - }; - DeleteByIDParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - DeleteByIDParam_descriptor_, - DeleteByIDParam::default_instance_, - DeleteByIDParam_offsets_, - -1, - -1, - -1, - sizeof(DeleteByIDParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteByIDParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteByIDParam, _is_default_instance_)); - CollectionInfo_descriptor_ = file->message_type(29); - static const int CollectionInfo_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionInfo, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionInfo, json_info_), - }; - CollectionInfo_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - CollectionInfo_descriptor_, - CollectionInfo::default_instance_, - CollectionInfo_offsets_, - -1, - -1, - -1, - sizeof(CollectionInfo), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionInfo, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionInfo, _is_default_instance_)); - GetEntityIDsParam_descriptor_ = file->message_type(30); - static const int GetEntityIDsParam_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetEntityIDsParam, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetEntityIDsParam, segment_id_), - }; - GetEntityIDsParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - GetEntityIDsParam_descriptor_, - GetEntityIDsParam::default_instance_, - GetEntityIDsParam_offsets_, - -1, - -1, - -1, - sizeof(GetEntityIDsParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetEntityIDsParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetEntityIDsParam, _is_default_instance_)); - EntityIdentity_descriptor_ = file->message_type(31); - static const int EntityIdentity_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EntityIdentity, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EntityIdentity, id_array_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EntityIdentity, field_names_), - }; - EntityIdentity_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - EntityIdentity_descriptor_, - EntityIdentity::default_instance_, - EntityIdentity_offsets_, - -1, - -1, - -1, - sizeof(EntityIdentity), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EntityIdentity, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EntityIdentity, _is_default_instance_)); - VectorFieldParam_descriptor_ = file->message_type(32); - static const int VectorFieldParam_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorFieldParam, dimension_), - }; - VectorFieldParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - VectorFieldParam_descriptor_, - VectorFieldParam::default_instance_, - VectorFieldParam_offsets_, - -1, - -1, - -1, - sizeof(VectorFieldParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorFieldParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorFieldParam, _is_default_instance_)); - FieldType_descriptor_ = file->message_type(33); - static const int FieldType_offsets_[3] = { - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(FieldType_default_oneof_instance_, data_type_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(FieldType_default_oneof_instance_, vector_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldType, value_), - }; - FieldType_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - FieldType_descriptor_, - FieldType::default_instance_, - FieldType_offsets_, - -1, - -1, - -1, - FieldType_default_oneof_instance_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldType, _oneof_case_[0]), - sizeof(FieldType), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldType, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldType, _is_default_instance_)); - FieldParam_descriptor_ = file->message_type(34); - static const int FieldParam_offsets_[5] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldParam, id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldParam, name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldParam, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldParam, index_params_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldParam, extra_params_), - }; - FieldParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - FieldParam_descriptor_, - FieldParam::default_instance_, - FieldParam_offsets_, - -1, - -1, - -1, - sizeof(FieldParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldParam, _is_default_instance_)); - VectorFieldRecord_descriptor_ = file->message_type(35); - static const int VectorFieldRecord_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorFieldRecord, value_), - }; - VectorFieldRecord_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - VectorFieldRecord_descriptor_, - VectorFieldRecord::default_instance_, - VectorFieldRecord_offsets_, - -1, - -1, - -1, - sizeof(VectorFieldRecord), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorFieldRecord, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorFieldRecord, _is_default_instance_)); - TermQuery_descriptor_ = file->message_type(36); - static const int TermQuery_offsets_[6] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TermQuery, field_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TermQuery, int_value_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TermQuery, double_value_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TermQuery, value_num_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TermQuery, boost_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TermQuery, extra_params_), - }; - TermQuery_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - TermQuery_descriptor_, - TermQuery::default_instance_, - TermQuery_offsets_, - -1, - -1, - -1, - sizeof(TermQuery), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TermQuery, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TermQuery, _is_default_instance_)); - CompareExpr_descriptor_ = file->message_type(37); - static const int CompareExpr_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompareExpr, operator__), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompareExpr, operand_), - }; - CompareExpr_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - CompareExpr_descriptor_, - CompareExpr::default_instance_, - CompareExpr_offsets_, - -1, - -1, - -1, - sizeof(CompareExpr), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompareExpr, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompareExpr, _is_default_instance_)); - RangeQuery_descriptor_ = file->message_type(38); - static const int RangeQuery_offsets_[4] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RangeQuery, field_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RangeQuery, operand_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RangeQuery, boost_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RangeQuery, extra_params_), - }; - RangeQuery_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - RangeQuery_descriptor_, - RangeQuery::default_instance_, - RangeQuery_offsets_, - -1, - -1, - -1, - sizeof(RangeQuery), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RangeQuery, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RangeQuery, _is_default_instance_)); - VectorQuery_descriptor_ = file->message_type(39); - static const int VectorQuery_offsets_[5] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorQuery, field_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorQuery, query_boost_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorQuery, records_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorQuery, topk_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorQuery, extra_params_), - }; - VectorQuery_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - VectorQuery_descriptor_, - VectorQuery::default_instance_, - VectorQuery_offsets_, - -1, - -1, - -1, - sizeof(VectorQuery), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorQuery, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorQuery, _is_default_instance_)); - BooleanQuery_descriptor_ = file->message_type(40); - static const int BooleanQuery_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BooleanQuery, occur_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BooleanQuery, general_query_), - }; - BooleanQuery_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - BooleanQuery_descriptor_, - BooleanQuery::default_instance_, - BooleanQuery_offsets_, - -1, - -1, - -1, - sizeof(BooleanQuery), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BooleanQuery, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BooleanQuery, _is_default_instance_)); - GeneralQuery_descriptor_ = file->message_type(41); - static const int GeneralQuery_offsets_[5] = { - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(GeneralQuery_default_oneof_instance_, boolean_query_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(GeneralQuery_default_oneof_instance_, term_query_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(GeneralQuery_default_oneof_instance_, range_query_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(GeneralQuery_default_oneof_instance_, vector_query_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneralQuery, query_), - }; - GeneralQuery_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - GeneralQuery_descriptor_, - GeneralQuery::default_instance_, - GeneralQuery_offsets_, - -1, - -1, - -1, - GeneralQuery_default_oneof_instance_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneralQuery, _oneof_case_[0]), - sizeof(GeneralQuery), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneralQuery, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneralQuery, _is_default_instance_)); - SearchParamPB_descriptor_ = file->message_type(42); - static const int SearchParamPB_offsets_[4] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParamPB, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParamPB, partition_tag_array_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParamPB, general_query_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParamPB, extra_params_), - }; - SearchParamPB_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - SearchParamPB_descriptor_, - SearchParamPB::default_instance_, - SearchParamPB_offsets_, - -1, - -1, - -1, - sizeof(SearchParamPB), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParamPB, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParamPB, _is_default_instance_)); - InsertOrDeleteMsg_descriptor_ = file->message_type(43); - static const int InsertOrDeleteMsg_offsets_[10] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertOrDeleteMsg, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertOrDeleteMsg, rows_data_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertOrDeleteMsg, uid_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertOrDeleteMsg, partition_tag_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertOrDeleteMsg, timestamp_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertOrDeleteMsg, segment_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertOrDeleteMsg, channel_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertOrDeleteMsg, op_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertOrDeleteMsg, client_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertOrDeleteMsg, extra_params_), - }; - InsertOrDeleteMsg_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - InsertOrDeleteMsg_descriptor_, - InsertOrDeleteMsg::default_instance_, - InsertOrDeleteMsg_offsets_, - -1, - -1, - -1, - sizeof(InsertOrDeleteMsg), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertOrDeleteMsg, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertOrDeleteMsg, _is_default_instance_)); - SearchMsg_descriptor_ = file->message_type(44); - static const int SearchMsg_offsets_[7] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchMsg, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchMsg, records_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchMsg, partition_tag_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchMsg, uid_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchMsg, timestamp_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchMsg, client_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchMsg, extra_params_), - }; - SearchMsg_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - SearchMsg_descriptor_, - SearchMsg::default_instance_, - SearchMsg_offsets_, - -1, - -1, - -1, - sizeof(SearchMsg), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchMsg, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchMsg, _is_default_instance_)); - TimeSyncMsg_descriptor_ = file->message_type(45); - static const int TimeSyncMsg_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimeSyncMsg, peer_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimeSyncMsg, timestamp_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimeSyncMsg, sync_type_), - }; - TimeSyncMsg_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - TimeSyncMsg_descriptor_, - TimeSyncMsg::default_instance_, - TimeSyncMsg_offsets_, - -1, - -1, - -1, - sizeof(TimeSyncMsg), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimeSyncMsg, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimeSyncMsg, _is_default_instance_)); - SegmentRecord_descriptor_ = file->message_type(46); - static const int SegmentRecord_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SegmentRecord, uid_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SegmentRecord, segment_id_), - }; - SegmentRecord_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - SegmentRecord_descriptor_, - SegmentRecord::default_instance_, - SegmentRecord_offsets_, - -1, - -1, - -1, - sizeof(SegmentRecord), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SegmentRecord, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SegmentRecord, _is_default_instance_)); - Key2SegMsg_descriptor_ = file->message_type(47); - static const int Key2SegMsg_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Key2SegMsg, client_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Key2SegMsg, records_), - }; - Key2SegMsg_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - Key2SegMsg_descriptor_, - Key2SegMsg::default_instance_, - Key2SegMsg_offsets_, - -1, - -1, - -1, - sizeof(Key2SegMsg), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Key2SegMsg, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Key2SegMsg, _is_default_instance_)); - ErrorCode_descriptor_ = file->enum_type(0); - DataType_descriptor_ = file->enum_type(1); - CompareOperator_descriptor_ = file->enum_type(2); - Occur_descriptor_ = file->enum_type(3); - OpType_descriptor_ = file->enum_type(4); - SyncType_descriptor_ = file->enum_type(5); -} - -namespace { - -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); -inline void protobuf_AssignDescriptorsOnce() { - ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, - &protobuf_AssignDesc_suvlim_2eproto); -} - -void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; -void protobuf_RegisterTypes(const ::std::string&) { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - Status_descriptor_, &Status::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - KeyValuePair_descriptor_, &KeyValuePair::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - CollectionName_descriptor_, &CollectionName::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - CollectionNameList_descriptor_, &CollectionNameList::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - FieldName_descriptor_, &FieldName::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - Mapping_descriptor_, &Mapping::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - MappingList_descriptor_, &MappingList::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - PartitionParam_descriptor_, &PartitionParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - PartitionList_descriptor_, &PartitionList::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - VectorRowRecord_descriptor_, &VectorRowRecord::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - EntityIds_descriptor_, &EntityIds::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - VectorRecord_descriptor_, &VectorRecord::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - VectorParam_descriptor_, &VectorParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - FieldMeta_descriptor_, &FieldMeta::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - Schema_descriptor_, &Schema::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - RowData_descriptor_, &RowData::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - InsertParam_descriptor_, &InsertParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SearchParam_descriptor_, &SearchParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SearchInSegmentParam_descriptor_, &SearchInSegmentParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - Entities_descriptor_, &Entities::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - QueryResult_descriptor_, &QueryResult::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - StringReply_descriptor_, &StringReply::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - BoolReply_descriptor_, &BoolReply::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - CollectionRowCount_descriptor_, &CollectionRowCount::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - Command_descriptor_, &Command::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - IndexParam_descriptor_, &IndexParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - FlushParam_descriptor_, &FlushParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - CompactParam_descriptor_, &CompactParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - DeleteByIDParam_descriptor_, &DeleteByIDParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - CollectionInfo_descriptor_, &CollectionInfo::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - GetEntityIDsParam_descriptor_, &GetEntityIDsParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - EntityIdentity_descriptor_, &EntityIdentity::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - VectorFieldParam_descriptor_, &VectorFieldParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - FieldType_descriptor_, &FieldType::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - FieldParam_descriptor_, &FieldParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - VectorFieldRecord_descriptor_, &VectorFieldRecord::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - TermQuery_descriptor_, &TermQuery::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - CompareExpr_descriptor_, &CompareExpr::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - RangeQuery_descriptor_, &RangeQuery::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - VectorQuery_descriptor_, &VectorQuery::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - BooleanQuery_descriptor_, &BooleanQuery::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - GeneralQuery_descriptor_, &GeneralQuery::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SearchParamPB_descriptor_, &SearchParamPB::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - InsertOrDeleteMsg_descriptor_, &InsertOrDeleteMsg::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SearchMsg_descriptor_, &SearchMsg::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - TimeSyncMsg_descriptor_, &TimeSyncMsg::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SegmentRecord_descriptor_, &SegmentRecord::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - Key2SegMsg_descriptor_, &Key2SegMsg::default_instance()); -} - -} // namespace - -void protobuf_ShutdownFile_suvlim_2eproto() { - delete Status::default_instance_; - delete Status_reflection_; - delete KeyValuePair::default_instance_; - delete KeyValuePair_reflection_; - delete CollectionName::default_instance_; - delete CollectionName_reflection_; - delete CollectionNameList::default_instance_; - delete CollectionNameList_reflection_; - delete FieldName::default_instance_; - delete FieldName_reflection_; - delete Mapping::default_instance_; - delete Mapping_reflection_; - delete MappingList::default_instance_; - delete MappingList_reflection_; - delete PartitionParam::default_instance_; - delete PartitionParam_reflection_; - delete PartitionList::default_instance_; - delete PartitionList_reflection_; - delete VectorRowRecord::default_instance_; - delete VectorRowRecord_reflection_; - delete EntityIds::default_instance_; - delete EntityIds_reflection_; - delete VectorRecord::default_instance_; - delete VectorRecord_reflection_; - delete VectorParam::default_instance_; - delete VectorParam_reflection_; - delete FieldMeta::default_instance_; - delete FieldMeta_reflection_; - delete Schema::default_instance_; - delete Schema_reflection_; - delete RowData::default_instance_; - delete RowData_reflection_; - delete InsertParam::default_instance_; - delete InsertParam_reflection_; - delete SearchParam::default_instance_; - delete SearchParam_reflection_; - delete SearchInSegmentParam::default_instance_; - delete SearchInSegmentParam_reflection_; - delete Entities::default_instance_; - delete Entities_reflection_; - delete QueryResult::default_instance_; - delete QueryResult_reflection_; - delete StringReply::default_instance_; - delete StringReply_reflection_; - delete BoolReply::default_instance_; - delete BoolReply_reflection_; - delete CollectionRowCount::default_instance_; - delete CollectionRowCount_reflection_; - delete Command::default_instance_; - delete Command_reflection_; - delete IndexParam::default_instance_; - delete IndexParam_reflection_; - delete FlushParam::default_instance_; - delete FlushParam_reflection_; - delete CompactParam::default_instance_; - delete CompactParam_reflection_; - delete DeleteByIDParam::default_instance_; - delete DeleteByIDParam_reflection_; - delete CollectionInfo::default_instance_; - delete CollectionInfo_reflection_; - delete GetEntityIDsParam::default_instance_; - delete GetEntityIDsParam_reflection_; - delete EntityIdentity::default_instance_; - delete EntityIdentity_reflection_; - delete VectorFieldParam::default_instance_; - delete VectorFieldParam_reflection_; - delete FieldType::default_instance_; - delete FieldType_default_oneof_instance_; - delete FieldType_reflection_; - delete FieldParam::default_instance_; - delete FieldParam_reflection_; - delete VectorFieldRecord::default_instance_; - delete VectorFieldRecord_reflection_; - delete TermQuery::default_instance_; - delete TermQuery_reflection_; - delete CompareExpr::default_instance_; - delete CompareExpr_reflection_; - delete RangeQuery::default_instance_; - delete RangeQuery_reflection_; - delete VectorQuery::default_instance_; - delete VectorQuery_reflection_; - delete BooleanQuery::default_instance_; - delete BooleanQuery_reflection_; - delete GeneralQuery::default_instance_; - delete GeneralQuery_default_oneof_instance_; - delete GeneralQuery_reflection_; - delete SearchParamPB::default_instance_; - delete SearchParamPB_reflection_; - delete InsertOrDeleteMsg::default_instance_; - delete InsertOrDeleteMsg_reflection_; - delete SearchMsg::default_instance_; - delete SearchMsg_reflection_; - delete TimeSyncMsg::default_instance_; - delete TimeSyncMsg_reflection_; - delete SegmentRecord::default_instance_; - delete SegmentRecord_reflection_; - delete Key2SegMsg::default_instance_; - delete Key2SegMsg_reflection_; -} - -void protobuf_AddDesc_suvlim_2eproto() GOOGLE_ATTRIBUTE_COLD; -void protobuf_AddDesc_suvlim_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; +} _GeneralQuery_default_instance_; +class SearchParamPBDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _SearchParamPB_default_instance_; +class InsertOrDeleteMsgDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _InsertOrDeleteMsg_default_instance_; +class SearchMsgDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _SearchMsg_default_instance_; +class TimeSyncMsgDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _TimeSyncMsg_default_instance_; +class SegmentRecordDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _SegmentRecord_default_instance_; +class Key2SegMsgDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _Key2SegMsg_default_instance_; +} // namespace grpc +} // namespace milvus +static void InitDefaultsscc_info_BoolReply_suvlim_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; - ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\014suvlim.proto\022\013milvus.grpc\"D\n\006Status\022*\n" - "\nerror_code\030\001 \001(\0162\026.milvus.grpc.ErrorCod" - "e\022\016\n\006reason\030\002 \001(\t\"*\n\014KeyValuePair\022\013\n\003key" - "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\")\n\016CollectionName\022" - "\027\n\017collection_name\030\001 \001(\t\"S\n\022CollectionNa" - "meList\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Sta" - "tus\022\030\n\020collection_names\030\002 \003(\t\"8\n\tFieldNa" - "me\022\027\n\017collection_name\030\001 \001(\t\022\022\n\nfield_nam" - "e\030\002 \001(\t\"\241\001\n\007Mapping\022#\n\006status\030\001 \001(\0132\023.mi" - "lvus.grpc.Status\022\027\n\017collection_name\030\002 \001(" - "\t\022\'\n\006fields\030\003 \003(\0132\027.milvus.grpc.FieldPar" - "am\022/\n\014extra_params\030\004 \003(\0132\031.milvus.grpc.K" - "eyValuePair\"^\n\013MappingList\022#\n\006status\030\001 \001" - "(\0132\023.milvus.grpc.Status\022*\n\014mapping_list\030" - "\002 \003(\0132\024.milvus.grpc.Mapping\"6\n\016Partition" - "Param\022\027\n\017collection_name\030\001 \001(\t\022\013\n\003tag\030\002 " - "\001(\t\"Q\n\rPartitionList\022#\n\006status\030\001 \001(\0132\023.m" - "ilvus.grpc.Status\022\033\n\023partition_tag_array" - "\030\002 \003(\t\":\n\017VectorRowRecord\022\022\n\nfloat_data\030" - "\001 \003(\002\022\023\n\013binary_data\030\002 \001(\014\"I\n\tEntityIds\022" - "#\n\006status\030\001 \001(\0132\023.milvus.grpc.Status\022\027\n\017" - "entity_id_array\030\002 \003(\003\"=\n\014VectorRecord\022-\n" - "\007records\030\001 \003(\0132\034.milvus.grpc.VectorRowRe" - "cord\"J\n\013VectorParam\022\014\n\004json\030\001 \001(\t\022-\n\nrow" - "_record\030\002 \001(\0132\031.milvus.grpc.VectorRecord" - "\"Q\n\tFieldMeta\022\022\n\nfield_name\030\001 \001(\t\022#\n\004typ" - "e\030\002 \001(\0162\025.milvus.grpc.DataType\022\013\n\003dim\030\003 " - "\001(\003\"5\n\006Schema\022+\n\013field_metas\030\001 \003(\0132\026.mil" - "vus.grpc.FieldMeta\"\027\n\007RowData\022\014\n\004blob\030\001 " - "\001(\014\"\325\001\n\013InsertParam\022\027\n\017collection_name\030\001" - " \001(\t\022#\n\006schema\030\002 \001(\0132\023.milvus.grpc.Schem" - "a\022\'\n\trows_data\030\003 \003(\0132\024.milvus.grpc.RowDa" - "ta\022\027\n\017entity_id_array\030\004 \003(\003\022\025\n\rpartition" - "_tag\030\005 \001(\t\022/\n\014extra_params\030\006 \003(\0132\031.milvu" - "s.grpc.KeyValuePair\"\253\001\n\013SearchParam\022\027\n\017c" - "ollection_name\030\001 \001(\t\022.\n\014vector_param\030\002 \003" - "(\0132\030.milvus.grpc.VectorParam\022\013\n\003dsl\030\003 \001(" - "\t\022\025\n\rpartition_tag\030\004 \003(\t\022/\n\014extra_params" - "\030\005 \003(\0132\031.milvus.grpc.KeyValuePair\"]\n\024Sea" - "rchInSegmentParam\022\025\n\rfile_id_array\030\001 \003(\t" - "\022.\n\014search_param\030\002 \001(\0132\030.milvus.grpc.Sea" - "rchParam\"x\n\010Entities\022#\n\006status\030\001 \001(\0132\023.m" - "ilvus.grpc.Status\022\013\n\003ids\030\002 \003(\003\022\021\n\tvalid_" - "row\030\003 \003(\010\022\'\n\trows_data\030\004 \003(\0132\024.milvus.gr" - "pc.RowData\"\300\001\n\013QueryResult\022#\n\006status\030\001 \001" - "(\0132\023.milvus.grpc.Status\022\'\n\010entities\030\002 \001(" - "\0132\025.milvus.grpc.Entities\022\017\n\007row_num\030\003 \001(" - "\003\022\016\n\006scores\030\004 \003(\002\022\021\n\tdistances\030\005 \003(\002\022/\n\014" - "extra_params\030\006 \003(\0132\031.milvus.grpc.KeyValu" - "ePair\"H\n\013StringReply\022#\n\006status\030\001 \001(\0132\023.m" - "ilvus.grpc.Status\022\024\n\014string_reply\030\002 \001(\t\"" - "D\n\tBoolReply\022#\n\006status\030\001 \001(\0132\023.milvus.gr" - "pc.Status\022\022\n\nbool_reply\030\002 \001(\010\"W\n\022Collect" - "ionRowCount\022#\n\006status\030\001 \001(\0132\023.milvus.grp" - "c.Status\022\034\n\024collection_row_count\030\002 \001(\003\"\026" - "\n\007Command\022\013\n\003cmd\030\001 \001(\t\"\243\001\n\nIndexParam\022#\n" - "\006status\030\001 \001(\0132\023.milvus.grpc.Status\022\027\n\017co" - "llection_name\030\002 \001(\t\022\022\n\nfield_name\030\003 \001(\t\022" - "\022\n\nindex_name\030\004 \001(\t\022/\n\014extra_params\030\005 \003(" - "\0132\031.milvus.grpc.KeyValuePair\"+\n\nFlushPar" - "am\022\035\n\025collection_name_array\030\001 \003(\t\":\n\014Com" - "pactParam\022\027\n\017collection_name\030\001 \001(\t\022\021\n\tth" - "reshold\030\002 \001(\001\"<\n\017DeleteByIDParam\022\027\n\017coll" - "ection_name\030\001 \001(\t\022\020\n\010id_array\030\002 \003(\003\"H\n\016C" - "ollectionInfo\022#\n\006status\030\001 \001(\0132\023.milvus.g" - "rpc.Status\022\021\n\tjson_info\030\002 \001(\t\"@\n\021GetEnti" - "tyIDsParam\022\027\n\017collection_name\030\001 \001(\t\022\022\n\ns" - "egment_id\030\002 \001(\003\"P\n\016EntityIdentity\022\027\n\017col" - "lection_name\030\001 \001(\t\022\020\n\010id_array\030\002 \003(\003\022\023\n\013" - "field_names\030\003 \003(\t\"%\n\020VectorFieldParam\022\021\n" - "\tdimension\030\001 \001(\003\"w\n\tFieldType\022*\n\tdata_ty" - "pe\030\001 \001(\0162\025.milvus.grpc.DataTypeH\000\0225\n\014vec" - "tor_param\030\002 \001(\0132\035.milvus.grpc.VectorFiel" - "dParamH\000B\007\n\005value\"\255\001\n\nFieldParam\022\n\n\002id\030\001" - " \001(\004\022\014\n\004name\030\002 \001(\t\022#\n\004type\030\003 \001(\0162\025.milvu" - "s.grpc.DataType\022/\n\014index_params\030\004 \003(\0132\031." - "milvus.grpc.KeyValuePair\022/\n\014extra_params" - "\030\005 \003(\0132\031.milvus.grpc.KeyValuePair\"@\n\021Vec" - "torFieldRecord\022+\n\005value\030\001 \003(\0132\034.milvus.g" - "rpc.VectorRowRecord\"\233\001\n\tTermQuery\022\022\n\nfie" - "ld_name\030\001 \001(\t\022\021\n\tint_value\030\002 \003(\003\022\024\n\014doub" - "le_value\030\003 \003(\001\022\021\n\tvalue_num\030\004 \001(\003\022\r\n\005boo" - "st\030\005 \001(\002\022/\n\014extra_params\030\006 \003(\0132\031.milvus." - "grpc.KeyValuePair\"N\n\013CompareExpr\022.\n\010oper" - "ator\030\001 \001(\0162\034.milvus.grpc.CompareOperator" - "\022\017\n\007operand\030\002 \001(\t\"\213\001\n\nRangeQuery\022\022\n\nfiel" - "d_name\030\001 \001(\t\022)\n\007operand\030\002 \003(\0132\030.milvus.g" - "rpc.CompareExpr\022\r\n\005boost\030\003 \001(\002\022/\n\014extra_" - "params\030\004 \003(\0132\031.milvus.grpc.KeyValuePair\"" - "\244\001\n\013VectorQuery\022\022\n\nfield_name\030\001 \001(\t\022\023\n\013q" - "uery_boost\030\002 \001(\002\022-\n\007records\030\003 \003(\0132\034.milv" - "us.grpc.VectorRowRecord\022\014\n\004topk\030\004 \001(\003\022/\n" - "\014extra_params\030\005 \003(\0132\031.milvus.grpc.KeyVal" - "uePair\"c\n\014BooleanQuery\022!\n\005occur\030\001 \001(\0162\022." - "milvus.grpc.Occur\0220\n\rgeneral_query\030\002 \003(\013" - "2\031.milvus.grpc.GeneralQuery\"\333\001\n\014GeneralQ" - "uery\0222\n\rboolean_query\030\001 \001(\0132\031.milvus.grp" - "c.BooleanQueryH\000\022,\n\nterm_query\030\002 \001(\0132\026.m" - "ilvus.grpc.TermQueryH\000\022.\n\013range_query\030\003 " - "\001(\0132\027.milvus.grpc.RangeQueryH\000\0220\n\014vector" - "_query\030\004 \001(\0132\030.milvus.grpc.VectorQueryH\000" - "B\007\n\005query\"\250\001\n\rSearchParamPB\022\027\n\017collectio" - "n_name\030\001 \001(\t\022\033\n\023partition_tag_array\030\002 \003(" - "\t\0220\n\rgeneral_query\030\003 \001(\0132\031.milvus.grpc.G" - "eneralQuery\022/\n\014extra_params\030\004 \003(\0132\031.milv" - "us.grpc.KeyValuePair\"\231\002\n\021InsertOrDeleteM" - "sg\022\027\n\017collection_name\030\001 \001(\t\022\'\n\trows_data" - "\030\002 \001(\0132\024.milvus.grpc.RowData\022\013\n\003uid\030\003 \001(" - "\003\022\025\n\rpartition_tag\030\004 \001(\t\022\021\n\ttimestamp\030\005 " - "\001(\003\022\022\n\nsegment_id\030\006 \001(\003\022\022\n\nchannel_id\030\007 " - "\001(\003\022\037\n\002op\030\010 \001(\0162\023.milvus.grpc.OpType\022\021\n\t" - "client_id\030\t \001(\003\022/\n\014extra_params\030\n \003(\0132\031." - "milvus.grpc.KeyValuePair\"\316\001\n\tSearchMsg\022\027" - "\n\017collection_name\030\001 \001(\t\022-\n\007records\030\002 \001(\013" - "2\034.milvus.grpc.VectorRowRecord\022\025\n\rpartit" - "ion_tag\030\003 \001(\t\022\013\n\003uid\030\004 \001(\003\022\021\n\ttimestamp\030" - "\005 \001(\003\022\021\n\tclient_id\030\006 \001(\003\022/\n\014extra_params" - "\030\007 \003(\0132\031.milvus.grpc.KeyValuePair\"[\n\013Tim" - "eSyncMsg\022\017\n\007peer_Id\030\001 \001(\003\022\021\n\tTimestamp\030\002" - " \001(\003\022(\n\tsync_type\030\003 \001(\0162\025.milvus.grpc.Sy" - "ncType\"0\n\rSegmentRecord\022\013\n\003uid\030\001 \001(\003\022\022\n\n" - "segment_id\030\002 \003(\003\"L\n\nKey2SegMsg\022\021\n\tclient" - "_id\030\001 \001(\003\022+\n\007records\030\002 \001(\0132\032.milvus.grpc" - ".SegmentRecord*\242\004\n\tErrorCode\022\013\n\007SUCCESS\020" - "\000\022\024\n\020UNEXPECTED_ERROR\020\001\022\022\n\016CONNECT_FAILE" - "D\020\002\022\025\n\021PERMISSION_DENIED\020\003\022\031\n\025COLLECTION" - "_NOT_EXISTS\020\004\022\024\n\020ILLEGAL_ARGUMENT\020\005\022\025\n\021I" - "LLEGAL_DIMENSION\020\007\022\026\n\022ILLEGAL_INDEX_TYPE" - "\020\010\022\033\n\027ILLEGAL_COLLECTION_NAME\020\t\022\020\n\014ILLEG" - "AL_TOPK\020\n\022\025\n\021ILLEGAL_ROWRECORD\020\013\022\025\n\021ILLE" - "GAL_VECTOR_ID\020\014\022\031\n\025ILLEGAL_SEARCH_RESULT" - "\020\r\022\022\n\016FILE_NOT_FOUND\020\016\022\017\n\013META_FAILED\020\017\022" - "\020\n\014CACHE_FAILED\020\020\022\030\n\024CANNOT_CREATE_FOLDE" - "R\020\021\022\026\n\022CANNOT_CREATE_FILE\020\022\022\030\n\024CANNOT_DE" - "LETE_FOLDER\020\023\022\026\n\022CANNOT_DELETE_FILE\020\024\022\025\n" - "\021BUILD_INDEX_ERROR\020\025\022\021\n\rILLEGAL_NLIST\020\026\022" - "\027\n\023ILLEGAL_METRIC_TYPE\020\027\022\021\n\rOUT_OF_MEMOR" - "Y\020\030*\221\001\n\010DataType\022\010\n\004NONE\020\000\022\010\n\004BOOL\020\001\022\010\n\004" - "INT8\020\002\022\t\n\005INT16\020\003\022\t\n\005INT32\020\004\022\t\n\005INT64\020\005\022" - "\t\n\005FLOAT\020\n\022\n\n\006DOUBLE\020\013\022\n\n\006STRING\020\024\022\021\n\rVE" - "CTOR_BINARY\020d\022\020\n\014VECTOR_FLOAT\020e*C\n\017Compa" - "reOperator\022\006\n\002LT\020\000\022\007\n\003LTE\020\001\022\006\n\002EQ\020\002\022\006\n\002G" - "T\020\003\022\007\n\003GTE\020\004\022\006\n\002NE\020\005*8\n\005Occur\022\013\n\007INVALID" - "\020\000\022\010\n\004MUST\020\001\022\n\n\006SHOULD\020\002\022\014\n\010MUST_NOT\020\003* " - "\n\006OpType\022\n\n\006INSERT\020\000\022\n\n\006DELETE\020\001*\037\n\010Sync" - "Type\022\010\n\004READ\020\000\022\t\n\005WRITE\020\0012\333\r\n\rMilvusServ" - "ice\022\?\n\020CreateCollection\022\024.milvus.grpc.Ma" - "pping\032\023.milvus.grpc.Status\"\000\022F\n\rHasColle" - "ction\022\033.milvus.grpc.CollectionName\032\026.mil" - "vus.grpc.BoolReply\"\000\022I\n\022DescribeCollecti" - "on\022\033.milvus.grpc.CollectionName\032\024.milvus" - ".grpc.Mapping\"\000\022Q\n\017CountCollection\022\033.mil" - "vus.grpc.CollectionName\032\037.milvus.grpc.Co" - "llectionRowCount\"\000\022J\n\017ShowCollections\022\024." - "milvus.grpc.Command\032\037.milvus.grpc.Collec" - "tionNameList\"\000\022P\n\022ShowCollectionInfo\022\033.m" - "ilvus.grpc.CollectionName\032\033.milvus.grpc." - "CollectionInfo\"\000\022D\n\016DropCollection\022\033.mil" - "vus.grpc.CollectionName\032\023.milvus.grpc.St" - "atus\"\000\022=\n\013CreateIndex\022\027.milvus.grpc.Inde" - "xParam\032\023.milvus.grpc.Status\"\000\022C\n\rDescrib" - "eIndex\022\027.milvus.grpc.IndexParam\032\027.milvus" - ".grpc.IndexParam\"\000\022;\n\tDropIndex\022\027.milvus" - ".grpc.IndexParam\032\023.milvus.grpc.Status\"\000\022" - "E\n\017CreatePartition\022\033.milvus.grpc.Partiti" - "onParam\032\023.milvus.grpc.Status\"\000\022E\n\014HasPar" - "tition\022\033.milvus.grpc.PartitionParam\032\026.mi" - "lvus.grpc.BoolReply\"\000\022K\n\016ShowPartitions\022" - "\033.milvus.grpc.CollectionName\032\032.milvus.gr" - "pc.PartitionList\"\000\022C\n\rDropPartition\022\033.mi" - "lvus.grpc.PartitionParam\032\023.milvus.grpc.S" - "tatus\"\000\022<\n\006Insert\022\030.milvus.grpc.InsertPa" - "ram\032\026.milvus.grpc.EntityIds\"\000\022E\n\rGetEnti" - "tyByID\022\033.milvus.grpc.EntityIdentity\032\025.mi" - "lvus.grpc.Entities\"\000\022H\n\014GetEntityIDs\022\036.m" - "ilvus.grpc.GetEntityIDsParam\032\026.milvus.gr" - "pc.EntityIds\"\000\022>\n\006Search\022\030.milvus.grpc.S" - "earchParam\032\030.milvus.grpc.QueryResult\"\000\022P" - "\n\017SearchInSegment\022!.milvus.grpc.SearchIn" - "SegmentParam\032\030.milvus.grpc.QueryResult\"\000" - "\0227\n\003Cmd\022\024.milvus.grpc.Command\032\030.milvus.g" - "rpc.StringReply\"\000\022A\n\nDeleteByID\022\034.milvus" - ".grpc.DeleteByIDParam\032\023.milvus.grpc.Stat" - "us\"\000\022G\n\021PreloadCollection\022\033.milvus.grpc." - "CollectionName\032\023.milvus.grpc.Status\"\000\0227\n" - "\005Flush\022\027.milvus.grpc.FlushParam\032\023.milvus" - ".grpc.Status\"\000\022;\n\007Compact\022\031.milvus.grpc." - "CompactParam\032\023.milvus.grpc.Status\"\000\022B\n\010S" - "earchPB\022\032.milvus.grpc.SearchParamPB\032\030.mi" - "lvus.grpc.QueryResult\"\000b\006proto3", 7591); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( - "suvlim.proto", &protobuf_RegisterTypes); - Status::default_instance_ = new Status(); - KeyValuePair::default_instance_ = new KeyValuePair(); - CollectionName::default_instance_ = new CollectionName(); - CollectionNameList::default_instance_ = new CollectionNameList(); - FieldName::default_instance_ = new FieldName(); - Mapping::default_instance_ = new Mapping(); - MappingList::default_instance_ = new MappingList(); - PartitionParam::default_instance_ = new PartitionParam(); - PartitionList::default_instance_ = new PartitionList(); - VectorRowRecord::default_instance_ = new VectorRowRecord(); - EntityIds::default_instance_ = new EntityIds(); - VectorRecord::default_instance_ = new VectorRecord(); - VectorParam::default_instance_ = new VectorParam(); - FieldMeta::default_instance_ = new FieldMeta(); - Schema::default_instance_ = new Schema(); - RowData::default_instance_ = new RowData(); - InsertParam::default_instance_ = new InsertParam(); - SearchParam::default_instance_ = new SearchParam(); - SearchInSegmentParam::default_instance_ = new SearchInSegmentParam(); - Entities::default_instance_ = new Entities(); - QueryResult::default_instance_ = new QueryResult(); - StringReply::default_instance_ = new StringReply(); - BoolReply::default_instance_ = new BoolReply(); - CollectionRowCount::default_instance_ = new CollectionRowCount(); - Command::default_instance_ = new Command(); - IndexParam::default_instance_ = new IndexParam(); - FlushParam::default_instance_ = new FlushParam(); - CompactParam::default_instance_ = new CompactParam(); - DeleteByIDParam::default_instance_ = new DeleteByIDParam(); - CollectionInfo::default_instance_ = new CollectionInfo(); - GetEntityIDsParam::default_instance_ = new GetEntityIDsParam(); - EntityIdentity::default_instance_ = new EntityIdentity(); - VectorFieldParam::default_instance_ = new VectorFieldParam(); - FieldType::default_instance_ = new FieldType(); - FieldType_default_oneof_instance_ = new FieldTypeOneofInstance(); - FieldParam::default_instance_ = new FieldParam(); - VectorFieldRecord::default_instance_ = new VectorFieldRecord(); - TermQuery::default_instance_ = new TermQuery(); - CompareExpr::default_instance_ = new CompareExpr(); - RangeQuery::default_instance_ = new RangeQuery(); - VectorQuery::default_instance_ = new VectorQuery(); - BooleanQuery::default_instance_ = new BooleanQuery(); - GeneralQuery::default_instance_ = new GeneralQuery(); - GeneralQuery_default_oneof_instance_ = new GeneralQueryOneofInstance(); - SearchParamPB::default_instance_ = new SearchParamPB(); - InsertOrDeleteMsg::default_instance_ = new InsertOrDeleteMsg(); - SearchMsg::default_instance_ = new SearchMsg(); - TimeSyncMsg::default_instance_ = new TimeSyncMsg(); - SegmentRecord::default_instance_ = new SegmentRecord(); - Key2SegMsg::default_instance_ = new Key2SegMsg(); - Status::default_instance_->InitAsDefaultInstance(); - KeyValuePair::default_instance_->InitAsDefaultInstance(); - CollectionName::default_instance_->InitAsDefaultInstance(); - CollectionNameList::default_instance_->InitAsDefaultInstance(); - FieldName::default_instance_->InitAsDefaultInstance(); - Mapping::default_instance_->InitAsDefaultInstance(); - MappingList::default_instance_->InitAsDefaultInstance(); - PartitionParam::default_instance_->InitAsDefaultInstance(); - PartitionList::default_instance_->InitAsDefaultInstance(); - VectorRowRecord::default_instance_->InitAsDefaultInstance(); - EntityIds::default_instance_->InitAsDefaultInstance(); - VectorRecord::default_instance_->InitAsDefaultInstance(); - VectorParam::default_instance_->InitAsDefaultInstance(); - FieldMeta::default_instance_->InitAsDefaultInstance(); - Schema::default_instance_->InitAsDefaultInstance(); - RowData::default_instance_->InitAsDefaultInstance(); - InsertParam::default_instance_->InitAsDefaultInstance(); - SearchParam::default_instance_->InitAsDefaultInstance(); - SearchInSegmentParam::default_instance_->InitAsDefaultInstance(); - Entities::default_instance_->InitAsDefaultInstance(); - QueryResult::default_instance_->InitAsDefaultInstance(); - StringReply::default_instance_->InitAsDefaultInstance(); - BoolReply::default_instance_->InitAsDefaultInstance(); - CollectionRowCount::default_instance_->InitAsDefaultInstance(); - Command::default_instance_->InitAsDefaultInstance(); - IndexParam::default_instance_->InitAsDefaultInstance(); - FlushParam::default_instance_->InitAsDefaultInstance(); - CompactParam::default_instance_->InitAsDefaultInstance(); - DeleteByIDParam::default_instance_->InitAsDefaultInstance(); - CollectionInfo::default_instance_->InitAsDefaultInstance(); - GetEntityIDsParam::default_instance_->InitAsDefaultInstance(); - EntityIdentity::default_instance_->InitAsDefaultInstance(); - VectorFieldParam::default_instance_->InitAsDefaultInstance(); - FieldType::default_instance_->InitAsDefaultInstance(); - FieldParam::default_instance_->InitAsDefaultInstance(); - VectorFieldRecord::default_instance_->InitAsDefaultInstance(); - TermQuery::default_instance_->InitAsDefaultInstance(); - CompareExpr::default_instance_->InitAsDefaultInstance(); - RangeQuery::default_instance_->InitAsDefaultInstance(); - VectorQuery::default_instance_->InitAsDefaultInstance(); - BooleanQuery::default_instance_->InitAsDefaultInstance(); - GeneralQuery::default_instance_->InitAsDefaultInstance(); - SearchParamPB::default_instance_->InitAsDefaultInstance(); - InsertOrDeleteMsg::default_instance_->InitAsDefaultInstance(); - SearchMsg::default_instance_->InitAsDefaultInstance(); - TimeSyncMsg::default_instance_->InitAsDefaultInstance(); - SegmentRecord::default_instance_->InitAsDefaultInstance(); - Key2SegMsg::default_instance_->InitAsDefaultInstance(); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_suvlim_2eproto); + { + void* ptr = &::milvus::grpc::_BoolReply_default_instance_; + new (ptr) ::milvus::grpc::BoolReply(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::BoolReply::InitAsDefaultInstance(); } -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_suvlim_2eproto { - StaticDescriptorInitializer_suvlim_2eproto() { - protobuf_AddDesc_suvlim_2eproto(); +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_BoolReply_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_BoolReply_suvlim_2eproto}, { + &scc_info_Status_status_2eproto.base,}}; + +static void InitDefaultsscc_info_BooleanQuery_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_BooleanQuery_default_instance_; + new (ptr) ::milvus::grpc::BooleanQuery(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } -} static_descriptor_initializer_suvlim_2eproto_; -const ::google::protobuf::EnumDescriptor* ErrorCode_descriptor() { - protobuf_AssignDescriptorsOnce(); - return ErrorCode_descriptor_; -} -bool ErrorCode_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 23: - case 24: - return true; - default: - return false; + { + void* ptr = &::milvus::grpc::_GeneralQuery_default_instance_; + new (ptr) ::milvus::grpc::GeneralQuery(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } + ::milvus::grpc::BooleanQuery::InitAsDefaultInstance(); + ::milvus::grpc::GeneralQuery::InitAsDefaultInstance(); } -const ::google::protobuf::EnumDescriptor* DataType_descriptor() { - protobuf_AssignDescriptorsOnce(); - return DataType_descriptor_; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_BooleanQuery_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_BooleanQuery_suvlim_2eproto}, { + &scc_info_TermQuery_suvlim_2eproto.base, + &scc_info_RangeQuery_suvlim_2eproto.base, + &scc_info_VectorQuery_suvlim_2eproto.base,}}; + +static void InitDefaultsscc_info_CollectionInfo_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_CollectionInfo_default_instance_; + new (ptr) ::milvus::grpc::CollectionInfo(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::CollectionInfo::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionInfo_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_CollectionInfo_suvlim_2eproto}, { + &scc_info_Status_status_2eproto.base,}}; + +static void InitDefaultsscc_info_CollectionName_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_CollectionName_default_instance_; + new (ptr) ::milvus::grpc::CollectionName(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::CollectionName::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CollectionName_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CollectionName_suvlim_2eproto}, {}}; + +static void InitDefaultsscc_info_CollectionNameList_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_CollectionNameList_default_instance_; + new (ptr) ::milvus::grpc::CollectionNameList(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::CollectionNameList::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionNameList_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_CollectionNameList_suvlim_2eproto}, { + &scc_info_Status_status_2eproto.base,}}; + +static void InitDefaultsscc_info_CollectionRowCount_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_CollectionRowCount_default_instance_; + new (ptr) ::milvus::grpc::CollectionRowCount(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::CollectionRowCount::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionRowCount_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_CollectionRowCount_suvlim_2eproto}, { + &scc_info_Status_status_2eproto.base,}}; + +static void InitDefaultsscc_info_Command_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_Command_default_instance_; + new (ptr) ::milvus::grpc::Command(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::Command::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Command_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_Command_suvlim_2eproto}, {}}; + +static void InitDefaultsscc_info_CompactParam_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_CompactParam_default_instance_; + new (ptr) ::milvus::grpc::CompactParam(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::CompactParam::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CompactParam_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CompactParam_suvlim_2eproto}, {}}; + +static void InitDefaultsscc_info_CompareExpr_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_CompareExpr_default_instance_; + new (ptr) ::milvus::grpc::CompareExpr(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::CompareExpr::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CompareExpr_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CompareExpr_suvlim_2eproto}, {}}; + +static void InitDefaultsscc_info_DeleteByIDParam_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_DeleteByIDParam_default_instance_; + new (ptr) ::milvus::grpc::DeleteByIDParam(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::DeleteByIDParam::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DeleteByIDParam_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_DeleteByIDParam_suvlim_2eproto}, {}}; + +static void InitDefaultsscc_info_Entities_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_Entities_default_instance_; + new (ptr) ::milvus::grpc::Entities(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::Entities::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Entities_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_Entities_suvlim_2eproto}, { + &scc_info_Status_status_2eproto.base, + &scc_info_RowData_suvlim_2eproto.base,}}; + +static void InitDefaultsscc_info_EntityIdentity_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_EntityIdentity_default_instance_; + new (ptr) ::milvus::grpc::EntityIdentity(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::EntityIdentity::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EntityIdentity_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_EntityIdentity_suvlim_2eproto}, {}}; + +static void InitDefaultsscc_info_EntityIds_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_EntityIds_default_instance_; + new (ptr) ::milvus::grpc::EntityIds(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::EntityIds::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EntityIds_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_EntityIds_suvlim_2eproto}, { + &scc_info_Status_status_2eproto.base,}}; + +static void InitDefaultsscc_info_FieldMeta_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_FieldMeta_default_instance_; + new (ptr) ::milvus::grpc::FieldMeta(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::FieldMeta::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FieldMeta_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_FieldMeta_suvlim_2eproto}, {}}; + +static void InitDefaultsscc_info_FieldName_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_FieldName_default_instance_; + new (ptr) ::milvus::grpc::FieldName(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::FieldName::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FieldName_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_FieldName_suvlim_2eproto}, {}}; + +static void InitDefaultsscc_info_FieldParam_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_FieldParam_default_instance_; + new (ptr) ::milvus::grpc::FieldParam(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::FieldParam::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_FieldParam_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_FieldParam_suvlim_2eproto}, { + &scc_info_KeyValuePair_suvlim_2eproto.base,}}; + +static void InitDefaultsscc_info_FieldType_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_FieldType_default_instance_; + new (ptr) ::milvus::grpc::FieldType(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::FieldType::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_FieldType_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_FieldType_suvlim_2eproto}, { + &scc_info_VectorFieldParam_suvlim_2eproto.base,}}; + +static void InitDefaultsscc_info_FlushParam_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_FlushParam_default_instance_; + new (ptr) ::milvus::grpc::FlushParam(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::FlushParam::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FlushParam_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_FlushParam_suvlim_2eproto}, {}}; + +static void InitDefaultsscc_info_GetEntityIDsParam_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_GetEntityIDsParam_default_instance_; + new (ptr) ::milvus::grpc::GetEntityIDsParam(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::GetEntityIDsParam::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetEntityIDsParam_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GetEntityIDsParam_suvlim_2eproto}, {}}; + +static void InitDefaultsscc_info_IndexParam_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_IndexParam_default_instance_; + new (ptr) ::milvus::grpc::IndexParam(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::IndexParam::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_IndexParam_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_IndexParam_suvlim_2eproto}, { + &scc_info_Status_status_2eproto.base, + &scc_info_KeyValuePair_suvlim_2eproto.base,}}; + +static void InitDefaultsscc_info_InsertOrDeleteMsg_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_InsertOrDeleteMsg_default_instance_; + new (ptr) ::milvus::grpc::InsertOrDeleteMsg(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::InsertOrDeleteMsg::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_InsertOrDeleteMsg_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_InsertOrDeleteMsg_suvlim_2eproto}, { + &scc_info_RowData_suvlim_2eproto.base, + &scc_info_KeyValuePair_suvlim_2eproto.base,}}; + +static void InitDefaultsscc_info_InsertParam_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_InsertParam_default_instance_; + new (ptr) ::milvus::grpc::InsertParam(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::InsertParam::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_InsertParam_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_InsertParam_suvlim_2eproto}, { + &scc_info_Schema_suvlim_2eproto.base, + &scc_info_RowData_suvlim_2eproto.base, + &scc_info_KeyValuePair_suvlim_2eproto.base,}}; + +static void InitDefaultsscc_info_Key2SegMsg_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_Key2SegMsg_default_instance_; + new (ptr) ::milvus::grpc::Key2SegMsg(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::Key2SegMsg::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Key2SegMsg_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_Key2SegMsg_suvlim_2eproto}, { + &scc_info_SegmentRecord_suvlim_2eproto.base,}}; + +static void InitDefaultsscc_info_KeyValuePair_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_KeyValuePair_default_instance_; + new (ptr) ::milvus::grpc::KeyValuePair(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::KeyValuePair::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KeyValuePair_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_KeyValuePair_suvlim_2eproto}, {}}; + +static void InitDefaultsscc_info_Mapping_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_Mapping_default_instance_; + new (ptr) ::milvus::grpc::Mapping(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::Mapping::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_Mapping_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_Mapping_suvlim_2eproto}, { + &scc_info_Status_status_2eproto.base, + &scc_info_FieldParam_suvlim_2eproto.base, + &scc_info_KeyValuePair_suvlim_2eproto.base,}}; + +static void InitDefaultsscc_info_MappingList_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_MappingList_default_instance_; + new (ptr) ::milvus::grpc::MappingList(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::MappingList::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_MappingList_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_MappingList_suvlim_2eproto}, { + &scc_info_Status_status_2eproto.base, + &scc_info_Mapping_suvlim_2eproto.base,}}; + +static void InitDefaultsscc_info_PartitionList_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_PartitionList_default_instance_; + new (ptr) ::milvus::grpc::PartitionList(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::PartitionList::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PartitionList_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_PartitionList_suvlim_2eproto}, { + &scc_info_Status_status_2eproto.base,}}; + +static void InitDefaultsscc_info_PartitionParam_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_PartitionParam_default_instance_; + new (ptr) ::milvus::grpc::PartitionParam(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::PartitionParam::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PartitionParam_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_PartitionParam_suvlim_2eproto}, {}}; + +static void InitDefaultsscc_info_QueryResult_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_QueryResult_default_instance_; + new (ptr) ::milvus::grpc::QueryResult(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::QueryResult::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_QueryResult_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_QueryResult_suvlim_2eproto}, { + &scc_info_Status_status_2eproto.base, + &scc_info_Entities_suvlim_2eproto.base, + &scc_info_KeyValuePair_suvlim_2eproto.base,}}; + +static void InitDefaultsscc_info_RangeQuery_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_RangeQuery_default_instance_; + new (ptr) ::milvus::grpc::RangeQuery(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::RangeQuery::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_RangeQuery_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_RangeQuery_suvlim_2eproto}, { + &scc_info_CompareExpr_suvlim_2eproto.base, + &scc_info_KeyValuePair_suvlim_2eproto.base,}}; + +static void InitDefaultsscc_info_RowData_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_RowData_default_instance_; + new (ptr) ::milvus::grpc::RowData(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::RowData::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RowData_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_RowData_suvlim_2eproto}, {}}; + +static void InitDefaultsscc_info_Schema_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_Schema_default_instance_; + new (ptr) ::milvus::grpc::Schema(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::Schema::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Schema_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_Schema_suvlim_2eproto}, { + &scc_info_FieldMeta_suvlim_2eproto.base,}}; + +static void InitDefaultsscc_info_SearchInSegmentParam_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_SearchInSegmentParam_default_instance_; + new (ptr) ::milvus::grpc::SearchInSegmentParam(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::SearchInSegmentParam::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SearchInSegmentParam_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_SearchInSegmentParam_suvlim_2eproto}, { + &scc_info_SearchParam_suvlim_2eproto.base,}}; + +static void InitDefaultsscc_info_SearchMsg_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_SearchMsg_default_instance_; + new (ptr) ::milvus::grpc::SearchMsg(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::SearchMsg::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_SearchMsg_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_SearchMsg_suvlim_2eproto}, { + &scc_info_VectorRowRecord_suvlim_2eproto.base, + &scc_info_KeyValuePair_suvlim_2eproto.base,}}; + +static void InitDefaultsscc_info_SearchParam_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_SearchParam_default_instance_; + new (ptr) ::milvus::grpc::SearchParam(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::SearchParam::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_SearchParam_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_SearchParam_suvlim_2eproto}, { + &scc_info_VectorParam_suvlim_2eproto.base, + &scc_info_KeyValuePair_suvlim_2eproto.base,}}; + +static void InitDefaultsscc_info_SearchParamPB_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_SearchParamPB_default_instance_; + new (ptr) ::milvus::grpc::SearchParamPB(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::SearchParamPB::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_SearchParamPB_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_SearchParamPB_suvlim_2eproto}, { + &scc_info_BooleanQuery_suvlim_2eproto.base, + &scc_info_KeyValuePair_suvlim_2eproto.base,}}; + +static void InitDefaultsscc_info_SegmentRecord_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_SegmentRecord_default_instance_; + new (ptr) ::milvus::grpc::SegmentRecord(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::SegmentRecord::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SegmentRecord_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_SegmentRecord_suvlim_2eproto}, {}}; + +static void InitDefaultsscc_info_StringReply_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_StringReply_default_instance_; + new (ptr) ::milvus::grpc::StringReply(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::StringReply::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_StringReply_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_StringReply_suvlim_2eproto}, { + &scc_info_Status_status_2eproto.base,}}; + +static void InitDefaultsscc_info_TermQuery_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_TermQuery_default_instance_; + new (ptr) ::milvus::grpc::TermQuery(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::TermQuery::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TermQuery_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_TermQuery_suvlim_2eproto}, { + &scc_info_KeyValuePair_suvlim_2eproto.base,}}; + +static void InitDefaultsscc_info_TimeSyncMsg_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_TimeSyncMsg_default_instance_; + new (ptr) ::milvus::grpc::TimeSyncMsg(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::TimeSyncMsg::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TimeSyncMsg_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_TimeSyncMsg_suvlim_2eproto}, {}}; + +static void InitDefaultsscc_info_VectorFieldParam_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_VectorFieldParam_default_instance_; + new (ptr) ::milvus::grpc::VectorFieldParam(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::VectorFieldParam::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VectorFieldParam_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_VectorFieldParam_suvlim_2eproto}, {}}; + +static void InitDefaultsscc_info_VectorFieldRecord_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_VectorFieldRecord_default_instance_; + new (ptr) ::milvus::grpc::VectorFieldRecord(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::VectorFieldRecord::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_VectorFieldRecord_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_VectorFieldRecord_suvlim_2eproto}, { + &scc_info_VectorRowRecord_suvlim_2eproto.base,}}; + +static void InitDefaultsscc_info_VectorParam_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_VectorParam_default_instance_; + new (ptr) ::milvus::grpc::VectorParam(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::VectorParam::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_VectorParam_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_VectorParam_suvlim_2eproto}, { + &scc_info_VectorRecord_suvlim_2eproto.base,}}; + +static void InitDefaultsscc_info_VectorQuery_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_VectorQuery_default_instance_; + new (ptr) ::milvus::grpc::VectorQuery(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::VectorQuery::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_VectorQuery_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_VectorQuery_suvlim_2eproto}, { + &scc_info_VectorRowRecord_suvlim_2eproto.base, + &scc_info_KeyValuePair_suvlim_2eproto.base,}}; + +static void InitDefaultsscc_info_VectorRecord_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_VectorRecord_default_instance_; + new (ptr) ::milvus::grpc::VectorRecord(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::VectorRecord::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_VectorRecord_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_VectorRecord_suvlim_2eproto}, { + &scc_info_VectorRowRecord_suvlim_2eproto.base,}}; + +static void InitDefaultsscc_info_VectorRowRecord_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_VectorRowRecord_default_instance_; + new (ptr) ::milvus::grpc::VectorRowRecord(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::VectorRowRecord::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VectorRowRecord_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_VectorRowRecord_suvlim_2eproto}, {}}; + +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_suvlim_2eproto[47]; +static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_suvlim_2eproto[4]; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_suvlim_2eproto = nullptr; + +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_suvlim_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::KeyValuePair, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::KeyValuePair, key_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::KeyValuePair, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionName, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionName, collection_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionNameList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionNameList, status_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionNameList, collection_names_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldName, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldName, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldName, field_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::Mapping, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::Mapping, status_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::Mapping, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::Mapping, fields_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::Mapping, extra_params_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::MappingList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::MappingList, status_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::MappingList, mapping_list_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::PartitionParam, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::PartitionParam, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::PartitionParam, tag_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::PartitionList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::PartitionList, status_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::PartitionList, partition_tag_array_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorRowRecord, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorRowRecord, float_data_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorRowRecord, binary_data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::EntityIds, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::EntityIds, status_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::EntityIds, entity_id_array_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorRecord, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorRecord, records_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorParam, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorParam, json_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorParam, row_record_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldMeta, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldMeta, field_name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldMeta, type_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldMeta, dim_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::Schema, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::Schema, field_metas_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::RowData, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::RowData, blob_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertParam, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertParam, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertParam, schema_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertParam, rows_data_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertParam, entity_id_array_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertParam, partition_tag_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertParam, extra_params_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParam, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParam, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParam, vector_param_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParam, dsl_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParam, partition_tag_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParam, extra_params_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchInSegmentParam, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchInSegmentParam, file_id_array_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchInSegmentParam, search_param_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::Entities, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::Entities, status_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::Entities, ids_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::Entities, valid_row_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::Entities, rows_data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::QueryResult, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::QueryResult, status_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::QueryResult, entities_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::QueryResult, row_num_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::QueryResult, scores_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::QueryResult, distances_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::QueryResult, extra_params_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::StringReply, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::StringReply, status_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::StringReply, string_reply_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::BoolReply, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::BoolReply, status_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::BoolReply, bool_reply_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionRowCount, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionRowCount, status_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionRowCount, collection_row_count_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::Command, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::Command, cmd_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::IndexParam, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::IndexParam, status_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::IndexParam, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::IndexParam, field_name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::IndexParam, index_name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::IndexParam, extra_params_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::FlushParam, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::FlushParam, collection_name_array_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::CompactParam, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::CompactParam, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::CompactParam, threshold_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::DeleteByIDParam, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::DeleteByIDParam, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::DeleteByIDParam, id_array_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionInfo, status_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionInfo, json_info_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::GetEntityIDsParam, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::GetEntityIDsParam, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::GetEntityIDsParam, segment_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::EntityIdentity, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::EntityIdentity, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::EntityIdentity, id_array_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::EntityIdentity, field_names_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorFieldParam, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorFieldParam, dimension_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldType, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldType, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::milvus::grpc::FieldTypeDefaultTypeInternal, data_type_), + offsetof(::milvus::grpc::FieldTypeDefaultTypeInternal, vector_param_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldType, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldParam, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldParam, id_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldParam, name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldParam, type_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldParam, index_params_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldParam, extra_params_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorFieldRecord, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorFieldRecord, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::TermQuery, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::TermQuery, field_name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::TermQuery, int_value_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::TermQuery, double_value_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::TermQuery, value_num_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::TermQuery, boost_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::TermQuery, extra_params_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::CompareExpr, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::CompareExpr, operator__), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::CompareExpr, operand_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::RangeQuery, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::RangeQuery, field_name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::RangeQuery, operand_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::RangeQuery, boost_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::RangeQuery, extra_params_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorQuery, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorQuery, field_name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorQuery, query_boost_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorQuery, records_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorQuery, topk_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorQuery, extra_params_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::BooleanQuery, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::BooleanQuery, occur_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::BooleanQuery, general_query_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::GeneralQuery, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::GeneralQuery, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::milvus::grpc::GeneralQueryDefaultTypeInternal, boolean_query_), + offsetof(::milvus::grpc::GeneralQueryDefaultTypeInternal, term_query_), + offsetof(::milvus::grpc::GeneralQueryDefaultTypeInternal, range_query_), + offsetof(::milvus::grpc::GeneralQueryDefaultTypeInternal, vector_query_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::GeneralQuery, query_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParamPB, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParamPB, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParamPB, partition_tag_array_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParamPB, general_query_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParamPB, extra_params_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertOrDeleteMsg, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertOrDeleteMsg, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertOrDeleteMsg, rows_data_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertOrDeleteMsg, uid_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertOrDeleteMsg, partition_tag_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertOrDeleteMsg, timestamp_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertOrDeleteMsg, segment_id_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertOrDeleteMsg, channel_id_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertOrDeleteMsg, op_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertOrDeleteMsg, client_id_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertOrDeleteMsg, extra_params_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchMsg, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchMsg, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchMsg, records_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchMsg, partition_tag_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchMsg, uid_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchMsg, timestamp_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchMsg, client_id_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchMsg, extra_params_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::TimeSyncMsg, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::TimeSyncMsg, clientid_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::TimeSyncMsg, timestamp_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::TimeSyncMsg, msgtype_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SegmentRecord, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SegmentRecord, uid_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SegmentRecord, segment_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::Key2SegMsg, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::Key2SegMsg, client_id_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::Key2SegMsg, records_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::Key2SegMsg, msg_type_), +}; +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::milvus::grpc::KeyValuePair)}, + { 7, -1, sizeof(::milvus::grpc::CollectionName)}, + { 13, -1, sizeof(::milvus::grpc::CollectionNameList)}, + { 20, -1, sizeof(::milvus::grpc::FieldName)}, + { 27, -1, sizeof(::milvus::grpc::Mapping)}, + { 36, -1, sizeof(::milvus::grpc::MappingList)}, + { 43, -1, sizeof(::milvus::grpc::PartitionParam)}, + { 50, -1, sizeof(::milvus::grpc::PartitionList)}, + { 57, -1, sizeof(::milvus::grpc::VectorRowRecord)}, + { 64, -1, sizeof(::milvus::grpc::EntityIds)}, + { 71, -1, sizeof(::milvus::grpc::VectorRecord)}, + { 77, -1, sizeof(::milvus::grpc::VectorParam)}, + { 84, -1, sizeof(::milvus::grpc::FieldMeta)}, + { 92, -1, sizeof(::milvus::grpc::Schema)}, + { 98, -1, sizeof(::milvus::grpc::RowData)}, + { 104, -1, sizeof(::milvus::grpc::InsertParam)}, + { 115, -1, sizeof(::milvus::grpc::SearchParam)}, + { 125, -1, sizeof(::milvus::grpc::SearchInSegmentParam)}, + { 132, -1, sizeof(::milvus::grpc::Entities)}, + { 141, -1, sizeof(::milvus::grpc::QueryResult)}, + { 152, -1, sizeof(::milvus::grpc::StringReply)}, + { 159, -1, sizeof(::milvus::grpc::BoolReply)}, + { 166, -1, sizeof(::milvus::grpc::CollectionRowCount)}, + { 173, -1, sizeof(::milvus::grpc::Command)}, + { 179, -1, sizeof(::milvus::grpc::IndexParam)}, + { 189, -1, sizeof(::milvus::grpc::FlushParam)}, + { 195, -1, sizeof(::milvus::grpc::CompactParam)}, + { 202, -1, sizeof(::milvus::grpc::DeleteByIDParam)}, + { 209, -1, sizeof(::milvus::grpc::CollectionInfo)}, + { 216, -1, sizeof(::milvus::grpc::GetEntityIDsParam)}, + { 223, -1, sizeof(::milvus::grpc::EntityIdentity)}, + { 231, -1, sizeof(::milvus::grpc::VectorFieldParam)}, + { 237, -1, sizeof(::milvus::grpc::FieldType)}, + { 245, -1, sizeof(::milvus::grpc::FieldParam)}, + { 255, -1, sizeof(::milvus::grpc::VectorFieldRecord)}, + { 261, -1, sizeof(::milvus::grpc::TermQuery)}, + { 272, -1, sizeof(::milvus::grpc::CompareExpr)}, + { 279, -1, sizeof(::milvus::grpc::RangeQuery)}, + { 288, -1, sizeof(::milvus::grpc::VectorQuery)}, + { 298, -1, sizeof(::milvus::grpc::BooleanQuery)}, + { 305, -1, sizeof(::milvus::grpc::GeneralQuery)}, + { 315, -1, sizeof(::milvus::grpc::SearchParamPB)}, + { 324, -1, sizeof(::milvus::grpc::InsertOrDeleteMsg)}, + { 339, -1, sizeof(::milvus::grpc::SearchMsg)}, + { 351, -1, sizeof(::milvus::grpc::TimeSyncMsg)}, + { 359, -1, sizeof(::milvus::grpc::SegmentRecord)}, + { 366, -1, sizeof(::milvus::grpc::Key2SegMsg)}, +}; + +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::milvus::grpc::_KeyValuePair_default_instance_), + reinterpret_cast(&::milvus::grpc::_CollectionName_default_instance_), + reinterpret_cast(&::milvus::grpc::_CollectionNameList_default_instance_), + reinterpret_cast(&::milvus::grpc::_FieldName_default_instance_), + reinterpret_cast(&::milvus::grpc::_Mapping_default_instance_), + reinterpret_cast(&::milvus::grpc::_MappingList_default_instance_), + reinterpret_cast(&::milvus::grpc::_PartitionParam_default_instance_), + reinterpret_cast(&::milvus::grpc::_PartitionList_default_instance_), + reinterpret_cast(&::milvus::grpc::_VectorRowRecord_default_instance_), + reinterpret_cast(&::milvus::grpc::_EntityIds_default_instance_), + reinterpret_cast(&::milvus::grpc::_VectorRecord_default_instance_), + reinterpret_cast(&::milvus::grpc::_VectorParam_default_instance_), + reinterpret_cast(&::milvus::grpc::_FieldMeta_default_instance_), + reinterpret_cast(&::milvus::grpc::_Schema_default_instance_), + reinterpret_cast(&::milvus::grpc::_RowData_default_instance_), + reinterpret_cast(&::milvus::grpc::_InsertParam_default_instance_), + reinterpret_cast(&::milvus::grpc::_SearchParam_default_instance_), + reinterpret_cast(&::milvus::grpc::_SearchInSegmentParam_default_instance_), + reinterpret_cast(&::milvus::grpc::_Entities_default_instance_), + reinterpret_cast(&::milvus::grpc::_QueryResult_default_instance_), + reinterpret_cast(&::milvus::grpc::_StringReply_default_instance_), + reinterpret_cast(&::milvus::grpc::_BoolReply_default_instance_), + reinterpret_cast(&::milvus::grpc::_CollectionRowCount_default_instance_), + reinterpret_cast(&::milvus::grpc::_Command_default_instance_), + reinterpret_cast(&::milvus::grpc::_IndexParam_default_instance_), + reinterpret_cast(&::milvus::grpc::_FlushParam_default_instance_), + reinterpret_cast(&::milvus::grpc::_CompactParam_default_instance_), + reinterpret_cast(&::milvus::grpc::_DeleteByIDParam_default_instance_), + reinterpret_cast(&::milvus::grpc::_CollectionInfo_default_instance_), + reinterpret_cast(&::milvus::grpc::_GetEntityIDsParam_default_instance_), + reinterpret_cast(&::milvus::grpc::_EntityIdentity_default_instance_), + reinterpret_cast(&::milvus::grpc::_VectorFieldParam_default_instance_), + reinterpret_cast(&::milvus::grpc::_FieldType_default_instance_), + reinterpret_cast(&::milvus::grpc::_FieldParam_default_instance_), + reinterpret_cast(&::milvus::grpc::_VectorFieldRecord_default_instance_), + reinterpret_cast(&::milvus::grpc::_TermQuery_default_instance_), + reinterpret_cast(&::milvus::grpc::_CompareExpr_default_instance_), + reinterpret_cast(&::milvus::grpc::_RangeQuery_default_instance_), + reinterpret_cast(&::milvus::grpc::_VectorQuery_default_instance_), + reinterpret_cast(&::milvus::grpc::_BooleanQuery_default_instance_), + reinterpret_cast(&::milvus::grpc::_GeneralQuery_default_instance_), + reinterpret_cast(&::milvus::grpc::_SearchParamPB_default_instance_), + reinterpret_cast(&::milvus::grpc::_InsertOrDeleteMsg_default_instance_), + reinterpret_cast(&::milvus::grpc::_SearchMsg_default_instance_), + reinterpret_cast(&::milvus::grpc::_TimeSyncMsg_default_instance_), + reinterpret_cast(&::milvus::grpc::_SegmentRecord_default_instance_), + reinterpret_cast(&::milvus::grpc::_Key2SegMsg_default_instance_), +}; + +const char descriptor_table_protodef_suvlim_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\014suvlim.proto\022\013milvus.grpc\032\014status.prot" + "o\"*\n\014KeyValuePair\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + "\002 \001(\t\")\n\016CollectionName\022\027\n\017collection_na" + "me\030\001 \001(\t\"S\n\022CollectionNameList\022#\n\006status" + "\030\001 \001(\0132\023.milvus.grpc.Status\022\030\n\020collectio" + "n_names\030\002 \003(\t\"8\n\tFieldName\022\027\n\017collection" + "_name\030\001 \001(\t\022\022\n\nfield_name\030\002 \001(\t\"\241\001\n\007Mapp" + "ing\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Status" + "\022\027\n\017collection_name\030\002 \001(\t\022\'\n\006fields\030\003 \003(" + "\0132\027.milvus.grpc.FieldParam\022/\n\014extra_para" + "ms\030\004 \003(\0132\031.milvus.grpc.KeyValuePair\"^\n\013M" + "appingList\022#\n\006status\030\001 \001(\0132\023.milvus.grpc" + ".Status\022*\n\014mapping_list\030\002 \003(\0132\024.milvus.g" + "rpc.Mapping\"6\n\016PartitionParam\022\027\n\017collect" + "ion_name\030\001 \001(\t\022\013\n\003tag\030\002 \001(\t\"Q\n\rPartition" + "List\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Statu" + "s\022\033\n\023partition_tag_array\030\002 \003(\t\":\n\017Vector" + "RowRecord\022\022\n\nfloat_data\030\001 \003(\002\022\023\n\013binary_" + "data\030\002 \001(\014\"I\n\tEntityIds\022#\n\006status\030\001 \001(\0132" + "\023.milvus.grpc.Status\022\027\n\017entity_id_array\030" + "\002 \003(\003\"=\n\014VectorRecord\022-\n\007records\030\001 \003(\0132\034" + ".milvus.grpc.VectorRowRecord\"J\n\013VectorPa" + "ram\022\014\n\004json\030\001 \001(\t\022-\n\nrow_record\030\002 \001(\0132\031." + "milvus.grpc.VectorRecord\"Q\n\tFieldMeta\022\022\n" + "\nfield_name\030\001 \001(\t\022#\n\004type\030\002 \001(\0162\025.milvus" + ".grpc.DataType\022\013\n\003dim\030\003 \001(\003\"5\n\006Schema\022+\n" + "\013field_metas\030\001 \003(\0132\026.milvus.grpc.FieldMe" + "ta\"\027\n\007RowData\022\014\n\004blob\030\001 \001(\014\"\325\001\n\013InsertPa" + "ram\022\027\n\017collection_name\030\001 \001(\t\022#\n\006schema\030\002" + " \001(\0132\023.milvus.grpc.Schema\022\'\n\trows_data\030\003" + " \003(\0132\024.milvus.grpc.RowData\022\027\n\017entity_id_" + "array\030\004 \003(\003\022\025\n\rpartition_tag\030\005 \001(\t\022/\n\014ex" + "tra_params\030\006 \003(\0132\031.milvus.grpc.KeyValueP" + "air\"\253\001\n\013SearchParam\022\027\n\017collection_name\030\001" + " \001(\t\022.\n\014vector_param\030\002 \003(\0132\030.milvus.grpc" + ".VectorParam\022\013\n\003dsl\030\003 \001(\t\022\025\n\rpartition_t" + "ag\030\004 \003(\t\022/\n\014extra_params\030\005 \003(\0132\031.milvus." + "grpc.KeyValuePair\"]\n\024SearchInSegmentPara" + "m\022\025\n\rfile_id_array\030\001 \003(\t\022.\n\014search_param" + "\030\002 \001(\0132\030.milvus.grpc.SearchParam\"x\n\010Enti" + "ties\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Statu" + "s\022\013\n\003ids\030\002 \003(\003\022\021\n\tvalid_row\030\003 \003(\010\022\'\n\trow" + "s_data\030\004 \003(\0132\024.milvus.grpc.RowData\"\300\001\n\013Q" + "ueryResult\022#\n\006status\030\001 \001(\0132\023.milvus.grpc" + ".Status\022\'\n\010entities\030\002 \001(\0132\025.milvus.grpc." + "Entities\022\017\n\007row_num\030\003 \001(\003\022\016\n\006scores\030\004 \003(" + "\002\022\021\n\tdistances\030\005 \003(\002\022/\n\014extra_params\030\006 \003" + "(\0132\031.milvus.grpc.KeyValuePair\"H\n\013StringR" + "eply\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Statu" + "s\022\024\n\014string_reply\030\002 \001(\t\"D\n\tBoolReply\022#\n\006" + "status\030\001 \001(\0132\023.milvus.grpc.Status\022\022\n\nboo" + "l_reply\030\002 \001(\010\"W\n\022CollectionRowCount\022#\n\006s" + "tatus\030\001 \001(\0132\023.milvus.grpc.Status\022\034\n\024coll" + "ection_row_count\030\002 \001(\003\"\026\n\007Command\022\013\n\003cmd" + "\030\001 \001(\t\"\243\001\n\nIndexParam\022#\n\006status\030\001 \001(\0132\023." + "milvus.grpc.Status\022\027\n\017collection_name\030\002 " + "\001(\t\022\022\n\nfield_name\030\003 \001(\t\022\022\n\nindex_name\030\004 " + "\001(\t\022/\n\014extra_params\030\005 \003(\0132\031.milvus.grpc." + "KeyValuePair\"+\n\nFlushParam\022\035\n\025collection" + "_name_array\030\001 \003(\t\":\n\014CompactParam\022\027\n\017col" + "lection_name\030\001 \001(\t\022\021\n\tthreshold\030\002 \001(\001\"<\n" + "\017DeleteByIDParam\022\027\n\017collection_name\030\001 \001(" + "\t\022\020\n\010id_array\030\002 \003(\003\"H\n\016CollectionInfo\022#\n" + "\006status\030\001 \001(\0132\023.milvus.grpc.Status\022\021\n\tjs" + "on_info\030\002 \001(\t\"@\n\021GetEntityIDsParam\022\027\n\017co" + "llection_name\030\001 \001(\t\022\022\n\nsegment_id\030\002 \001(\003\"" + "P\n\016EntityIdentity\022\027\n\017collection_name\030\001 \001" + "(\t\022\020\n\010id_array\030\002 \003(\003\022\023\n\013field_names\030\003 \003(" + "\t\"%\n\020VectorFieldParam\022\021\n\tdimension\030\001 \001(\003" + "\"w\n\tFieldType\022*\n\tdata_type\030\001 \001(\0162\025.milvu" + "s.grpc.DataTypeH\000\0225\n\014vector_param\030\002 \001(\0132" + "\035.milvus.grpc.VectorFieldParamH\000B\007\n\005valu" + "e\"\255\001\n\nFieldParam\022\n\n\002id\030\001 \001(\004\022\014\n\004name\030\002 \001" + "(\t\022#\n\004type\030\003 \001(\0162\025.milvus.grpc.DataType\022" + "/\n\014index_params\030\004 \003(\0132\031.milvus.grpc.KeyV" + "aluePair\022/\n\014extra_params\030\005 \003(\0132\031.milvus." + "grpc.KeyValuePair\"@\n\021VectorFieldRecord\022+" + "\n\005value\030\001 \003(\0132\034.milvus.grpc.VectorRowRec" + "ord\"\233\001\n\tTermQuery\022\022\n\nfield_name\030\001 \001(\t\022\021\n" + "\tint_value\030\002 \003(\003\022\024\n\014double_value\030\003 \003(\001\022\021" + "\n\tvalue_num\030\004 \001(\003\022\r\n\005boost\030\005 \001(\002\022/\n\014extr" + "a_params\030\006 \003(\0132\031.milvus.grpc.KeyValuePai" + "r\"N\n\013CompareExpr\022.\n\010operator\030\001 \001(\0162\034.mil" + "vus.grpc.CompareOperator\022\017\n\007operand\030\002 \001(" + "\t\"\213\001\n\nRangeQuery\022\022\n\nfield_name\030\001 \001(\t\022)\n\007" + "operand\030\002 \003(\0132\030.milvus.grpc.CompareExpr\022" + "\r\n\005boost\030\003 \001(\002\022/\n\014extra_params\030\004 \003(\0132\031.m" + "ilvus.grpc.KeyValuePair\"\244\001\n\013VectorQuery\022" + "\022\n\nfield_name\030\001 \001(\t\022\023\n\013query_boost\030\002 \001(\002" + "\022-\n\007records\030\003 \003(\0132\034.milvus.grpc.VectorRo" + "wRecord\022\014\n\004topk\030\004 \001(\003\022/\n\014extra_params\030\005 " + "\003(\0132\031.milvus.grpc.KeyValuePair\"c\n\014Boolea" + "nQuery\022!\n\005occur\030\001 \001(\0162\022.milvus.grpc.Occu" + "r\0220\n\rgeneral_query\030\002 \003(\0132\031.milvus.grpc.G" + "eneralQuery\"\333\001\n\014GeneralQuery\0222\n\rboolean_" + "query\030\001 \001(\0132\031.milvus.grpc.BooleanQueryH\000" + "\022,\n\nterm_query\030\002 \001(\0132\026.milvus.grpc.TermQ" + "ueryH\000\022.\n\013range_query\030\003 \001(\0132\027.milvus.grp" + "c.RangeQueryH\000\0220\n\014vector_query\030\004 \001(\0132\030.m" + "ilvus.grpc.VectorQueryH\000B\007\n\005query\"\250\001\n\rSe" + "archParamPB\022\027\n\017collection_name\030\001 \001(\t\022\033\n\023" + "partition_tag_array\030\002 \003(\t\0220\n\rgeneral_que" + "ry\030\003 \001(\0132\031.milvus.grpc.GeneralQuery\022/\n\014e" + "xtra_params\030\004 \003(\0132\031.milvus.grpc.KeyValue" + "Pair\"\231\002\n\021InsertOrDeleteMsg\022\027\n\017collection" + "_name\030\001 \001(\t\022\'\n\trows_data\030\002 \001(\0132\024.milvus." + "grpc.RowData\022\013\n\003uid\030\003 \001(\003\022\025\n\rpartition_t" + "ag\030\004 \001(\t\022\021\n\ttimestamp\030\005 \001(\003\022\022\n\nsegment_i" + "d\030\006 \001(\003\022\022\n\nchannel_id\030\007 \001(\003\022\037\n\002op\030\010 \001(\0162" + "\023.milvus.grpc.OpType\022\021\n\tclient_id\030\t \001(\003\022" + "/\n\014extra_params\030\n \003(\0132\031.milvus.grpc.KeyV" + "aluePair\"\316\001\n\tSearchMsg\022\027\n\017collection_nam" + "e\030\001 \001(\t\022-\n\007records\030\002 \001(\0132\034.milvus.grpc.V" + "ectorRowRecord\022\025\n\rpartition_tag\030\003 \001(\t\022\013\n" + "\003uid\030\004 \001(\003\022\021\n\ttimestamp\030\005 \001(\003\022\021\n\tclient_" + "id\030\006 \001(\003\022/\n\014extra_params\030\007 \003(\0132\031.milvus." + "grpc.KeyValuePair\"X\n\013TimeSyncMsg\022\020\n\010Clie" + "ntId\030\001 \001(\003\022\021\n\tTimestamp\030\002 \001(\003\022$\n\007MsgType" + "\030\003 \001(\0162\023.milvus.grpc.OpType\"0\n\rSegmentRe" + "cord\022\013\n\003uid\030\001 \001(\003\022\022\n\nsegment_id\030\002 \003(\003\"s\n" + "\nKey2SegMsg\022\021\n\tclient_id\030\001 \001(\003\022+\n\007record" + "s\030\002 \001(\0132\032.milvus.grpc.SegmentRecord\022%\n\010m" + "sg_type\030\003 \001(\0162\023.milvus.grpc.OpType*\221\001\n\010D" + "ataType\022\010\n\004NONE\020\000\022\010\n\004BOOL\020\001\022\010\n\004INT8\020\002\022\t\n" + "\005INT16\020\003\022\t\n\005INT32\020\004\022\t\n\005INT64\020\005\022\t\n\005FLOAT\020" + "\n\022\n\n\006DOUBLE\020\013\022\n\n\006STRING\020\024\022\021\n\rVECTOR_BINA" + "RY\020d\022\020\n\014VECTOR_FLOAT\020e*C\n\017CompareOperato" + "r\022\006\n\002LT\020\000\022\007\n\003LTE\020\001\022\006\n\002EQ\020\002\022\006\n\002GT\020\003\022\007\n\003GT" + "E\020\004\022\006\n\002NE\020\005*8\n\005Occur\022\013\n\007INVALID\020\000\022\010\n\004MUS" + "T\020\001\022\n\n\006SHOULD\020\002\022\014\n\010MUST_NOT\020\003*\?\n\006OpType\022" + "\n\n\006INSERT\020\000\022\n\n\006DELETE\020\001\022\n\n\006SEARCH\020\002\022\021\n\rS" + "EARCH_RESULT\020\0032\333\r\n\rMilvusService\022\?\n\020Crea" + "teCollection\022\024.milvus.grpc.Mapping\032\023.mil" + "vus.grpc.Status\"\000\022F\n\rHasCollection\022\033.mil" + "vus.grpc.CollectionName\032\026.milvus.grpc.Bo" + "olReply\"\000\022I\n\022DescribeCollection\022\033.milvus" + ".grpc.CollectionName\032\024.milvus.grpc.Mappi" + "ng\"\000\022Q\n\017CountCollection\022\033.milvus.grpc.Co" + "llectionName\032\037.milvus.grpc.CollectionRow" + "Count\"\000\022J\n\017ShowCollections\022\024.milvus.grpc" + ".Command\032\037.milvus.grpc.CollectionNameLis" + "t\"\000\022P\n\022ShowCollectionInfo\022\033.milvus.grpc." + "CollectionName\032\033.milvus.grpc.CollectionI" + "nfo\"\000\022D\n\016DropCollection\022\033.milvus.grpc.Co" + "llectionName\032\023.milvus.grpc.Status\"\000\022=\n\013C" + "reateIndex\022\027.milvus.grpc.IndexParam\032\023.mi" + "lvus.grpc.Status\"\000\022C\n\rDescribeIndex\022\027.mi" + "lvus.grpc.IndexParam\032\027.milvus.grpc.Index" + "Param\"\000\022;\n\tDropIndex\022\027.milvus.grpc.Index" + "Param\032\023.milvus.grpc.Status\"\000\022E\n\017CreatePa" + "rtition\022\033.milvus.grpc.PartitionParam\032\023.m" + "ilvus.grpc.Status\"\000\022E\n\014HasPartition\022\033.mi" + "lvus.grpc.PartitionParam\032\026.milvus.grpc.B" + "oolReply\"\000\022K\n\016ShowPartitions\022\033.milvus.gr" + "pc.CollectionName\032\032.milvus.grpc.Partitio" + "nList\"\000\022C\n\rDropPartition\022\033.milvus.grpc.P" + "artitionParam\032\023.milvus.grpc.Status\"\000\022<\n\006" + "Insert\022\030.milvus.grpc.InsertParam\032\026.milvu" + "s.grpc.EntityIds\"\000\022E\n\rGetEntityByID\022\033.mi" + "lvus.grpc.EntityIdentity\032\025.milvus.grpc.E" + "ntities\"\000\022H\n\014GetEntityIDs\022\036.milvus.grpc." + "GetEntityIDsParam\032\026.milvus.grpc.EntityId" + "s\"\000\022>\n\006Search\022\030.milvus.grpc.SearchParam\032" + "\030.milvus.grpc.QueryResult\"\000\022P\n\017SearchInS" + "egment\022!.milvus.grpc.SearchInSegmentPara" + "m\032\030.milvus.grpc.QueryResult\"\000\0227\n\003Cmd\022\024.m" + "ilvus.grpc.Command\032\030.milvus.grpc.StringR" + "eply\"\000\022A\n\nDeleteByID\022\034.milvus.grpc.Delet" + "eByIDParam\032\023.milvus.grpc.Status\"\000\022G\n\021Pre" + "loadCollection\022\033.milvus.grpc.CollectionN" + "ame\032\023.milvus.grpc.Status\"\000\0227\n\005Flush\022\027.mi" + "lvus.grpc.FlushParam\032\023.milvus.grpc.Statu" + "s\"\000\022;\n\007Compact\022\031.milvus.grpc.CompactPara" + "m\032\023.milvus.grpc.Status\"\000\022B\n\010SearchPB\022\032.m" + "ilvus.grpc.SearchParamPB\032\030.milvus.grpc.Q" + "ueryResult\"\000b\006proto3" + ; +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_suvlim_2eproto_deps[1] = { + &::descriptor_table_status_2eproto, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_suvlim_2eproto_sccs[46] = { + &scc_info_BoolReply_suvlim_2eproto.base, + &scc_info_BooleanQuery_suvlim_2eproto.base, + &scc_info_CollectionInfo_suvlim_2eproto.base, + &scc_info_CollectionName_suvlim_2eproto.base, + &scc_info_CollectionNameList_suvlim_2eproto.base, + &scc_info_CollectionRowCount_suvlim_2eproto.base, + &scc_info_Command_suvlim_2eproto.base, + &scc_info_CompactParam_suvlim_2eproto.base, + &scc_info_CompareExpr_suvlim_2eproto.base, + &scc_info_DeleteByIDParam_suvlim_2eproto.base, + &scc_info_Entities_suvlim_2eproto.base, + &scc_info_EntityIdentity_suvlim_2eproto.base, + &scc_info_EntityIds_suvlim_2eproto.base, + &scc_info_FieldMeta_suvlim_2eproto.base, + &scc_info_FieldName_suvlim_2eproto.base, + &scc_info_FieldParam_suvlim_2eproto.base, + &scc_info_FieldType_suvlim_2eproto.base, + &scc_info_FlushParam_suvlim_2eproto.base, + &scc_info_GetEntityIDsParam_suvlim_2eproto.base, + &scc_info_IndexParam_suvlim_2eproto.base, + &scc_info_InsertOrDeleteMsg_suvlim_2eproto.base, + &scc_info_InsertParam_suvlim_2eproto.base, + &scc_info_Key2SegMsg_suvlim_2eproto.base, + &scc_info_KeyValuePair_suvlim_2eproto.base, + &scc_info_Mapping_suvlim_2eproto.base, + &scc_info_MappingList_suvlim_2eproto.base, + &scc_info_PartitionList_suvlim_2eproto.base, + &scc_info_PartitionParam_suvlim_2eproto.base, + &scc_info_QueryResult_suvlim_2eproto.base, + &scc_info_RangeQuery_suvlim_2eproto.base, + &scc_info_RowData_suvlim_2eproto.base, + &scc_info_Schema_suvlim_2eproto.base, + &scc_info_SearchInSegmentParam_suvlim_2eproto.base, + &scc_info_SearchMsg_suvlim_2eproto.base, + &scc_info_SearchParam_suvlim_2eproto.base, + &scc_info_SearchParamPB_suvlim_2eproto.base, + &scc_info_SegmentRecord_suvlim_2eproto.base, + &scc_info_StringReply_suvlim_2eproto.base, + &scc_info_TermQuery_suvlim_2eproto.base, + &scc_info_TimeSyncMsg_suvlim_2eproto.base, + &scc_info_VectorFieldParam_suvlim_2eproto.base, + &scc_info_VectorFieldRecord_suvlim_2eproto.base, + &scc_info_VectorParam_suvlim_2eproto.base, + &scc_info_VectorQuery_suvlim_2eproto.base, + &scc_info_VectorRecord_suvlim_2eproto.base, + &scc_info_VectorRowRecord_suvlim_2eproto.base, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_suvlim_2eproto_once; +static bool descriptor_table_suvlim_2eproto_initialized = false; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_suvlim_2eproto = { + &descriptor_table_suvlim_2eproto_initialized, descriptor_table_protodef_suvlim_2eproto, "suvlim.proto", 7020, + &descriptor_table_suvlim_2eproto_once, descriptor_table_suvlim_2eproto_sccs, descriptor_table_suvlim_2eproto_deps, 46, 1, + schemas, file_default_instances, TableStruct_suvlim_2eproto::offsets, + file_level_metadata_suvlim_2eproto, 47, file_level_enum_descriptors_suvlim_2eproto, file_level_service_descriptors_suvlim_2eproto, +}; + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_suvlim_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_suvlim_2eproto), true); +namespace milvus { +namespace grpc { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DataType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_suvlim_2eproto); + return file_level_enum_descriptors_suvlim_2eproto[0]; } bool DataType_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -1595,12 +1673,12 @@ bool DataType_IsValid(int value) { } } -const ::google::protobuf::EnumDescriptor* CompareOperator_descriptor() { - protobuf_AssignDescriptorsOnce(); - return CompareOperator_descriptor_; +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CompareOperator_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_suvlim_2eproto); + return file_level_enum_descriptors_suvlim_2eproto[1]; } bool CompareOperator_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -1613,12 +1691,12 @@ bool CompareOperator_IsValid(int value) { } } -const ::google::protobuf::EnumDescriptor* Occur_descriptor() { - protobuf_AssignDescriptorsOnce(); - return Occur_descriptor_; +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Occur_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_suvlim_2eproto); + return file_level_enum_descriptors_suvlim_2eproto[2]; } bool Occur_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -1629,28 +1707,16 @@ bool Occur_IsValid(int value) { } } -const ::google::protobuf::EnumDescriptor* OpType_descriptor() { - protobuf_AssignDescriptorsOnce(); - return OpType_descriptor_; +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* OpType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_suvlim_2eproto); + return file_level_enum_descriptors_suvlim_2eproto[3]; } bool OpType_IsValid(int value) { - switch(value) { - case 0: - case 1: - return true; - default: - return false; - } -} - -const ::google::protobuf::EnumDescriptor* SyncType_descriptor() { - protobuf_AssignDescriptorsOnce(); - return SyncType_descriptor_; -} -bool SyncType_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: + case 2: + case 3: return true; default: return false; @@ -1660,374 +1726,36 @@ bool SyncType_IsValid(int value) { // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Status::kErrorCodeFieldNumber; -const int Status::kReasonFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Status::Status() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.Status) +void KeyValuePair::InitAsDefaultInstance() { } - -void Status::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -Status::Status(const Status& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:milvus.grpc.Status) -} - -void Status::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - error_code_ = 0; - reason_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -Status::~Status() { - // @@protoc_insertion_point(destructor:milvus.grpc.Status) - SharedDtor(); -} - -void Status::SharedDtor() { - reason_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void Status::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* Status::descriptor() { - protobuf_AssignDescriptorsOnce(); - return Status_descriptor_; -} - -const Status& Status::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -Status* Status::default_instance_ = NULL; - -Status* Status::New(::google::protobuf::Arena* arena) const { - Status* n = new Status; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void Status::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.Status) - error_code_ = 0; - reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -bool Status::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.Status) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .milvus.grpc.ErrorCode error_code = 1; - case 1: { - if (tag == 8) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_error_code(static_cast< ::milvus::grpc::ErrorCode >(value)); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_reason; - break; - } - - // optional string reason = 2; - case 2: { - if (tag == 18) { - parse_reason: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_reason())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), this->reason().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "milvus.grpc.Status.reason")); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.Status) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.Status) - return false; -#undef DO_ -} - -void Status::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.Status) - // optional .milvus.grpc.ErrorCode error_code = 1; - if (this->error_code() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->error_code(), output); - } - - // optional string reason = 2; - if (this->reason().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), this->reason().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.Status.reason"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->reason(), output); - } - - // @@protoc_insertion_point(serialize_end:milvus.grpc.Status) -} - -::google::protobuf::uint8* Status::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Status) - // optional .milvus.grpc.ErrorCode error_code = 1; - if (this->error_code() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->error_code(), target); - } - - // optional string reason = 2; - if (this->reason().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), this->reason().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.Status.reason"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->reason(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Status) - return target; -} - -int Status::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.Status) - int total_size = 0; - - // optional .milvus.grpc.ErrorCode error_code = 1; - if (this->error_code() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->error_code()); - } - - // optional string reason = 2; - if (this->reason().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->reason()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void Status::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.Status) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const Status* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.Status) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Status) - MergeFrom(*source); - } -} - -void Status::MergeFrom(const Status& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.Status) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.error_code() != 0) { - set_error_code(from.error_code()); - } - if (from.reason().size() > 0) { - - reason_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_); - } -} - -void Status::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Status) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Status::CopyFrom(const Status& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.Status) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Status::IsInitialized() const { - - return true; -} - -void Status::Swap(Status* other) { - if (other == this) return; - InternalSwap(other); -} -void Status::InternalSwap(Status* other) { - std::swap(error_code_, other->error_code_); - reason_.Swap(&other->reason_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata Status::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = Status_descriptor_; - metadata.reflection = Status_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// Status - -// optional .milvus.grpc.ErrorCode error_code = 1; -void Status::clear_error_code() { - error_code_ = 0; -} - ::milvus::grpc::ErrorCode Status::error_code() const { - // @@protoc_insertion_point(field_get:milvus.grpc.Status.error_code) - return static_cast< ::milvus::grpc::ErrorCode >(error_code_); -} - void Status::set_error_code(::milvus::grpc::ErrorCode value) { - - error_code_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.Status.error_code) -} - -// optional string reason = 2; -void Status::clear_reason() { - reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& Status::reason() const { - // @@protoc_insertion_point(field_get:milvus.grpc.Status.reason) - return reason_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void Status::set_reason(const ::std::string& value) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.Status.reason) -} - void Status::set_reason(const char* value) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.Status.reason) -} - void Status::set_reason(const char* value, size_t size) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.Status.reason) -} - ::std::string* Status::mutable_reason() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.Status.reason) - return reason_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* Status::release_reason() { - // @@protoc_insertion_point(field_release:milvus.grpc.Status.reason) - - return reason_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void Status::set_allocated_reason(::std::string* reason) { - if (reason != NULL) { - - } else { - - } - reason_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reason); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Status.reason) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int KeyValuePair::kKeyFieldNumber; -const int KeyValuePair::kValueFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +class KeyValuePair::_Internal { + public: +}; KeyValuePair::KeyValuePair() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.KeyValuePair) } - -void KeyValuePair::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - KeyValuePair::KeyValuePair(const KeyValuePair& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.key().empty()) { + key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.key_); + } + value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.value().empty()) { + value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.value_); + } // @@protoc_insertion_point(copy_constructor:milvus.grpc.KeyValuePair) } void KeyValuePair::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_KeyValuePair_suvlim_2eproto.base); + key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } KeyValuePair::~KeyValuePair() { @@ -2036,94 +1764,119 @@ KeyValuePair::~KeyValuePair() { } void KeyValuePair::SharedDtor() { - key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } + key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void KeyValuePair::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* KeyValuePair::descriptor() { - protobuf_AssignDescriptorsOnce(); - return KeyValuePair_descriptor_; -} - const KeyValuePair& KeyValuePair::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_KeyValuePair_suvlim_2eproto.base); + return *internal_default_instance(); } -KeyValuePair* KeyValuePair::default_instance_ = NULL; - -KeyValuePair* KeyValuePair::New(::google::protobuf::Arena* arena) const { - KeyValuePair* n = new KeyValuePair; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void KeyValuePair::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.KeyValuePair) - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* KeyValuePair::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string key = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_key(), ptr, ctx, "milvus.grpc.KeyValuePair.key"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string value = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_value(), ptr, ctx, "milvus.grpc.KeyValuePair.value"); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool KeyValuePair::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.KeyValuePair) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string key = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string key = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_key())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), this->key().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.KeyValuePair.key")); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_value; break; } - // optional string value = 2; + // string value = 2; case 2: { - if (tag == 18) { - parse_value: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_value())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), this->value().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.KeyValuePair.value")); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -2136,97 +1889,118 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void KeyValuePair::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.KeyValuePair) - // optional string key = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string key = 1; if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), this->key().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.KeyValuePair.key"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->key(), output); } - // optional string value = 2; + // string value = 2; if (this->value().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), this->value().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.KeyValuePair.value"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->value(), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.KeyValuePair) } -::google::protobuf::uint8* KeyValuePair::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* KeyValuePair::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.KeyValuePair) - // optional string key = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string key = 1; if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), this->key().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.KeyValuePair.key"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 1, this->key(), target); } - // optional string value = 2; + // string value = 2; if (this->value().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), this->value().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.KeyValuePair.value"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 2, this->value(), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.KeyValuePair) return target; } -int KeyValuePair::ByteSize() const { +size_t KeyValuePair::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.KeyValuePair) - int total_size = 0; + size_t total_size = 0; - // optional string key = 1; + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string key = 1; if (this->key().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->key()); } - // optional string value = 2; + // string value = 2; if (this->value().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->value()); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void KeyValuePair::MergeFrom(const ::google::protobuf::Message& from) { +void KeyValuePair::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.KeyValuePair) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const KeyValuePair* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const KeyValuePair* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.KeyValuePair) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.KeyValuePair) MergeFrom(*source); @@ -2235,20 +2009,22 @@ void KeyValuePair::MergeFrom(const ::google::protobuf::Message& from) { void KeyValuePair::MergeFrom(const KeyValuePair& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.KeyValuePair) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.key().size() > 0) { - key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.key_); } if (from.value().size() > 0) { - value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.value_); } } -void KeyValuePair::CopyFrom(const ::google::protobuf::Message& from) { +void KeyValuePair::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.KeyValuePair) if (&from == this) return; Clear(); @@ -2263,151 +2039,50 @@ void KeyValuePair::CopyFrom(const KeyValuePair& from) { } bool KeyValuePair::IsInitialized() const { - return true; } -void KeyValuePair::Swap(KeyValuePair* other) { - if (other == this) return; - InternalSwap(other); -} void KeyValuePair::InternalSwap(KeyValuePair* other) { - key_.Swap(&other->key_); - value_.Swap(&other->value_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + key_.Swap(&other->key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + value_.Swap(&other->value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); } -::google::protobuf::Metadata KeyValuePair::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = KeyValuePair_descriptor_; - metadata.reflection = KeyValuePair_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata KeyValuePair::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// KeyValuePair - -// optional string key = 1; -void KeyValuePair::clear_key() { - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& KeyValuePair::key() const { - // @@protoc_insertion_point(field_get:milvus.grpc.KeyValuePair.key) - return key_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void KeyValuePair::set_key(const ::std::string& value) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.KeyValuePair.key) -} - void KeyValuePair::set_key(const char* value) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.KeyValuePair.key) -} - void KeyValuePair::set_key(const char* value, size_t size) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.KeyValuePair.key) -} - ::std::string* KeyValuePair::mutable_key() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.KeyValuePair.key) - return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* KeyValuePair::release_key() { - // @@protoc_insertion_point(field_release:milvus.grpc.KeyValuePair.key) - - return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void KeyValuePair::set_allocated_key(::std::string* key) { - if (key != NULL) { - - } else { - - } - key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.KeyValuePair.key) -} - -// optional string value = 2; -void KeyValuePair::clear_value() { - value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& KeyValuePair::value() const { - // @@protoc_insertion_point(field_get:milvus.grpc.KeyValuePair.value) - return value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void KeyValuePair::set_value(const ::std::string& value) { - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.KeyValuePair.value) -} - void KeyValuePair::set_value(const char* value) { - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.KeyValuePair.value) -} - void KeyValuePair::set_value(const char* value, size_t size) { - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.KeyValuePair.value) -} - ::std::string* KeyValuePair::mutable_value() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.KeyValuePair.value) - return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* KeyValuePair::release_value() { - // @@protoc_insertion_point(field_release:milvus.grpc.KeyValuePair.value) - - return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void KeyValuePair::set_allocated_value(::std::string* value) { - if (value != NULL) { - - } else { - - } - value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.KeyValuePair.value) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CollectionName::kCollectionNameFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void CollectionName::InitAsDefaultInstance() { +} +class CollectionName::_Internal { + public: +}; CollectionName::CollectionName() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.CollectionName) } - -void CollectionName::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - CollectionName::CollectionName(const CollectionName& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } // @@protoc_insertion_point(copy_constructor:milvus.grpc.CollectionName) } void CollectionName::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionName_suvlim_2eproto.base); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } CollectionName::~CollectionName() { @@ -2416,75 +2091,95 @@ CollectionName::~CollectionName() { } void CollectionName::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void CollectionName::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* CollectionName::descriptor() { - protobuf_AssignDescriptorsOnce(); - return CollectionName_descriptor_; -} - const CollectionName& CollectionName::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionName_suvlim_2eproto.base); + return *internal_default_instance(); } -CollectionName* CollectionName::default_instance_ = NULL; - -CollectionName* CollectionName::New(::google::protobuf::Arena* arena) const { - CollectionName* n = new CollectionName; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void CollectionName::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.CollectionName) - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CollectionName::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string collection_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.CollectionName.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool CollectionName::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.CollectionName) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string collection_name = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.CollectionName.collection_name")); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -2497,69 +2192,90 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void CollectionName::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.CollectionName) - // optional string collection_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.CollectionName.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->collection_name(), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.CollectionName) } -::google::protobuf::uint8* CollectionName::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* CollectionName::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.CollectionName) - // optional string collection_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.CollectionName.collection_name"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 1, this->collection_name(), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.CollectionName) return target; } -int CollectionName::ByteSize() const { +size_t CollectionName::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.CollectionName) - int total_size = 0; + size_t total_size = 0; - // optional string collection_name = 1; + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->collection_name()); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void CollectionName::MergeFrom(const ::google::protobuf::Message& from) { +void CollectionName::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.CollectionName) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const CollectionName* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const CollectionName* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.CollectionName) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.CollectionName) MergeFrom(*source); @@ -2568,16 +2284,18 @@ void CollectionName::MergeFrom(const ::google::protobuf::Message& from) { void CollectionName::MergeFrom(const CollectionName& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.CollectionName) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.collection_name().size() > 0) { - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); } } -void CollectionName::CopyFrom(const ::google::protobuf::Message& from) { +void CollectionName::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.CollectionName) if (&from == this) return; Clear(); @@ -2592,108 +2310,63 @@ void CollectionName::CopyFrom(const CollectionName& from) { } bool CollectionName::IsInitialized() const { - return true; } -void CollectionName::Swap(CollectionName* other) { - if (other == this) return; - InternalSwap(other); -} void CollectionName::InternalSwap(CollectionName* other) { - collection_name_.Swap(&other->collection_name_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); } -::google::protobuf::Metadata CollectionName::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = CollectionName_descriptor_; - metadata.reflection = CollectionName_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata CollectionName::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// CollectionName - -// optional string collection_name = 1; -void CollectionName::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& CollectionName::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CollectionName.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void CollectionName::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.CollectionName.collection_name) -} - void CollectionName::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.CollectionName.collection_name) -} - void CollectionName::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.CollectionName.collection_name) -} - ::std::string* CollectionName::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionName.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* CollectionName::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.CollectionName.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void CollectionName::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CollectionName.collection_name) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CollectionNameList::kStatusFieldNumber; -const int CollectionNameList::kCollectionNamesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void CollectionNameList::InitAsDefaultInstance() { + ::milvus::grpc::_CollectionNameList_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( + ::milvus::grpc::Status::internal_default_instance()); +} +class CollectionNameList::_Internal { + public: + static const ::milvus::grpc::Status& status(const CollectionNameList* msg); +}; +const ::milvus::grpc::Status& +CollectionNameList::_Internal::status(const CollectionNameList* msg) { + return *msg->status_; +} +void CollectionNameList::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} CollectionNameList::CollectionNameList() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.CollectionNameList) } - -void CollectionNameList::InitAsDefaultInstance() { - _is_default_instance_ = true; - status_ = const_cast< ::milvus::grpc::Status*>(&::milvus::grpc::Status::default_instance()); -} - CollectionNameList::CollectionNameList(const CollectionNameList& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + collection_names_(from.collection_names_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_status()) { + status_ = new ::milvus::grpc::Status(*from.status_); + } else { + status_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:milvus.grpc.CollectionNameList) } void CollectionNameList::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - status_ = NULL; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionNameList_suvlim_2eproto.base); + status_ = nullptr; } CollectionNameList::~CollectionNameList() { @@ -2702,92 +2375,123 @@ CollectionNameList::~CollectionNameList() { } void CollectionNameList::SharedDtor() { - if (this != default_instance_) { - delete status_; - } + if (this != internal_default_instance()) delete status_; } void CollectionNameList::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* CollectionNameList::descriptor() { - protobuf_AssignDescriptorsOnce(); - return CollectionNameList_descriptor_; -} - const CollectionNameList& CollectionNameList::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionNameList_suvlim_2eproto.base); + return *internal_default_instance(); } -CollectionNameList* CollectionNameList::default_instance_ = NULL; - -CollectionNameList* CollectionNameList::New(::google::protobuf::Arena* arena) const { - CollectionNameList* n = new CollectionNameList; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void CollectionNameList::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.CollectionNameList) - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + collection_names_.Clear(); + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CollectionNameList::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.grpc.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated string collection_names = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_collection_names(), ptr, ctx, "milvus.grpc.CollectionNameList.collection_names"); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool CollectionNameList::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.CollectionNameList) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .milvus.grpc.Status status = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.grpc.Status status = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_collection_names; break; } // repeated string collection_names = 2; case 2: { - if (tag == 18) { - parse_collection_names: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->add_collection_names())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->collection_names(this->collection_names_size() - 1).data(), - this->collection_names(this->collection_names_size() - 1).length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + static_cast(this->collection_names(this->collection_names_size() - 1).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.CollectionNameList.collection_names")); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_collection_names; - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -2800,88 +2504,110 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void CollectionNameList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.CollectionNameList) - // optional .milvus.grpc.Status status = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->status_, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); } // repeated string collection_names = 2; - for (int i = 0; i < this->collection_names_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_names(i).data(), this->collection_names(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + for (int i = 0, n = this->collection_names_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_names(i).data(), static_cast(this->collection_names(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.CollectionNameList.collection_names"); - ::google::protobuf::internal::WireFormatLite::WriteString( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( 2, this->collection_names(i), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.CollectionNameList) } -::google::protobuf::uint8* CollectionNameList::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* CollectionNameList::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.CollectionNameList) - // optional .milvus.grpc.Status status = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->status_, false, target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); } // repeated string collection_names = 2; - for (int i = 0; i < this->collection_names_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_names(i).data(), this->collection_names(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + for (int i = 0, n = this->collection_names_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_names(i).data(), static_cast(this->collection_names(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.CollectionNameList.collection_names"); - target = ::google::protobuf::internal::WireFormatLite:: + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: WriteStringToArray(2, this->collection_names(i), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.CollectionNameList) return target; } -int CollectionNameList::ByteSize() const { +size_t CollectionNameList::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.CollectionNameList) - int total_size = 0; + size_t total_size = 0; - // optional .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->status_); + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; // repeated string collection_names = 2; - total_size += 1 * this->collection_names_size(); - for (int i = 0; i < this->collection_names_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->collection_names_size()); + for (int i = 0, n = this->collection_names_size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->collection_names(i)); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // .milvus.grpc.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void CollectionNameList::MergeFrom(const ::google::protobuf::Message& from) { +void CollectionNameList::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.CollectionNameList) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const CollectionNameList* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const CollectionNameList* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.CollectionNameList) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.CollectionNameList) MergeFrom(*source); @@ -2890,16 +2616,18 @@ void CollectionNameList::MergeFrom(const ::google::protobuf::Message& from) { void CollectionNameList::MergeFrom(const CollectionNameList& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.CollectionNameList) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + collection_names_.MergeFrom(from.collection_names_); if (from.has_status()) { mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); } } -void CollectionNameList::CopyFrom(const ::google::protobuf::Message& from) { +void CollectionNameList::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.CollectionNameList) if (&from == this) return; Clear(); @@ -2914,158 +2642,53 @@ void CollectionNameList::CopyFrom(const CollectionNameList& from) { } bool CollectionNameList::IsInitialized() const { - return true; } -void CollectionNameList::Swap(CollectionNameList* other) { - if (other == this) return; - InternalSwap(other); -} void CollectionNameList::InternalSwap(CollectionNameList* other) { - std::swap(status_, other->status_); - collection_names_.UnsafeArenaSwap(&other->collection_names_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + collection_names_.InternalSwap(CastToBase(&other->collection_names_)); + swap(status_, other->status_); } -::google::protobuf::Metadata CollectionNameList::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = CollectionNameList_descriptor_; - metadata.reflection = CollectionNameList_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata CollectionNameList::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// CollectionNameList - -// optional .milvus.grpc.Status status = 1; -bool CollectionNameList::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -void CollectionNameList::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -const ::milvus::grpc::Status& CollectionNameList::status() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CollectionNameList.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -::milvus::grpc::Status* CollectionNameList::mutable_status() { - - if (status_ == NULL) { - status_ = new ::milvus::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionNameList.status) - return status_; -} -::milvus::grpc::Status* CollectionNameList::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.CollectionNameList.status) - - ::milvus::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -void CollectionNameList::set_allocated_status(::milvus::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CollectionNameList.status) -} - -// repeated string collection_names = 2; -int CollectionNameList::collection_names_size() const { - return collection_names_.size(); -} -void CollectionNameList::clear_collection_names() { - collection_names_.Clear(); -} - const ::std::string& CollectionNameList::collection_names(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.CollectionNameList.collection_names) - return collection_names_.Get(index); -} - ::std::string* CollectionNameList::mutable_collection_names(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionNameList.collection_names) - return collection_names_.Mutable(index); -} - void CollectionNameList::set_collection_names(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.CollectionNameList.collection_names) - collection_names_.Mutable(index)->assign(value); -} - void CollectionNameList::set_collection_names(int index, const char* value) { - collection_names_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.grpc.CollectionNameList.collection_names) -} - void CollectionNameList::set_collection_names(int index, const char* value, size_t size) { - collection_names_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.CollectionNameList.collection_names) -} - ::std::string* CollectionNameList::add_collection_names() { - // @@protoc_insertion_point(field_add_mutable:milvus.grpc.CollectionNameList.collection_names) - return collection_names_.Add(); -} - void CollectionNameList::add_collection_names(const ::std::string& value) { - collection_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.grpc.CollectionNameList.collection_names) -} - void CollectionNameList::add_collection_names(const char* value) { - collection_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.grpc.CollectionNameList.collection_names) -} - void CollectionNameList::add_collection_names(const char* value, size_t size) { - collection_names_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.grpc.CollectionNameList.collection_names) -} - const ::google::protobuf::RepeatedPtrField< ::std::string>& -CollectionNameList::collection_names() const { - // @@protoc_insertion_point(field_list:milvus.grpc.CollectionNameList.collection_names) - return collection_names_; -} - ::google::protobuf::RepeatedPtrField< ::std::string>* -CollectionNameList::mutable_collection_names() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.CollectionNameList.collection_names) - return &collection_names_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int FieldName::kCollectionNameFieldNumber; -const int FieldName::kFieldNameFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void FieldName::InitAsDefaultInstance() { +} +class FieldName::_Internal { + public: +}; FieldName::FieldName() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.FieldName) } - -void FieldName::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - FieldName::FieldName(const FieldName& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.field_name().empty()) { + field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); + } // @@protoc_insertion_point(copy_constructor:milvus.grpc.FieldName) } void FieldName::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - field_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FieldName_suvlim_2eproto.base); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } FieldName::~FieldName() { @@ -3074,94 +2697,119 @@ FieldName::~FieldName() { } void FieldName::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - field_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void FieldName::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* FieldName::descriptor() { - protobuf_AssignDescriptorsOnce(); - return FieldName_descriptor_; -} - const FieldName& FieldName::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FieldName_suvlim_2eproto.base); + return *internal_default_instance(); } -FieldName* FieldName::default_instance_ = NULL; - -FieldName* FieldName::New(::google::protobuf::Arena* arena) const { - FieldName* n = new FieldName; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void FieldName::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.FieldName) - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* FieldName::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string collection_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.FieldName.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string field_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_field_name(), ptr, ctx, "milvus.grpc.FieldName.field_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool FieldName::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.FieldName) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string collection_name = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.FieldName.collection_name")); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_field_name; break; } - // optional string field_name = 2; + // string field_name = 2; case 2: { - if (tag == 18) { - parse_field_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_field_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.FieldName.field_name")); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -3174,97 +2822,118 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void FieldName::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.FieldName) - // optional string collection_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.FieldName.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->collection_name(), output); } - // optional string field_name = 2; + // string field_name = 2; if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.FieldName.field_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->field_name(), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.FieldName) } -::google::protobuf::uint8* FieldName::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* FieldName::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.FieldName) - // optional string collection_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.FieldName.collection_name"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 1, this->collection_name(), target); } - // optional string field_name = 2; + // string field_name = 2; if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.FieldName.field_name"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 2, this->field_name(), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.FieldName) return target; } -int FieldName::ByteSize() const { +size_t FieldName::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.FieldName) - int total_size = 0; + size_t total_size = 0; - // optional string collection_name = 1; + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->collection_name()); } - // optional string field_name = 2; + // string field_name = 2; if (this->field_name().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->field_name()); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void FieldName::MergeFrom(const ::google::protobuf::Message& from) { +void FieldName::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.FieldName) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const FieldName* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const FieldName* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.FieldName) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.FieldName) MergeFrom(*source); @@ -3273,20 +2942,22 @@ void FieldName::MergeFrom(const ::google::protobuf::Message& from) { void FieldName::MergeFrom(const FieldName& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.FieldName) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.collection_name().size() > 0) { - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); } if (from.field_name().size() > 0) { - field_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.field_name_); + field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); } } -void FieldName::CopyFrom(const ::google::protobuf::Message& from) { +void FieldName::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.FieldName) if (&from == this) return; Clear(); @@ -3301,156 +2972,71 @@ void FieldName::CopyFrom(const FieldName& from) { } bool FieldName::IsInitialized() const { - return true; } -void FieldName::Swap(FieldName* other) { - if (other == this) return; - InternalSwap(other); -} void FieldName::InternalSwap(FieldName* other) { - collection_name_.Swap(&other->collection_name_); - field_name_.Swap(&other->field_name_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); } -::google::protobuf::Metadata FieldName::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = FieldName_descriptor_; - metadata.reflection = FieldName_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata FieldName::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// FieldName - -// optional string collection_name = 1; -void FieldName::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& FieldName::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldName.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void FieldName::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.FieldName.collection_name) -} - void FieldName::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.FieldName.collection_name) -} - void FieldName::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.FieldName.collection_name) -} - ::std::string* FieldName::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldName.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* FieldName::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.FieldName.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void FieldName::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.FieldName.collection_name) -} - -// optional string field_name = 2; -void FieldName::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& FieldName::field_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldName.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void FieldName::set_field_name(const ::std::string& value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.FieldName.field_name) -} - void FieldName::set_field_name(const char* value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.FieldName.field_name) -} - void FieldName::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.FieldName.field_name) -} - ::std::string* FieldName::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldName.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* FieldName::release_field_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.FieldName.field_name) - - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void FieldName::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.FieldName.field_name) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Mapping::kStatusFieldNumber; -const int Mapping::kCollectionNameFieldNumber; -const int Mapping::kFieldsFieldNumber; -const int Mapping::kExtraParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void Mapping::InitAsDefaultInstance() { + ::milvus::grpc::_Mapping_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( + ::milvus::grpc::Status::internal_default_instance()); +} +class Mapping::_Internal { + public: + static const ::milvus::grpc::Status& status(const Mapping* msg); +}; +const ::milvus::grpc::Status& +Mapping::_Internal::status(const Mapping* msg) { + return *msg->status_; +} +void Mapping::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} Mapping::Mapping() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.Mapping) } - -void Mapping::InitAsDefaultInstance() { - _is_default_instance_ = true; - status_ = const_cast< ::milvus::grpc::Status*>(&::milvus::grpc::Status::default_instance()); -} - Mapping::Mapping(const Mapping& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + fields_(from.fields_), + extra_params_(from.extra_params_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.has_status()) { + status_ = new ::milvus::grpc::Status(*from.status_); + } else { + status_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:milvus.grpc.Mapping) } void Mapping::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - status_ = NULL; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Mapping_suvlim_2eproto.base); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + status_ = nullptr; } Mapping::~Mapping() { @@ -3459,126 +3045,166 @@ Mapping::~Mapping() { } void Mapping::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - delete status_; - } + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete status_; } void Mapping::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* Mapping::descriptor() { - protobuf_AssignDescriptorsOnce(); - return Mapping_descriptor_; -} - const Mapping& Mapping::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Mapping_suvlim_2eproto.base); + return *internal_default_instance(); } -Mapping* Mapping::default_instance_ = NULL; - -Mapping* Mapping::New(::google::protobuf::Arena* arena) const { - Mapping* n = new Mapping; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void Mapping::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.Mapping) - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + fields_.Clear(); extra_params_.Clear(); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Mapping::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.grpc.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string collection_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.Mapping.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .milvus.grpc.FieldParam fields = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_fields(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); + } else goto handle_unusual; + continue; + // repeated .milvus.grpc.KeyValuePair extra_params = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_extra_params(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool Mapping::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.Mapping) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .milvus.grpc.Status status = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.grpc.Status status = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_collection_name; break; } - // optional string collection_name = 2; + // string collection_name = 2; case 2: { - if (tag == 18) { - parse_collection_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.Mapping.collection_name")); } else { goto handle_unusual; } - if (input->ExpectTag(26)) goto parse_fields; break; } // repeated .milvus.grpc.FieldParam fields = 3; case 3: { - if (tag == 26) { - parse_fields: - DO_(input->IncrementRecursionDepth()); - parse_loop_fields: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_fields())); } else { goto handle_unusual; } - if (input->ExpectTag(26)) goto parse_loop_fields; - if (input->ExpectTag(34)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); break; } // repeated .milvus.grpc.KeyValuePair extra_params = 4; case 4: { - if (tag == 34) { - DO_(input->IncrementRecursionDepth()); - parse_loop_extra_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_extra_params())); } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -3591,131 +3217,166 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void Mapping::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.Mapping) - // optional .milvus.grpc.Status status = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->status_, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); } - // optional string collection_name = 2; + // string collection_name = 2; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.Mapping.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->collection_name(), output); } // repeated .milvus.grpc.FieldParam fields = 3; - for (unsigned int i = 0, n = this->fields_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->fields(i), output); + for (unsigned int i = 0, + n = static_cast(this->fields_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, + this->fields(static_cast(i)), + output); } // repeated .milvus.grpc.KeyValuePair extra_params = 4; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->extra_params(i), output); + for (unsigned int i = 0, + n = static_cast(this->extra_params_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, + this->extra_params(static_cast(i)), + output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.Mapping) } -::google::protobuf::uint8* Mapping::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* Mapping::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Mapping) - // optional .milvus.grpc.Status status = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->status_, false, target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); } - // optional string collection_name = 2; + // string collection_name = 2; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.Mapping.collection_name"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 2, this->collection_name(), target); } // repeated .milvus.grpc.FieldParam fields = 3; - for (unsigned int i = 0, n = this->fields_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, this->fields(i), false, target); + for (unsigned int i = 0, + n = static_cast(this->fields_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->fields(static_cast(i)), target); } // repeated .milvus.grpc.KeyValuePair extra_params = 4; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, this->extra_params(i), false, target); + for (unsigned int i = 0, + n = static_cast(this->extra_params_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->extra_params(static_cast(i)), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Mapping) return target; } -int Mapping::ByteSize() const { +size_t Mapping::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.Mapping) - int total_size = 0; + size_t total_size = 0; - // optional .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->status_); - } - - // optional string collection_name = 2; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->collection_name()); + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; // repeated .milvus.grpc.FieldParam fields = 3; - total_size += 1 * this->fields_size(); - for (int i = 0; i < this->fields_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->fields(i)); + { + unsigned int count = static_cast(this->fields_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->fields(static_cast(i))); + } } // repeated .milvus.grpc.KeyValuePair extra_params = 4; - total_size += 1 * this->extra_params_size(); - for (int i = 0; i < this->extra_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->extra_params(i)); + { + unsigned int count = static_cast(this->extra_params_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->extra_params(static_cast(i))); + } } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // string collection_name = 2; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // .milvus.grpc.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void Mapping::MergeFrom(const ::google::protobuf::Message& from) { +void Mapping::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.Mapping) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const Mapping* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const Mapping* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.Mapping) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Mapping) MergeFrom(*source); @@ -3724,21 +3385,23 @@ void Mapping::MergeFrom(const ::google::protobuf::Message& from) { void Mapping::MergeFrom(const Mapping& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.Mapping) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + fields_.MergeFrom(from.fields_); extra_params_.MergeFrom(from.extra_params_); + if (from.collection_name().size() > 0) { + + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } if (from.has_status()) { mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); } - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } } -void Mapping::CopyFrom(const ::google::protobuf::Message& from) { +void Mapping::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Mapping) if (&from == this) return; Clear(); @@ -3753,208 +3416,66 @@ void Mapping::CopyFrom(const Mapping& from) { } bool Mapping::IsInitialized() const { - return true; } -void Mapping::Swap(Mapping* other) { - if (other == this) return; - InternalSwap(other); -} void Mapping::InternalSwap(Mapping* other) { - std::swap(status_, other->status_); - collection_name_.Swap(&other->collection_name_); - fields_.UnsafeArenaSwap(&other->fields_); - extra_params_.UnsafeArenaSwap(&other->extra_params_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + CastToBase(&fields_)->InternalSwap(CastToBase(&other->fields_)); + CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(status_, other->status_); } -::google::protobuf::Metadata Mapping::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = Mapping_descriptor_; - metadata.reflection = Mapping_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata Mapping::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// Mapping - -// optional .milvus.grpc.Status status = 1; -bool Mapping::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -void Mapping::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -const ::milvus::grpc::Status& Mapping::status() const { - // @@protoc_insertion_point(field_get:milvus.grpc.Mapping.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -::milvus::grpc::Status* Mapping::mutable_status() { - - if (status_ == NULL) { - status_ = new ::milvus::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.Mapping.status) - return status_; -} -::milvus::grpc::Status* Mapping::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.Mapping.status) - - ::milvus::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -void Mapping::set_allocated_status(::milvus::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Mapping.status) -} - -// optional string collection_name = 2; -void Mapping::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& Mapping::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.Mapping.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void Mapping::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.Mapping.collection_name) -} - void Mapping::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.Mapping.collection_name) -} - void Mapping::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.Mapping.collection_name) -} - ::std::string* Mapping::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.Mapping.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* Mapping::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.Mapping.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void Mapping::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Mapping.collection_name) -} - -// repeated .milvus.grpc.FieldParam fields = 3; -int Mapping::fields_size() const { - return fields_.size(); -} -void Mapping::clear_fields() { - fields_.Clear(); -} -const ::milvus::grpc::FieldParam& Mapping::fields(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.Mapping.fields) - return fields_.Get(index); -} -::milvus::grpc::FieldParam* Mapping::mutable_fields(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.Mapping.fields) - return fields_.Mutable(index); -} -::milvus::grpc::FieldParam* Mapping::add_fields() { - // @@protoc_insertion_point(field_add:milvus.grpc.Mapping.fields) - return fields_.Add(); -} -::google::protobuf::RepeatedPtrField< ::milvus::grpc::FieldParam >* -Mapping::mutable_fields() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Mapping.fields) - return &fields_; -} -const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::FieldParam >& -Mapping::fields() const { - // @@protoc_insertion_point(field_list:milvus.grpc.Mapping.fields) - return fields_; -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 4; -int Mapping::extra_params_size() const { - return extra_params_.size(); -} -void Mapping::clear_extra_params() { - extra_params_.Clear(); -} -const ::milvus::grpc::KeyValuePair& Mapping::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.Mapping.extra_params) - return extra_params_.Get(index); -} -::milvus::grpc::KeyValuePair* Mapping::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.Mapping.extra_params) - return extra_params_.Mutable(index); -} -::milvus::grpc::KeyValuePair* Mapping::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.Mapping.extra_params) - return extra_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -Mapping::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Mapping.extra_params) - return &extra_params_; -} -const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -Mapping::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.Mapping.extra_params) - return extra_params_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int MappingList::kStatusFieldNumber; -const int MappingList::kMappingListFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void MappingList::InitAsDefaultInstance() { + ::milvus::grpc::_MappingList_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( + ::milvus::grpc::Status::internal_default_instance()); +} +class MappingList::_Internal { + public: + static const ::milvus::grpc::Status& status(const MappingList* msg); +}; +const ::milvus::grpc::Status& +MappingList::_Internal::status(const MappingList* msg) { + return *msg->status_; +} +void MappingList::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} MappingList::MappingList() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.MappingList) } - -void MappingList::InitAsDefaultInstance() { - _is_default_instance_ = true; - status_ = const_cast< ::milvus::grpc::Status*>(&::milvus::grpc::Status::default_instance()); -} - MappingList::MappingList(const MappingList& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + mapping_list_(from.mapping_list_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_status()) { + status_ = new ::milvus::grpc::Status(*from.status_); + } else { + status_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:milvus.grpc.MappingList) } void MappingList::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - status_ = NULL; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MappingList_suvlim_2eproto.base); + status_ = nullptr; } MappingList::~MappingList() { @@ -3963,90 +3484,118 @@ MappingList::~MappingList() { } void MappingList::SharedDtor() { - if (this != default_instance_) { - delete status_; - } + if (this != internal_default_instance()) delete status_; } void MappingList::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* MappingList::descriptor() { - protobuf_AssignDescriptorsOnce(); - return MappingList_descriptor_; -} - const MappingList& MappingList::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MappingList_suvlim_2eproto.base); + return *internal_default_instance(); } -MappingList* MappingList::default_instance_ = NULL; - -MappingList* MappingList::New(::google::protobuf::Arena* arena) const { - MappingList* n = new MappingList; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void MappingList::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.MappingList) - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + mapping_list_.Clear(); + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* MappingList::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.grpc.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .milvus.grpc.Mapping mapping_list = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_mapping_list(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool MappingList::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.MappingList) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .milvus.grpc.Status status = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.grpc.Status status = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_mapping_list; break; } // repeated .milvus.grpc.Mapping mapping_list = 2; case 2: { - if (tag == 18) { - parse_mapping_list: - DO_(input->IncrementRecursionDepth()); - parse_loop_mapping_list: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_mapping_list())); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_loop_mapping_list; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -4059,82 +3608,110 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void MappingList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.MappingList) - // optional .milvus.grpc.Status status = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->status_, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); } // repeated .milvus.grpc.Mapping mapping_list = 2; - for (unsigned int i = 0, n = this->mapping_list_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->mapping_list(i), output); + for (unsigned int i = 0, + n = static_cast(this->mapping_list_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, + this->mapping_list(static_cast(i)), + output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.MappingList) } -::google::protobuf::uint8* MappingList::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* MappingList::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.MappingList) - // optional .milvus.grpc.Status status = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->status_, false, target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); } // repeated .milvus.grpc.Mapping mapping_list = 2; - for (unsigned int i = 0, n = this->mapping_list_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, this->mapping_list(i), false, target); + for (unsigned int i = 0, + n = static_cast(this->mapping_list_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->mapping_list(static_cast(i)), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.MappingList) return target; } -int MappingList::ByteSize() const { +size_t MappingList::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.MappingList) - int total_size = 0; + size_t total_size = 0; - // optional .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->status_); + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; // repeated .milvus.grpc.Mapping mapping_list = 2; - total_size += 1 * this->mapping_list_size(); - for (int i = 0; i < this->mapping_list_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->mapping_list(i)); + { + unsigned int count = static_cast(this->mapping_list_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->mapping_list(static_cast(i))); + } } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // .milvus.grpc.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void MappingList::MergeFrom(const ::google::protobuf::Message& from) { +void MappingList::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.MappingList) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const MappingList* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const MappingList* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.MappingList) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.MappingList) MergeFrom(*source); @@ -4143,16 +3720,18 @@ void MappingList::MergeFrom(const ::google::protobuf::Message& from) { void MappingList::MergeFrom(const MappingList& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.MappingList) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + mapping_list_.MergeFrom(from.mapping_list_); if (from.has_status()) { mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); } } -void MappingList::CopyFrom(const ::google::protobuf::Message& from) { +void MappingList::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.MappingList) if (&from == this) return; Clear(); @@ -4167,133 +3746,53 @@ void MappingList::CopyFrom(const MappingList& from) { } bool MappingList::IsInitialized() const { - return true; } -void MappingList::Swap(MappingList* other) { - if (other == this) return; - InternalSwap(other); -} void MappingList::InternalSwap(MappingList* other) { - std::swap(status_, other->status_); - mapping_list_.UnsafeArenaSwap(&other->mapping_list_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + CastToBase(&mapping_list_)->InternalSwap(CastToBase(&other->mapping_list_)); + swap(status_, other->status_); } -::google::protobuf::Metadata MappingList::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = MappingList_descriptor_; - metadata.reflection = MappingList_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata MappingList::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// MappingList - -// optional .milvus.grpc.Status status = 1; -bool MappingList::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -void MappingList::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -const ::milvus::grpc::Status& MappingList::status() const { - // @@protoc_insertion_point(field_get:milvus.grpc.MappingList.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -::milvus::grpc::Status* MappingList::mutable_status() { - - if (status_ == NULL) { - status_ = new ::milvus::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.MappingList.status) - return status_; -} -::milvus::grpc::Status* MappingList::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.MappingList.status) - - ::milvus::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -void MappingList::set_allocated_status(::milvus::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.MappingList.status) -} - -// repeated .milvus.grpc.Mapping mapping_list = 2; -int MappingList::mapping_list_size() const { - return mapping_list_.size(); -} -void MappingList::clear_mapping_list() { - mapping_list_.Clear(); -} -const ::milvus::grpc::Mapping& MappingList::mapping_list(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.MappingList.mapping_list) - return mapping_list_.Get(index); -} -::milvus::grpc::Mapping* MappingList::mutable_mapping_list(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.MappingList.mapping_list) - return mapping_list_.Mutable(index); -} -::milvus::grpc::Mapping* MappingList::add_mapping_list() { - // @@protoc_insertion_point(field_add:milvus.grpc.MappingList.mapping_list) - return mapping_list_.Add(); -} -::google::protobuf::RepeatedPtrField< ::milvus::grpc::Mapping >* -MappingList::mutable_mapping_list() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.MappingList.mapping_list) - return &mapping_list_; -} -const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::Mapping >& -MappingList::mapping_list() const { - // @@protoc_insertion_point(field_list:milvus.grpc.MappingList.mapping_list) - return mapping_list_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PartitionParam::kCollectionNameFieldNumber; -const int PartitionParam::kTagFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void PartitionParam::InitAsDefaultInstance() { +} +class PartitionParam::_Internal { + public: +}; PartitionParam::PartitionParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.PartitionParam) } - -void PartitionParam::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - PartitionParam::PartitionParam(const PartitionParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.tag().empty()) { + tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.tag_); + } // @@protoc_insertion_point(copy_constructor:milvus.grpc.PartitionParam) } void PartitionParam::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - tag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PartitionParam_suvlim_2eproto.base); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } PartitionParam::~PartitionParam() { @@ -4302,94 +3801,119 @@ PartitionParam::~PartitionParam() { } void PartitionParam::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - tag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + tag_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void PartitionParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* PartitionParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return PartitionParam_descriptor_; -} - const PartitionParam& PartitionParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PartitionParam_suvlim_2eproto.base); + return *internal_default_instance(); } -PartitionParam* PartitionParam::default_instance_ = NULL; - -PartitionParam* PartitionParam::New(::google::protobuf::Arena* arena) const { - PartitionParam* n = new PartitionParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void PartitionParam::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.PartitionParam) - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* PartitionParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string collection_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.PartitionParam.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string tag = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_tag(), ptr, ctx, "milvus.grpc.PartitionParam.tag"); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool PartitionParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.PartitionParam) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string collection_name = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.PartitionParam.collection_name")); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_tag; break; } - // optional string tag = 2; + // string tag = 2; case 2: { - if (tag == 18) { - parse_tag: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_tag())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag().data(), this->tag().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->tag().data(), static_cast(this->tag().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.PartitionParam.tag")); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -4402,97 +3926,118 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void PartitionParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.PartitionParam) - // optional string collection_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.PartitionParam.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->collection_name(), output); } - // optional string tag = 2; + // string tag = 2; if (this->tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag().data(), this->tag().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->tag().data(), static_cast(this->tag().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.PartitionParam.tag"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->tag(), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.PartitionParam) } -::google::protobuf::uint8* PartitionParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* PartitionParam::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.PartitionParam) - // optional string collection_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.PartitionParam.collection_name"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 1, this->collection_name(), target); } - // optional string tag = 2; + // string tag = 2; if (this->tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag().data(), this->tag().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->tag().data(), static_cast(this->tag().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.PartitionParam.tag"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 2, this->tag(), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.PartitionParam) return target; } -int PartitionParam::ByteSize() const { +size_t PartitionParam::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.PartitionParam) - int total_size = 0; + size_t total_size = 0; - // optional string collection_name = 1; + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->collection_name()); } - // optional string tag = 2; + // string tag = 2; if (this->tag().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->tag()); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void PartitionParam::MergeFrom(const ::google::protobuf::Message& from) { +void PartitionParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.PartitionParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const PartitionParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const PartitionParam* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.PartitionParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.PartitionParam) MergeFrom(*source); @@ -4501,20 +4046,22 @@ void PartitionParam::MergeFrom(const ::google::protobuf::Message& from) { void PartitionParam::MergeFrom(const PartitionParam& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.PartitionParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.collection_name().size() > 0) { - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); } if (from.tag().size() > 0) { - tag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_); + tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.tag_); } } -void PartitionParam::CopyFrom(const ::google::protobuf::Message& from) { +void PartitionParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.PartitionParam) if (&from == this) return; Clear(); @@ -4529,153 +4076,65 @@ void PartitionParam::CopyFrom(const PartitionParam& from) { } bool PartitionParam::IsInitialized() const { - return true; } -void PartitionParam::Swap(PartitionParam* other) { - if (other == this) return; - InternalSwap(other); -} void PartitionParam::InternalSwap(PartitionParam* other) { - collection_name_.Swap(&other->collection_name_); - tag_.Swap(&other->tag_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + tag_.Swap(&other->tag_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); } -::google::protobuf::Metadata PartitionParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = PartitionParam_descriptor_; - metadata.reflection = PartitionParam_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata PartitionParam::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// PartitionParam - -// optional string collection_name = 1; -void PartitionParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& PartitionParam::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.PartitionParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void PartitionParam::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.PartitionParam.collection_name) -} - void PartitionParam::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.PartitionParam.collection_name) -} - void PartitionParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.PartitionParam.collection_name) -} - ::std::string* PartitionParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.PartitionParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* PartitionParam::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.PartitionParam.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void PartitionParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.PartitionParam.collection_name) -} - -// optional string tag = 2; -void PartitionParam::clear_tag() { - tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& PartitionParam::tag() const { - // @@protoc_insertion_point(field_get:milvus.grpc.PartitionParam.tag) - return tag_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void PartitionParam::set_tag(const ::std::string& value) { - - tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.PartitionParam.tag) -} - void PartitionParam::set_tag(const char* value) { - - tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.PartitionParam.tag) -} - void PartitionParam::set_tag(const char* value, size_t size) { - - tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.PartitionParam.tag) -} - ::std::string* PartitionParam::mutable_tag() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.PartitionParam.tag) - return tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* PartitionParam::release_tag() { - // @@protoc_insertion_point(field_release:milvus.grpc.PartitionParam.tag) - - return tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void PartitionParam::set_allocated_tag(::std::string* tag) { - if (tag != NULL) { - - } else { - - } - tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tag); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.PartitionParam.tag) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PartitionList::kStatusFieldNumber; -const int PartitionList::kPartitionTagArrayFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void PartitionList::InitAsDefaultInstance() { + ::milvus::grpc::_PartitionList_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( + ::milvus::grpc::Status::internal_default_instance()); +} +class PartitionList::_Internal { + public: + static const ::milvus::grpc::Status& status(const PartitionList* msg); +}; +const ::milvus::grpc::Status& +PartitionList::_Internal::status(const PartitionList* msg) { + return *msg->status_; +} +void PartitionList::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} PartitionList::PartitionList() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.PartitionList) } - -void PartitionList::InitAsDefaultInstance() { - _is_default_instance_ = true; - status_ = const_cast< ::milvus::grpc::Status*>(&::milvus::grpc::Status::default_instance()); -} - PartitionList::PartitionList(const PartitionList& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + partition_tag_array_(from.partition_tag_array_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_status()) { + status_ = new ::milvus::grpc::Status(*from.status_); + } else { + status_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:milvus.grpc.PartitionList) } void PartitionList::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - status_ = NULL; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PartitionList_suvlim_2eproto.base); + status_ = nullptr; } PartitionList::~PartitionList() { @@ -4684,92 +4143,123 @@ PartitionList::~PartitionList() { } void PartitionList::SharedDtor() { - if (this != default_instance_) { - delete status_; - } + if (this != internal_default_instance()) delete status_; } void PartitionList::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* PartitionList::descriptor() { - protobuf_AssignDescriptorsOnce(); - return PartitionList_descriptor_; -} - const PartitionList& PartitionList::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PartitionList_suvlim_2eproto.base); + return *internal_default_instance(); } -PartitionList* PartitionList::default_instance_ = NULL; - -PartitionList* PartitionList::New(::google::protobuf::Arena* arena) const { - PartitionList* n = new PartitionList; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void PartitionList::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.PartitionList) - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + partition_tag_array_.Clear(); + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* PartitionList::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.grpc.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated string partition_tag_array = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_partition_tag_array(), ptr, ctx, "milvus.grpc.PartitionList.partition_tag_array"); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool PartitionList::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.PartitionList) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .milvus.grpc.Status status = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.grpc.Status status = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_partition_tag_array; break; } // repeated string partition_tag_array = 2; case 2: { - if (tag == 18) { - parse_partition_tag_array: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->add_partition_tag_array())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->partition_tag_array(this->partition_tag_array_size() - 1).data(), - this->partition_tag_array(this->partition_tag_array_size() - 1).length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + static_cast(this->partition_tag_array(this->partition_tag_array_size() - 1).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.PartitionList.partition_tag_array")); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_partition_tag_array; - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -4782,88 +4272,110 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void PartitionList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.PartitionList) - // optional .milvus.grpc.Status status = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->status_, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); } // repeated string partition_tag_array = 2; - for (int i = 0; i < this->partition_tag_array_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag_array(i).data(), this->partition_tag_array(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + for (int i = 0, n = this->partition_tag_array_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_tag_array(i).data(), static_cast(this->partition_tag_array(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.PartitionList.partition_tag_array"); - ::google::protobuf::internal::WireFormatLite::WriteString( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( 2, this->partition_tag_array(i), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.PartitionList) } -::google::protobuf::uint8* PartitionList::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* PartitionList::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.PartitionList) - // optional .milvus.grpc.Status status = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->status_, false, target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); } // repeated string partition_tag_array = 2; - for (int i = 0; i < this->partition_tag_array_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag_array(i).data(), this->partition_tag_array(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + for (int i = 0, n = this->partition_tag_array_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_tag_array(i).data(), static_cast(this->partition_tag_array(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.PartitionList.partition_tag_array"); - target = ::google::protobuf::internal::WireFormatLite:: + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: WriteStringToArray(2, this->partition_tag_array(i), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.PartitionList) return target; } -int PartitionList::ByteSize() const { +size_t PartitionList::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.PartitionList) - int total_size = 0; + size_t total_size = 0; - // optional .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->status_); + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; // repeated string partition_tag_array = 2; - total_size += 1 * this->partition_tag_array_size(); - for (int i = 0; i < this->partition_tag_array_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->partition_tag_array_size()); + for (int i = 0, n = this->partition_tag_array_size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->partition_tag_array(i)); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // .milvus.grpc.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void PartitionList::MergeFrom(const ::google::protobuf::Message& from) { +void PartitionList::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.PartitionList) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const PartitionList* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const PartitionList* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.PartitionList) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.PartitionList) MergeFrom(*source); @@ -4872,16 +4384,18 @@ void PartitionList::MergeFrom(const ::google::protobuf::Message& from) { void PartitionList::MergeFrom(const PartitionList& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.PartitionList) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + partition_tag_array_.MergeFrom(from.partition_tag_array_); if (from.has_status()) { mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); } } -void PartitionList::CopyFrom(const ::google::protobuf::Message& from) { +void PartitionList::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.PartitionList) if (&from == this) return; Clear(); @@ -4896,157 +4410,49 @@ void PartitionList::CopyFrom(const PartitionList& from) { } bool PartitionList::IsInitialized() const { - return true; } -void PartitionList::Swap(PartitionList* other) { - if (other == this) return; - InternalSwap(other); -} void PartitionList::InternalSwap(PartitionList* other) { - std::swap(status_, other->status_); - partition_tag_array_.UnsafeArenaSwap(&other->partition_tag_array_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + partition_tag_array_.InternalSwap(CastToBase(&other->partition_tag_array_)); + swap(status_, other->status_); } -::google::protobuf::Metadata PartitionList::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = PartitionList_descriptor_; - metadata.reflection = PartitionList_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata PartitionList::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// PartitionList - -// optional .milvus.grpc.Status status = 1; -bool PartitionList::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -void PartitionList::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -const ::milvus::grpc::Status& PartitionList::status() const { - // @@protoc_insertion_point(field_get:milvus.grpc.PartitionList.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -::milvus::grpc::Status* PartitionList::mutable_status() { - - if (status_ == NULL) { - status_ = new ::milvus::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.PartitionList.status) - return status_; -} -::milvus::grpc::Status* PartitionList::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.PartitionList.status) - - ::milvus::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -void PartitionList::set_allocated_status(::milvus::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.PartitionList.status) -} - -// repeated string partition_tag_array = 2; -int PartitionList::partition_tag_array_size() const { - return partition_tag_array_.size(); -} -void PartitionList::clear_partition_tag_array() { - partition_tag_array_.Clear(); -} - const ::std::string& PartitionList::partition_tag_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.PartitionList.partition_tag_array) - return partition_tag_array_.Get(index); -} - ::std::string* PartitionList::mutable_partition_tag_array(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.PartitionList.partition_tag_array) - return partition_tag_array_.Mutable(index); -} - void PartitionList::set_partition_tag_array(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.PartitionList.partition_tag_array) - partition_tag_array_.Mutable(index)->assign(value); -} - void PartitionList::set_partition_tag_array(int index, const char* value) { - partition_tag_array_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.grpc.PartitionList.partition_tag_array) -} - void PartitionList::set_partition_tag_array(int index, const char* value, size_t size) { - partition_tag_array_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.PartitionList.partition_tag_array) -} - ::std::string* PartitionList::add_partition_tag_array() { - // @@protoc_insertion_point(field_add_mutable:milvus.grpc.PartitionList.partition_tag_array) - return partition_tag_array_.Add(); -} - void PartitionList::add_partition_tag_array(const ::std::string& value) { - partition_tag_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.grpc.PartitionList.partition_tag_array) -} - void PartitionList::add_partition_tag_array(const char* value) { - partition_tag_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.grpc.PartitionList.partition_tag_array) -} - void PartitionList::add_partition_tag_array(const char* value, size_t size) { - partition_tag_array_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.grpc.PartitionList.partition_tag_array) -} - const ::google::protobuf::RepeatedPtrField< ::std::string>& -PartitionList::partition_tag_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.PartitionList.partition_tag_array) - return partition_tag_array_; -} - ::google::protobuf::RepeatedPtrField< ::std::string>* -PartitionList::mutable_partition_tag_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.PartitionList.partition_tag_array) - return &partition_tag_array_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VectorRowRecord::kFloatDataFieldNumber; -const int VectorRowRecord::kBinaryDataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void VectorRowRecord::InitAsDefaultInstance() { +} +class VectorRowRecord::_Internal { + public: +}; VectorRowRecord::VectorRowRecord() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.VectorRowRecord) } - -void VectorRowRecord::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - VectorRowRecord::VectorRowRecord(const VectorRowRecord& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + float_data_(from.float_data_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + binary_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.binary_data().empty()) { + binary_data_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.binary_data_); + } // @@protoc_insertion_point(copy_constructor:milvus.grpc.VectorRowRecord) } void VectorRowRecord::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - binary_data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_VectorRowRecord_suvlim_2eproto.base); + binary_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } VectorRowRecord::~VectorRowRecord() { @@ -5055,90 +4461,118 @@ VectorRowRecord::~VectorRowRecord() { } void VectorRowRecord::SharedDtor() { - binary_data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } + binary_data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void VectorRowRecord::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* VectorRowRecord::descriptor() { - protobuf_AssignDescriptorsOnce(); - return VectorRowRecord_descriptor_; -} - const VectorRowRecord& VectorRowRecord::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VectorRowRecord_suvlim_2eproto.base); + return *internal_default_instance(); } -VectorRowRecord* VectorRowRecord::default_instance_ = NULL; - -VectorRowRecord* VectorRowRecord::New(::google::protobuf::Arena* arena) const { - VectorRowRecord* n = new VectorRowRecord; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void VectorRowRecord::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.VectorRowRecord) - binary_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + float_data_.Clear(); + binary_data_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* VectorRowRecord::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated float float_data = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(mutable_float_data(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13) { + add_float_data(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(float); + } else goto handle_unusual; + continue; + // bytes binary_data = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(mutable_binary_data(), ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool VectorRowRecord::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.VectorRowRecord) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated float float_data = 1; case 1: { - if (tag == 10) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< + float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( input, this->mutable_float_data()))); - } else if (tag == 13) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 10, input, this->mutable_float_data()))); + } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (13 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( + 1, 10u, input, this->mutable_float_data()))); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_binary_data; break; } - // optional bytes binary_data = 2; + // bytes binary_data = 2; case 2: { - if (tag == 18) { - parse_binary_data: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes( input, this->mutable_binary_data())); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -5151,99 +4585,119 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void VectorRowRecord::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.VectorRowRecord) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated float float_data = 1; if (this->float_data_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_float_data_cached_byte_size_); - } - for (int i = 0; i < this->float_data_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloatNoTag( - this->float_data(i), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(1, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_float_data_cached_byte_size_.load( + std::memory_order_relaxed)); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatArray( + this->float_data().data(), this->float_data_size(), output); } - // optional bytes binary_data = 2; + // bytes binary_data = 2; if (this->binary_data().size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased( 2, this->binary_data(), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.VectorRowRecord) } -::google::protobuf::uint8* VectorRowRecord::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* VectorRowRecord::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.VectorRowRecord) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated float float_data = 1; if (this->float_data_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( 1, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _float_data_cached_byte_size_, target); - } - for (int i = 0; i < this->float_data_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatNoTagToArray(this->float_data(i), target); + target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( + _float_data_cached_byte_size_.load(std::memory_order_relaxed), + target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteFloatNoTagToArray(this->float_data_, target); } - // optional bytes binary_data = 2; + // bytes binary_data = 2; if (this->binary_data().size() > 0) { target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesToArray( 2, this->binary_data(), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.VectorRowRecord) return target; } -int VectorRowRecord::ByteSize() const { +size_t VectorRowRecord::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.VectorRowRecord) - int total_size = 0; + size_t total_size = 0; - // optional bytes binary_data = 2; - if (this->binary_data().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->binary_data()); + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; // repeated float float_data = 1; { - int data_size = 0; - data_size = 4 * this->float_data_size(); + unsigned int count = static_cast(this->float_data_size()); + size_t data_size = 4UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _float_data_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _float_data_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); total_size += data_size; } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // bytes binary_data = 2; + if (this->binary_data().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->binary_data()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void VectorRowRecord::MergeFrom(const ::google::protobuf::Message& from) { +void VectorRowRecord::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.VectorRowRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const VectorRowRecord* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const VectorRowRecord* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.VectorRowRecord) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.VectorRowRecord) MergeFrom(*source); @@ -5252,17 +4706,19 @@ void VectorRowRecord::MergeFrom(const ::google::protobuf::Message& from) { void VectorRowRecord::MergeFrom(const VectorRowRecord& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.VectorRowRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + float_data_.MergeFrom(from.float_data_); if (from.binary_data().size() > 0) { - binary_data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.binary_data_); + binary_data_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.binary_data_); } } -void VectorRowRecord::CopyFrom(const ::google::protobuf::Message& from) { +void VectorRowRecord::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.VectorRowRecord) if (&from == this) return; Clear(); @@ -5277,138 +4733,64 @@ void VectorRowRecord::CopyFrom(const VectorRowRecord& from) { } bool VectorRowRecord::IsInitialized() const { - return true; } -void VectorRowRecord::Swap(VectorRowRecord* other) { - if (other == this) return; - InternalSwap(other); -} void VectorRowRecord::InternalSwap(VectorRowRecord* other) { - float_data_.UnsafeArenaSwap(&other->float_data_); - binary_data_.Swap(&other->binary_data_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + float_data_.InternalSwap(&other->float_data_); + binary_data_.Swap(&other->binary_data_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); } -::google::protobuf::Metadata VectorRowRecord::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = VectorRowRecord_descriptor_; - metadata.reflection = VectorRowRecord_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata VectorRowRecord::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// VectorRowRecord - -// repeated float float_data = 1; -int VectorRowRecord::float_data_size() const { - return float_data_.size(); -} -void VectorRowRecord::clear_float_data() { - float_data_.Clear(); -} - float VectorRowRecord::float_data(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorRowRecord.float_data) - return float_data_.Get(index); -} - void VectorRowRecord::set_float_data(int index, float value) { - float_data_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.VectorRowRecord.float_data) -} - void VectorRowRecord::add_float_data(float value) { - float_data_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.VectorRowRecord.float_data) -} - const ::google::protobuf::RepeatedField< float >& -VectorRowRecord::float_data() const { - // @@protoc_insertion_point(field_list:milvus.grpc.VectorRowRecord.float_data) - return float_data_; -} - ::google::protobuf::RepeatedField< float >* -VectorRowRecord::mutable_float_data() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorRowRecord.float_data) - return &float_data_; -} - -// optional bytes binary_data = 2; -void VectorRowRecord::clear_binary_data() { - binary_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& VectorRowRecord::binary_data() const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorRowRecord.binary_data) - return binary_data_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void VectorRowRecord::set_binary_data(const ::std::string& value) { - - binary_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.VectorRowRecord.binary_data) -} - void VectorRowRecord::set_binary_data(const char* value) { - - binary_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.VectorRowRecord.binary_data) -} - void VectorRowRecord::set_binary_data(const void* value, size_t size) { - - binary_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.VectorRowRecord.binary_data) -} - ::std::string* VectorRowRecord::mutable_binary_data() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorRowRecord.binary_data) - return binary_data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* VectorRowRecord::release_binary_data() { - // @@protoc_insertion_point(field_release:milvus.grpc.VectorRowRecord.binary_data) - - return binary_data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void VectorRowRecord::set_allocated_binary_data(::std::string* binary_data) { - if (binary_data != NULL) { - - } else { - - } - binary_data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), binary_data); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.VectorRowRecord.binary_data) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int EntityIds::kStatusFieldNumber; -const int EntityIds::kEntityIdArrayFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void EntityIds::InitAsDefaultInstance() { + ::milvus::grpc::_EntityIds_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( + ::milvus::grpc::Status::internal_default_instance()); +} +class EntityIds::_Internal { + public: + static const ::milvus::grpc::Status& status(const EntityIds* msg); +}; +const ::milvus::grpc::Status& +EntityIds::_Internal::status(const EntityIds* msg) { + return *msg->status_; +} +void EntityIds::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} EntityIds::EntityIds() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.EntityIds) } - -void EntityIds::InitAsDefaultInstance() { - _is_default_instance_ = true; - status_ = const_cast< ::milvus::grpc::Status*>(&::milvus::grpc::Status::default_instance()); -} - EntityIds::EntityIds(const EntityIds& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + entity_id_array_(from.entity_id_array_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_status()) { + status_ = new ::milvus::grpc::Status(*from.status_); + } else { + status_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:milvus.grpc.EntityIds) } void EntityIds::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - status_ = NULL; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EntityIds_suvlim_2eproto.base); + status_ = nullptr; } EntityIds::~EntityIds() { @@ -5417,91 +4799,121 @@ EntityIds::~EntityIds() { } void EntityIds::SharedDtor() { - if (this != default_instance_) { - delete status_; - } + if (this != internal_default_instance()) delete status_; } void EntityIds::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* EntityIds::descriptor() { - protobuf_AssignDescriptorsOnce(); - return EntityIds_descriptor_; -} - const EntityIds& EntityIds::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EntityIds_suvlim_2eproto.base); + return *internal_default_instance(); } -EntityIds* EntityIds::default_instance_ = NULL; - -EntityIds* EntityIds::New(::google::protobuf::Arena* arena) const { - EntityIds* n = new EntityIds; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void EntityIds::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.EntityIds) - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + entity_id_array_.Clear(); + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* EntityIds::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.grpc.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated int64 entity_id_array = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_entity_id_array(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) { + add_entity_id_array(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool EntityIds::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.EntityIds) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .milvus.grpc.Status status = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.grpc.Status status = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_entity_id_array; break; } // repeated int64 entity_id_array = 2; case 2: { - if (tag == 18) { - parse_entity_id_array: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( input, this->mutable_entity_id_array()))); - } else if (tag == 16) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - 1, 18, input, this->mutable_entity_id_array()))); + } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + 1, 18u, input, this->mutable_entity_id_array()))); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -5514,102 +4926,121 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void EntityIds::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.EntityIds) - // optional .milvus.grpc.Status status = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->status_, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); } // repeated int64 entity_id_array = 2; if (this->entity_id_array_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_entity_id_array_cached_byte_size_); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(2, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_entity_id_array_cached_byte_size_.load( + std::memory_order_relaxed)); } - for (int i = 0; i < this->entity_id_array_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag( + for (int i = 0, n = this->entity_id_array_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( this->entity_id_array(i), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.EntityIds) } -::google::protobuf::uint8* EntityIds::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* EntityIds::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.EntityIds) - // optional .milvus.grpc.Status status = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->status_, false, target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); } // repeated int64 entity_id_array = 2; if (this->entity_id_array_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( 2, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _entity_id_array_cached_byte_size_, target); - } - for (int i = 0; i < this->entity_id_array_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->entity_id_array(i), target); + target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( + _entity_id_array_cached_byte_size_.load(std::memory_order_relaxed), + target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteInt64NoTagToArray(this->entity_id_array_, target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.EntityIds) return target; } -int EntityIds::ByteSize() const { +size_t EntityIds::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.EntityIds) - int total_size = 0; + size_t total_size = 0; - // optional .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->status_); + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; // repeated int64 entity_id_array = 2; { - int data_size = 0; - for (int i = 0; i < this->entity_id_array_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int64Size(this->entity_id_array(i)); - } + size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + Int64Size(this->entity_id_array_); if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _entity_id_array_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _entity_id_array_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); total_size += data_size; } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // .milvus.grpc.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void EntityIds::MergeFrom(const ::google::protobuf::Message& from) { +void EntityIds::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.EntityIds) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const EntityIds* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const EntityIds* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.EntityIds) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.EntityIds) MergeFrom(*source); @@ -5618,16 +5049,18 @@ void EntityIds::MergeFrom(const ::google::protobuf::Message& from) { void EntityIds::MergeFrom(const EntityIds& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.EntityIds) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + entity_id_array_.MergeFrom(from.entity_id_array_); if (from.has_status()) { mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); } } -void EntityIds::CopyFrom(const ::google::protobuf::Message& from) { +void EntityIds::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.EntityIds) if (&from == this) return; Clear(); @@ -5642,129 +5075,44 @@ void EntityIds::CopyFrom(const EntityIds& from) { } bool EntityIds::IsInitialized() const { - return true; } -void EntityIds::Swap(EntityIds* other) { - if (other == this) return; - InternalSwap(other); -} void EntityIds::InternalSwap(EntityIds* other) { - std::swap(status_, other->status_); - entity_id_array_.UnsafeArenaSwap(&other->entity_id_array_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + entity_id_array_.InternalSwap(&other->entity_id_array_); + swap(status_, other->status_); } -::google::protobuf::Metadata EntityIds::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = EntityIds_descriptor_; - metadata.reflection = EntityIds_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata EntityIds::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// EntityIds - -// optional .milvus.grpc.Status status = 1; -bool EntityIds::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -void EntityIds::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -const ::milvus::grpc::Status& EntityIds::status() const { - // @@protoc_insertion_point(field_get:milvus.grpc.EntityIds.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -::milvus::grpc::Status* EntityIds::mutable_status() { - - if (status_ == NULL) { - status_ = new ::milvus::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.EntityIds.status) - return status_; -} -::milvus::grpc::Status* EntityIds::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.EntityIds.status) - - ::milvus::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -void EntityIds::set_allocated_status(::milvus::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.EntityIds.status) -} - -// repeated int64 entity_id_array = 2; -int EntityIds::entity_id_array_size() const { - return entity_id_array_.size(); -} -void EntityIds::clear_entity_id_array() { - entity_id_array_.Clear(); -} - ::google::protobuf::int64 EntityIds::entity_id_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.EntityIds.entity_id_array) - return entity_id_array_.Get(index); -} - void EntityIds::set_entity_id_array(int index, ::google::protobuf::int64 value) { - entity_id_array_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.EntityIds.entity_id_array) -} - void EntityIds::add_entity_id_array(::google::protobuf::int64 value) { - entity_id_array_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.EntityIds.entity_id_array) -} - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -EntityIds::entity_id_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.EntityIds.entity_id_array) - return entity_id_array_; -} - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -EntityIds::mutable_entity_id_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.EntityIds.entity_id_array) - return &entity_id_array_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VectorRecord::kRecordsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void VectorRecord::InitAsDefaultInstance() { +} +class VectorRecord::_Internal { + public: +}; VectorRecord::VectorRecord() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.VectorRecord) } - -void VectorRecord::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - VectorRecord::VectorRecord(const VectorRecord& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + records_(from.records_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:milvus.grpc.VectorRecord) } void VectorRecord::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_VectorRecord_suvlim_2eproto.base); } VectorRecord::~VectorRecord() { @@ -5773,74 +5121,95 @@ VectorRecord::~VectorRecord() { } void VectorRecord::SharedDtor() { - if (this != default_instance_) { - } } void VectorRecord::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* VectorRecord::descriptor() { - protobuf_AssignDescriptorsOnce(); - return VectorRecord_descriptor_; -} - const VectorRecord& VectorRecord::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VectorRecord_suvlim_2eproto.base); + return *internal_default_instance(); } -VectorRecord* VectorRecord::default_instance_ = NULL; - -VectorRecord* VectorRecord::New(::google::protobuf::Arena* arena) const { - VectorRecord* n = new VectorRecord; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void VectorRecord::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.VectorRecord) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + records_.Clear(); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* VectorRecord::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated .milvus.grpc.VectorRowRecord records = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_records(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool VectorRecord::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.VectorRecord) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated .milvus.grpc.VectorRowRecord records = 1; case 1: { - if (tag == 10) { - DO_(input->IncrementRecursionDepth()); - parse_loop_records: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_records())); } else { goto handle_unusual; } - if (input->ExpectTag(10)) goto parse_loop_records; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -5853,62 +5222,90 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void VectorRecord::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.VectorRecord) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated .milvus.grpc.VectorRowRecord records = 1; - for (unsigned int i = 0, n = this->records_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->records(i), output); + for (unsigned int i = 0, + n = static_cast(this->records_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->records(static_cast(i)), + output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.VectorRecord) } -::google::protobuf::uint8* VectorRecord::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* VectorRecord::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.VectorRecord) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated .milvus.grpc.VectorRowRecord records = 1; - for (unsigned int i = 0, n = this->records_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, this->records(i), false, target); + for (unsigned int i = 0, + n = static_cast(this->records_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->records(static_cast(i)), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.VectorRecord) return target; } -int VectorRecord::ByteSize() const { +size_t VectorRecord::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.VectorRecord) - int total_size = 0; + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; // repeated .milvus.grpc.VectorRowRecord records = 1; - total_size += 1 * this->records_size(); - for (int i = 0; i < this->records_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->records(i)); + { + unsigned int count = static_cast(this->records_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->records(static_cast(i))); + } } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void VectorRecord::MergeFrom(const ::google::protobuf::Message& from) { +void VectorRecord::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.VectorRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const VectorRecord* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const VectorRecord* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.VectorRecord) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.VectorRecord) MergeFrom(*source); @@ -5917,13 +5314,15 @@ void VectorRecord::MergeFrom(const ::google::protobuf::Message& from) { void VectorRecord::MergeFrom(const VectorRecord& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.VectorRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + records_.MergeFrom(from.records_); } -void VectorRecord::CopyFrom(const ::google::protobuf::Message& from) { +void VectorRecord::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.VectorRecord) if (&from == this) return; Clear(); @@ -5938,95 +5337,60 @@ void VectorRecord::CopyFrom(const VectorRecord& from) { } bool VectorRecord::IsInitialized() const { - return true; } -void VectorRecord::Swap(VectorRecord* other) { - if (other == this) return; - InternalSwap(other); -} void VectorRecord::InternalSwap(VectorRecord* other) { - records_.UnsafeArenaSwap(&other->records_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + CastToBase(&records_)->InternalSwap(CastToBase(&other->records_)); } -::google::protobuf::Metadata VectorRecord::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = VectorRecord_descriptor_; - metadata.reflection = VectorRecord_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata VectorRecord::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// VectorRecord - -// repeated .milvus.grpc.VectorRowRecord records = 1; -int VectorRecord::records_size() const { - return records_.size(); -} -void VectorRecord::clear_records() { - records_.Clear(); -} -const ::milvus::grpc::VectorRowRecord& VectorRecord::records(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorRecord.records) - return records_.Get(index); -} -::milvus::grpc::VectorRowRecord* VectorRecord::mutable_records(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorRecord.records) - return records_.Mutable(index); -} -::milvus::grpc::VectorRowRecord* VectorRecord::add_records() { - // @@protoc_insertion_point(field_add:milvus.grpc.VectorRecord.records) - return records_.Add(); -} -::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* -VectorRecord::mutable_records() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorRecord.records) - return &records_; -} -const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& -VectorRecord::records() const { - // @@protoc_insertion_point(field_list:milvus.grpc.VectorRecord.records) - return records_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VectorParam::kJsonFieldNumber; -const int VectorParam::kRowRecordFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void VectorParam::InitAsDefaultInstance() { + ::milvus::grpc::_VectorParam_default_instance_._instance.get_mutable()->row_record_ = const_cast< ::milvus::grpc::VectorRecord*>( + ::milvus::grpc::VectorRecord::internal_default_instance()); +} +class VectorParam::_Internal { + public: + static const ::milvus::grpc::VectorRecord& row_record(const VectorParam* msg); +}; +const ::milvus::grpc::VectorRecord& +VectorParam::_Internal::row_record(const VectorParam* msg) { + return *msg->row_record_; +} VectorParam::VectorParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.VectorParam) } - -void VectorParam::InitAsDefaultInstance() { - _is_default_instance_ = true; - row_record_ = const_cast< ::milvus::grpc::VectorRecord*>(&::milvus::grpc::VectorRecord::default_instance()); -} - VectorParam::VectorParam(const VectorParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + json_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.json().empty()) { + json_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.json_); + } + if (from.has_row_record()) { + row_record_ = new ::milvus::grpc::VectorRecord(*from.row_record_); + } else { + row_record_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:milvus.grpc.VectorParam) } void VectorParam::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - json_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - row_record_ = NULL; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_VectorParam_suvlim_2eproto.base); + json_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + row_record_ = nullptr; } VectorParam::~VectorParam() { @@ -6035,91 +5399,118 @@ VectorParam::~VectorParam() { } void VectorParam::SharedDtor() { - json_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - delete row_record_; - } + json_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete row_record_; } void VectorParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* VectorParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return VectorParam_descriptor_; -} - const VectorParam& VectorParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VectorParam_suvlim_2eproto.base); + return *internal_default_instance(); } -VectorParam* VectorParam::default_instance_ = NULL; - -VectorParam* VectorParam::New(::google::protobuf::Arena* arena) const { - VectorParam* n = new VectorParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void VectorParam::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.VectorParam) - json_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && row_record_ != NULL) delete row_record_; - row_record_ = NULL; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + json_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && row_record_ != nullptr) { + delete row_record_; + } + row_record_ = nullptr; + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* VectorParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string json = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_json(), ptr, ctx, "milvus.grpc.VectorParam.json"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.grpc.VectorRecord row_record = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(mutable_row_record(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool VectorParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.VectorParam) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string json = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string json = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_json())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->json().data(), this->json().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->json().data(), static_cast(this->json().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.VectorParam.json")); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_row_record; break; } - // optional .milvus.grpc.VectorRecord row_record = 2; + // .milvus.grpc.VectorRecord row_record = 2; case 2: { - if (tag == 18) { - parse_row_record: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_row_record())); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -6132,89 +5523,110 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void VectorParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.VectorParam) - // optional string json = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string json = 1; if (this->json().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->json().data(), this->json().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->json().data(), static_cast(this->json().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.VectorParam.json"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->json(), output); } - // optional .milvus.grpc.VectorRecord row_record = 2; + // .milvus.grpc.VectorRecord row_record = 2; if (this->has_row_record()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *this->row_record_, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, _Internal::row_record(this), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.VectorParam) } -::google::protobuf::uint8* VectorParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* VectorParam::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.VectorParam) - // optional string json = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string json = 1; if (this->json().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->json().data(), this->json().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->json().data(), static_cast(this->json().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.VectorParam.json"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 1, this->json(), target); } - // optional .milvus.grpc.VectorRecord row_record = 2; + // .milvus.grpc.VectorRecord row_record = 2; if (this->has_row_record()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *this->row_record_, false, target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, _Internal::row_record(this), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.VectorParam) return target; } -int VectorParam::ByteSize() const { +size_t VectorParam::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.VectorParam) - int total_size = 0; + size_t total_size = 0; - // optional string json = 1; + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string json = 1; if (this->json().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->json()); } - // optional .milvus.grpc.VectorRecord row_record = 2; + // .milvus.grpc.VectorRecord row_record = 2; if (this->has_row_record()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->row_record_); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *row_record_); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void VectorParam::MergeFrom(const ::google::protobuf::Message& from) { +void VectorParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.VectorParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const VectorParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const VectorParam* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.VectorParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.VectorParam) MergeFrom(*source); @@ -6223,19 +5635,21 @@ void VectorParam::MergeFrom(const ::google::protobuf::Message& from) { void VectorParam::MergeFrom(const VectorParam& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.VectorParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.json().size() > 0) { - json_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.json_); + json_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.json_); } if (from.has_row_record()) { mutable_row_record()->::milvus::grpc::VectorRecord::MergeFrom(from.row_record()); } } -void VectorParam::CopyFrom(const ::google::protobuf::Message& from) { +void VectorParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.VectorParam) if (&from == this) return; Clear(); @@ -6250,149 +5664,55 @@ void VectorParam::CopyFrom(const VectorParam& from) { } bool VectorParam::IsInitialized() const { - return true; } -void VectorParam::Swap(VectorParam* other) { - if (other == this) return; - InternalSwap(other); -} void VectorParam::InternalSwap(VectorParam* other) { - json_.Swap(&other->json_); - std::swap(row_record_, other->row_record_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + json_.Swap(&other->json_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(row_record_, other->row_record_); } -::google::protobuf::Metadata VectorParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = VectorParam_descriptor_; - metadata.reflection = VectorParam_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata VectorParam::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// VectorParam - -// optional string json = 1; -void VectorParam::clear_json() { - json_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& VectorParam::json() const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorParam.json) - return json_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void VectorParam::set_json(const ::std::string& value) { - - json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.VectorParam.json) -} - void VectorParam::set_json(const char* value) { - - json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.VectorParam.json) -} - void VectorParam::set_json(const char* value, size_t size) { - - json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.VectorParam.json) -} - ::std::string* VectorParam::mutable_json() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorParam.json) - return json_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* VectorParam::release_json() { - // @@protoc_insertion_point(field_release:milvus.grpc.VectorParam.json) - - return json_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void VectorParam::set_allocated_json(::std::string* json) { - if (json != NULL) { - - } else { - - } - json_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.VectorParam.json) -} - -// optional .milvus.grpc.VectorRecord row_record = 2; -bool VectorParam::has_row_record() const { - return !_is_default_instance_ && row_record_ != NULL; -} -void VectorParam::clear_row_record() { - if (GetArenaNoVirtual() == NULL && row_record_ != NULL) delete row_record_; - row_record_ = NULL; -} -const ::milvus::grpc::VectorRecord& VectorParam::row_record() const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorParam.row_record) - return row_record_ != NULL ? *row_record_ : *default_instance_->row_record_; -} -::milvus::grpc::VectorRecord* VectorParam::mutable_row_record() { - - if (row_record_ == NULL) { - row_record_ = new ::milvus::grpc::VectorRecord; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorParam.row_record) - return row_record_; -} -::milvus::grpc::VectorRecord* VectorParam::release_row_record() { - // @@protoc_insertion_point(field_release:milvus.grpc.VectorParam.row_record) - - ::milvus::grpc::VectorRecord* temp = row_record_; - row_record_ = NULL; - return temp; -} -void VectorParam::set_allocated_row_record(::milvus::grpc::VectorRecord* row_record) { - delete row_record_; - row_record_ = row_record; - if (row_record) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.VectorParam.row_record) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int FieldMeta::kFieldNameFieldNumber; -const int FieldMeta::kTypeFieldNumber; -const int FieldMeta::kDimFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void FieldMeta::InitAsDefaultInstance() { +} +class FieldMeta::_Internal { + public: +}; FieldMeta::FieldMeta() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.FieldMeta) } - -void FieldMeta::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - FieldMeta::FieldMeta(const FieldMeta& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.field_name().empty()) { + field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); + } + ::memcpy(&dim_, &from.dim_, + static_cast(reinterpret_cast(&type_) - + reinterpret_cast(&dim_)) + sizeof(type_)); // @@protoc_insertion_point(copy_constructor:milvus.grpc.FieldMeta) } void FieldMeta::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - field_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_ = 0; - dim_ = GOOGLE_LONGLONG(0); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FieldMeta_suvlim_2eproto.base); + field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&dim_, 0, static_cast( + reinterpret_cast(&type_) - + reinterpret_cast(&dim_)) + sizeof(type_)); } FieldMeta::~FieldMeta() { @@ -6401,127 +5721,140 @@ FieldMeta::~FieldMeta() { } void FieldMeta::SharedDtor() { - field_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } + field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void FieldMeta::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* FieldMeta::descriptor() { - protobuf_AssignDescriptorsOnce(); - return FieldMeta_descriptor_; -} - const FieldMeta& FieldMeta::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FieldMeta_suvlim_2eproto.base); + return *internal_default_instance(); } -FieldMeta* FieldMeta::default_instance_ = NULL; - -FieldMeta* FieldMeta::New(::google::protobuf::Arena* arena) const { - FieldMeta* n = new FieldMeta; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void FieldMeta::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.FieldMeta) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(FieldMeta, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&first, 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - ZR_(dim_, type_); - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - -#undef ZR_HELPER_ -#undef ZR_ + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&dim_, 0, static_cast( + reinterpret_cast(&type_) - + reinterpret_cast(&dim_)) + sizeof(type_)); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* FieldMeta::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string field_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_field_name(), ptr, ctx, "milvus.grpc.FieldMeta.field_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.grpc.DataType type = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + set_type(static_cast<::milvus::grpc::DataType>(val)); + } else goto handle_unusual; + continue; + // int64 dim = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + dim_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool FieldMeta::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.FieldMeta) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string field_name = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string field_name = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_field_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.FieldMeta.field_name")); } else { goto handle_unusual; } - if (input->ExpectTag(16)) goto parse_type; break; } - // optional .milvus.grpc.DataType type = 2; + // .milvus.grpc.DataType type = 2; case 2: { - if (tag == 16) { - parse_type: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( input, &value))); set_type(static_cast< ::milvus::grpc::DataType >(value)); } else { goto handle_unusual; } - if (input->ExpectTag(24)) goto parse_dim; break; } - // optional int64 dim = 3; + // int64 dim = 3; case 3: { - if (tag == 24) { - parse_dim: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &dim_))); + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &dim_))); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -6534,104 +5867,125 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void FieldMeta::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.FieldMeta) - // optional string field_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string field_name = 1; if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.FieldMeta.field_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->field_name(), output); } - // optional .milvus.grpc.DataType type = 2; + // .milvus.grpc.DataType type = 2; if (this->type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( 2, this->type(), output); } - // optional int64 dim = 3; + // int64 dim = 3; if (this->dim() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->dim(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->dim(), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.FieldMeta) } -::google::protobuf::uint8* FieldMeta::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* FieldMeta::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.FieldMeta) - // optional string field_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string field_name = 1; if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.FieldMeta.field_name"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 1, this->field_name(), target); } - // optional .milvus.grpc.DataType type = 2; + // .milvus.grpc.DataType type = 2; if (this->type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 2, this->type(), target); } - // optional int64 dim = 3; + // int64 dim = 3; if (this->dim() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->dim(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->dim(), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.FieldMeta) return target; } -int FieldMeta::ByteSize() const { +size_t FieldMeta::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.FieldMeta) - int total_size = 0; + size_t total_size = 0; - // optional string field_name = 1; + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string field_name = 1; if (this->field_name().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->field_name()); } - // optional .milvus.grpc.DataType type = 2; - if (this->type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - // optional int64 dim = 3; + // int64 dim = 3; if (this->dim() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->dim()); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // .milvus.grpc.DataType type = 2; + if (this->type() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->type()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void FieldMeta::MergeFrom(const ::google::protobuf::Message& from) { +void FieldMeta::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.FieldMeta) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const FieldMeta* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const FieldMeta* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.FieldMeta) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.FieldMeta) MergeFrom(*source); @@ -6640,22 +5994,24 @@ void FieldMeta::MergeFrom(const ::google::protobuf::Message& from) { void FieldMeta::MergeFrom(const FieldMeta& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.FieldMeta) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.field_name().size() > 0) { - field_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - if (from.type() != 0) { - set_type(from.type()); + field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); } if (from.dim() != 0) { set_dim(from.dim()); } + if (from.type() != 0) { + set_type(from.type()); + } } -void FieldMeta::CopyFrom(const ::google::protobuf::Message& from) { +void FieldMeta::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.FieldMeta) if (&from == this) return; Clear(); @@ -6670,134 +6026,46 @@ void FieldMeta::CopyFrom(const FieldMeta& from) { } bool FieldMeta::IsInitialized() const { - return true; } -void FieldMeta::Swap(FieldMeta* other) { - if (other == this) return; - InternalSwap(other); -} void FieldMeta::InternalSwap(FieldMeta* other) { - field_name_.Swap(&other->field_name_); - std::swap(type_, other->type_); - std::swap(dim_, other->dim_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(dim_, other->dim_); + swap(type_, other->type_); } -::google::protobuf::Metadata FieldMeta::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = FieldMeta_descriptor_; - metadata.reflection = FieldMeta_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata FieldMeta::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// FieldMeta - -// optional string field_name = 1; -void FieldMeta::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& FieldMeta::field_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldMeta.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void FieldMeta::set_field_name(const ::std::string& value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.FieldMeta.field_name) -} - void FieldMeta::set_field_name(const char* value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.FieldMeta.field_name) -} - void FieldMeta::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.FieldMeta.field_name) -} - ::std::string* FieldMeta::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldMeta.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* FieldMeta::release_field_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.FieldMeta.field_name) - - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void FieldMeta::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.FieldMeta.field_name) -} - -// optional .milvus.grpc.DataType type = 2; -void FieldMeta::clear_type() { - type_ = 0; -} - ::milvus::grpc::DataType FieldMeta::type() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldMeta.type) - return static_cast< ::milvus::grpc::DataType >(type_); -} - void FieldMeta::set_type(::milvus::grpc::DataType value) { - - type_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.FieldMeta.type) -} - -// optional int64 dim = 3; -void FieldMeta::clear_dim() { - dim_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 FieldMeta::dim() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldMeta.dim) - return dim_; -} - void FieldMeta::set_dim(::google::protobuf::int64 value) { - - dim_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.FieldMeta.dim) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Schema::kFieldMetasFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void Schema::InitAsDefaultInstance() { +} +class Schema::_Internal { + public: +}; Schema::Schema() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.Schema) } - -void Schema::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - Schema::Schema(const Schema& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + field_metas_(from.field_metas_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:milvus.grpc.Schema) } void Schema::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Schema_suvlim_2eproto.base); } Schema::~Schema() { @@ -6806,74 +6074,95 @@ Schema::~Schema() { } void Schema::SharedDtor() { - if (this != default_instance_) { - } } void Schema::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* Schema::descriptor() { - protobuf_AssignDescriptorsOnce(); - return Schema_descriptor_; -} - const Schema& Schema::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Schema_suvlim_2eproto.base); + return *internal_default_instance(); } -Schema* Schema::default_instance_ = NULL; - -Schema* Schema::New(::google::protobuf::Arena* arena) const { - Schema* n = new Schema; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void Schema::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.Schema) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + field_metas_.Clear(); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Schema::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated .milvus.grpc.FieldMeta field_metas = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_field_metas(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool Schema::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.Schema) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated .milvus.grpc.FieldMeta field_metas = 1; case 1: { - if (tag == 10) { - DO_(input->IncrementRecursionDepth()); - parse_loop_field_metas: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_field_metas())); } else { goto handle_unusual; } - if (input->ExpectTag(10)) goto parse_loop_field_metas; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -6886,62 +6175,90 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void Schema::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.Schema) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated .milvus.grpc.FieldMeta field_metas = 1; - for (unsigned int i = 0, n = this->field_metas_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->field_metas(i), output); + for (unsigned int i = 0, + n = static_cast(this->field_metas_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->field_metas(static_cast(i)), + output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.Schema) } -::google::protobuf::uint8* Schema::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* Schema::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Schema) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated .milvus.grpc.FieldMeta field_metas = 1; - for (unsigned int i = 0, n = this->field_metas_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, this->field_metas(i), false, target); + for (unsigned int i = 0, + n = static_cast(this->field_metas_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->field_metas(static_cast(i)), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Schema) return target; } -int Schema::ByteSize() const { +size_t Schema::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.Schema) - int total_size = 0; + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; // repeated .milvus.grpc.FieldMeta field_metas = 1; - total_size += 1 * this->field_metas_size(); - for (int i = 0; i < this->field_metas_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->field_metas(i)); + { + unsigned int count = static_cast(this->field_metas_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->field_metas(static_cast(i))); + } } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void Schema::MergeFrom(const ::google::protobuf::Message& from) { +void Schema::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.Schema) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const Schema* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const Schema* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.Schema) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Schema) MergeFrom(*source); @@ -6950,13 +6267,15 @@ void Schema::MergeFrom(const ::google::protobuf::Message& from) { void Schema::MergeFrom(const Schema& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.Schema) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + field_metas_.MergeFrom(from.field_metas_); } -void Schema::CopyFrom(const ::google::protobuf::Message& from) { +void Schema::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Schema) if (&from == this) return; Clear(); @@ -6971,92 +6290,47 @@ void Schema::CopyFrom(const Schema& from) { } bool Schema::IsInitialized() const { - return true; } -void Schema::Swap(Schema* other) { - if (other == this) return; - InternalSwap(other); -} void Schema::InternalSwap(Schema* other) { - field_metas_.UnsafeArenaSwap(&other->field_metas_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + CastToBase(&field_metas_)->InternalSwap(CastToBase(&other->field_metas_)); } -::google::protobuf::Metadata Schema::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = Schema_descriptor_; - metadata.reflection = Schema_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata Schema::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// Schema - -// repeated .milvus.grpc.FieldMeta field_metas = 1; -int Schema::field_metas_size() const { - return field_metas_.size(); -} -void Schema::clear_field_metas() { - field_metas_.Clear(); -} -const ::milvus::grpc::FieldMeta& Schema::field_metas(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.Schema.field_metas) - return field_metas_.Get(index); -} -::milvus::grpc::FieldMeta* Schema::mutable_field_metas(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.Schema.field_metas) - return field_metas_.Mutable(index); -} -::milvus::grpc::FieldMeta* Schema::add_field_metas() { - // @@protoc_insertion_point(field_add:milvus.grpc.Schema.field_metas) - return field_metas_.Add(); -} -::google::protobuf::RepeatedPtrField< ::milvus::grpc::FieldMeta >* -Schema::mutable_field_metas() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Schema.field_metas) - return &field_metas_; -} -const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::FieldMeta >& -Schema::field_metas() const { - // @@protoc_insertion_point(field_list:milvus.grpc.Schema.field_metas) - return field_metas_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int RowData::kBlobFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void RowData::InitAsDefaultInstance() { +} +class RowData::_Internal { + public: +}; RowData::RowData() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.RowData) } - -void RowData::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - RowData::RowData(const RowData& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + blob_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.blob().empty()) { + blob_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.blob_); + } // @@protoc_insertion_point(copy_constructor:milvus.grpc.RowData) } void RowData::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - blob_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RowData_suvlim_2eproto.base); + blob_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } RowData::~RowData() { @@ -7065,71 +6339,91 @@ RowData::~RowData() { } void RowData::SharedDtor() { - blob_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } + blob_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void RowData::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* RowData::descriptor() { - protobuf_AssignDescriptorsOnce(); - return RowData_descriptor_; -} - const RowData& RowData::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RowData_suvlim_2eproto.base); + return *internal_default_instance(); } -RowData* RowData::default_instance_ = NULL; - -RowData* RowData::New(::google::protobuf::Arena* arena) const { - RowData* n = new RowData; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void RowData::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.RowData) - blob_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + blob_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* RowData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // bytes blob = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(mutable_blob(), ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool RowData::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.RowData) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional bytes blob = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // bytes blob = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes( input, this->mutable_blob())); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -7142,61 +6436,82 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void RowData::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.RowData) - // optional bytes blob = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bytes blob = 1; if (this->blob().size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased( 1, this->blob(), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.RowData) } -::google::protobuf::uint8* RowData::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* RowData::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.RowData) - // optional bytes blob = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bytes blob = 1; if (this->blob().size() > 0) { target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesToArray( 1, this->blob(), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.RowData) return target; } -int RowData::ByteSize() const { +size_t RowData::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.RowData) - int total_size = 0; + size_t total_size = 0; - // optional bytes blob = 1; + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bytes blob = 1; if (this->blob().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->blob()); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void RowData::MergeFrom(const ::google::protobuf::Message& from) { +void RowData::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.RowData) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const RowData* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const RowData* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.RowData) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.RowData) MergeFrom(*source); @@ -7205,16 +6520,18 @@ void RowData::MergeFrom(const ::google::protobuf::Message& from) { void RowData::MergeFrom(const RowData& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.RowData) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.blob().size() > 0) { - blob_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.blob_); + blob_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.blob_); } } -void RowData::CopyFrom(const ::google::protobuf::Message& from) { +void RowData::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.RowData) if (&from == this) return; Clear(); @@ -7229,114 +6546,69 @@ void RowData::CopyFrom(const RowData& from) { } bool RowData::IsInitialized() const { - return true; } -void RowData::Swap(RowData* other) { - if (other == this) return; - InternalSwap(other); -} void RowData::InternalSwap(RowData* other) { - blob_.Swap(&other->blob_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + blob_.Swap(&other->blob_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); } -::google::protobuf::Metadata RowData::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = RowData_descriptor_; - metadata.reflection = RowData_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata RowData::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// RowData - -// optional bytes blob = 1; -void RowData::clear_blob() { - blob_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& RowData::blob() const { - // @@protoc_insertion_point(field_get:milvus.grpc.RowData.blob) - return blob_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void RowData::set_blob(const ::std::string& value) { - - blob_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.RowData.blob) -} - void RowData::set_blob(const char* value) { - - blob_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.RowData.blob) -} - void RowData::set_blob(const void* value, size_t size) { - - blob_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.RowData.blob) -} - ::std::string* RowData::mutable_blob() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.RowData.blob) - return blob_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* RowData::release_blob() { - // @@protoc_insertion_point(field_release:milvus.grpc.RowData.blob) - - return blob_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void RowData::set_allocated_blob(::std::string* blob) { - if (blob != NULL) { - - } else { - - } - blob_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), blob); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.RowData.blob) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int InsertParam::kCollectionNameFieldNumber; -const int InsertParam::kSchemaFieldNumber; -const int InsertParam::kRowsDataFieldNumber; -const int InsertParam::kEntityIdArrayFieldNumber; -const int InsertParam::kPartitionTagFieldNumber; -const int InsertParam::kExtraParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void InsertParam::InitAsDefaultInstance() { + ::milvus::grpc::_InsertParam_default_instance_._instance.get_mutable()->schema_ = const_cast< ::milvus::grpc::Schema*>( + ::milvus::grpc::Schema::internal_default_instance()); +} +class InsertParam::_Internal { + public: + static const ::milvus::grpc::Schema& schema(const InsertParam* msg); +}; +const ::milvus::grpc::Schema& +InsertParam::_Internal::schema(const InsertParam* msg) { + return *msg->schema_; +} InsertParam::InsertParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.InsertParam) } - -void InsertParam::InitAsDefaultInstance() { - _is_default_instance_ = true; - schema_ = const_cast< ::milvus::grpc::Schema*>(&::milvus::grpc::Schema::default_instance()); -} - InsertParam::InsertParam(const InsertParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + rows_data_(from.rows_data_), + entity_id_array_(from.entity_id_array_), + extra_params_(from.extra_params_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + partition_tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.partition_tag().empty()) { + partition_tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); + } + if (from.has_schema()) { + schema_ = new ::milvus::grpc::Schema(*from.schema_); + } else { + schema_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:milvus.grpc.InsertParam) } void InsertParam::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - schema_ = NULL; - partition_tag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_InsertParam_suvlim_2eproto.base); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + partition_tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + schema_ = nullptr; } InsertParam::~InsertParam() { @@ -7345,165 +6617,217 @@ InsertParam::~InsertParam() { } void InsertParam::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - partition_tag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - delete schema_; - } + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + partition_tag_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete schema_; } void InsertParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* InsertParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return InsertParam_descriptor_; -} - const InsertParam& InsertParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_InsertParam_suvlim_2eproto.base); + return *internal_default_instance(); } -InsertParam* InsertParam::default_instance_ = NULL; - -InsertParam* InsertParam::New(::google::protobuf::Arena* arena) const { - InsertParam* n = new InsertParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void InsertParam::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.InsertParam) - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && schema_ != NULL) delete schema_; - schema_ = NULL; - partition_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + rows_data_.Clear(); entity_id_array_.Clear(); extra_params_.Clear(); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + partition_tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && schema_ != nullptr) { + delete schema_; + } + schema_ = nullptr; + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* InsertParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string collection_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.InsertParam.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.grpc.Schema schema = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(mutable_schema(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .milvus.grpc.RowData rows_data = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_rows_data(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); + } else goto handle_unusual; + continue; + // repeated int64 entity_id_array = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_entity_id_array(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32) { + add_entity_id_array(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string partition_tag = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_partition_tag(), ptr, ctx, "milvus.grpc.InsertParam.partition_tag"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .milvus.grpc.KeyValuePair extra_params = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_extra_params(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 50); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool InsertParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.InsertParam) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string collection_name = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.InsertParam.collection_name")); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_schema; break; } - // optional .milvus.grpc.Schema schema = 2; + // .milvus.grpc.Schema schema = 2; case 2: { - if (tag == 18) { - parse_schema: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_schema())); } else { goto handle_unusual; } - if (input->ExpectTag(26)) goto parse_rows_data; break; } // repeated .milvus.grpc.RowData rows_data = 3; case 3: { - if (tag == 26) { - parse_rows_data: - DO_(input->IncrementRecursionDepth()); - parse_loop_rows_data: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_rows_data())); } else { goto handle_unusual; } - if (input->ExpectTag(26)) goto parse_loop_rows_data; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectTag(34)) goto parse_entity_id_array; break; } // repeated int64 entity_id_array = 4; case 4: { - if (tag == 34) { - parse_entity_id_array: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( input, this->mutable_entity_id_array()))); - } else if (tag == 32) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - 1, 34, input, this->mutable_entity_id_array()))); + } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + 1, 34u, input, this->mutable_entity_id_array()))); } else { goto handle_unusual; } - if (input->ExpectTag(42)) goto parse_partition_tag; break; } - // optional string partition_tag = 5; + // string partition_tag = 5; case 5: { - if (tag == 42) { - parse_partition_tag: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_partition_tag())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), this->partition_tag().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_tag().data(), static_cast(this->partition_tag().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.InsertParam.partition_tag")); } else { goto handle_unusual; } - if (input->ExpectTag(50)) goto parse_extra_params; break; } // repeated .milvus.grpc.KeyValuePair extra_params = 6; case 6: { - if (tag == 50) { - parse_extra_params: - DO_(input->IncrementRecursionDepth()); - parse_loop_extra_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_extra_params())); } else { goto handle_unusual; } - if (input->ExpectTag(50)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -7516,200 +6840,233 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void InsertParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.InsertParam) - // optional string collection_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.InsertParam.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->collection_name(), output); } - // optional .milvus.grpc.Schema schema = 2; + // .milvus.grpc.Schema schema = 2; if (this->has_schema()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *this->schema_, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, _Internal::schema(this), output); } // repeated .milvus.grpc.RowData rows_data = 3; - for (unsigned int i = 0, n = this->rows_data_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->rows_data(i), output); + for (unsigned int i = 0, + n = static_cast(this->rows_data_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, + this->rows_data(static_cast(i)), + output); } // repeated int64 entity_id_array = 4; if (this->entity_id_array_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_entity_id_array_cached_byte_size_); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(4, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_entity_id_array_cached_byte_size_.load( + std::memory_order_relaxed)); } - for (int i = 0; i < this->entity_id_array_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag( + for (int i = 0, n = this->entity_id_array_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( this->entity_id_array(i), output); } - // optional string partition_tag = 5; + // string partition_tag = 5; if (this->partition_tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), this->partition_tag().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_tag().data(), static_cast(this->partition_tag().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.InsertParam.partition_tag"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 5, this->partition_tag(), output); } // repeated .milvus.grpc.KeyValuePair extra_params = 6; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->extra_params(i), output); + for (unsigned int i = 0, + n = static_cast(this->extra_params_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, + this->extra_params(static_cast(i)), + output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.InsertParam) } -::google::protobuf::uint8* InsertParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* InsertParam::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.InsertParam) - // optional string collection_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.InsertParam.collection_name"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 1, this->collection_name(), target); } - // optional .milvus.grpc.Schema schema = 2; + // .milvus.grpc.Schema schema = 2; if (this->has_schema()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *this->schema_, false, target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, _Internal::schema(this), target); } // repeated .milvus.grpc.RowData rows_data = 3; - for (unsigned int i = 0, n = this->rows_data_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, this->rows_data(i), false, target); + for (unsigned int i = 0, + n = static_cast(this->rows_data_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->rows_data(static_cast(i)), target); } // repeated int64 entity_id_array = 4; if (this->entity_id_array_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( 4, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _entity_id_array_cached_byte_size_, target); - } - for (int i = 0; i < this->entity_id_array_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->entity_id_array(i), target); + target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( + _entity_id_array_cached_byte_size_.load(std::memory_order_relaxed), + target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteInt64NoTagToArray(this->entity_id_array_, target); } - // optional string partition_tag = 5; + // string partition_tag = 5; if (this->partition_tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), this->partition_tag().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_tag().data(), static_cast(this->partition_tag().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.InsertParam.partition_tag"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 5, this->partition_tag(), target); } // repeated .milvus.grpc.KeyValuePair extra_params = 6; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 6, this->extra_params(i), false, target); + for (unsigned int i = 0, + n = static_cast(this->extra_params_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, this->extra_params(static_cast(i)), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.InsertParam) return target; } -int InsertParam::ByteSize() const { +size_t InsertParam::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.InsertParam) - int total_size = 0; + size_t total_size = 0; - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // optional .milvus.grpc.Schema schema = 2; - if (this->has_schema()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->schema_); - } - - // optional string partition_tag = 5; - if (this->partition_tag().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->partition_tag()); + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; // repeated .milvus.grpc.RowData rows_data = 3; - total_size += 1 * this->rows_data_size(); - for (int i = 0; i < this->rows_data_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->rows_data(i)); + { + unsigned int count = static_cast(this->rows_data_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->rows_data(static_cast(i))); + } } // repeated int64 entity_id_array = 4; { - int data_size = 0; - for (int i = 0; i < this->entity_id_array_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int64Size(this->entity_id_array(i)); - } + size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + Int64Size(this->entity_id_array_); if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _entity_id_array_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _entity_id_array_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); total_size += data_size; } // repeated .milvus.grpc.KeyValuePair extra_params = 6; - total_size += 1 * this->extra_params_size(); - for (int i = 0; i < this->extra_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->extra_params(i)); + { + unsigned int count = static_cast(this->extra_params_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->extra_params(static_cast(i))); + } } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // string collection_name = 1; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // string partition_tag = 5; + if (this->partition_tag().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->partition_tag()); + } + + // .milvus.grpc.Schema schema = 2; + if (this->has_schema()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *schema_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void InsertParam::MergeFrom(const ::google::protobuf::Message& from) { +void InsertParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.InsertParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const InsertParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const InsertParam* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.InsertParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.InsertParam) MergeFrom(*source); @@ -7718,26 +7075,28 @@ void InsertParam::MergeFrom(const ::google::protobuf::Message& from) { void InsertParam::MergeFrom(const InsertParam& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.InsertParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + rows_data_.MergeFrom(from.rows_data_); entity_id_array_.MergeFrom(from.entity_id_array_); extra_params_.MergeFrom(from.extra_params_); if (from.collection_name().size() > 0) { - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.partition_tag().size() > 0) { + + partition_tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); } if (from.has_schema()) { mutable_schema()->::milvus::grpc::Schema::MergeFrom(from.schema()); } - if (from.partition_tag().size() > 0) { - - partition_tag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); - } } -void InsertParam::CopyFrom(const ::google::protobuf::Message& from) { +void InsertParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.InsertParam) if (&from == this) return; Clear(); @@ -7752,288 +7111,62 @@ void InsertParam::CopyFrom(const InsertParam& from) { } bool InsertParam::IsInitialized() const { - return true; } -void InsertParam::Swap(InsertParam* other) { - if (other == this) return; - InternalSwap(other); -} void InsertParam::InternalSwap(InsertParam* other) { - collection_name_.Swap(&other->collection_name_); - std::swap(schema_, other->schema_); - rows_data_.UnsafeArenaSwap(&other->rows_data_); - entity_id_array_.UnsafeArenaSwap(&other->entity_id_array_); - partition_tag_.Swap(&other->partition_tag_); - extra_params_.UnsafeArenaSwap(&other->extra_params_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + CastToBase(&rows_data_)->InternalSwap(CastToBase(&other->rows_data_)); + entity_id_array_.InternalSwap(&other->entity_id_array_); + CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + partition_tag_.Swap(&other->partition_tag_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(schema_, other->schema_); } -::google::protobuf::Metadata InsertParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = InsertParam_descriptor_; - metadata.reflection = InsertParam_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata InsertParam::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// InsertParam - -// optional string collection_name = 1; -void InsertParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& InsertParam::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void InsertParam::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.InsertParam.collection_name) -} - void InsertParam::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.InsertParam.collection_name) -} - void InsertParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.InsertParam.collection_name) -} - ::std::string* InsertParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* InsertParam::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.InsertParam.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void InsertParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.InsertParam.collection_name) -} - -// optional .milvus.grpc.Schema schema = 2; -bool InsertParam::has_schema() const { - return !_is_default_instance_ && schema_ != NULL; -} -void InsertParam::clear_schema() { - if (GetArenaNoVirtual() == NULL && schema_ != NULL) delete schema_; - schema_ = NULL; -} -const ::milvus::grpc::Schema& InsertParam::schema() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.schema) - return schema_ != NULL ? *schema_ : *default_instance_->schema_; -} -::milvus::grpc::Schema* InsertParam::mutable_schema() { - - if (schema_ == NULL) { - schema_ = new ::milvus::grpc::Schema; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertParam.schema) - return schema_; -} -::milvus::grpc::Schema* InsertParam::release_schema() { - // @@protoc_insertion_point(field_release:milvus.grpc.InsertParam.schema) - - ::milvus::grpc::Schema* temp = schema_; - schema_ = NULL; - return temp; -} -void InsertParam::set_allocated_schema(::milvus::grpc::Schema* schema) { - delete schema_; - schema_ = schema; - if (schema) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.InsertParam.schema) -} - -// repeated .milvus.grpc.RowData rows_data = 3; -int InsertParam::rows_data_size() const { - return rows_data_.size(); -} -void InsertParam::clear_rows_data() { - rows_data_.Clear(); -} -const ::milvus::grpc::RowData& InsertParam::rows_data(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.rows_data) - return rows_data_.Get(index); -} -::milvus::grpc::RowData* InsertParam::mutable_rows_data(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertParam.rows_data) - return rows_data_.Mutable(index); -} -::milvus::grpc::RowData* InsertParam::add_rows_data() { - // @@protoc_insertion_point(field_add:milvus.grpc.InsertParam.rows_data) - return rows_data_.Add(); -} -::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowData >* -InsertParam::mutable_rows_data() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.InsertParam.rows_data) - return &rows_data_; -} -const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowData >& -InsertParam::rows_data() const { - // @@protoc_insertion_point(field_list:milvus.grpc.InsertParam.rows_data) - return rows_data_; -} - -// repeated int64 entity_id_array = 4; -int InsertParam::entity_id_array_size() const { - return entity_id_array_.size(); -} -void InsertParam::clear_entity_id_array() { - entity_id_array_.Clear(); -} - ::google::protobuf::int64 InsertParam::entity_id_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.entity_id_array) - return entity_id_array_.Get(index); -} - void InsertParam::set_entity_id_array(int index, ::google::protobuf::int64 value) { - entity_id_array_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.InsertParam.entity_id_array) -} - void InsertParam::add_entity_id_array(::google::protobuf::int64 value) { - entity_id_array_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.InsertParam.entity_id_array) -} - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -InsertParam::entity_id_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.InsertParam.entity_id_array) - return entity_id_array_; -} - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -InsertParam::mutable_entity_id_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.InsertParam.entity_id_array) - return &entity_id_array_; -} - -// optional string partition_tag = 5; -void InsertParam::clear_partition_tag() { - partition_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& InsertParam::partition_tag() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.partition_tag) - return partition_tag_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void InsertParam::set_partition_tag(const ::std::string& value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.InsertParam.partition_tag) -} - void InsertParam::set_partition_tag(const char* value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.InsertParam.partition_tag) -} - void InsertParam::set_partition_tag(const char* value, size_t size) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.InsertParam.partition_tag) -} - ::std::string* InsertParam::mutable_partition_tag() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertParam.partition_tag) - return partition_tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* InsertParam::release_partition_tag() { - // @@protoc_insertion_point(field_release:milvus.grpc.InsertParam.partition_tag) - - return partition_tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void InsertParam::set_allocated_partition_tag(::std::string* partition_tag) { - if (partition_tag != NULL) { - - } else { - - } - partition_tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), partition_tag); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.InsertParam.partition_tag) -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 6; -int InsertParam::extra_params_size() const { - return extra_params_.size(); -} -void InsertParam::clear_extra_params() { - extra_params_.Clear(); -} -const ::milvus::grpc::KeyValuePair& InsertParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.extra_params) - return extra_params_.Get(index); -} -::milvus::grpc::KeyValuePair* InsertParam::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertParam.extra_params) - return extra_params_.Mutable(index); -} -::milvus::grpc::KeyValuePair* InsertParam::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.InsertParam.extra_params) - return extra_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -InsertParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.InsertParam.extra_params) - return &extra_params_; -} -const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -InsertParam::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.InsertParam.extra_params) - return extra_params_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SearchParam::kCollectionNameFieldNumber; -const int SearchParam::kVectorParamFieldNumber; -const int SearchParam::kDslFieldNumber; -const int SearchParam::kPartitionTagFieldNumber; -const int SearchParam::kExtraParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void SearchParam::InitAsDefaultInstance() { +} +class SearchParam::_Internal { + public: +}; SearchParam::SearchParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.SearchParam) } - -void SearchParam::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - SearchParam::SearchParam(const SearchParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + vector_param_(from.vector_param_), + partition_tag_(from.partition_tag_), + extra_params_(from.extra_params_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + dsl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.dsl().empty()) { + dsl_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.dsl_); + } // @@protoc_insertion_point(copy_constructor:milvus.grpc.SearchParam) } void SearchParam::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - dsl_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SearchParam_suvlim_2eproto.base); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + dsl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } SearchParam::~SearchParam() { @@ -8042,150 +7175,196 @@ SearchParam::~SearchParam() { } void SearchParam::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - dsl_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + dsl_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void SearchParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* SearchParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SearchParam_descriptor_; -} - const SearchParam& SearchParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchParam_suvlim_2eproto.base); + return *internal_default_instance(); } -SearchParam* SearchParam::default_instance_ = NULL; - -SearchParam* SearchParam::New(::google::protobuf::Arena* arena) const { - SearchParam* n = new SearchParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void SearchParam::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.SearchParam) - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - dsl_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + vector_param_.Clear(); partition_tag_.Clear(); extra_params_.Clear(); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + dsl_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SearchParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string collection_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.SearchParam.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .milvus.grpc.VectorParam vector_param = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_vector_param(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); + } else goto handle_unusual; + continue; + // string dsl = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_dsl(), ptr, ctx, "milvus.grpc.SearchParam.dsl"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated string partition_tag = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_partition_tag(), ptr, ctx, "milvus.grpc.SearchParam.partition_tag"); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34); + } else goto handle_unusual; + continue; + // repeated .milvus.grpc.KeyValuePair extra_params = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_extra_params(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 42); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool SearchParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.SearchParam) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string collection_name = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.SearchParam.collection_name")); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_vector_param; break; } // repeated .milvus.grpc.VectorParam vector_param = 2; case 2: { - if (tag == 18) { - parse_vector_param: - DO_(input->IncrementRecursionDepth()); - parse_loop_vector_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_vector_param())); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_loop_vector_param; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectTag(26)) goto parse_dsl; break; } - // optional string dsl = 3; + // string dsl = 3; case 3: { - if (tag == 26) { - parse_dsl: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_dsl())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->dsl().data(), this->dsl().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->dsl().data(), static_cast(this->dsl().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.SearchParam.dsl")); } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_partition_tag; break; } // repeated string partition_tag = 4; case 4: { - if (tag == 34) { - parse_partition_tag: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->add_partition_tag())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->partition_tag(this->partition_tag_size() - 1).data(), - this->partition_tag(this->partition_tag_size() - 1).length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + static_cast(this->partition_tag(this->partition_tag_size() - 1).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.SearchParam.partition_tag")); } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_partition_tag; - if (input->ExpectTag(42)) goto parse_extra_params; break; } // repeated .milvus.grpc.KeyValuePair extra_params = 5; case 5: { - if (tag == 42) { - parse_extra_params: - DO_(input->IncrementRecursionDepth()); - parse_loop_extra_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_extra_params())); } else { goto handle_unusual; } - if (input->ExpectTag(42)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -8198,166 +7377,202 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SearchParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.SearchParam) - // optional string collection_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.SearchParam.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->collection_name(), output); } // repeated .milvus.grpc.VectorParam vector_param = 2; - for (unsigned int i = 0, n = this->vector_param_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->vector_param(i), output); + for (unsigned int i = 0, + n = static_cast(this->vector_param_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, + this->vector_param(static_cast(i)), + output); } - // optional string dsl = 3; + // string dsl = 3; if (this->dsl().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->dsl().data(), this->dsl().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->dsl().data(), static_cast(this->dsl().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.SearchParam.dsl"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 3, this->dsl(), output); } // repeated string partition_tag = 4; - for (int i = 0; i < this->partition_tag_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag(i).data(), this->partition_tag(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + for (int i = 0, n = this->partition_tag_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_tag(i).data(), static_cast(this->partition_tag(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.SearchParam.partition_tag"); - ::google::protobuf::internal::WireFormatLite::WriteString( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( 4, this->partition_tag(i), output); } // repeated .milvus.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->extra_params(i), output); + for (unsigned int i = 0, + n = static_cast(this->extra_params_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, + this->extra_params(static_cast(i)), + output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.SearchParam) } -::google::protobuf::uint8* SearchParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* SearchParam::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.SearchParam) - // optional string collection_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.SearchParam.collection_name"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 1, this->collection_name(), target); } // repeated .milvus.grpc.VectorParam vector_param = 2; - for (unsigned int i = 0, n = this->vector_param_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, this->vector_param(i), false, target); + for (unsigned int i = 0, + n = static_cast(this->vector_param_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->vector_param(static_cast(i)), target); } - // optional string dsl = 3; + // string dsl = 3; if (this->dsl().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->dsl().data(), this->dsl().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->dsl().data(), static_cast(this->dsl().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.SearchParam.dsl"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 3, this->dsl(), target); } // repeated string partition_tag = 4; - for (int i = 0; i < this->partition_tag_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag(i).data(), this->partition_tag(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + for (int i = 0, n = this->partition_tag_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_tag(i).data(), static_cast(this->partition_tag(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.SearchParam.partition_tag"); - target = ::google::protobuf::internal::WireFormatLite:: + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: WriteStringToArray(4, this->partition_tag(i), target); } // repeated .milvus.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 5, this->extra_params(i), false, target); + for (unsigned int i = 0, + n = static_cast(this->extra_params_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->extra_params(static_cast(i)), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SearchParam) return target; } -int SearchParam::ByteSize() const { +size_t SearchParam::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.SearchParam) - int total_size = 0; + size_t total_size = 0; - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // optional string dsl = 3; - if (this->dsl().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->dsl()); + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; // repeated .milvus.grpc.VectorParam vector_param = 2; - total_size += 1 * this->vector_param_size(); - for (int i = 0; i < this->vector_param_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->vector_param(i)); + { + unsigned int count = static_cast(this->vector_param_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->vector_param(static_cast(i))); + } } // repeated string partition_tag = 4; - total_size += 1 * this->partition_tag_size(); - for (int i = 0; i < this->partition_tag_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->partition_tag_size()); + for (int i = 0, n = this->partition_tag_size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->partition_tag(i)); } // repeated .milvus.grpc.KeyValuePair extra_params = 5; - total_size += 1 * this->extra_params_size(); - for (int i = 0; i < this->extra_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->extra_params(i)); + { + unsigned int count = static_cast(this->extra_params_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->extra_params(static_cast(i))); + } } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // string collection_name = 1; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // string dsl = 3; + if (this->dsl().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->dsl()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void SearchParam::MergeFrom(const ::google::protobuf::Message& from) { +void SearchParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.SearchParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const SearchParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const SearchParam* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.SearchParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SearchParam) MergeFrom(*source); @@ -8366,23 +7581,25 @@ void SearchParam::MergeFrom(const ::google::protobuf::Message& from) { void SearchParam::MergeFrom(const SearchParam& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.SearchParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + vector_param_.MergeFrom(from.vector_param_); partition_tag_.MergeFrom(from.partition_tag_); extra_params_.MergeFrom(from.extra_params_); if (from.collection_name().size() > 0) { - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); } if (from.dsl().size() > 0) { - dsl_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dsl_); + dsl_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.dsl_); } } -void SearchParam::CopyFrom(const ::google::protobuf::Message& from) { +void SearchParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.SearchParam) if (&from == this) return; Clear(); @@ -8397,271 +7614,62 @@ void SearchParam::CopyFrom(const SearchParam& from) { } bool SearchParam::IsInitialized() const { - return true; } -void SearchParam::Swap(SearchParam* other) { - if (other == this) return; - InternalSwap(other); -} void SearchParam::InternalSwap(SearchParam* other) { - collection_name_.Swap(&other->collection_name_); - vector_param_.UnsafeArenaSwap(&other->vector_param_); - dsl_.Swap(&other->dsl_); - partition_tag_.UnsafeArenaSwap(&other->partition_tag_); - extra_params_.UnsafeArenaSwap(&other->extra_params_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + CastToBase(&vector_param_)->InternalSwap(CastToBase(&other->vector_param_)); + partition_tag_.InternalSwap(CastToBase(&other->partition_tag_)); + CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + dsl_.Swap(&other->dsl_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); } -::google::protobuf::Metadata SearchParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SearchParam_descriptor_; - metadata.reflection = SearchParam_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata SearchParam::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SearchParam - -// optional string collection_name = 1; -void SearchParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& SearchParam::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void SearchParam::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.SearchParam.collection_name) -} - void SearchParam::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchParam.collection_name) -} - void SearchParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchParam.collection_name) -} - ::std::string* SearchParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* SearchParam::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.SearchParam.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void SearchParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchParam.collection_name) -} - -// repeated .milvus.grpc.VectorParam vector_param = 2; -int SearchParam::vector_param_size() const { - return vector_param_.size(); -} -void SearchParam::clear_vector_param() { - vector_param_.Clear(); -} -const ::milvus::grpc::VectorParam& SearchParam::vector_param(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.vector_param) - return vector_param_.Get(index); -} -::milvus::grpc::VectorParam* SearchParam::mutable_vector_param(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParam.vector_param) - return vector_param_.Mutable(index); -} -::milvus::grpc::VectorParam* SearchParam::add_vector_param() { - // @@protoc_insertion_point(field_add:milvus.grpc.SearchParam.vector_param) - return vector_param_.Add(); -} -::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorParam >* -SearchParam::mutable_vector_param() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchParam.vector_param) - return &vector_param_; -} -const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorParam >& -SearchParam::vector_param() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchParam.vector_param) - return vector_param_; -} - -// optional string dsl = 3; -void SearchParam::clear_dsl() { - dsl_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& SearchParam::dsl() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.dsl) - return dsl_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void SearchParam::set_dsl(const ::std::string& value) { - - dsl_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.SearchParam.dsl) -} - void SearchParam::set_dsl(const char* value) { - - dsl_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchParam.dsl) -} - void SearchParam::set_dsl(const char* value, size_t size) { - - dsl_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchParam.dsl) -} - ::std::string* SearchParam::mutable_dsl() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParam.dsl) - return dsl_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* SearchParam::release_dsl() { - // @@protoc_insertion_point(field_release:milvus.grpc.SearchParam.dsl) - - return dsl_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void SearchParam::set_allocated_dsl(::std::string* dsl) { - if (dsl != NULL) { - - } else { - - } - dsl_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), dsl); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchParam.dsl) -} - -// repeated string partition_tag = 4; -int SearchParam::partition_tag_size() const { - return partition_tag_.size(); -} -void SearchParam::clear_partition_tag() { - partition_tag_.Clear(); -} - const ::std::string& SearchParam::partition_tag(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.partition_tag) - return partition_tag_.Get(index); -} - ::std::string* SearchParam::mutable_partition_tag(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParam.partition_tag) - return partition_tag_.Mutable(index); -} - void SearchParam::set_partition_tag(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.SearchParam.partition_tag) - partition_tag_.Mutable(index)->assign(value); -} - void SearchParam::set_partition_tag(int index, const char* value) { - partition_tag_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchParam.partition_tag) -} - void SearchParam::set_partition_tag(int index, const char* value, size_t size) { - partition_tag_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchParam.partition_tag) -} - ::std::string* SearchParam::add_partition_tag() { - // @@protoc_insertion_point(field_add_mutable:milvus.grpc.SearchParam.partition_tag) - return partition_tag_.Add(); -} - void SearchParam::add_partition_tag(const ::std::string& value) { - partition_tag_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.grpc.SearchParam.partition_tag) -} - void SearchParam::add_partition_tag(const char* value) { - partition_tag_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.grpc.SearchParam.partition_tag) -} - void SearchParam::add_partition_tag(const char* value, size_t size) { - partition_tag_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.grpc.SearchParam.partition_tag) -} - const ::google::protobuf::RepeatedPtrField< ::std::string>& -SearchParam::partition_tag() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchParam.partition_tag) - return partition_tag_; -} - ::google::protobuf::RepeatedPtrField< ::std::string>* -SearchParam::mutable_partition_tag() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchParam.partition_tag) - return &partition_tag_; -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 5; -int SearchParam::extra_params_size() const { - return extra_params_.size(); -} -void SearchParam::clear_extra_params() { - extra_params_.Clear(); -} -const ::milvus::grpc::KeyValuePair& SearchParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.extra_params) - return extra_params_.Get(index); -} -::milvus::grpc::KeyValuePair* SearchParam::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParam.extra_params) - return extra_params_.Mutable(index); -} -::milvus::grpc::KeyValuePair* SearchParam::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.SearchParam.extra_params) - return extra_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -SearchParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchParam.extra_params) - return &extra_params_; -} -const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -SearchParam::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchParam.extra_params) - return extra_params_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SearchInSegmentParam::kFileIdArrayFieldNumber; -const int SearchInSegmentParam::kSearchParamFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void SearchInSegmentParam::InitAsDefaultInstance() { + ::milvus::grpc::_SearchInSegmentParam_default_instance_._instance.get_mutable()->search_param_ = const_cast< ::milvus::grpc::SearchParam*>( + ::milvus::grpc::SearchParam::internal_default_instance()); +} +class SearchInSegmentParam::_Internal { + public: + static const ::milvus::grpc::SearchParam& search_param(const SearchInSegmentParam* msg); +}; +const ::milvus::grpc::SearchParam& +SearchInSegmentParam::_Internal::search_param(const SearchInSegmentParam* msg) { + return *msg->search_param_; +} SearchInSegmentParam::SearchInSegmentParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.SearchInSegmentParam) } - -void SearchInSegmentParam::InitAsDefaultInstance() { - _is_default_instance_ = true; - search_param_ = const_cast< ::milvus::grpc::SearchParam*>(&::milvus::grpc::SearchParam::default_instance()); -} - SearchInSegmentParam::SearchInSegmentParam(const SearchInSegmentParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + file_id_array_(from.file_id_array_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_search_param()) { + search_param_ = new ::milvus::grpc::SearchParam(*from.search_param_); + } else { + search_param_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:milvus.grpc.SearchInSegmentParam) } void SearchInSegmentParam::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - search_param_ = NULL; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SearchInSegmentParam_suvlim_2eproto.base); + search_param_ = nullptr; } SearchInSegmentParam::~SearchInSegmentParam() { @@ -8670,93 +7678,123 @@ SearchInSegmentParam::~SearchInSegmentParam() { } void SearchInSegmentParam::SharedDtor() { - if (this != default_instance_) { - delete search_param_; - } + if (this != internal_default_instance()) delete search_param_; } void SearchInSegmentParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* SearchInSegmentParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SearchInSegmentParam_descriptor_; -} - const SearchInSegmentParam& SearchInSegmentParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchInSegmentParam_suvlim_2eproto.base); + return *internal_default_instance(); } -SearchInSegmentParam* SearchInSegmentParam::default_instance_ = NULL; - -SearchInSegmentParam* SearchInSegmentParam::New(::google::protobuf::Arena* arena) const { - SearchInSegmentParam* n = new SearchInSegmentParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void SearchInSegmentParam::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.SearchInSegmentParam) - if (GetArenaNoVirtual() == NULL && search_param_ != NULL) delete search_param_; - search_param_ = NULL; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + file_id_array_.Clear(); + if (GetArenaNoVirtual() == nullptr && search_param_ != nullptr) { + delete search_param_; + } + search_param_ = nullptr; + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SearchInSegmentParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated string file_id_array = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_file_id_array(), ptr, ctx, "milvus.grpc.SearchInSegmentParam.file_id_array"); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); + } else goto handle_unusual; + continue; + // .milvus.grpc.SearchParam search_param = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(mutable_search_param(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool SearchInSegmentParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.SearchInSegmentParam) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated string file_id_array = 1; case 1: { - if (tag == 10) { - parse_file_id_array: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->add_file_id_array())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->file_id_array(this->file_id_array_size() - 1).data(), - this->file_id_array(this->file_id_array_size() - 1).length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + static_cast(this->file_id_array(this->file_id_array_size() - 1).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.SearchInSegmentParam.file_id_array")); } else { goto handle_unusual; } - if (input->ExpectTag(10)) goto parse_file_id_array; - if (input->ExpectTag(18)) goto parse_search_param; break; } - // optional .milvus.grpc.SearchParam search_param = 2; + // .milvus.grpc.SearchParam search_param = 2; case 2: { - if (tag == 18) { - parse_search_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_search_param())); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -8769,88 +7807,110 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SearchInSegmentParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.SearchInSegmentParam) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated string file_id_array = 1; - for (int i = 0; i < this->file_id_array_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->file_id_array(i).data(), this->file_id_array(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + for (int i = 0, n = this->file_id_array_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->file_id_array(i).data(), static_cast(this->file_id_array(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.SearchInSegmentParam.file_id_array"); - ::google::protobuf::internal::WireFormatLite::WriteString( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( 1, this->file_id_array(i), output); } - // optional .milvus.grpc.SearchParam search_param = 2; + // .milvus.grpc.SearchParam search_param = 2; if (this->has_search_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *this->search_param_, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, _Internal::search_param(this), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.SearchInSegmentParam) } -::google::protobuf::uint8* SearchInSegmentParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* SearchInSegmentParam::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.SearchInSegmentParam) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated string file_id_array = 1; - for (int i = 0; i < this->file_id_array_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->file_id_array(i).data(), this->file_id_array(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + for (int i = 0, n = this->file_id_array_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->file_id_array(i).data(), static_cast(this->file_id_array(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.SearchInSegmentParam.file_id_array"); - target = ::google::protobuf::internal::WireFormatLite:: + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: WriteStringToArray(1, this->file_id_array(i), target); } - // optional .milvus.grpc.SearchParam search_param = 2; + // .milvus.grpc.SearchParam search_param = 2; if (this->has_search_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *this->search_param_, false, target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, _Internal::search_param(this), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SearchInSegmentParam) return target; } -int SearchInSegmentParam::ByteSize() const { +size_t SearchInSegmentParam::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.SearchInSegmentParam) - int total_size = 0; + size_t total_size = 0; - // optional .milvus.grpc.SearchParam search_param = 2; - if (this->has_search_param()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->search_param_); + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; // repeated string file_id_array = 1; - total_size += 1 * this->file_id_array_size(); - for (int i = 0; i < this->file_id_array_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->file_id_array_size()); + for (int i = 0, n = this->file_id_array_size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->file_id_array(i)); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // .milvus.grpc.SearchParam search_param = 2; + if (this->has_search_param()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *search_param_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void SearchInSegmentParam::MergeFrom(const ::google::protobuf::Message& from) { +void SearchInSegmentParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.SearchInSegmentParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const SearchInSegmentParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const SearchInSegmentParam* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.SearchInSegmentParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SearchInSegmentParam) MergeFrom(*source); @@ -8859,16 +7919,18 @@ void SearchInSegmentParam::MergeFrom(const ::google::protobuf::Message& from) { void SearchInSegmentParam::MergeFrom(const SearchInSegmentParam& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.SearchInSegmentParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + file_id_array_.MergeFrom(from.file_id_array_); if (from.has_search_param()) { mutable_search_param()->::milvus::grpc::SearchParam::MergeFrom(from.search_param()); } } -void SearchInSegmentParam::CopyFrom(const ::google::protobuf::Message& from) { +void SearchInSegmentParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.SearchInSegmentParam) if (&from == this) return; Clear(); @@ -8883,159 +7945,65 @@ void SearchInSegmentParam::CopyFrom(const SearchInSegmentParam& from) { } bool SearchInSegmentParam::IsInitialized() const { - return true; } -void SearchInSegmentParam::Swap(SearchInSegmentParam* other) { - if (other == this) return; - InternalSwap(other); -} void SearchInSegmentParam::InternalSwap(SearchInSegmentParam* other) { - file_id_array_.UnsafeArenaSwap(&other->file_id_array_); - std::swap(search_param_, other->search_param_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + file_id_array_.InternalSwap(CastToBase(&other->file_id_array_)); + swap(search_param_, other->search_param_); } -::google::protobuf::Metadata SearchInSegmentParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SearchInSegmentParam_descriptor_; - metadata.reflection = SearchInSegmentParam_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata SearchInSegmentParam::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SearchInSegmentParam - -// repeated string file_id_array = 1; -int SearchInSegmentParam::file_id_array_size() const { - return file_id_array_.size(); -} -void SearchInSegmentParam::clear_file_id_array() { - file_id_array_.Clear(); -} - const ::std::string& SearchInSegmentParam::file_id_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchInSegmentParam.file_id_array) - return file_id_array_.Get(index); -} - ::std::string* SearchInSegmentParam::mutable_file_id_array(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchInSegmentParam.file_id_array) - return file_id_array_.Mutable(index); -} - void SearchInSegmentParam::set_file_id_array(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.SearchInSegmentParam.file_id_array) - file_id_array_.Mutable(index)->assign(value); -} - void SearchInSegmentParam::set_file_id_array(int index, const char* value) { - file_id_array_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchInSegmentParam.file_id_array) -} - void SearchInSegmentParam::set_file_id_array(int index, const char* value, size_t size) { - file_id_array_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchInSegmentParam.file_id_array) -} - ::std::string* SearchInSegmentParam::add_file_id_array() { - // @@protoc_insertion_point(field_add_mutable:milvus.grpc.SearchInSegmentParam.file_id_array) - return file_id_array_.Add(); -} - void SearchInSegmentParam::add_file_id_array(const ::std::string& value) { - file_id_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.grpc.SearchInSegmentParam.file_id_array) -} - void SearchInSegmentParam::add_file_id_array(const char* value) { - file_id_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.grpc.SearchInSegmentParam.file_id_array) -} - void SearchInSegmentParam::add_file_id_array(const char* value, size_t size) { - file_id_array_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.grpc.SearchInSegmentParam.file_id_array) -} - const ::google::protobuf::RepeatedPtrField< ::std::string>& -SearchInSegmentParam::file_id_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchInSegmentParam.file_id_array) - return file_id_array_; -} - ::google::protobuf::RepeatedPtrField< ::std::string>* -SearchInSegmentParam::mutable_file_id_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchInSegmentParam.file_id_array) - return &file_id_array_; -} - -// optional .milvus.grpc.SearchParam search_param = 2; -bool SearchInSegmentParam::has_search_param() const { - return !_is_default_instance_ && search_param_ != NULL; -} -void SearchInSegmentParam::clear_search_param() { - if (GetArenaNoVirtual() == NULL && search_param_ != NULL) delete search_param_; - search_param_ = NULL; -} -const ::milvus::grpc::SearchParam& SearchInSegmentParam::search_param() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchInSegmentParam.search_param) - return search_param_ != NULL ? *search_param_ : *default_instance_->search_param_; -} -::milvus::grpc::SearchParam* SearchInSegmentParam::mutable_search_param() { - - if (search_param_ == NULL) { - search_param_ = new ::milvus::grpc::SearchParam; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchInSegmentParam.search_param) - return search_param_; -} -::milvus::grpc::SearchParam* SearchInSegmentParam::release_search_param() { - // @@protoc_insertion_point(field_release:milvus.grpc.SearchInSegmentParam.search_param) - - ::milvus::grpc::SearchParam* temp = search_param_; - search_param_ = NULL; - return temp; -} -void SearchInSegmentParam::set_allocated_search_param(::milvus::grpc::SearchParam* search_param) { - delete search_param_; - search_param_ = search_param; - if (search_param) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchInSegmentParam.search_param) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Entities::kStatusFieldNumber; -const int Entities::kIdsFieldNumber; -const int Entities::kValidRowFieldNumber; -const int Entities::kRowsDataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void Entities::InitAsDefaultInstance() { + ::milvus::grpc::_Entities_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( + ::milvus::grpc::Status::internal_default_instance()); +} +class Entities::_Internal { + public: + static const ::milvus::grpc::Status& status(const Entities* msg); +}; +const ::milvus::grpc::Status& +Entities::_Internal::status(const Entities* msg) { + return *msg->status_; +} +void Entities::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} Entities::Entities() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.Entities) } - -void Entities::InitAsDefaultInstance() { - _is_default_instance_ = true; - status_ = const_cast< ::milvus::grpc::Status*>(&::milvus::grpc::Status::default_instance()); -} - Entities::Entities(const Entities& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + ids_(from.ids_), + valid_row_(from.valid_row_), + rows_data_(from.rows_data_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_status()) { + status_ = new ::milvus::grpc::Status(*from.status_); + } else { + status_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:milvus.grpc.Entities) } void Entities::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - status_ = NULL; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Entities_suvlim_2eproto.base); + status_ = nullptr; } Entities::~Entities() { @@ -9044,128 +8012,172 @@ Entities::~Entities() { } void Entities::SharedDtor() { - if (this != default_instance_) { - delete status_; - } + if (this != internal_default_instance()) delete status_; } void Entities::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* Entities::descriptor() { - protobuf_AssignDescriptorsOnce(); - return Entities_descriptor_; -} - const Entities& Entities::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Entities_suvlim_2eproto.base); + return *internal_default_instance(); } -Entities* Entities::default_instance_ = NULL; - -Entities* Entities::New(::google::protobuf::Arena* arena) const { - Entities* n = new Entities; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void Entities::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.Entities) - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + ids_.Clear(); valid_row_.Clear(); rows_data_.Clear(); + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Entities::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.grpc.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated int64 ids = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_ids(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) { + add_ids(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated bool valid_row = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedBoolParser(mutable_valid_row(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24) { + add_valid_row(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .milvus.grpc.RowData rows_data = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_rows_data(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool Entities::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.Entities) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .milvus.grpc.Status status = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.grpc.Status status = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_ids; break; } // repeated int64 ids = 2; case 2: { - if (tag == 18) { - parse_ids: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( input, this->mutable_ids()))); - } else if (tag == 16) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - 1, 18, input, this->mutable_ids()))); + } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + 1, 18u, input, this->mutable_ids()))); } else { goto handle_unusual; } - if (input->ExpectTag(26)) goto parse_valid_row; break; } // repeated bool valid_row = 3; case 3: { - if (tag == 26) { - parse_valid_row: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< + bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( input, this->mutable_valid_row()))); - } else if (tag == 24) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - 1, 26, input, this->mutable_valid_row()))); + } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( + 1, 26u, input, this->mutable_valid_row()))); } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_rows_data; break; } // repeated .milvus.grpc.RowData rows_data = 4; case 4: { - if (tag == 34) { - parse_rows_data: - DO_(input->IncrementRecursionDepth()); - parse_loop_rows_data: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_rows_data())); } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_loop_rows_data; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -9178,161 +8190,186 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void Entities::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.Entities) - // optional .milvus.grpc.Status status = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->status_, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); } // repeated int64 ids = 2; if (this->ids_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_ids_cached_byte_size_); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(2, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_ids_cached_byte_size_.load( + std::memory_order_relaxed)); } - for (int i = 0; i < this->ids_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag( + for (int i = 0, n = this->ids_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( this->ids(i), output); } // repeated bool valid_row = 3; if (this->valid_row_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_valid_row_cached_byte_size_); - } - for (int i = 0; i < this->valid_row_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteBoolNoTag( - this->valid_row(i), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(3, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_valid_row_cached_byte_size_.load( + std::memory_order_relaxed)); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolArray( + this->valid_row().data(), this->valid_row_size(), output); } // repeated .milvus.grpc.RowData rows_data = 4; - for (unsigned int i = 0, n = this->rows_data_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->rows_data(i), output); + for (unsigned int i = 0, + n = static_cast(this->rows_data_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, + this->rows_data(static_cast(i)), + output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.Entities) } -::google::protobuf::uint8* Entities::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* Entities::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Entities) - // optional .milvus.grpc.Status status = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->status_, false, target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); } // repeated int64 ids = 2; if (this->ids_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( 2, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _ids_cached_byte_size_, target); - } - for (int i = 0; i < this->ids_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->ids(i), target); + target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( + _ids_cached_byte_size_.load(std::memory_order_relaxed), + target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteInt64NoTagToArray(this->ids_, target); } // repeated bool valid_row = 3; if (this->valid_row_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( 3, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _valid_row_cached_byte_size_, target); - } - for (int i = 0; i < this->valid_row_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteBoolNoTagToArray(this->valid_row(i), target); + target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( + _valid_row_cached_byte_size_.load(std::memory_order_relaxed), + target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteBoolNoTagToArray(this->valid_row_, target); } // repeated .milvus.grpc.RowData rows_data = 4; - for (unsigned int i = 0, n = this->rows_data_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, this->rows_data(i), false, target); + for (unsigned int i = 0, + n = static_cast(this->rows_data_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->rows_data(static_cast(i)), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Entities) return target; } -int Entities::ByteSize() const { +size_t Entities::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.Entities) - int total_size = 0; + size_t total_size = 0; - // optional .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->status_); + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; // repeated int64 ids = 2; { - int data_size = 0; - for (int i = 0; i < this->ids_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int64Size(this->ids(i)); - } + size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + Int64Size(this->ids_); if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _ids_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _ids_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); total_size += data_size; } // repeated bool valid_row = 3; { - int data_size = 0; - data_size = 1 * this->valid_row_size(); + unsigned int count = static_cast(this->valid_row_size()); + size_t data_size = 1UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _valid_row_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _valid_row_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); total_size += data_size; } // repeated .milvus.grpc.RowData rows_data = 4; - total_size += 1 * this->rows_data_size(); - for (int i = 0; i < this->rows_data_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->rows_data(i)); + { + unsigned int count = static_cast(this->rows_data_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->rows_data(static_cast(i))); + } } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // .milvus.grpc.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void Entities::MergeFrom(const ::google::protobuf::Message& from) { +void Entities::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.Entities) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const Entities* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const Entities* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.Entities) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Entities) MergeFrom(*source); @@ -9341,9 +8378,11 @@ void Entities::MergeFrom(const ::google::protobuf::Message& from) { void Entities::MergeFrom(const Entities& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.Entities) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + ids_.MergeFrom(from.ids_); valid_row_.MergeFrom(from.valid_row_); rows_data_.MergeFrom(from.rows_data_); @@ -9352,7 +8391,7 @@ void Entities::MergeFrom(const Entities& from) { } } -void Entities::CopyFrom(const ::google::protobuf::Message& from) { +void Entities::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Entities) if (&from == this) return; Clear(); @@ -9367,201 +8406,82 @@ void Entities::CopyFrom(const Entities& from) { } bool Entities::IsInitialized() const { - return true; } -void Entities::Swap(Entities* other) { - if (other == this) return; - InternalSwap(other); -} void Entities::InternalSwap(Entities* other) { - std::swap(status_, other->status_); - ids_.UnsafeArenaSwap(&other->ids_); - valid_row_.UnsafeArenaSwap(&other->valid_row_); - rows_data_.UnsafeArenaSwap(&other->rows_data_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + ids_.InternalSwap(&other->ids_); + valid_row_.InternalSwap(&other->valid_row_); + CastToBase(&rows_data_)->InternalSwap(CastToBase(&other->rows_data_)); + swap(status_, other->status_); } -::google::protobuf::Metadata Entities::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = Entities_descriptor_; - metadata.reflection = Entities_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata Entities::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// Entities - -// optional .milvus.grpc.Status status = 1; -bool Entities::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -void Entities::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -const ::milvus::grpc::Status& Entities::status() const { - // @@protoc_insertion_point(field_get:milvus.grpc.Entities.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -::milvus::grpc::Status* Entities::mutable_status() { - - if (status_ == NULL) { - status_ = new ::milvus::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.Entities.status) - return status_; -} -::milvus::grpc::Status* Entities::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.Entities.status) - - ::milvus::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -void Entities::set_allocated_status(::milvus::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Entities.status) -} - -// repeated int64 ids = 2; -int Entities::ids_size() const { - return ids_.size(); -} -void Entities::clear_ids() { - ids_.Clear(); -} - ::google::protobuf::int64 Entities::ids(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.Entities.ids) - return ids_.Get(index); -} - void Entities::set_ids(int index, ::google::protobuf::int64 value) { - ids_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.Entities.ids) -} - void Entities::add_ids(::google::protobuf::int64 value) { - ids_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.Entities.ids) -} - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -Entities::ids() const { - // @@protoc_insertion_point(field_list:milvus.grpc.Entities.ids) - return ids_; -} - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -Entities::mutable_ids() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Entities.ids) - return &ids_; -} - -// repeated bool valid_row = 3; -int Entities::valid_row_size() const { - return valid_row_.size(); -} -void Entities::clear_valid_row() { - valid_row_.Clear(); -} - bool Entities::valid_row(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.Entities.valid_row) - return valid_row_.Get(index); -} - void Entities::set_valid_row(int index, bool value) { - valid_row_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.Entities.valid_row) -} - void Entities::add_valid_row(bool value) { - valid_row_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.Entities.valid_row) -} - const ::google::protobuf::RepeatedField< bool >& -Entities::valid_row() const { - // @@protoc_insertion_point(field_list:milvus.grpc.Entities.valid_row) - return valid_row_; -} - ::google::protobuf::RepeatedField< bool >* -Entities::mutable_valid_row() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Entities.valid_row) - return &valid_row_; -} - -// repeated .milvus.grpc.RowData rows_data = 4; -int Entities::rows_data_size() const { - return rows_data_.size(); -} -void Entities::clear_rows_data() { - rows_data_.Clear(); -} -const ::milvus::grpc::RowData& Entities::rows_data(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.Entities.rows_data) - return rows_data_.Get(index); -} -::milvus::grpc::RowData* Entities::mutable_rows_data(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.Entities.rows_data) - return rows_data_.Mutable(index); -} -::milvus::grpc::RowData* Entities::add_rows_data() { - // @@protoc_insertion_point(field_add:milvus.grpc.Entities.rows_data) - return rows_data_.Add(); -} -::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowData >* -Entities::mutable_rows_data() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Entities.rows_data) - return &rows_data_; -} -const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowData >& -Entities::rows_data() const { - // @@protoc_insertion_point(field_list:milvus.grpc.Entities.rows_data) - return rows_data_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int QueryResult::kStatusFieldNumber; -const int QueryResult::kEntitiesFieldNumber; -const int QueryResult::kRowNumFieldNumber; -const int QueryResult::kScoresFieldNumber; -const int QueryResult::kDistancesFieldNumber; -const int QueryResult::kExtraParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void QueryResult::InitAsDefaultInstance() { + ::milvus::grpc::_QueryResult_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( + ::milvus::grpc::Status::internal_default_instance()); + ::milvus::grpc::_QueryResult_default_instance_._instance.get_mutable()->entities_ = const_cast< ::milvus::grpc::Entities*>( + ::milvus::grpc::Entities::internal_default_instance()); +} +class QueryResult::_Internal { + public: + static const ::milvus::grpc::Status& status(const QueryResult* msg); + static const ::milvus::grpc::Entities& entities(const QueryResult* msg); +}; +const ::milvus::grpc::Status& +QueryResult::_Internal::status(const QueryResult* msg) { + return *msg->status_; +} +const ::milvus::grpc::Entities& +QueryResult::_Internal::entities(const QueryResult* msg) { + return *msg->entities_; +} +void QueryResult::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} QueryResult::QueryResult() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.QueryResult) } - -void QueryResult::InitAsDefaultInstance() { - _is_default_instance_ = true; - status_ = const_cast< ::milvus::grpc::Status*>(&::milvus::grpc::Status::default_instance()); - entities_ = const_cast< ::milvus::grpc::Entities*>(&::milvus::grpc::Entities::default_instance()); -} - QueryResult::QueryResult(const QueryResult& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + scores_(from.scores_), + distances_(from.distances_), + extra_params_(from.extra_params_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_status()) { + status_ = new ::milvus::grpc::Status(*from.status_); + } else { + status_ = nullptr; + } + if (from.has_entities()) { + entities_ = new ::milvus::grpc::Entities(*from.entities_); + } else { + entities_ = nullptr; + } + row_num_ = from.row_num_; // @@protoc_insertion_point(copy_constructor:milvus.grpc.QueryResult) } void QueryResult::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - status_ = NULL; - entities_ = NULL; - row_num_ = GOOGLE_LONGLONG(0); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_QueryResult_suvlim_2eproto.base); + ::memset(&status_, 0, static_cast( + reinterpret_cast(&row_num_) - + reinterpret_cast(&status_)) + sizeof(row_num_)); } QueryResult::~QueryResult() { @@ -9570,160 +8490,216 @@ QueryResult::~QueryResult() { } void QueryResult::SharedDtor() { - if (this != default_instance_) { - delete status_; - delete entities_; - } + if (this != internal_default_instance()) delete status_; + if (this != internal_default_instance()) delete entities_; } void QueryResult::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* QueryResult::descriptor() { - protobuf_AssignDescriptorsOnce(); - return QueryResult_descriptor_; -} - const QueryResult& QueryResult::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_QueryResult_suvlim_2eproto.base); + return *internal_default_instance(); } -QueryResult* QueryResult::default_instance_ = NULL; - -QueryResult* QueryResult::New(::google::protobuf::Arena* arena) const { - QueryResult* n = new QueryResult; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void QueryResult::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.QueryResult) - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; - if (GetArenaNoVirtual() == NULL && entities_ != NULL) delete entities_; - entities_ = NULL; - row_num_ = GOOGLE_LONGLONG(0); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + scores_.Clear(); distances_.Clear(); extra_params_.Clear(); + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + if (GetArenaNoVirtual() == nullptr && entities_ != nullptr) { + delete entities_; + } + entities_ = nullptr; + row_num_ = PROTOBUF_LONGLONG(0); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* QueryResult::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.grpc.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.grpc.Entities entities = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(mutable_entities(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 row_num = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + row_num_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated float scores = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(mutable_scores(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37) { + add_scores(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(float); + } else goto handle_unusual; + continue; + // repeated float distances = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(mutable_distances(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 45) { + add_distances(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(float); + } else goto handle_unusual; + continue; + // repeated .milvus.grpc.KeyValuePair extra_params = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_extra_params(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 50); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool QueryResult::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.QueryResult) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .milvus.grpc.Status status = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.grpc.Status status = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_entities; break; } - // optional .milvus.grpc.Entities entities = 2; + // .milvus.grpc.Entities entities = 2; case 2: { - if (tag == 18) { - parse_entities: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_entities())); } else { goto handle_unusual; } - if (input->ExpectTag(24)) goto parse_row_num; break; } - // optional int64 row_num = 3; + // int64 row_num = 3; case 3: { - if (tag == 24) { - parse_row_num: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &row_num_))); + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &row_num_))); } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_scores; break; } // repeated float scores = 4; case 4: { - if (tag == 34) { - parse_scores: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< + float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( input, this->mutable_scores()))); - } else if (tag == 37) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 34, input, this->mutable_scores()))); + } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (37 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( + 1, 34u, input, this->mutable_scores()))); } else { goto handle_unusual; } - if (input->ExpectTag(42)) goto parse_distances; break; } // repeated float distances = 5; case 5: { - if (tag == 42) { - parse_distances: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< + float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( input, this->mutable_distances()))); - } else if (tag == 45) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 42, input, this->mutable_distances()))); + } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (45 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( + 1, 42u, input, this->mutable_distances()))); } else { goto handle_unusual; } - if (input->ExpectTag(50)) goto parse_extra_params; break; } // repeated .milvus.grpc.KeyValuePair extra_params = 6; case 6: { - if (tag == 50) { - parse_extra_params: - DO_(input->IncrementRecursionDepth()); - parse_loop_extra_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_extra_params())); } else { goto handle_unusual; } - if (input->ExpectTag(50)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -9736,195 +8712,221 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void QueryResult::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.QueryResult) - // optional .milvus.grpc.Status status = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->status_, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); } - // optional .milvus.grpc.Entities entities = 2; + // .milvus.grpc.Entities entities = 2; if (this->has_entities()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *this->entities_, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, _Internal::entities(this), output); } - // optional int64 row_num = 3; + // int64 row_num = 3; if (this->row_num() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->row_num(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->row_num(), output); } // repeated float scores = 4; if (this->scores_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_scores_cached_byte_size_); - } - for (int i = 0; i < this->scores_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloatNoTag( - this->scores(i), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(4, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_scores_cached_byte_size_.load( + std::memory_order_relaxed)); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatArray( + this->scores().data(), this->scores_size(), output); } // repeated float distances = 5; if (this->distances_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_distances_cached_byte_size_); - } - for (int i = 0; i < this->distances_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloatNoTag( - this->distances(i), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(5, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_distances_cached_byte_size_.load( + std::memory_order_relaxed)); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatArray( + this->distances().data(), this->distances_size(), output); } // repeated .milvus.grpc.KeyValuePair extra_params = 6; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->extra_params(i), output); + for (unsigned int i = 0, + n = static_cast(this->extra_params_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, + this->extra_params(static_cast(i)), + output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.QueryResult) } -::google::protobuf::uint8* QueryResult::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* QueryResult::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.QueryResult) - // optional .milvus.grpc.Status status = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->status_, false, target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); } - // optional .milvus.grpc.Entities entities = 2; + // .milvus.grpc.Entities entities = 2; if (this->has_entities()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *this->entities_, false, target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, _Internal::entities(this), target); } - // optional int64 row_num = 3; + // int64 row_num = 3; if (this->row_num() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->row_num(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->row_num(), target); } // repeated float scores = 4; if (this->scores_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( 4, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _scores_cached_byte_size_, target); - } - for (int i = 0; i < this->scores_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatNoTagToArray(this->scores(i), target); + target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( + _scores_cached_byte_size_.load(std::memory_order_relaxed), + target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteFloatNoTagToArray(this->scores_, target); } // repeated float distances = 5; if (this->distances_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( 5, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _distances_cached_byte_size_, target); - } - for (int i = 0; i < this->distances_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatNoTagToArray(this->distances(i), target); + target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( + _distances_cached_byte_size_.load(std::memory_order_relaxed), + target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteFloatNoTagToArray(this->distances_, target); } // repeated .milvus.grpc.KeyValuePair extra_params = 6; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 6, this->extra_params(i), false, target); + for (unsigned int i = 0, + n = static_cast(this->extra_params_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, this->extra_params(static_cast(i)), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.QueryResult) return target; } -int QueryResult::ByteSize() const { +size_t QueryResult::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.QueryResult) - int total_size = 0; + size_t total_size = 0; - // optional .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->status_); - } - - // optional .milvus.grpc.Entities entities = 2; - if (this->has_entities()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->entities_); - } - - // optional int64 row_num = 3; - if (this->row_num() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->row_num()); + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; // repeated float scores = 4; { - int data_size = 0; - data_size = 4 * this->scores_size(); + unsigned int count = static_cast(this->scores_size()); + size_t data_size = 4UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _scores_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _scores_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); total_size += data_size; } // repeated float distances = 5; { - int data_size = 0; - data_size = 4 * this->distances_size(); + unsigned int count = static_cast(this->distances_size()); + size_t data_size = 4UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _distances_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _distances_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); total_size += data_size; } // repeated .milvus.grpc.KeyValuePair extra_params = 6; - total_size += 1 * this->extra_params_size(); - for (int i = 0; i < this->extra_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->extra_params(i)); + { + unsigned int count = static_cast(this->extra_params_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->extra_params(static_cast(i))); + } } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // .milvus.grpc.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + // .milvus.grpc.Entities entities = 2; + if (this->has_entities()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *entities_); + } + + // int64 row_num = 3; + if (this->row_num() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->row_num()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void QueryResult::MergeFrom(const ::google::protobuf::Message& from) { +void QueryResult::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.QueryResult) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const QueryResult* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const QueryResult* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.QueryResult) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.QueryResult) MergeFrom(*source); @@ -9933,9 +8935,11 @@ void QueryResult::MergeFrom(const ::google::protobuf::Message& from) { void QueryResult::MergeFrom(const QueryResult& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.QueryResult) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + scores_.MergeFrom(from.scores_); distances_.MergeFrom(from.distances_); extra_params_.MergeFrom(from.extra_params_); @@ -9950,7 +8954,7 @@ void QueryResult::MergeFrom(const QueryResult& from) { } } -void QueryResult::CopyFrom(const ::google::protobuf::Message& from) { +void QueryResult::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.QueryResult) if (&from == this) return; Clear(); @@ -9965,250 +8969,71 @@ void QueryResult::CopyFrom(const QueryResult& from) { } bool QueryResult::IsInitialized() const { - return true; } -void QueryResult::Swap(QueryResult* other) { - if (other == this) return; - InternalSwap(other); -} void QueryResult::InternalSwap(QueryResult* other) { - std::swap(status_, other->status_); - std::swap(entities_, other->entities_); - std::swap(row_num_, other->row_num_); - scores_.UnsafeArenaSwap(&other->scores_); - distances_.UnsafeArenaSwap(&other->distances_); - extra_params_.UnsafeArenaSwap(&other->extra_params_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + scores_.InternalSwap(&other->scores_); + distances_.InternalSwap(&other->distances_); + CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); + swap(status_, other->status_); + swap(entities_, other->entities_); + swap(row_num_, other->row_num_); } -::google::protobuf::Metadata QueryResult::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = QueryResult_descriptor_; - metadata.reflection = QueryResult_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata QueryResult::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// QueryResult - -// optional .milvus.grpc.Status status = 1; -bool QueryResult::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -void QueryResult::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -const ::milvus::grpc::Status& QueryResult::status() const { - // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -::milvus::grpc::Status* QueryResult::mutable_status() { - - if (status_ == NULL) { - status_ = new ::milvus::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.QueryResult.status) - return status_; -} -::milvus::grpc::Status* QueryResult::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.QueryResult.status) - - ::milvus::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -void QueryResult::set_allocated_status(::milvus::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.QueryResult.status) -} - -// optional .milvus.grpc.Entities entities = 2; -bool QueryResult::has_entities() const { - return !_is_default_instance_ && entities_ != NULL; -} -void QueryResult::clear_entities() { - if (GetArenaNoVirtual() == NULL && entities_ != NULL) delete entities_; - entities_ = NULL; -} -const ::milvus::grpc::Entities& QueryResult::entities() const { - // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.entities) - return entities_ != NULL ? *entities_ : *default_instance_->entities_; -} -::milvus::grpc::Entities* QueryResult::mutable_entities() { - - if (entities_ == NULL) { - entities_ = new ::milvus::grpc::Entities; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.QueryResult.entities) - return entities_; -} -::milvus::grpc::Entities* QueryResult::release_entities() { - // @@protoc_insertion_point(field_release:milvus.grpc.QueryResult.entities) - - ::milvus::grpc::Entities* temp = entities_; - entities_ = NULL; - return temp; -} -void QueryResult::set_allocated_entities(::milvus::grpc::Entities* entities) { - delete entities_; - entities_ = entities; - if (entities) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.QueryResult.entities) -} - -// optional int64 row_num = 3; -void QueryResult::clear_row_num() { - row_num_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 QueryResult::row_num() const { - // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.row_num) - return row_num_; -} - void QueryResult::set_row_num(::google::protobuf::int64 value) { - - row_num_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.QueryResult.row_num) -} - -// repeated float scores = 4; -int QueryResult::scores_size() const { - return scores_.size(); -} -void QueryResult::clear_scores() { - scores_.Clear(); -} - float QueryResult::scores(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.scores) - return scores_.Get(index); -} - void QueryResult::set_scores(int index, float value) { - scores_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.QueryResult.scores) -} - void QueryResult::add_scores(float value) { - scores_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.QueryResult.scores) -} - const ::google::protobuf::RepeatedField< float >& -QueryResult::scores() const { - // @@protoc_insertion_point(field_list:milvus.grpc.QueryResult.scores) - return scores_; -} - ::google::protobuf::RepeatedField< float >* -QueryResult::mutable_scores() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.QueryResult.scores) - return &scores_; -} - -// repeated float distances = 5; -int QueryResult::distances_size() const { - return distances_.size(); -} -void QueryResult::clear_distances() { - distances_.Clear(); -} - float QueryResult::distances(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.distances) - return distances_.Get(index); -} - void QueryResult::set_distances(int index, float value) { - distances_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.QueryResult.distances) -} - void QueryResult::add_distances(float value) { - distances_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.QueryResult.distances) -} - const ::google::protobuf::RepeatedField< float >& -QueryResult::distances() const { - // @@protoc_insertion_point(field_list:milvus.grpc.QueryResult.distances) - return distances_; -} - ::google::protobuf::RepeatedField< float >* -QueryResult::mutable_distances() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.QueryResult.distances) - return &distances_; -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 6; -int QueryResult::extra_params_size() const { - return extra_params_.size(); -} -void QueryResult::clear_extra_params() { - extra_params_.Clear(); -} -const ::milvus::grpc::KeyValuePair& QueryResult::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.extra_params) - return extra_params_.Get(index); -} -::milvus::grpc::KeyValuePair* QueryResult::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.QueryResult.extra_params) - return extra_params_.Mutable(index); -} -::milvus::grpc::KeyValuePair* QueryResult::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.QueryResult.extra_params) - return extra_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -QueryResult::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.QueryResult.extra_params) - return &extra_params_; -} -const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -QueryResult::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.QueryResult.extra_params) - return extra_params_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int StringReply::kStatusFieldNumber; -const int StringReply::kStringReplyFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void StringReply::InitAsDefaultInstance() { + ::milvus::grpc::_StringReply_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( + ::milvus::grpc::Status::internal_default_instance()); +} +class StringReply::_Internal { + public: + static const ::milvus::grpc::Status& status(const StringReply* msg); +}; +const ::milvus::grpc::Status& +StringReply::_Internal::status(const StringReply* msg) { + return *msg->status_; +} +void StringReply::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} StringReply::StringReply() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.StringReply) } - -void StringReply::InitAsDefaultInstance() { - _is_default_instance_ = true; - status_ = const_cast< ::milvus::grpc::Status*>(&::milvus::grpc::Status::default_instance()); -} - StringReply::StringReply(const StringReply& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + string_reply_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.string_reply().empty()) { + string_reply_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.string_reply_); + } + if (from.has_status()) { + status_ = new ::milvus::grpc::Status(*from.status_); + } else { + status_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:milvus.grpc.StringReply) } void StringReply::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - status_ = NULL; - string_reply_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_StringReply_suvlim_2eproto.base); + string_reply_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + status_ = nullptr; } StringReply::~StringReply() { @@ -10217,91 +9042,118 @@ StringReply::~StringReply() { } void StringReply::SharedDtor() { - string_reply_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - delete status_; - } + string_reply_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete status_; } void StringReply::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* StringReply::descriptor() { - protobuf_AssignDescriptorsOnce(); - return StringReply_descriptor_; -} - const StringReply& StringReply::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StringReply_suvlim_2eproto.base); + return *internal_default_instance(); } -StringReply* StringReply::default_instance_ = NULL; - -StringReply* StringReply::New(::google::protobuf::Arena* arena) const { - StringReply* n = new StringReply; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void StringReply::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.StringReply) - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; - string_reply_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + string_reply_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* StringReply::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.grpc.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string string_reply = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_string_reply(), ptr, ctx, "milvus.grpc.StringReply.string_reply"); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool StringReply::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.StringReply) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .milvus.grpc.Status status = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.grpc.Status status = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_string_reply; break; } - // optional string string_reply = 2; + // string string_reply = 2; case 2: { - if (tag == 18) { - parse_string_reply: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_string_reply())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->string_reply().data(), this->string_reply().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->string_reply().data(), static_cast(this->string_reply().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.StringReply.string_reply")); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -10314,89 +9166,110 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void StringReply::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.StringReply) - // optional .milvus.grpc.Status status = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->status_, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); } - // optional string string_reply = 2; + // string string_reply = 2; if (this->string_reply().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->string_reply().data(), this->string_reply().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->string_reply().data(), static_cast(this->string_reply().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.StringReply.string_reply"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->string_reply(), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.StringReply) } -::google::protobuf::uint8* StringReply::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* StringReply::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.StringReply) - // optional .milvus.grpc.Status status = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->status_, false, target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); } - // optional string string_reply = 2; + // string string_reply = 2; if (this->string_reply().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->string_reply().data(), this->string_reply().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->string_reply().data(), static_cast(this->string_reply().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.StringReply.string_reply"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 2, this->string_reply(), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.StringReply) return target; } -int StringReply::ByteSize() const { +size_t StringReply::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.StringReply) - int total_size = 0; + size_t total_size = 0; - // optional .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->status_); + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; - // optional string string_reply = 2; + // string string_reply = 2; if (this->string_reply().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->string_reply()); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // .milvus.grpc.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void StringReply::MergeFrom(const ::google::protobuf::Message& from) { +void StringReply::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.StringReply) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const StringReply* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const StringReply* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.StringReply) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.StringReply) MergeFrom(*source); @@ -10405,19 +9278,21 @@ void StringReply::MergeFrom(const ::google::protobuf::Message& from) { void StringReply::MergeFrom(const StringReply& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.StringReply) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.string_reply().size() > 0) { + + string_reply_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.string_reply_); } if (from.has_status()) { mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); } - if (from.string_reply().size() > 0) { - - string_reply_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.string_reply_); - } } -void StringReply::CopyFrom(const ::google::protobuf::Message& from) { +void StringReply::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.StringReply) if (&from == this) return; Clear(); @@ -10432,147 +9307,66 @@ void StringReply::CopyFrom(const StringReply& from) { } bool StringReply::IsInitialized() const { - return true; } -void StringReply::Swap(StringReply* other) { - if (other == this) return; - InternalSwap(other); -} void StringReply::InternalSwap(StringReply* other) { - std::swap(status_, other->status_); - string_reply_.Swap(&other->string_reply_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + string_reply_.Swap(&other->string_reply_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(status_, other->status_); } -::google::protobuf::Metadata StringReply::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = StringReply_descriptor_; - metadata.reflection = StringReply_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata StringReply::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// StringReply - -// optional .milvus.grpc.Status status = 1; -bool StringReply::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -void StringReply::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -const ::milvus::grpc::Status& StringReply::status() const { - // @@protoc_insertion_point(field_get:milvus.grpc.StringReply.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -::milvus::grpc::Status* StringReply::mutable_status() { - - if (status_ == NULL) { - status_ = new ::milvus::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.StringReply.status) - return status_; -} -::milvus::grpc::Status* StringReply::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.StringReply.status) - - ::milvus::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -void StringReply::set_allocated_status(::milvus::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.StringReply.status) -} - -// optional string string_reply = 2; -void StringReply::clear_string_reply() { - string_reply_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& StringReply::string_reply() const { - // @@protoc_insertion_point(field_get:milvus.grpc.StringReply.string_reply) - return string_reply_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void StringReply::set_string_reply(const ::std::string& value) { - - string_reply_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.StringReply.string_reply) -} - void StringReply::set_string_reply(const char* value) { - - string_reply_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.StringReply.string_reply) -} - void StringReply::set_string_reply(const char* value, size_t size) { - - string_reply_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.StringReply.string_reply) -} - ::std::string* StringReply::mutable_string_reply() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.StringReply.string_reply) - return string_reply_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* StringReply::release_string_reply() { - // @@protoc_insertion_point(field_release:milvus.grpc.StringReply.string_reply) - - return string_reply_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void StringReply::set_allocated_string_reply(::std::string* string_reply) { - if (string_reply != NULL) { - - } else { - - } - string_reply_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), string_reply); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.StringReply.string_reply) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int BoolReply::kStatusFieldNumber; -const int BoolReply::kBoolReplyFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void BoolReply::InitAsDefaultInstance() { + ::milvus::grpc::_BoolReply_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( + ::milvus::grpc::Status::internal_default_instance()); +} +class BoolReply::_Internal { + public: + static const ::milvus::grpc::Status& status(const BoolReply* msg); +}; +const ::milvus::grpc::Status& +BoolReply::_Internal::status(const BoolReply* msg) { + return *msg->status_; +} +void BoolReply::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} BoolReply::BoolReply() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.BoolReply) } - -void BoolReply::InitAsDefaultInstance() { - _is_default_instance_ = true; - status_ = const_cast< ::milvus::grpc::Status*>(&::milvus::grpc::Status::default_instance()); -} - BoolReply::BoolReply(const BoolReply& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_status()) { + status_ = new ::milvus::grpc::Status(*from.status_); + } else { + status_ = nullptr; + } + bool_reply_ = from.bool_reply_; // @@protoc_insertion_point(copy_constructor:milvus.grpc.BoolReply) } void BoolReply::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - status_ = NULL; - bool_reply_ = false; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BoolReply_suvlim_2eproto.base); + ::memset(&status_, 0, static_cast( + reinterpret_cast(&bool_reply_) - + reinterpret_cast(&status_)) + sizeof(bool_reply_)); } BoolReply::~BoolReply() { @@ -10581,88 +9375,115 @@ BoolReply::~BoolReply() { } void BoolReply::SharedDtor() { - if (this != default_instance_) { - delete status_; - } + if (this != internal_default_instance()) delete status_; } void BoolReply::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* BoolReply::descriptor() { - protobuf_AssignDescriptorsOnce(); - return BoolReply_descriptor_; -} - const BoolReply& BoolReply::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BoolReply_suvlim_2eproto.base); + return *internal_default_instance(); } -BoolReply* BoolReply::default_instance_ = NULL; - -BoolReply* BoolReply::New(::google::protobuf::Arena* arena) const { - BoolReply* n = new BoolReply; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void BoolReply::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.BoolReply) - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; bool_reply_ = false; + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* BoolReply::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.grpc.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bool bool_reply = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + bool_reply_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool BoolReply::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.BoolReply) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .milvus.grpc.Status status = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.grpc.Status status = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; } - if (input->ExpectTag(16)) goto parse_bool_reply; break; } - // optional bool bool_reply = 2; + // bool bool_reply = 2; case 2: { - if (tag == 16) { - parse_bool_reply: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &bool_reply_))); + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( + input, &bool_reply_))); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -10675,76 +9496,97 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void BoolReply::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.BoolReply) - // optional .milvus.grpc.Status status = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->status_, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); } - // optional bool bool_reply = 2; + // bool bool_reply = 2; if (this->bool_reply() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->bool_reply(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(2, this->bool_reply(), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.BoolReply) } -::google::protobuf::uint8* BoolReply::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* BoolReply::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.BoolReply) - // optional .milvus.grpc.Status status = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->status_, false, target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); } - // optional bool bool_reply = 2; + // bool bool_reply = 2; if (this->bool_reply() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->bool_reply(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->bool_reply(), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.BoolReply) return target; } -int BoolReply::ByteSize() const { +size_t BoolReply::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.BoolReply) - int total_size = 0; + size_t total_size = 0; - // optional .milvus.grpc.Status status = 1; + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->status_); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); } - // optional bool bool_reply = 2; + // bool bool_reply = 2; if (this->bool_reply() != 0) { total_size += 1 + 1; } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void BoolReply::MergeFrom(const ::google::protobuf::Message& from) { +void BoolReply::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.BoolReply) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const BoolReply* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const BoolReply* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.BoolReply) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.BoolReply) MergeFrom(*source); @@ -10753,9 +9595,11 @@ void BoolReply::MergeFrom(const ::google::protobuf::Message& from) { void BoolReply::MergeFrom(const BoolReply& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.BoolReply) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.has_status()) { mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); } @@ -10764,7 +9608,7 @@ void BoolReply::MergeFrom(const BoolReply& from) { } } -void BoolReply::CopyFrom(const ::google::protobuf::Message& from) { +void BoolReply::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.BoolReply) if (&from == this) return; Clear(); @@ -10779,117 +9623,65 @@ void BoolReply::CopyFrom(const BoolReply& from) { } bool BoolReply::IsInitialized() const { - return true; } -void BoolReply::Swap(BoolReply* other) { - if (other == this) return; - InternalSwap(other); -} void BoolReply::InternalSwap(BoolReply* other) { - std::swap(status_, other->status_); - std::swap(bool_reply_, other->bool_reply_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(status_, other->status_); + swap(bool_reply_, other->bool_reply_); } -::google::protobuf::Metadata BoolReply::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = BoolReply_descriptor_; - metadata.reflection = BoolReply_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata BoolReply::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// BoolReply - -// optional .milvus.grpc.Status status = 1; -bool BoolReply::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -void BoolReply::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -const ::milvus::grpc::Status& BoolReply::status() const { - // @@protoc_insertion_point(field_get:milvus.grpc.BoolReply.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -::milvus::grpc::Status* BoolReply::mutable_status() { - - if (status_ == NULL) { - status_ = new ::milvus::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.BoolReply.status) - return status_; -} -::milvus::grpc::Status* BoolReply::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.BoolReply.status) - - ::milvus::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -void BoolReply::set_allocated_status(::milvus::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.BoolReply.status) -} - -// optional bool bool_reply = 2; -void BoolReply::clear_bool_reply() { - bool_reply_ = false; -} - bool BoolReply::bool_reply() const { - // @@protoc_insertion_point(field_get:milvus.grpc.BoolReply.bool_reply) - return bool_reply_; -} - void BoolReply::set_bool_reply(bool value) { - - bool_reply_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.BoolReply.bool_reply) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CollectionRowCount::kStatusFieldNumber; -const int CollectionRowCount::kCollectionRowCountFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void CollectionRowCount::InitAsDefaultInstance() { + ::milvus::grpc::_CollectionRowCount_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( + ::milvus::grpc::Status::internal_default_instance()); +} +class CollectionRowCount::_Internal { + public: + static const ::milvus::grpc::Status& status(const CollectionRowCount* msg); +}; +const ::milvus::grpc::Status& +CollectionRowCount::_Internal::status(const CollectionRowCount* msg) { + return *msg->status_; +} +void CollectionRowCount::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} CollectionRowCount::CollectionRowCount() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.CollectionRowCount) } - -void CollectionRowCount::InitAsDefaultInstance() { - _is_default_instance_ = true; - status_ = const_cast< ::milvus::grpc::Status*>(&::milvus::grpc::Status::default_instance()); -} - CollectionRowCount::CollectionRowCount(const CollectionRowCount& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_status()) { + status_ = new ::milvus::grpc::Status(*from.status_); + } else { + status_ = nullptr; + } + collection_row_count_ = from.collection_row_count_; // @@protoc_insertion_point(copy_constructor:milvus.grpc.CollectionRowCount) } void CollectionRowCount::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - status_ = NULL; - collection_row_count_ = GOOGLE_LONGLONG(0); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionRowCount_suvlim_2eproto.base); + ::memset(&status_, 0, static_cast( + reinterpret_cast(&collection_row_count_) - + reinterpret_cast(&status_)) + sizeof(collection_row_count_)); } CollectionRowCount::~CollectionRowCount() { @@ -10898,88 +9690,115 @@ CollectionRowCount::~CollectionRowCount() { } void CollectionRowCount::SharedDtor() { - if (this != default_instance_) { - delete status_; - } + if (this != internal_default_instance()) delete status_; } void CollectionRowCount::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* CollectionRowCount::descriptor() { - protobuf_AssignDescriptorsOnce(); - return CollectionRowCount_descriptor_; -} - const CollectionRowCount& CollectionRowCount::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionRowCount_suvlim_2eproto.base); + return *internal_default_instance(); } -CollectionRowCount* CollectionRowCount::default_instance_ = NULL; - -CollectionRowCount* CollectionRowCount::New(::google::protobuf::Arena* arena) const { - CollectionRowCount* n = new CollectionRowCount; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void CollectionRowCount::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.CollectionRowCount) - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; - collection_row_count_ = GOOGLE_LONGLONG(0); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + collection_row_count_ = PROTOBUF_LONGLONG(0); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CollectionRowCount::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.grpc.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 collection_row_count = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + collection_row_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool CollectionRowCount::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.CollectionRowCount) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .milvus.grpc.Status status = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.grpc.Status status = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; } - if (input->ExpectTag(16)) goto parse_collection_row_count; break; } - // optional int64 collection_row_count = 2; + // int64 collection_row_count = 2; case 2: { - if (tag == 16) { - parse_collection_row_count: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &collection_row_count_))); + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &collection_row_count_))); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -10992,78 +9811,99 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void CollectionRowCount::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.CollectionRowCount) - // optional .milvus.grpc.Status status = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->status_, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); } - // optional int64 collection_row_count = 2; + // int64 collection_row_count = 2; if (this->collection_row_count() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->collection_row_count(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->collection_row_count(), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.CollectionRowCount) } -::google::protobuf::uint8* CollectionRowCount::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* CollectionRowCount::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.CollectionRowCount) - // optional .milvus.grpc.Status status = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->status_, false, target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); } - // optional int64 collection_row_count = 2; + // int64 collection_row_count = 2; if (this->collection_row_count() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->collection_row_count(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->collection_row_count(), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.CollectionRowCount) return target; } -int CollectionRowCount::ByteSize() const { +size_t CollectionRowCount::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.CollectionRowCount) - int total_size = 0; + size_t total_size = 0; - // optional .milvus.grpc.Status status = 1; + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->status_); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); } - // optional int64 collection_row_count = 2; + // int64 collection_row_count = 2; if (this->collection_row_count() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->collection_row_count()); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void CollectionRowCount::MergeFrom(const ::google::protobuf::Message& from) { +void CollectionRowCount::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.CollectionRowCount) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const CollectionRowCount* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const CollectionRowCount* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.CollectionRowCount) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.CollectionRowCount) MergeFrom(*source); @@ -11072,9 +9912,11 @@ void CollectionRowCount::MergeFrom(const ::google::protobuf::Message& from) { void CollectionRowCount::MergeFrom(const CollectionRowCount& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.CollectionRowCount) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.has_status()) { mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); } @@ -11083,7 +9925,7 @@ void CollectionRowCount::MergeFrom(const CollectionRowCount& from) { } } -void CollectionRowCount::CopyFrom(const ::google::protobuf::Message& from) { +void CollectionRowCount::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.CollectionRowCount) if (&from == this) return; Clear(); @@ -11098,115 +9940,48 @@ void CollectionRowCount::CopyFrom(const CollectionRowCount& from) { } bool CollectionRowCount::IsInitialized() const { - return true; } -void CollectionRowCount::Swap(CollectionRowCount* other) { - if (other == this) return; - InternalSwap(other); -} void CollectionRowCount::InternalSwap(CollectionRowCount* other) { - std::swap(status_, other->status_); - std::swap(collection_row_count_, other->collection_row_count_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(status_, other->status_); + swap(collection_row_count_, other->collection_row_count_); } -::google::protobuf::Metadata CollectionRowCount::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = CollectionRowCount_descriptor_; - metadata.reflection = CollectionRowCount_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata CollectionRowCount::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// CollectionRowCount - -// optional .milvus.grpc.Status status = 1; -bool CollectionRowCount::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -void CollectionRowCount::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -const ::milvus::grpc::Status& CollectionRowCount::status() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CollectionRowCount.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -::milvus::grpc::Status* CollectionRowCount::mutable_status() { - - if (status_ == NULL) { - status_ = new ::milvus::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionRowCount.status) - return status_; -} -::milvus::grpc::Status* CollectionRowCount::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.CollectionRowCount.status) - - ::milvus::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -void CollectionRowCount::set_allocated_status(::milvus::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CollectionRowCount.status) -} - -// optional int64 collection_row_count = 2; -void CollectionRowCount::clear_collection_row_count() { - collection_row_count_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 CollectionRowCount::collection_row_count() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CollectionRowCount.collection_row_count) - return collection_row_count_; -} - void CollectionRowCount::set_collection_row_count(::google::protobuf::int64 value) { - - collection_row_count_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.CollectionRowCount.collection_row_count) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Command::kCmdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void Command::InitAsDefaultInstance() { +} +class Command::_Internal { + public: +}; Command::Command() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.Command) } - -void Command::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - Command::Command(const Command& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + cmd_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.cmd().empty()) { + cmd_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.cmd_); + } // @@protoc_insertion_point(copy_constructor:milvus.grpc.Command) } void Command::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - cmd_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Command_suvlim_2eproto.base); + cmd_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } Command::~Command() { @@ -11215,75 +9990,95 @@ Command::~Command() { } void Command::SharedDtor() { - cmd_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } + cmd_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void Command::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* Command::descriptor() { - protobuf_AssignDescriptorsOnce(); - return Command_descriptor_; -} - const Command& Command::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Command_suvlim_2eproto.base); + return *internal_default_instance(); } -Command* Command::default_instance_ = NULL; - -Command* Command::New(::google::protobuf::Arena* arena) const { - Command* n = new Command; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void Command::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.Command) - cmd_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cmd_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Command::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string cmd = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_cmd(), ptr, ctx, "milvus.grpc.Command.cmd"); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool Command::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.Command) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string cmd = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string cmd = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_cmd())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cmd().data(), this->cmd().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->cmd().data(), static_cast(this->cmd().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.Command.cmd")); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -11296,69 +10091,90 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void Command::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.Command) - // optional string cmd = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string cmd = 1; if (this->cmd().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cmd().data(), this->cmd().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->cmd().data(), static_cast(this->cmd().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.Command.cmd"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->cmd(), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.Command) } -::google::protobuf::uint8* Command::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* Command::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Command) - // optional string cmd = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string cmd = 1; if (this->cmd().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cmd().data(), this->cmd().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->cmd().data(), static_cast(this->cmd().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.Command.cmd"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 1, this->cmd(), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Command) return target; } -int Command::ByteSize() const { +size_t Command::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.Command) - int total_size = 0; + size_t total_size = 0; - // optional string cmd = 1; + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string cmd = 1; if (this->cmd().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->cmd()); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void Command::MergeFrom(const ::google::protobuf::Message& from) { +void Command::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.Command) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const Command* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const Command* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.Command) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Command) MergeFrom(*source); @@ -11367,16 +10183,18 @@ void Command::MergeFrom(const ::google::protobuf::Message& from) { void Command::MergeFrom(const Command& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.Command) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.cmd().size() > 0) { - cmd_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cmd_); + cmd_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.cmd_); } } -void Command::CopyFrom(const ::google::protobuf::Message& from) { +void Command::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Command) if (&from == this) return; Clear(); @@ -11391,114 +10209,78 @@ void Command::CopyFrom(const Command& from) { } bool Command::IsInitialized() const { - return true; } -void Command::Swap(Command* other) { - if (other == this) return; - InternalSwap(other); -} void Command::InternalSwap(Command* other) { - cmd_.Swap(&other->cmd_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + cmd_.Swap(&other->cmd_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); } -::google::protobuf::Metadata Command::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = Command_descriptor_; - metadata.reflection = Command_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata Command::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// Command - -// optional string cmd = 1; -void Command::clear_cmd() { - cmd_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& Command::cmd() const { - // @@protoc_insertion_point(field_get:milvus.grpc.Command.cmd) - return cmd_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void Command::set_cmd(const ::std::string& value) { - - cmd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.Command.cmd) -} - void Command::set_cmd(const char* value) { - - cmd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.Command.cmd) -} - void Command::set_cmd(const char* value, size_t size) { - - cmd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.Command.cmd) -} - ::std::string* Command::mutable_cmd() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.Command.cmd) - return cmd_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* Command::release_cmd() { - // @@protoc_insertion_point(field_release:milvus.grpc.Command.cmd) - - return cmd_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void Command::set_allocated_cmd(::std::string* cmd) { - if (cmd != NULL) { - - } else { - - } - cmd_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cmd); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Command.cmd) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int IndexParam::kStatusFieldNumber; -const int IndexParam::kCollectionNameFieldNumber; -const int IndexParam::kFieldNameFieldNumber; -const int IndexParam::kIndexNameFieldNumber; -const int IndexParam::kExtraParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void IndexParam::InitAsDefaultInstance() { + ::milvus::grpc::_IndexParam_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( + ::milvus::grpc::Status::internal_default_instance()); +} +class IndexParam::_Internal { + public: + static const ::milvus::grpc::Status& status(const IndexParam* msg); +}; +const ::milvus::grpc::Status& +IndexParam::_Internal::status(const IndexParam* msg) { + return *msg->status_; +} +void IndexParam::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} IndexParam::IndexParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.IndexParam) } - -void IndexParam::InitAsDefaultInstance() { - _is_default_instance_ = true; - status_ = const_cast< ::milvus::grpc::Status*>(&::milvus::grpc::Status::default_instance()); -} - IndexParam::IndexParam(const IndexParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + extra_params_(from.extra_params_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.field_name().empty()) { + field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); + } + index_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.index_name().empty()) { + index_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.index_name_); + } + if (from.has_status()) { + status_ = new ::milvus::grpc::Status(*from.status_); + } else { + status_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:milvus.grpc.IndexParam) } void IndexParam::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - status_ = NULL; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - field_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - index_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_IndexParam_suvlim_2eproto.base); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + index_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + status_ = nullptr; } IndexParam::~IndexParam() { @@ -11507,147 +10289,190 @@ IndexParam::~IndexParam() { } void IndexParam::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - field_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - index_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - delete status_; - } + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + index_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete status_; } void IndexParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* IndexParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return IndexParam_descriptor_; -} - const IndexParam& IndexParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_IndexParam_suvlim_2eproto.base); + return *internal_default_instance(); } -IndexParam* IndexParam::default_instance_ = NULL; - -IndexParam* IndexParam::New(::google::protobuf::Arena* arena) const { - IndexParam* n = new IndexParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void IndexParam::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.IndexParam) - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - index_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + extra_params_.Clear(); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + index_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* IndexParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.grpc.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string collection_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.IndexParam.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string field_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_field_name(), ptr, ctx, "milvus.grpc.IndexParam.field_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string index_name = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_index_name(), ptr, ctx, "milvus.grpc.IndexParam.index_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .milvus.grpc.KeyValuePair extra_params = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_extra_params(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 42); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool IndexParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.IndexParam) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .milvus.grpc.Status status = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.grpc.Status status = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_collection_name; break; } - // optional string collection_name = 2; + // string collection_name = 2; case 2: { - if (tag == 18) { - parse_collection_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.IndexParam.collection_name")); } else { goto handle_unusual; } - if (input->ExpectTag(26)) goto parse_field_name; break; } - // optional string field_name = 3; + // string field_name = 3; case 3: { - if (tag == 26) { - parse_field_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_field_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.IndexParam.field_name")); } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_index_name; break; } - // optional string index_name = 4; + // string index_name = 4; case 4: { - if (tag == 34) { - parse_index_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_index_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->index_name().data(), this->index_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->index_name().data(), static_cast(this->index_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.IndexParam.index_name")); } else { goto handle_unusual; } - if (input->ExpectTag(42)) goto parse_extra_params; break; } // repeated .milvus.grpc.KeyValuePair extra_params = 5; case 5: { - if (tag == 42) { - parse_extra_params: - DO_(input->IncrementRecursionDepth()); - parse_loop_extra_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_extra_params())); } else { goto handle_unusual; } - if (input->ExpectTag(42)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -11660,166 +10485,194 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void IndexParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.IndexParam) - // optional .milvus.grpc.Status status = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->status_, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); } - // optional string collection_name = 2; + // string collection_name = 2; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.IndexParam.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->collection_name(), output); } - // optional string field_name = 3; + // string field_name = 3; if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.IndexParam.field_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 3, this->field_name(), output); } - // optional string index_name = 4; + // string index_name = 4; if (this->index_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->index_name().data(), this->index_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->index_name().data(), static_cast(this->index_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.IndexParam.index_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 4, this->index_name(), output); } // repeated .milvus.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->extra_params(i), output); + for (unsigned int i = 0, + n = static_cast(this->extra_params_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, + this->extra_params(static_cast(i)), + output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.IndexParam) } -::google::protobuf::uint8* IndexParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* IndexParam::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.IndexParam) - // optional .milvus.grpc.Status status = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->status_, false, target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); } - // optional string collection_name = 2; + // string collection_name = 2; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.IndexParam.collection_name"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 2, this->collection_name(), target); } - // optional string field_name = 3; + // string field_name = 3; if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.IndexParam.field_name"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 3, this->field_name(), target); } - // optional string index_name = 4; + // string index_name = 4; if (this->index_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->index_name().data(), this->index_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->index_name().data(), static_cast(this->index_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.IndexParam.index_name"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 4, this->index_name(), target); } // repeated .milvus.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 5, this->extra_params(i), false, target); + for (unsigned int i = 0, + n = static_cast(this->extra_params_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->extra_params(static_cast(i)), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.IndexParam) return target; } -int IndexParam::ByteSize() const { +size_t IndexParam::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.IndexParam) - int total_size = 0; + size_t total_size = 0; - // optional .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->status_); + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .milvus.grpc.KeyValuePair extra_params = 5; + { + unsigned int count = static_cast(this->extra_params_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->extra_params(static_cast(i))); + } } - // optional string collection_name = 2; + // string collection_name = 2; if (this->collection_name().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->collection_name()); } - // optional string field_name = 3; + // string field_name = 3; if (this->field_name().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->field_name()); } - // optional string index_name = 4; + // string index_name = 4; if (this->index_name().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->index_name()); } - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - total_size += 1 * this->extra_params_size(); - for (int i = 0; i < this->extra_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->extra_params(i)); + // .milvus.grpc.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void IndexParam::MergeFrom(const ::google::protobuf::Message& from) { +void IndexParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.IndexParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const IndexParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const IndexParam* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.IndexParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.IndexParam) MergeFrom(*source); @@ -11828,28 +10681,30 @@ void IndexParam::MergeFrom(const ::google::protobuf::Message& from) { void IndexParam::MergeFrom(const IndexParam& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.IndexParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + extra_params_.MergeFrom(from.extra_params_); - if (from.has_status()) { - mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); - } if (from.collection_name().size() > 0) { - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); } if (from.field_name().size() > 0) { - field_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.field_name_); + field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); } if (from.index_name().size() > 0) { - index_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.index_name_); + index_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.index_name_); + } + if (from.has_status()) { + mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); } } -void IndexParam::CopyFrom(const ::google::protobuf::Message& from) { +void IndexParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.IndexParam) if (&from == this) return; Clear(); @@ -11864,265 +10719,50 @@ void IndexParam::CopyFrom(const IndexParam& from) { } bool IndexParam::IsInitialized() const { - return true; } -void IndexParam::Swap(IndexParam* other) { - if (other == this) return; - InternalSwap(other); -} void IndexParam::InternalSwap(IndexParam* other) { - std::swap(status_, other->status_); - collection_name_.Swap(&other->collection_name_); - field_name_.Swap(&other->field_name_); - index_name_.Swap(&other->index_name_); - extra_params_.UnsafeArenaSwap(&other->extra_params_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + index_name_.Swap(&other->index_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(status_, other->status_); } -::google::protobuf::Metadata IndexParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = IndexParam_descriptor_; - metadata.reflection = IndexParam_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata IndexParam::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// IndexParam - -// optional .milvus.grpc.Status status = 1; -bool IndexParam::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -void IndexParam::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -const ::milvus::grpc::Status& IndexParam::status() const { - // @@protoc_insertion_point(field_get:milvus.grpc.IndexParam.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -::milvus::grpc::Status* IndexParam::mutable_status() { - - if (status_ == NULL) { - status_ = new ::milvus::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.IndexParam.status) - return status_; -} -::milvus::grpc::Status* IndexParam::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.IndexParam.status) - - ::milvus::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -void IndexParam::set_allocated_status(::milvus::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.IndexParam.status) -} - -// optional string collection_name = 2; -void IndexParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& IndexParam::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.IndexParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void IndexParam::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.IndexParam.collection_name) -} - void IndexParam::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.IndexParam.collection_name) -} - void IndexParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.IndexParam.collection_name) -} - ::std::string* IndexParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.IndexParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* IndexParam::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.IndexParam.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void IndexParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.IndexParam.collection_name) -} - -// optional string field_name = 3; -void IndexParam::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& IndexParam::field_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.IndexParam.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void IndexParam::set_field_name(const ::std::string& value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.IndexParam.field_name) -} - void IndexParam::set_field_name(const char* value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.IndexParam.field_name) -} - void IndexParam::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.IndexParam.field_name) -} - ::std::string* IndexParam::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.IndexParam.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* IndexParam::release_field_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.IndexParam.field_name) - - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void IndexParam::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.IndexParam.field_name) -} - -// optional string index_name = 4; -void IndexParam::clear_index_name() { - index_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& IndexParam::index_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.IndexParam.index_name) - return index_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void IndexParam::set_index_name(const ::std::string& value) { - - index_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.IndexParam.index_name) -} - void IndexParam::set_index_name(const char* value) { - - index_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.IndexParam.index_name) -} - void IndexParam::set_index_name(const char* value, size_t size) { - - index_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.IndexParam.index_name) -} - ::std::string* IndexParam::mutable_index_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.IndexParam.index_name) - return index_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* IndexParam::release_index_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.IndexParam.index_name) - - return index_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void IndexParam::set_allocated_index_name(::std::string* index_name) { - if (index_name != NULL) { - - } else { - - } - index_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), index_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.IndexParam.index_name) -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 5; -int IndexParam::extra_params_size() const { - return extra_params_.size(); -} -void IndexParam::clear_extra_params() { - extra_params_.Clear(); -} -const ::milvus::grpc::KeyValuePair& IndexParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.IndexParam.extra_params) - return extra_params_.Get(index); -} -::milvus::grpc::KeyValuePair* IndexParam::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.IndexParam.extra_params) - return extra_params_.Mutable(index); -} -::milvus::grpc::KeyValuePair* IndexParam::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.IndexParam.extra_params) - return extra_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -IndexParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.IndexParam.extra_params) - return &extra_params_; -} -const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -IndexParam::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.IndexParam.extra_params) - return extra_params_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int FlushParam::kCollectionNameArrayFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void FlushParam::InitAsDefaultInstance() { +} +class FlushParam::_Internal { + public: +}; FlushParam::FlushParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.FlushParam) } - -void FlushParam::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - FlushParam::FlushParam(const FlushParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + collection_name_array_(from.collection_name_array_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:milvus.grpc.FlushParam) } void FlushParam::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FlushParam_suvlim_2eproto.base); } FlushParam::~FlushParam() { @@ -12131,77 +10771,100 @@ FlushParam::~FlushParam() { } void FlushParam::SharedDtor() { - if (this != default_instance_) { - } } void FlushParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* FlushParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return FlushParam_descriptor_; -} - const FlushParam& FlushParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FlushParam_suvlim_2eproto.base); + return *internal_default_instance(); } -FlushParam* FlushParam::default_instance_ = NULL; - -FlushParam* FlushParam::New(::google::protobuf::Arena* arena) const { - FlushParam* n = new FlushParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void FlushParam::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.FlushParam) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + collection_name_array_.Clear(); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* FlushParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated string collection_name_array = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_collection_name_array(), ptr, ctx, "milvus.grpc.FlushParam.collection_name_array"); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool FlushParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.FlushParam) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated string collection_name_array = 1; case 1: { - if (tag == 10) { - parse_collection_name_array: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->add_collection_name_array())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->collection_name_array(this->collection_name_array_size() - 1).data(), - this->collection_name_array(this->collection_name_array_size() - 1).length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + static_cast(this->collection_name_array(this->collection_name_array_size() - 1).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.FlushParam.collection_name_array")); } else { goto handle_unusual; } - if (input->ExpectTag(10)) goto parse_collection_name_array; - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -12214,68 +10877,90 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void FlushParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.FlushParam) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated string collection_name_array = 1; - for (int i = 0; i < this->collection_name_array_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name_array(i).data(), this->collection_name_array(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + for (int i = 0, n = this->collection_name_array_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name_array(i).data(), static_cast(this->collection_name_array(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.FlushParam.collection_name_array"); - ::google::protobuf::internal::WireFormatLite::WriteString( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( 1, this->collection_name_array(i), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.FlushParam) } -::google::protobuf::uint8* FlushParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* FlushParam::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.FlushParam) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated string collection_name_array = 1; - for (int i = 0; i < this->collection_name_array_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name_array(i).data(), this->collection_name_array(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + for (int i = 0, n = this->collection_name_array_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name_array(i).data(), static_cast(this->collection_name_array(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.FlushParam.collection_name_array"); - target = ::google::protobuf::internal::WireFormatLite:: + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: WriteStringToArray(1, this->collection_name_array(i), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.FlushParam) return target; } -int FlushParam::ByteSize() const { +size_t FlushParam::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.FlushParam) - int total_size = 0; + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; // repeated string collection_name_array = 1; - total_size += 1 * this->collection_name_array_size(); - for (int i = 0; i < this->collection_name_array_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->collection_name_array_size()); + for (int i = 0, n = this->collection_name_array_size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->collection_name_array(i)); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void FlushParam::MergeFrom(const ::google::protobuf::Message& from) { +void FlushParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.FlushParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const FlushParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const FlushParam* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.FlushParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.FlushParam) MergeFrom(*source); @@ -12284,13 +10969,15 @@ void FlushParam::MergeFrom(const ::google::protobuf::Message& from) { void FlushParam::MergeFrom(const FlushParam& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.FlushParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + collection_name_array_.MergeFrom(from.collection_name_array_); } -void FlushParam::CopyFrom(const ::google::protobuf::Message& from) { +void FlushParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.FlushParam) if (&from == this) return; Clear(); @@ -12305,118 +10992,48 @@ void FlushParam::CopyFrom(const FlushParam& from) { } bool FlushParam::IsInitialized() const { - return true; } -void FlushParam::Swap(FlushParam* other) { - if (other == this) return; - InternalSwap(other); -} void FlushParam::InternalSwap(FlushParam* other) { - collection_name_array_.UnsafeArenaSwap(&other->collection_name_array_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + collection_name_array_.InternalSwap(CastToBase(&other->collection_name_array_)); } -::google::protobuf::Metadata FlushParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = FlushParam_descriptor_; - metadata.reflection = FlushParam_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata FlushParam::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// FlushParam - -// repeated string collection_name_array = 1; -int FlushParam::collection_name_array_size() const { - return collection_name_array_.size(); -} -void FlushParam::clear_collection_name_array() { - collection_name_array_.Clear(); -} - const ::std::string& FlushParam::collection_name_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.FlushParam.collection_name_array) - return collection_name_array_.Get(index); -} - ::std::string* FlushParam::mutable_collection_name_array(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.FlushParam.collection_name_array) - return collection_name_array_.Mutable(index); -} - void FlushParam::set_collection_name_array(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.FlushParam.collection_name_array) - collection_name_array_.Mutable(index)->assign(value); -} - void FlushParam::set_collection_name_array(int index, const char* value) { - collection_name_array_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.grpc.FlushParam.collection_name_array) -} - void FlushParam::set_collection_name_array(int index, const char* value, size_t size) { - collection_name_array_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.FlushParam.collection_name_array) -} - ::std::string* FlushParam::add_collection_name_array() { - // @@protoc_insertion_point(field_add_mutable:milvus.grpc.FlushParam.collection_name_array) - return collection_name_array_.Add(); -} - void FlushParam::add_collection_name_array(const ::std::string& value) { - collection_name_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.grpc.FlushParam.collection_name_array) -} - void FlushParam::add_collection_name_array(const char* value) { - collection_name_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.grpc.FlushParam.collection_name_array) -} - void FlushParam::add_collection_name_array(const char* value, size_t size) { - collection_name_array_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.grpc.FlushParam.collection_name_array) -} - const ::google::protobuf::RepeatedPtrField< ::std::string>& -FlushParam::collection_name_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.FlushParam.collection_name_array) - return collection_name_array_; -} - ::google::protobuf::RepeatedPtrField< ::std::string>* -FlushParam::mutable_collection_name_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.FlushParam.collection_name_array) - return &collection_name_array_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CompactParam::kCollectionNameFieldNumber; -const int CompactParam::kThresholdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void CompactParam::InitAsDefaultInstance() { +} +class CompactParam::_Internal { + public: +}; CompactParam::CompactParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.CompactParam) } - -void CompactParam::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - CompactParam::CompactParam(const CompactParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + threshold_ = from.threshold_; // @@protoc_insertion_point(copy_constructor:milvus.grpc.CompactParam) } void CompactParam::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CompactParam_suvlim_2eproto.base); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); threshold_ = 0; } @@ -12426,91 +11043,116 @@ CompactParam::~CompactParam() { } void CompactParam::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void CompactParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* CompactParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return CompactParam_descriptor_; -} - const CompactParam& CompactParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CompactParam_suvlim_2eproto.base); + return *internal_default_instance(); } -CompactParam* CompactParam::default_instance_ = NULL; - -CompactParam* CompactParam::New(::google::protobuf::Arena* arena) const { - CompactParam* n = new CompactParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void CompactParam::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.CompactParam) - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); threshold_ = 0; + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CompactParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string collection_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.CompactParam.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // double threshold = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { + threshold_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool CompactParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.CompactParam) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string collection_name = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.CompactParam.collection_name")); } else { goto handle_unusual; } - if (input->ExpectTag(17)) goto parse_threshold; break; } - // optional double threshold = 2; + // double threshold = 2; case 2: { - if (tag == 17) { - parse_threshold: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &threshold_))); + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (17 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( + input, &threshold_))); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -12523,84 +11165,105 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void CompactParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.CompactParam) - // optional string collection_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.CompactParam.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->collection_name(), output); } - // optional double threshold = 2; - if (this->threshold() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->threshold(), output); + // double threshold = 2; + if (!(this->threshold() <= 0 && this->threshold() >= 0)) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDouble(2, this->threshold(), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.CompactParam) } -::google::protobuf::uint8* CompactParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* CompactParam::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.CompactParam) - // optional string collection_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.CompactParam.collection_name"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 1, this->collection_name(), target); } - // optional double threshold = 2; - if (this->threshold() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->threshold(), target); + // double threshold = 2; + if (!(this->threshold() <= 0 && this->threshold() >= 0)) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->threshold(), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.CompactParam) return target; } -int CompactParam::ByteSize() const { +size_t CompactParam::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.CompactParam) - int total_size = 0; + size_t total_size = 0; - // optional string collection_name = 1; + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->collection_name()); } - // optional double threshold = 2; - if (this->threshold() != 0) { + // double threshold = 2; + if (!(this->threshold() <= 0 && this->threshold() >= 0)) { total_size += 1 + 8; } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void CompactParam::MergeFrom(const ::google::protobuf::Message& from) { +void CompactParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.CompactParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const CompactParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const CompactParam* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.CompactParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.CompactParam) MergeFrom(*source); @@ -12609,19 +11272,21 @@ void CompactParam::MergeFrom(const ::google::protobuf::Message& from) { void CompactParam::MergeFrom(const CompactParam& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.CompactParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.collection_name().size() > 0) { - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); } - if (from.threshold() != 0) { + if (!(from.threshold() <= 0 && from.threshold() >= 0)) { set_threshold(from.threshold()); } } -void CompactParam::CopyFrom(const ::google::protobuf::Message& from) { +void CompactParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.CompactParam) if (&from == this) return; Clear(); @@ -12636,122 +11301,50 @@ void CompactParam::CopyFrom(const CompactParam& from) { } bool CompactParam::IsInitialized() const { - return true; } -void CompactParam::Swap(CompactParam* other) { - if (other == this) return; - InternalSwap(other); -} void CompactParam::InternalSwap(CompactParam* other) { - collection_name_.Swap(&other->collection_name_); - std::swap(threshold_, other->threshold_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(threshold_, other->threshold_); } -::google::protobuf::Metadata CompactParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = CompactParam_descriptor_; - metadata.reflection = CompactParam_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata CompactParam::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// CompactParam - -// optional string collection_name = 1; -void CompactParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& CompactParam::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CompactParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void CompactParam::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.CompactParam.collection_name) -} - void CompactParam::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.CompactParam.collection_name) -} - void CompactParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.CompactParam.collection_name) -} - ::std::string* CompactParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.CompactParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* CompactParam::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.CompactParam.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void CompactParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CompactParam.collection_name) -} - -// optional double threshold = 2; -void CompactParam::clear_threshold() { - threshold_ = 0; -} - double CompactParam::threshold() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CompactParam.threshold) - return threshold_; -} - void CompactParam::set_threshold(double value) { - - threshold_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.CompactParam.threshold) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DeleteByIDParam::kCollectionNameFieldNumber; -const int DeleteByIDParam::kIdArrayFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void DeleteByIDParam::InitAsDefaultInstance() { +} +class DeleteByIDParam::_Internal { + public: +}; DeleteByIDParam::DeleteByIDParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.DeleteByIDParam) } - -void DeleteByIDParam::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - DeleteByIDParam::DeleteByIDParam(const DeleteByIDParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + id_array_(from.id_array_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } // @@protoc_insertion_point(copy_constructor:milvus.grpc.DeleteByIDParam) } void DeleteByIDParam::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DeleteByIDParam_suvlim_2eproto.base); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } DeleteByIDParam::~DeleteByIDParam() { @@ -12760,94 +11353,122 @@ DeleteByIDParam::~DeleteByIDParam() { } void DeleteByIDParam::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void DeleteByIDParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* DeleteByIDParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return DeleteByIDParam_descriptor_; -} - const DeleteByIDParam& DeleteByIDParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DeleteByIDParam_suvlim_2eproto.base); + return *internal_default_instance(); } -DeleteByIDParam* DeleteByIDParam::default_instance_ = NULL; - -DeleteByIDParam* DeleteByIDParam::New(::google::protobuf::Arena* arena) const { - DeleteByIDParam* n = new DeleteByIDParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void DeleteByIDParam::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.DeleteByIDParam) - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + id_array_.Clear(); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DeleteByIDParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string collection_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.DeleteByIDParam.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated int64 id_array = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_id_array(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) { + add_id_array(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool DeleteByIDParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.DeleteByIDParam) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string collection_name = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.DeleteByIDParam.collection_name")); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_id_array; break; } // repeated int64 id_array = 2; case 2: { - if (tag == 18) { - parse_id_array: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( input, this->mutable_id_array()))); - } else if (tag == 16) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - 1, 18, input, this->mutable_id_array()))); + } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + 1, 18u, input, this->mutable_id_array()))); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -12860,110 +11481,129 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void DeleteByIDParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.DeleteByIDParam) - // optional string collection_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.DeleteByIDParam.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->collection_name(), output); } // repeated int64 id_array = 2; if (this->id_array_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_id_array_cached_byte_size_); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(2, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_id_array_cached_byte_size_.load( + std::memory_order_relaxed)); } - for (int i = 0; i < this->id_array_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag( + for (int i = 0, n = this->id_array_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( this->id_array(i), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.DeleteByIDParam) } -::google::protobuf::uint8* DeleteByIDParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* DeleteByIDParam::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.DeleteByIDParam) - // optional string collection_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.DeleteByIDParam.collection_name"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 1, this->collection_name(), target); } // repeated int64 id_array = 2; if (this->id_array_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( 2, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _id_array_cached_byte_size_, target); - } - for (int i = 0; i < this->id_array_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->id_array(i), target); + target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( + _id_array_cached_byte_size_.load(std::memory_order_relaxed), + target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteInt64NoTagToArray(this->id_array_, target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.DeleteByIDParam) return target; } -int DeleteByIDParam::ByteSize() const { +size_t DeleteByIDParam::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.DeleteByIDParam) - int total_size = 0; + size_t total_size = 0; - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->collection_name()); + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; // repeated int64 id_array = 2; { - int data_size = 0; - for (int i = 0; i < this->id_array_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int64Size(this->id_array(i)); - } + size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + Int64Size(this->id_array_); if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _id_array_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _id_array_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); total_size += data_size; } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // string collection_name = 1; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void DeleteByIDParam::MergeFrom(const ::google::protobuf::Message& from) { +void DeleteByIDParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.DeleteByIDParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const DeleteByIDParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const DeleteByIDParam* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.DeleteByIDParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.DeleteByIDParam) MergeFrom(*source); @@ -12972,17 +11612,19 @@ void DeleteByIDParam::MergeFrom(const ::google::protobuf::Message& from) { void DeleteByIDParam::MergeFrom(const DeleteByIDParam& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.DeleteByIDParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + id_array_.MergeFrom(from.id_array_); if (from.collection_name().size() > 0) { - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); } } -void DeleteByIDParam::CopyFrom(const ::google::protobuf::Message& from) { +void DeleteByIDParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.DeleteByIDParam) if (&from == this) return; Clear(); @@ -12997,140 +11639,68 @@ void DeleteByIDParam::CopyFrom(const DeleteByIDParam& from) { } bool DeleteByIDParam::IsInitialized() const { - return true; } -void DeleteByIDParam::Swap(DeleteByIDParam* other) { - if (other == this) return; - InternalSwap(other); -} void DeleteByIDParam::InternalSwap(DeleteByIDParam* other) { - collection_name_.Swap(&other->collection_name_); - id_array_.UnsafeArenaSwap(&other->id_array_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + id_array_.InternalSwap(&other->id_array_); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); } -::google::protobuf::Metadata DeleteByIDParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = DeleteByIDParam_descriptor_; - metadata.reflection = DeleteByIDParam_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata DeleteByIDParam::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// DeleteByIDParam - -// optional string collection_name = 1; -void DeleteByIDParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& DeleteByIDParam::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.DeleteByIDParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void DeleteByIDParam::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.DeleteByIDParam.collection_name) -} - void DeleteByIDParam::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.DeleteByIDParam.collection_name) -} - void DeleteByIDParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.DeleteByIDParam.collection_name) -} - ::std::string* DeleteByIDParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.DeleteByIDParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* DeleteByIDParam::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.DeleteByIDParam.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void DeleteByIDParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.DeleteByIDParam.collection_name) -} - -// repeated int64 id_array = 2; -int DeleteByIDParam::id_array_size() const { - return id_array_.size(); -} -void DeleteByIDParam::clear_id_array() { - id_array_.Clear(); -} - ::google::protobuf::int64 DeleteByIDParam::id_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.DeleteByIDParam.id_array) - return id_array_.Get(index); -} - void DeleteByIDParam::set_id_array(int index, ::google::protobuf::int64 value) { - id_array_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.DeleteByIDParam.id_array) -} - void DeleteByIDParam::add_id_array(::google::protobuf::int64 value) { - id_array_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.DeleteByIDParam.id_array) -} - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -DeleteByIDParam::id_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.DeleteByIDParam.id_array) - return id_array_; -} - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -DeleteByIDParam::mutable_id_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.DeleteByIDParam.id_array) - return &id_array_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CollectionInfo::kStatusFieldNumber; -const int CollectionInfo::kJsonInfoFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void CollectionInfo::InitAsDefaultInstance() { + ::milvus::grpc::_CollectionInfo_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( + ::milvus::grpc::Status::internal_default_instance()); +} +class CollectionInfo::_Internal { + public: + static const ::milvus::grpc::Status& status(const CollectionInfo* msg); +}; +const ::milvus::grpc::Status& +CollectionInfo::_Internal::status(const CollectionInfo* msg) { + return *msg->status_; +} +void CollectionInfo::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} CollectionInfo::CollectionInfo() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.CollectionInfo) } - -void CollectionInfo::InitAsDefaultInstance() { - _is_default_instance_ = true; - status_ = const_cast< ::milvus::grpc::Status*>(&::milvus::grpc::Status::default_instance()); -} - CollectionInfo::CollectionInfo(const CollectionInfo& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + json_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.json_info().empty()) { + json_info_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.json_info_); + } + if (from.has_status()) { + status_ = new ::milvus::grpc::Status(*from.status_); + } else { + status_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:milvus.grpc.CollectionInfo) } void CollectionInfo::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - status_ = NULL; - json_info_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionInfo_suvlim_2eproto.base); + json_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + status_ = nullptr; } CollectionInfo::~CollectionInfo() { @@ -13139,91 +11709,118 @@ CollectionInfo::~CollectionInfo() { } void CollectionInfo::SharedDtor() { - json_info_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - delete status_; - } + json_info_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete status_; } void CollectionInfo::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* CollectionInfo::descriptor() { - protobuf_AssignDescriptorsOnce(); - return CollectionInfo_descriptor_; -} - const CollectionInfo& CollectionInfo::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionInfo_suvlim_2eproto.base); + return *internal_default_instance(); } -CollectionInfo* CollectionInfo::default_instance_ = NULL; - -CollectionInfo* CollectionInfo::New(::google::protobuf::Arena* arena) const { - CollectionInfo* n = new CollectionInfo; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void CollectionInfo::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.CollectionInfo) - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; - json_info_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + json_info_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CollectionInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.grpc.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string json_info = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_json_info(), ptr, ctx, "milvus.grpc.CollectionInfo.json_info"); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool CollectionInfo::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.CollectionInfo) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .milvus.grpc.Status status = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.grpc.Status status = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_json_info; break; } - // optional string json_info = 2; + // string json_info = 2; case 2: { - if (tag == 18) { - parse_json_info: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_json_info())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->json_info().data(), this->json_info().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->json_info().data(), static_cast(this->json_info().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.CollectionInfo.json_info")); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -13236,89 +11833,110 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void CollectionInfo::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.CollectionInfo) - // optional .milvus.grpc.Status status = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->status_, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); } - // optional string json_info = 2; + // string json_info = 2; if (this->json_info().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->json_info().data(), this->json_info().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->json_info().data(), static_cast(this->json_info().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.CollectionInfo.json_info"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->json_info(), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.CollectionInfo) } -::google::protobuf::uint8* CollectionInfo::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* CollectionInfo::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.CollectionInfo) - // optional .milvus.grpc.Status status = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->status_, false, target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); } - // optional string json_info = 2; + // string json_info = 2; if (this->json_info().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->json_info().data(), this->json_info().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->json_info().data(), static_cast(this->json_info().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.CollectionInfo.json_info"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 2, this->json_info(), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.CollectionInfo) return target; } -int CollectionInfo::ByteSize() const { +size_t CollectionInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.CollectionInfo) - int total_size = 0; + size_t total_size = 0; - // optional .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->status_); + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; - // optional string json_info = 2; + // string json_info = 2; if (this->json_info().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->json_info()); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // .milvus.grpc.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void CollectionInfo::MergeFrom(const ::google::protobuf::Message& from) { +void CollectionInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.CollectionInfo) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const CollectionInfo* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const CollectionInfo* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.CollectionInfo) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.CollectionInfo) MergeFrom(*source); @@ -13327,19 +11945,21 @@ void CollectionInfo::MergeFrom(const ::google::protobuf::Message& from) { void CollectionInfo::MergeFrom(const CollectionInfo& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.CollectionInfo) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.json_info().size() > 0) { + + json_info_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.json_info_); } if (from.has_status()) { mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); } - if (from.json_info().size() > 0) { - - json_info_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.json_info_); - } } -void CollectionInfo::CopyFrom(const ::google::protobuf::Message& from) { +void CollectionInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.CollectionInfo) if (&from == this) return; Clear(); @@ -13354,147 +11974,51 @@ void CollectionInfo::CopyFrom(const CollectionInfo& from) { } bool CollectionInfo::IsInitialized() const { - return true; } -void CollectionInfo::Swap(CollectionInfo* other) { - if (other == this) return; - InternalSwap(other); -} void CollectionInfo::InternalSwap(CollectionInfo* other) { - std::swap(status_, other->status_); - json_info_.Swap(&other->json_info_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + json_info_.Swap(&other->json_info_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(status_, other->status_); } -::google::protobuf::Metadata CollectionInfo::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = CollectionInfo_descriptor_; - metadata.reflection = CollectionInfo_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata CollectionInfo::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// CollectionInfo - -// optional .milvus.grpc.Status status = 1; -bool CollectionInfo::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -void CollectionInfo::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -const ::milvus::grpc::Status& CollectionInfo::status() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CollectionInfo.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -::milvus::grpc::Status* CollectionInfo::mutable_status() { - - if (status_ == NULL) { - status_ = new ::milvus::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionInfo.status) - return status_; -} -::milvus::grpc::Status* CollectionInfo::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.CollectionInfo.status) - - ::milvus::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -void CollectionInfo::set_allocated_status(::milvus::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CollectionInfo.status) -} - -// optional string json_info = 2; -void CollectionInfo::clear_json_info() { - json_info_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& CollectionInfo::json_info() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CollectionInfo.json_info) - return json_info_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void CollectionInfo::set_json_info(const ::std::string& value) { - - json_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.CollectionInfo.json_info) -} - void CollectionInfo::set_json_info(const char* value) { - - json_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.CollectionInfo.json_info) -} - void CollectionInfo::set_json_info(const char* value, size_t size) { - - json_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.CollectionInfo.json_info) -} - ::std::string* CollectionInfo::mutable_json_info() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionInfo.json_info) - return json_info_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* CollectionInfo::release_json_info() { - // @@protoc_insertion_point(field_release:milvus.grpc.CollectionInfo.json_info) - - return json_info_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void CollectionInfo::set_allocated_json_info(::std::string* json_info) { - if (json_info != NULL) { - - } else { - - } - json_info_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json_info); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CollectionInfo.json_info) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetEntityIDsParam::kCollectionNameFieldNumber; -const int GetEntityIDsParam::kSegmentIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void GetEntityIDsParam::InitAsDefaultInstance() { +} +class GetEntityIDsParam::_Internal { + public: +}; GetEntityIDsParam::GetEntityIDsParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.GetEntityIDsParam) } - -void GetEntityIDsParam::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - GetEntityIDsParam::GetEntityIDsParam(const GetEntityIDsParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + segment_id_ = from.segment_id_; // @@protoc_insertion_point(copy_constructor:milvus.grpc.GetEntityIDsParam) } void GetEntityIDsParam::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - segment_id_ = GOOGLE_LONGLONG(0); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetEntityIDsParam_suvlim_2eproto.base); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + segment_id_ = PROTOBUF_LONGLONG(0); } GetEntityIDsParam::~GetEntityIDsParam() { @@ -13503,91 +12027,116 @@ GetEntityIDsParam::~GetEntityIDsParam() { } void GetEntityIDsParam::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void GetEntityIDsParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* GetEntityIDsParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return GetEntityIDsParam_descriptor_; -} - const GetEntityIDsParam& GetEntityIDsParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetEntityIDsParam_suvlim_2eproto.base); + return *internal_default_instance(); } -GetEntityIDsParam* GetEntityIDsParam::default_instance_ = NULL; - -GetEntityIDsParam* GetEntityIDsParam::New(::google::protobuf::Arena* arena) const { - GetEntityIDsParam* n = new GetEntityIDsParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void GetEntityIDsParam::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.GetEntityIDsParam) - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - segment_id_ = GOOGLE_LONGLONG(0); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + segment_id_ = PROTOBUF_LONGLONG(0); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetEntityIDsParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string collection_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.GetEntityIDsParam.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 segment_id = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + segment_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool GetEntityIDsParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.GetEntityIDsParam) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string collection_name = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.GetEntityIDsParam.collection_name")); } else { goto handle_unusual; } - if (input->ExpectTag(16)) goto parse_segment_id; break; } - // optional int64 segment_id = 2; + // int64 segment_id = 2; case 2: { - if (tag == 16) { - parse_segment_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &segment_id_))); + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &segment_id_))); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -13600,86 +12149,107 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void GetEntityIDsParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.GetEntityIDsParam) - // optional string collection_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.GetEntityIDsParam.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->collection_name(), output); } - // optional int64 segment_id = 2; + // int64 segment_id = 2; if (this->segment_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->segment_id(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->segment_id(), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.GetEntityIDsParam) } -::google::protobuf::uint8* GetEntityIDsParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* GetEntityIDsParam::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.GetEntityIDsParam) - // optional string collection_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.GetEntityIDsParam.collection_name"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 1, this->collection_name(), target); } - // optional int64 segment_id = 2; + // int64 segment_id = 2; if (this->segment_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->segment_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->segment_id(), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.GetEntityIDsParam) return target; } -int GetEntityIDsParam::ByteSize() const { +size_t GetEntityIDsParam::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.GetEntityIDsParam) - int total_size = 0; + size_t total_size = 0; - // optional string collection_name = 1; + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->collection_name()); } - // optional int64 segment_id = 2; + // int64 segment_id = 2; if (this->segment_id() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->segment_id()); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void GetEntityIDsParam::MergeFrom(const ::google::protobuf::Message& from) { +void GetEntityIDsParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.GetEntityIDsParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const GetEntityIDsParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const GetEntityIDsParam* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.GetEntityIDsParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.GetEntityIDsParam) MergeFrom(*source); @@ -13688,19 +12258,21 @@ void GetEntityIDsParam::MergeFrom(const ::google::protobuf::Message& from) { void GetEntityIDsParam::MergeFrom(const GetEntityIDsParam& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.GetEntityIDsParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.collection_name().size() > 0) { - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); } if (from.segment_id() != 0) { set_segment_id(from.segment_id()); } } -void GetEntityIDsParam::CopyFrom(const ::google::protobuf::Message& from) { +void GetEntityIDsParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.GetEntityIDsParam) if (&from == this) return; Clear(); @@ -13715,123 +12287,51 @@ void GetEntityIDsParam::CopyFrom(const GetEntityIDsParam& from) { } bool GetEntityIDsParam::IsInitialized() const { - return true; } -void GetEntityIDsParam::Swap(GetEntityIDsParam* other) { - if (other == this) return; - InternalSwap(other); -} void GetEntityIDsParam::InternalSwap(GetEntityIDsParam* other) { - collection_name_.Swap(&other->collection_name_); - std::swap(segment_id_, other->segment_id_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(segment_id_, other->segment_id_); } -::google::protobuf::Metadata GetEntityIDsParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = GetEntityIDsParam_descriptor_; - metadata.reflection = GetEntityIDsParam_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata GetEntityIDsParam::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// GetEntityIDsParam - -// optional string collection_name = 1; -void GetEntityIDsParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& GetEntityIDsParam::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.GetEntityIDsParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void GetEntityIDsParam::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.GetEntityIDsParam.collection_name) -} - void GetEntityIDsParam::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.GetEntityIDsParam.collection_name) -} - void GetEntityIDsParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.GetEntityIDsParam.collection_name) -} - ::std::string* GetEntityIDsParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.GetEntityIDsParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* GetEntityIDsParam::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.GetEntityIDsParam.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void GetEntityIDsParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GetEntityIDsParam.collection_name) -} - -// optional int64 segment_id = 2; -void GetEntityIDsParam::clear_segment_id() { - segment_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 GetEntityIDsParam::segment_id() const { - // @@protoc_insertion_point(field_get:milvus.grpc.GetEntityIDsParam.segment_id) - return segment_id_; -} - void GetEntityIDsParam::set_segment_id(::google::protobuf::int64 value) { - - segment_id_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.GetEntityIDsParam.segment_id) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int EntityIdentity::kCollectionNameFieldNumber; -const int EntityIdentity::kIdArrayFieldNumber; -const int EntityIdentity::kFieldNamesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void EntityIdentity::InitAsDefaultInstance() { +} +class EntityIdentity::_Internal { + public: +}; EntityIdentity::EntityIdentity() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.EntityIdentity) } - -void EntityIdentity::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - EntityIdentity::EntityIdentity(const EntityIdentity& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + id_array_(from.id_array_), + field_names_(from.field_names_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } // @@protoc_insertion_point(copy_constructor:milvus.grpc.EntityIdentity) } void EntityIdentity::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EntityIdentity_suvlim_2eproto.base); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } EntityIdentity::~EntityIdentity() { @@ -13840,114 +12340,151 @@ EntityIdentity::~EntityIdentity() { } void EntityIdentity::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void EntityIdentity::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* EntityIdentity::descriptor() { - protobuf_AssignDescriptorsOnce(); - return EntityIdentity_descriptor_; -} - const EntityIdentity& EntityIdentity::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EntityIdentity_suvlim_2eproto.base); + return *internal_default_instance(); } -EntityIdentity* EntityIdentity::default_instance_ = NULL; - -EntityIdentity* EntityIdentity::New(::google::protobuf::Arena* arena) const { - EntityIdentity* n = new EntityIdentity; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void EntityIdentity::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.EntityIdentity) - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + id_array_.Clear(); field_names_.Clear(); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* EntityIdentity::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string collection_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.EntityIdentity.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated int64 id_array = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_id_array(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) { + add_id_array(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated string field_names = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_field_names(), ptr, ctx, "milvus.grpc.EntityIdentity.field_names"); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool EntityIdentity::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.EntityIdentity) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string collection_name = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.EntityIdentity.collection_name")); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_id_array; break; } // repeated int64 id_array = 2; case 2: { - if (tag == 18) { - parse_id_array: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( input, this->mutable_id_array()))); - } else if (tag == 16) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - 1, 18, input, this->mutable_id_array()))); + } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + 1, 18u, input, this->mutable_id_array()))); } else { goto handle_unusual; } - if (input->ExpectTag(26)) goto parse_field_names; break; } // repeated string field_names = 3; case 3: { - if (tag == 26) { - parse_field_names: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->add_field_names())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->field_names(this->field_names_size() - 1).data(), - this->field_names(this->field_names_size() - 1).length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + static_cast(this->field_names(this->field_names_size() - 1).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.EntityIdentity.field_names")); } else { goto handle_unusual; } - if (input->ExpectTag(26)) goto parse_field_names; - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -13960,137 +12497,157 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void EntityIdentity::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.EntityIdentity) - // optional string collection_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.EntityIdentity.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->collection_name(), output); } // repeated int64 id_array = 2; if (this->id_array_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_id_array_cached_byte_size_); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(2, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_id_array_cached_byte_size_.load( + std::memory_order_relaxed)); } - for (int i = 0; i < this->id_array_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag( + for (int i = 0, n = this->id_array_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( this->id_array(i), output); } // repeated string field_names = 3; - for (int i = 0; i < this->field_names_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_names(i).data(), this->field_names(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + for (int i = 0, n = this->field_names_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_names(i).data(), static_cast(this->field_names(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.EntityIdentity.field_names"); - ::google::protobuf::internal::WireFormatLite::WriteString( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( 3, this->field_names(i), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.EntityIdentity) } -::google::protobuf::uint8* EntityIdentity::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* EntityIdentity::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.EntityIdentity) - // optional string collection_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.EntityIdentity.collection_name"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 1, this->collection_name(), target); } // repeated int64 id_array = 2; if (this->id_array_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( 2, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _id_array_cached_byte_size_, target); - } - for (int i = 0; i < this->id_array_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->id_array(i), target); + target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( + _id_array_cached_byte_size_.load(std::memory_order_relaxed), + target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteInt64NoTagToArray(this->id_array_, target); } // repeated string field_names = 3; - for (int i = 0; i < this->field_names_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_names(i).data(), this->field_names(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + for (int i = 0, n = this->field_names_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_names(i).data(), static_cast(this->field_names(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.EntityIdentity.field_names"); - target = ::google::protobuf::internal::WireFormatLite:: + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: WriteStringToArray(3, this->field_names(i), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.EntityIdentity) return target; } -int EntityIdentity::ByteSize() const { +size_t EntityIdentity::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.EntityIdentity) - int total_size = 0; + size_t total_size = 0; - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->collection_name()); + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; // repeated int64 id_array = 2; { - int data_size = 0; - for (int i = 0; i < this->id_array_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int64Size(this->id_array(i)); - } + size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + Int64Size(this->id_array_); if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _id_array_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _id_array_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); total_size += data_size; } // repeated string field_names = 3; - total_size += 1 * this->field_names_size(); - for (int i = 0; i < this->field_names_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->field_names_size()); + for (int i = 0, n = this->field_names_size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->field_names(i)); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // string collection_name = 1; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void EntityIdentity::MergeFrom(const ::google::protobuf::Message& from) { +void EntityIdentity::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.EntityIdentity) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const EntityIdentity* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const EntityIdentity* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.EntityIdentity) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.EntityIdentity) MergeFrom(*source); @@ -14099,18 +12656,20 @@ void EntityIdentity::MergeFrom(const ::google::protobuf::Message& from) { void EntityIdentity::MergeFrom(const EntityIdentity& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.EntityIdentity) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + id_array_.MergeFrom(from.id_array_); field_names_.MergeFrom(from.field_names_); if (from.collection_name().size() > 0) { - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); } } -void EntityIdentity::CopyFrom(const ::google::protobuf::Message& from) { +void EntityIdentity::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.EntityIdentity) if (&from == this) return; Clear(); @@ -14125,192 +12684,46 @@ void EntityIdentity::CopyFrom(const EntityIdentity& from) { } bool EntityIdentity::IsInitialized() const { - return true; } -void EntityIdentity::Swap(EntityIdentity* other) { - if (other == this) return; - InternalSwap(other); -} void EntityIdentity::InternalSwap(EntityIdentity* other) { - collection_name_.Swap(&other->collection_name_); - id_array_.UnsafeArenaSwap(&other->id_array_); - field_names_.UnsafeArenaSwap(&other->field_names_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + id_array_.InternalSwap(&other->id_array_); + field_names_.InternalSwap(CastToBase(&other->field_names_)); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); } -::google::protobuf::Metadata EntityIdentity::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = EntityIdentity_descriptor_; - metadata.reflection = EntityIdentity_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata EntityIdentity::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// EntityIdentity - -// optional string collection_name = 1; -void EntityIdentity::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& EntityIdentity::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.EntityIdentity.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void EntityIdentity::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.EntityIdentity.collection_name) -} - void EntityIdentity::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.EntityIdentity.collection_name) -} - void EntityIdentity::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.EntityIdentity.collection_name) -} - ::std::string* EntityIdentity::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.EntityIdentity.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* EntityIdentity::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.EntityIdentity.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void EntityIdentity::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.EntityIdentity.collection_name) -} - -// repeated int64 id_array = 2; -int EntityIdentity::id_array_size() const { - return id_array_.size(); -} -void EntityIdentity::clear_id_array() { - id_array_.Clear(); -} - ::google::protobuf::int64 EntityIdentity::id_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.EntityIdentity.id_array) - return id_array_.Get(index); -} - void EntityIdentity::set_id_array(int index, ::google::protobuf::int64 value) { - id_array_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.EntityIdentity.id_array) -} - void EntityIdentity::add_id_array(::google::protobuf::int64 value) { - id_array_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.EntityIdentity.id_array) -} - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -EntityIdentity::id_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.EntityIdentity.id_array) - return id_array_; -} - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -EntityIdentity::mutable_id_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.EntityIdentity.id_array) - return &id_array_; -} - -// repeated string field_names = 3; -int EntityIdentity::field_names_size() const { - return field_names_.size(); -} -void EntityIdentity::clear_field_names() { - field_names_.Clear(); -} - const ::std::string& EntityIdentity::field_names(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.EntityIdentity.field_names) - return field_names_.Get(index); -} - ::std::string* EntityIdentity::mutable_field_names(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.EntityIdentity.field_names) - return field_names_.Mutable(index); -} - void EntityIdentity::set_field_names(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.EntityIdentity.field_names) - field_names_.Mutable(index)->assign(value); -} - void EntityIdentity::set_field_names(int index, const char* value) { - field_names_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.grpc.EntityIdentity.field_names) -} - void EntityIdentity::set_field_names(int index, const char* value, size_t size) { - field_names_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.EntityIdentity.field_names) -} - ::std::string* EntityIdentity::add_field_names() { - // @@protoc_insertion_point(field_add_mutable:milvus.grpc.EntityIdentity.field_names) - return field_names_.Add(); -} - void EntityIdentity::add_field_names(const ::std::string& value) { - field_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.grpc.EntityIdentity.field_names) -} - void EntityIdentity::add_field_names(const char* value) { - field_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.grpc.EntityIdentity.field_names) -} - void EntityIdentity::add_field_names(const char* value, size_t size) { - field_names_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.grpc.EntityIdentity.field_names) -} - const ::google::protobuf::RepeatedPtrField< ::std::string>& -EntityIdentity::field_names() const { - // @@protoc_insertion_point(field_list:milvus.grpc.EntityIdentity.field_names) - return field_names_; -} - ::google::protobuf::RepeatedPtrField< ::std::string>* -EntityIdentity::mutable_field_names() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.EntityIdentity.field_names) - return &field_names_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VectorFieldParam::kDimensionFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void VectorFieldParam::InitAsDefaultInstance() { +} +class VectorFieldParam::_Internal { + public: +}; VectorFieldParam::VectorFieldParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.VectorFieldParam) } - -void VectorFieldParam::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - VectorFieldParam::VectorFieldParam(const VectorFieldParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + dimension_ = from.dimension_; // @@protoc_insertion_point(copy_constructor:milvus.grpc.VectorFieldParam) } void VectorFieldParam::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - dimension_ = GOOGLE_LONGLONG(0); + dimension_ = PROTOBUF_LONGLONG(0); } VectorFieldParam::~VectorFieldParam() { @@ -14319,72 +12732,92 @@ VectorFieldParam::~VectorFieldParam() { } void VectorFieldParam::SharedDtor() { - if (this != default_instance_) { - } } void VectorFieldParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* VectorFieldParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return VectorFieldParam_descriptor_; -} - const VectorFieldParam& VectorFieldParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VectorFieldParam_suvlim_2eproto.base); + return *internal_default_instance(); } -VectorFieldParam* VectorFieldParam::default_instance_ = NULL; - -VectorFieldParam* VectorFieldParam::New(::google::protobuf::Arena* arena) const { - VectorFieldParam* n = new VectorFieldParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void VectorFieldParam::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.VectorFieldParam) - dimension_ = GOOGLE_LONGLONG(0); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + dimension_ = PROTOBUF_LONGLONG(0); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* VectorFieldParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // int64 dimension = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + dimension_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool VectorFieldParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.VectorFieldParam) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int64 dimension = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int64 dimension = 1; case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &dimension_))); + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &dimension_))); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -14397,58 +12830,79 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void VectorFieldParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.VectorFieldParam) - // optional int64 dimension = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 dimension = 1; if (this->dimension() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->dimension(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->dimension(), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.VectorFieldParam) } -::google::protobuf::uint8* VectorFieldParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* VectorFieldParam::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.VectorFieldParam) - // optional int64 dimension = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 dimension = 1; if (this->dimension() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->dimension(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->dimension(), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.VectorFieldParam) return target; } -int VectorFieldParam::ByteSize() const { +size_t VectorFieldParam::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.VectorFieldParam) - int total_size = 0; + size_t total_size = 0; - // optional int64 dimension = 1; + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 dimension = 1; if (this->dimension() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->dimension()); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void VectorFieldParam::MergeFrom(const ::google::protobuf::Message& from) { +void VectorFieldParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.VectorFieldParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const VectorFieldParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const VectorFieldParam* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.VectorFieldParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.VectorFieldParam) MergeFrom(*source); @@ -14457,15 +12911,17 @@ void VectorFieldParam::MergeFrom(const ::google::protobuf::Message& from) { void VectorFieldParam::MergeFrom(const VectorFieldParam& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.VectorFieldParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.dimension() != 0) { set_dimension(from.dimension()); } } -void VectorFieldParam::CopyFrom(const ::google::protobuf::Message& from) { +void VectorFieldParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.VectorFieldParam) if (&from == this) return; Clear(); @@ -14480,77 +12936,78 @@ void VectorFieldParam::CopyFrom(const VectorFieldParam& from) { } bool VectorFieldParam::IsInitialized() const { - return true; } -void VectorFieldParam::Swap(VectorFieldParam* other) { - if (other == this) return; - InternalSwap(other); -} void VectorFieldParam::InternalSwap(VectorFieldParam* other) { - std::swap(dimension_, other->dimension_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(dimension_, other->dimension_); } -::google::protobuf::Metadata VectorFieldParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = VectorFieldParam_descriptor_; - metadata.reflection = VectorFieldParam_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata VectorFieldParam::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// VectorFieldParam - -// optional int64 dimension = 1; -void VectorFieldParam::clear_dimension() { - dimension_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 VectorFieldParam::dimension() const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorFieldParam.dimension) - return dimension_; -} - void VectorFieldParam::set_dimension(::google::protobuf::int64 value) { - - dimension_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.VectorFieldParam.dimension) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int FieldType::kDataTypeFieldNumber; -const int FieldType::kVectorParamFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void FieldType::InitAsDefaultInstance() { + ::milvus::grpc::_FieldType_default_instance_.data_type_ = 0; + ::milvus::grpc::_FieldType_default_instance_.vector_param_ = const_cast< ::milvus::grpc::VectorFieldParam*>( + ::milvus::grpc::VectorFieldParam::internal_default_instance()); +} +class FieldType::_Internal { + public: + static const ::milvus::grpc::VectorFieldParam& vector_param(const FieldType* msg); +}; +const ::milvus::grpc::VectorFieldParam& +FieldType::_Internal::vector_param(const FieldType* msg) { + return *msg->value_.vector_param_; +} +void FieldType::set_allocated_vector_param(::milvus::grpc::VectorFieldParam* vector_param) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (vector_param) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + vector_param = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, vector_param, submessage_arena); + } + set_has_vector_param(); + value_.vector_param_ = vector_param; + } + // @@protoc_insertion_point(field_set_allocated:milvus.grpc.FieldType.vector_param) +} FieldType::FieldType() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.FieldType) } - -void FieldType::InitAsDefaultInstance() { - _is_default_instance_ = true; - FieldType_default_oneof_instance_->data_type_ = 0; - FieldType_default_oneof_instance_->vector_param_ = const_cast< ::milvus::grpc::VectorFieldParam*>(&::milvus::grpc::VectorFieldParam::default_instance()); -} - FieldType::FieldType(const FieldType& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_value(); + switch (from.value_case()) { + case kDataType: { + set_data_type(from.data_type()); + break; + } + case kVectorParam: { + mutable_vector_param()->::milvus::grpc::VectorFieldParam::MergeFrom(from.vector_param()); + break; + } + case VALUE_NOT_SET: { + break; + } + } // @@protoc_insertion_point(copy_constructor:milvus.grpc.FieldType) } void FieldType::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FieldType_suvlim_2eproto.base); clear_has_value(); } @@ -14563,38 +13020,20 @@ void FieldType::SharedDtor() { if (has_value()) { clear_value(); } - if (this != default_instance_) { - } } void FieldType::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* FieldType::descriptor() { - protobuf_AssignDescriptorsOnce(); - return FieldType_descriptor_; -} - const FieldType& FieldType::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FieldType_suvlim_2eproto.base); + return *internal_default_instance(); } -FieldType* FieldType::default_instance_ = NULL; - -FieldType* FieldType::New(::google::protobuf::Arena* arena) const { - FieldType* n = new FieldType; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void FieldType::clear_value() { // @@protoc_insertion_point(one_of_clear_start:milvus.grpc.FieldType) - switch(value_case()) { + switch (value_case()) { case kDataType: { // No need to clear break; @@ -14613,55 +13052,99 @@ void FieldType::clear_value() { void FieldType::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.FieldType) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + clear_value(); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* FieldType::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.grpc.DataType data_type = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + set_data_type(static_cast<::milvus::grpc::DataType>(val)); + } else goto handle_unusual; + continue; + // .milvus.grpc.VectorFieldParam vector_param = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(mutable_vector_param(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool FieldType::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.FieldType) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .milvus.grpc.DataType data_type = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.grpc.DataType data_type = 1; case 1: { - if (tag == 8) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( input, &value))); set_data_type(static_cast< ::milvus::grpc::DataType >(value)); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_vector_param; break; } - // optional .milvus.grpc.VectorFieldParam vector_param = 2; + // .milvus.grpc.VectorFieldParam vector_param = 2; case 2: { - if (tag == 18) { - parse_vector_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_vector_param())); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -14674,60 +13157,84 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void FieldType::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.FieldType) - // optional .milvus.grpc.DataType data_type = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.DataType data_type = 1; if (has_data_type()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( 1, this->data_type(), output); } - // optional .milvus.grpc.VectorFieldParam vector_param = 2; + // .milvus.grpc.VectorFieldParam vector_param = 2; if (has_vector_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *value_.vector_param_, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, _Internal::vector_param(this), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.FieldType) } -::google::protobuf::uint8* FieldType::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* FieldType::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.FieldType) - // optional .milvus.grpc.DataType data_type = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.DataType data_type = 1; if (has_data_type()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 1, this->data_type(), target); } - // optional .milvus.grpc.VectorFieldParam vector_param = 2; + // .milvus.grpc.VectorFieldParam vector_param = 2; if (has_vector_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *value_.vector_param_, false, target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, _Internal::vector_param(this), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.FieldType) return target; } -int FieldType::ByteSize() const { +size_t FieldType::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.FieldType) - int total_size = 0; + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; switch (value_case()) { - // optional .milvus.grpc.DataType data_type = 1; + // .milvus.grpc.DataType data_type = 1; case kDataType: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->data_type()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->data_type()); break; } - // optional .milvus.grpc.VectorFieldParam vector_param = 2; + // .milvus.grpc.VectorFieldParam vector_param = 2; case kVectorParam: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *value_.vector_param_); break; } @@ -14735,23 +13242,20 @@ int FieldType::ByteSize() const { break; } } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void FieldType::MergeFrom(const ::google::protobuf::Message& from) { +void FieldType::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.FieldType) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const FieldType* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const FieldType* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.FieldType) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.FieldType) MergeFrom(*source); @@ -14760,9 +13264,11 @@ void FieldType::MergeFrom(const ::google::protobuf::Message& from) { void FieldType::MergeFrom(const FieldType& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.FieldType) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + switch (from.value_case()) { case kDataType: { set_data_type(from.data_type()); @@ -14778,7 +13284,7 @@ void FieldType::MergeFrom(const FieldType& from) { } } -void FieldType::CopyFrom(const ::google::protobuf::Message& from) { +void FieldType::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.FieldType) if (&from == this) return; Clear(); @@ -14793,155 +13299,56 @@ void FieldType::CopyFrom(const FieldType& from) { } bool FieldType::IsInitialized() const { - return true; } -void FieldType::Swap(FieldType* other) { - if (other == this) return; - InternalSwap(other); -} void FieldType::InternalSwap(FieldType* other) { - std::swap(value_, other->value_); - std::swap(_oneof_case_[0], other->_oneof_case_[0]); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(value_, other->value_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata FieldType::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = FieldType_descriptor_; - metadata.reflection = FieldType_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata FieldType::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// FieldType - -// optional .milvus.grpc.DataType data_type = 1; -bool FieldType::has_data_type() const { - return value_case() == kDataType; -} -void FieldType::set_has_data_type() { - _oneof_case_[0] = kDataType; -} -void FieldType::clear_data_type() { - if (has_data_type()) { - value_.data_type_ = 0; - clear_has_value(); - } -} - ::milvus::grpc::DataType FieldType::data_type() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldType.data_type) - if (has_data_type()) { - return static_cast< ::milvus::grpc::DataType >(value_.data_type_); - } - return static_cast< ::milvus::grpc::DataType >(0); -} - void FieldType::set_data_type(::milvus::grpc::DataType value) { - if (!has_data_type()) { - clear_value(); - set_has_data_type(); - } - value_.data_type_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.FieldType.data_type) -} - -// optional .milvus.grpc.VectorFieldParam vector_param = 2; -bool FieldType::has_vector_param() const { - return value_case() == kVectorParam; -} -void FieldType::set_has_vector_param() { - _oneof_case_[0] = kVectorParam; -} -void FieldType::clear_vector_param() { - if (has_vector_param()) { - delete value_.vector_param_; - clear_has_value(); - } -} - const ::milvus::grpc::VectorFieldParam& FieldType::vector_param() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldType.vector_param) - return has_vector_param() - ? *value_.vector_param_ - : ::milvus::grpc::VectorFieldParam::default_instance(); -} -::milvus::grpc::VectorFieldParam* FieldType::mutable_vector_param() { - if (!has_vector_param()) { - clear_value(); - set_has_vector_param(); - value_.vector_param_ = new ::milvus::grpc::VectorFieldParam; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldType.vector_param) - return value_.vector_param_; -} -::milvus::grpc::VectorFieldParam* FieldType::release_vector_param() { - // @@protoc_insertion_point(field_release:milvus.grpc.FieldType.vector_param) - if (has_vector_param()) { - clear_has_value(); - ::milvus::grpc::VectorFieldParam* temp = value_.vector_param_; - value_.vector_param_ = NULL; - return temp; - } else { - return NULL; - } -} -void FieldType::set_allocated_vector_param(::milvus::grpc::VectorFieldParam* vector_param) { - clear_value(); - if (vector_param) { - set_has_vector_param(); - value_.vector_param_ = vector_param; - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.FieldType.vector_param) -} - -bool FieldType::has_value() const { - return value_case() != VALUE_NOT_SET; -} -void FieldType::clear_has_value() { - _oneof_case_[0] = VALUE_NOT_SET; -} -FieldType::ValueCase FieldType::value_case() const { - return FieldType::ValueCase(_oneof_case_[0]); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int FieldParam::kIdFieldNumber; -const int FieldParam::kNameFieldNumber; -const int FieldParam::kTypeFieldNumber; -const int FieldParam::kIndexParamsFieldNumber; -const int FieldParam::kExtraParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void FieldParam::InitAsDefaultInstance() { +} +class FieldParam::_Internal { + public: +}; FieldParam::FieldParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.FieldParam) } - -void FieldParam::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - FieldParam::FieldParam(const FieldParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + index_params_(from.index_params_), + extra_params_(from.extra_params_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.name().empty()) { + name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); + } + ::memcpy(&id_, &from.id_, + static_cast(reinterpret_cast(&type_) - + reinterpret_cast(&id_)) + sizeof(type_)); // @@protoc_insertion_point(copy_constructor:milvus.grpc.FieldParam) } void FieldParam::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - id_ = GOOGLE_ULONGLONG(0); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_ = 0; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FieldParam_suvlim_2eproto.base); + name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&type_) - + reinterpret_cast(&id_)) + sizeof(type_)); } FieldParam::~FieldParam() { @@ -14950,143 +13357,188 @@ FieldParam::~FieldParam() { } void FieldParam::SharedDtor() { - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } + name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void FieldParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* FieldParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return FieldParam_descriptor_; -} - const FieldParam& FieldParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FieldParam_suvlim_2eproto.base); + return *internal_default_instance(); } -FieldParam* FieldParam::default_instance_ = NULL; - -FieldParam* FieldParam::New(::google::protobuf::Arena* arena) const { - FieldParam* n = new FieldParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void FieldParam::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.FieldParam) - id_ = GOOGLE_ULONGLONG(0); - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_ = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + index_params_.Clear(); extra_params_.Clear(); + name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&type_) - + reinterpret_cast(&id_)) + sizeof(type_)); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* FieldParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // uint64 id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "milvus.grpc.FieldParam.name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.grpc.DataType type = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + set_type(static_cast<::milvus::grpc::DataType>(val)); + } else goto handle_unusual; + continue; + // repeated .milvus.grpc.KeyValuePair index_params = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_index_params(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34); + } else goto handle_unusual; + continue; + // repeated .milvus.grpc.KeyValuePair extra_params = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_extra_params(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 42); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool FieldParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.FieldParam) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint64 id = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // uint64 id = 1; case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &id_))); + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64>( + input, &id_))); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_name; break; } - // optional string name = 2; + // string name = 2; case 2: { - if (tag == 18) { - parse_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.FieldParam.name")); } else { goto handle_unusual; } - if (input->ExpectTag(24)) goto parse_type; break; } - // optional .milvus.grpc.DataType type = 3; + // .milvus.grpc.DataType type = 3; case 3: { - if (tag == 24) { - parse_type: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { + int value = 0; + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( input, &value))); set_type(static_cast< ::milvus::grpc::DataType >(value)); } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_index_params; break; } // repeated .milvus.grpc.KeyValuePair index_params = 4; case 4: { - if (tag == 34) { - parse_index_params: - DO_(input->IncrementRecursionDepth()); - parse_loop_index_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_index_params())); } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_loop_index_params; - if (input->ExpectTag(42)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); break; } // repeated .milvus.grpc.KeyValuePair extra_params = 5; case 5: { - if (tag == 42) { - DO_(input->IncrementRecursionDepth()); - parse_loop_extra_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_extra_params())); } else { goto handle_unusual; } - if (input->ExpectTag(42)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -15099,146 +13551,181 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void FieldParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.FieldParam) - // optional uint64 id = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 id = 1; if (this->id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->id(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64(1, this->id(), output); } - // optional string name = 2; + // string name = 2; if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.FieldParam.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->name(), output); } - // optional .milvus.grpc.DataType type = 3; + // .milvus.grpc.DataType type = 3; if (this->type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( 3, this->type(), output); } // repeated .milvus.grpc.KeyValuePair index_params = 4; - for (unsigned int i = 0, n = this->index_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->index_params(i), output); + for (unsigned int i = 0, + n = static_cast(this->index_params_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, + this->index_params(static_cast(i)), + output); } // repeated .milvus.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->extra_params(i), output); + for (unsigned int i = 0, + n = static_cast(this->extra_params_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, + this->extra_params(static_cast(i)), + output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.FieldParam) } -::google::protobuf::uint8* FieldParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* FieldParam::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.FieldParam) - // optional uint64 id = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 id = 1; if (this->id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->id(), target); } - // optional string name = 2; + // string name = 2; if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.FieldParam.name"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 2, this->name(), target); } - // optional .milvus.grpc.DataType type = 3; + // .milvus.grpc.DataType type = 3; if (this->type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 3, this->type(), target); } // repeated .milvus.grpc.KeyValuePair index_params = 4; - for (unsigned int i = 0, n = this->index_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, this->index_params(i), false, target); + for (unsigned int i = 0, + n = static_cast(this->index_params_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->index_params(static_cast(i)), target); } // repeated .milvus.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 5, this->extra_params(i), false, target); + for (unsigned int i = 0, + n = static_cast(this->extra_params_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->extra_params(static_cast(i)), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.FieldParam) return target; } -int FieldParam::ByteSize() const { +size_t FieldParam::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.FieldParam) - int total_size = 0; + size_t total_size = 0; - // optional uint64 id = 1; - if (this->id() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->id()); - } - - // optional string name = 2; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // optional .milvus.grpc.DataType type = 3; - if (this->type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; // repeated .milvus.grpc.KeyValuePair index_params = 4; - total_size += 1 * this->index_params_size(); - for (int i = 0; i < this->index_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->index_params(i)); + { + unsigned int count = static_cast(this->index_params_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->index_params(static_cast(i))); + } } // repeated .milvus.grpc.KeyValuePair extra_params = 5; - total_size += 1 * this->extra_params_size(); - for (int i = 0; i < this->extra_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->extra_params(i)); + { + unsigned int count = static_cast(this->extra_params_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->extra_params(static_cast(i))); + } } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // string name = 2; + if (this->name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->name()); + } + + // uint64 id = 1; + if (this->id() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->id()); + } + + // .milvus.grpc.DataType type = 3; + if (this->type() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->type()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void FieldParam::MergeFrom(const ::google::protobuf::Message& from) { +void FieldParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.FieldParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const FieldParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const FieldParam* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.FieldParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.FieldParam) MergeFrom(*source); @@ -15247,24 +13734,26 @@ void FieldParam::MergeFrom(const ::google::protobuf::Message& from) { void FieldParam::MergeFrom(const FieldParam& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.FieldParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + index_params_.MergeFrom(from.index_params_); extra_params_.MergeFrom(from.extra_params_); - if (from.id() != 0) { - set_id(from.id()); - } if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.id() != 0) { + set_id(from.id()); } if (from.type() != 0) { set_type(from.type()); } } -void FieldParam::CopyFrom(const ::google::protobuf::Message& from) { +void FieldParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.FieldParam) if (&from == this) return; Clear(); @@ -15279,196 +13768,48 @@ void FieldParam::CopyFrom(const FieldParam& from) { } bool FieldParam::IsInitialized() const { - return true; } -void FieldParam::Swap(FieldParam* other) { - if (other == this) return; - InternalSwap(other); -} void FieldParam::InternalSwap(FieldParam* other) { - std::swap(id_, other->id_); - name_.Swap(&other->name_); - std::swap(type_, other->type_); - index_params_.UnsafeArenaSwap(&other->index_params_); - extra_params_.UnsafeArenaSwap(&other->extra_params_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + CastToBase(&index_params_)->InternalSwap(CastToBase(&other->index_params_)); + CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); + name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(id_, other->id_); + swap(type_, other->type_); } -::google::protobuf::Metadata FieldParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = FieldParam_descriptor_; - metadata.reflection = FieldParam_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata FieldParam::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// FieldParam - -// optional uint64 id = 1; -void FieldParam::clear_id() { - id_ = GOOGLE_ULONGLONG(0); -} - ::google::protobuf::uint64 FieldParam::id() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldParam.id) - return id_; -} - void FieldParam::set_id(::google::protobuf::uint64 value) { - - id_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.FieldParam.id) -} - -// optional string name = 2; -void FieldParam::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& FieldParam::name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldParam.name) - return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void FieldParam::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.FieldParam.name) -} - void FieldParam::set_name(const char* value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.FieldParam.name) -} - void FieldParam::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.FieldParam.name) -} - ::std::string* FieldParam::mutable_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldParam.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* FieldParam::release_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.FieldParam.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void FieldParam::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.FieldParam.name) -} - -// optional .milvus.grpc.DataType type = 3; -void FieldParam::clear_type() { - type_ = 0; -} - ::milvus::grpc::DataType FieldParam::type() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldParam.type) - return static_cast< ::milvus::grpc::DataType >(type_); -} - void FieldParam::set_type(::milvus::grpc::DataType value) { - - type_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.FieldParam.type) -} - -// repeated .milvus.grpc.KeyValuePair index_params = 4; -int FieldParam::index_params_size() const { - return index_params_.size(); -} -void FieldParam::clear_index_params() { - index_params_.Clear(); -} -const ::milvus::grpc::KeyValuePair& FieldParam::index_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldParam.index_params) - return index_params_.Get(index); -} -::milvus::grpc::KeyValuePair* FieldParam::mutable_index_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldParam.index_params) - return index_params_.Mutable(index); -} -::milvus::grpc::KeyValuePair* FieldParam::add_index_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.FieldParam.index_params) - return index_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -FieldParam::mutable_index_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.FieldParam.index_params) - return &index_params_; -} -const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -FieldParam::index_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.FieldParam.index_params) - return index_params_; -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 5; -int FieldParam::extra_params_size() const { - return extra_params_.size(); -} -void FieldParam::clear_extra_params() { - extra_params_.Clear(); -} -const ::milvus::grpc::KeyValuePair& FieldParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldParam.extra_params) - return extra_params_.Get(index); -} -::milvus::grpc::KeyValuePair* FieldParam::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldParam.extra_params) - return extra_params_.Mutable(index); -} -::milvus::grpc::KeyValuePair* FieldParam::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.FieldParam.extra_params) - return extra_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -FieldParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.FieldParam.extra_params) - return &extra_params_; -} -const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -FieldParam::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.FieldParam.extra_params) - return extra_params_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VectorFieldRecord::kValueFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void VectorFieldRecord::InitAsDefaultInstance() { +} +class VectorFieldRecord::_Internal { + public: +}; VectorFieldRecord::VectorFieldRecord() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.VectorFieldRecord) } - -void VectorFieldRecord::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - VectorFieldRecord::VectorFieldRecord(const VectorFieldRecord& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + value_(from.value_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:milvus.grpc.VectorFieldRecord) } void VectorFieldRecord::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_VectorFieldRecord_suvlim_2eproto.base); } VectorFieldRecord::~VectorFieldRecord() { @@ -15477,74 +13818,95 @@ VectorFieldRecord::~VectorFieldRecord() { } void VectorFieldRecord::SharedDtor() { - if (this != default_instance_) { - } } void VectorFieldRecord::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* VectorFieldRecord::descriptor() { - protobuf_AssignDescriptorsOnce(); - return VectorFieldRecord_descriptor_; -} - const VectorFieldRecord& VectorFieldRecord::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VectorFieldRecord_suvlim_2eproto.base); + return *internal_default_instance(); } -VectorFieldRecord* VectorFieldRecord::default_instance_ = NULL; - -VectorFieldRecord* VectorFieldRecord::New(::google::protobuf::Arena* arena) const { - VectorFieldRecord* n = new VectorFieldRecord; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void VectorFieldRecord::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.VectorFieldRecord) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + value_.Clear(); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* VectorFieldRecord::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated .milvus.grpc.VectorRowRecord value = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_value(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool VectorFieldRecord::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.VectorFieldRecord) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated .milvus.grpc.VectorRowRecord value = 1; case 1: { - if (tag == 10) { - DO_(input->IncrementRecursionDepth()); - parse_loop_value: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_value())); } else { goto handle_unusual; } - if (input->ExpectTag(10)) goto parse_loop_value; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -15557,62 +13919,90 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void VectorFieldRecord::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.VectorFieldRecord) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated .milvus.grpc.VectorRowRecord value = 1; - for (unsigned int i = 0, n = this->value_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->value(i), output); + for (unsigned int i = 0, + n = static_cast(this->value_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->value(static_cast(i)), + output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.VectorFieldRecord) } -::google::protobuf::uint8* VectorFieldRecord::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* VectorFieldRecord::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.VectorFieldRecord) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated .milvus.grpc.VectorRowRecord value = 1; - for (unsigned int i = 0, n = this->value_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, this->value(i), false, target); + for (unsigned int i = 0, + n = static_cast(this->value_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->value(static_cast(i)), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.VectorFieldRecord) return target; } -int VectorFieldRecord::ByteSize() const { +size_t VectorFieldRecord::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.VectorFieldRecord) - int total_size = 0; + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; // repeated .milvus.grpc.VectorRowRecord value = 1; - total_size += 1 * this->value_size(); - for (int i = 0; i < this->value_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->value(i)); + { + unsigned int count = static_cast(this->value_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->value(static_cast(i))); + } } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void VectorFieldRecord::MergeFrom(const ::google::protobuf::Message& from) { +void VectorFieldRecord::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.VectorFieldRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const VectorFieldRecord* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const VectorFieldRecord* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.VectorFieldRecord) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.VectorFieldRecord) MergeFrom(*source); @@ -15621,13 +14011,15 @@ void VectorFieldRecord::MergeFrom(const ::google::protobuf::Message& from) { void VectorFieldRecord::MergeFrom(const VectorFieldRecord& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.VectorFieldRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + value_.MergeFrom(from.value_); } -void VectorFieldRecord::CopyFrom(const ::google::protobuf::Message& from) { +void VectorFieldRecord::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.VectorFieldRecord) if (&from == this) return; Clear(); @@ -15642,99 +14034,56 @@ void VectorFieldRecord::CopyFrom(const VectorFieldRecord& from) { } bool VectorFieldRecord::IsInitialized() const { - return true; } -void VectorFieldRecord::Swap(VectorFieldRecord* other) { - if (other == this) return; - InternalSwap(other); -} void VectorFieldRecord::InternalSwap(VectorFieldRecord* other) { - value_.UnsafeArenaSwap(&other->value_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + CastToBase(&value_)->InternalSwap(CastToBase(&other->value_)); } -::google::protobuf::Metadata VectorFieldRecord::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = VectorFieldRecord_descriptor_; - metadata.reflection = VectorFieldRecord_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata VectorFieldRecord::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// VectorFieldRecord - -// repeated .milvus.grpc.VectorRowRecord value = 1; -int VectorFieldRecord::value_size() const { - return value_.size(); -} -void VectorFieldRecord::clear_value() { - value_.Clear(); -} -const ::milvus::grpc::VectorRowRecord& VectorFieldRecord::value(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorFieldRecord.value) - return value_.Get(index); -} -::milvus::grpc::VectorRowRecord* VectorFieldRecord::mutable_value(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorFieldRecord.value) - return value_.Mutable(index); -} -::milvus::grpc::VectorRowRecord* VectorFieldRecord::add_value() { - // @@protoc_insertion_point(field_add:milvus.grpc.VectorFieldRecord.value) - return value_.Add(); -} -::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* -VectorFieldRecord::mutable_value() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorFieldRecord.value) - return &value_; -} -const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& -VectorFieldRecord::value() const { - // @@protoc_insertion_point(field_list:milvus.grpc.VectorFieldRecord.value) - return value_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TermQuery::kFieldNameFieldNumber; -const int TermQuery::kIntValueFieldNumber; -const int TermQuery::kDoubleValueFieldNumber; -const int TermQuery::kValueNumFieldNumber; -const int TermQuery::kBoostFieldNumber; -const int TermQuery::kExtraParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void TermQuery::InitAsDefaultInstance() { +} +class TermQuery::_Internal { + public: +}; TermQuery::TermQuery() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.TermQuery) } - -void TermQuery::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - TermQuery::TermQuery(const TermQuery& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + int_value_(from.int_value_), + double_value_(from.double_value_), + extra_params_(from.extra_params_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.field_name().empty()) { + field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); + } + ::memcpy(&value_num_, &from.value_num_, + static_cast(reinterpret_cast(&boost_) - + reinterpret_cast(&value_num_)) + sizeof(boost_)); // @@protoc_insertion_point(copy_constructor:milvus.grpc.TermQuery) } void TermQuery::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - field_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - value_num_ = GOOGLE_LONGLONG(0); - boost_ = 0; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TermQuery_suvlim_2eproto.base); + field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&value_num_, 0, static_cast( + reinterpret_cast(&boost_) - + reinterpret_cast(&value_num_)) + sizeof(boost_)); } TermQuery::~TermQuery() { @@ -15743,163 +14092,216 @@ TermQuery::~TermQuery() { } void TermQuery::SharedDtor() { - field_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } + field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void TermQuery::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* TermQuery::descriptor() { - protobuf_AssignDescriptorsOnce(); - return TermQuery_descriptor_; -} - const TermQuery& TermQuery::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TermQuery_suvlim_2eproto.base); + return *internal_default_instance(); } -TermQuery* TermQuery::default_instance_ = NULL; - -TermQuery* TermQuery::New(::google::protobuf::Arena* arena) const { - TermQuery* n = new TermQuery; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void TermQuery::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.TermQuery) - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - value_num_ = GOOGLE_LONGLONG(0); - boost_ = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + int_value_.Clear(); double_value_.Clear(); extra_params_.Clear(); + field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&value_num_, 0, static_cast( + reinterpret_cast(&boost_) - + reinterpret_cast(&value_num_)) + sizeof(boost_)); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TermQuery::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string field_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_field_name(), ptr, ctx, "milvus.grpc.TermQuery.field_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated int64 int_value = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_int_value(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) { + add_int_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated double double_value = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(mutable_double_value(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25) { + add_double_value(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } else goto handle_unusual; + continue; + // int64 value_num = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + value_num_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // float boost = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 45)) { + boost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(float); + } else goto handle_unusual; + continue; + // repeated .milvus.grpc.KeyValuePair extra_params = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_extra_params(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 50); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool TermQuery::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.TermQuery) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string field_name = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string field_name = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_field_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.TermQuery.field_name")); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_int_value; break; } // repeated int64 int_value = 2; case 2: { - if (tag == 18) { - parse_int_value: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( input, this->mutable_int_value()))); - } else if (tag == 16) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - 1, 18, input, this->mutable_int_value()))); + } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + 1, 18u, input, this->mutable_int_value()))); } else { goto handle_unusual; } - if (input->ExpectTag(26)) goto parse_double_value; break; } // repeated double double_value = 3; case 3: { - if (tag == 26) { - parse_double_value: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< + double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( input, this->mutable_double_value()))); - } else if (tag == 25) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - 1, 26, input, this->mutable_double_value()))); + } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (25 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( + 1, 26u, input, this->mutable_double_value()))); } else { goto handle_unusual; } - if (input->ExpectTag(32)) goto parse_value_num; break; } - // optional int64 value_num = 4; + // int64 value_num = 4; case 4: { - if (tag == 32) { - parse_value_num: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &value_num_))); + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &value_num_))); } else { goto handle_unusual; } - if (input->ExpectTag(45)) goto parse_boost; break; } - // optional float boost = 5; + // float boost = 5; case 5: { - if (tag == 45) { - parse_boost: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &boost_))); + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (45 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( + input, &boost_))); } else { goto handle_unusual; } - if (input->ExpectTag(50)) goto parse_extra_params; break; } // repeated .milvus.grpc.KeyValuePair extra_params = 6; case 6: { - if (tag == 50) { - parse_extra_params: - DO_(input->IncrementRecursionDepth()); - parse_loop_extra_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_extra_params())); } else { goto handle_unusual; } - if (input->ExpectTag(50)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -15912,201 +14314,226 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void TermQuery::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.TermQuery) - // optional string field_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string field_name = 1; if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.TermQuery.field_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->field_name(), output); } // repeated int64 int_value = 2; if (this->int_value_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_int_value_cached_byte_size_); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(2, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_int_value_cached_byte_size_.load( + std::memory_order_relaxed)); } - for (int i = 0; i < this->int_value_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag( + for (int i = 0, n = this->int_value_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( this->int_value(i), output); } // repeated double double_value = 3; if (this->double_value_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_double_value_cached_byte_size_); - } - for (int i = 0; i < this->double_value_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteDoubleNoTag( - this->double_value(i), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(3, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_double_value_cached_byte_size_.load( + std::memory_order_relaxed)); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleArray( + this->double_value().data(), this->double_value_size(), output); } - // optional int64 value_num = 4; + // int64 value_num = 4; if (this->value_num() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->value_num(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(4, this->value_num(), output); } - // optional float boost = 5; - if (this->boost() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->boost(), output); + // float boost = 5; + if (!(this->boost() <= 0 && this->boost() >= 0)) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(5, this->boost(), output); } // repeated .milvus.grpc.KeyValuePair extra_params = 6; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->extra_params(i), output); + for (unsigned int i = 0, + n = static_cast(this->extra_params_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, + this->extra_params(static_cast(i)), + output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.TermQuery) } -::google::protobuf::uint8* TermQuery::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* TermQuery::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.TermQuery) - // optional string field_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string field_name = 1; if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.TermQuery.field_name"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 1, this->field_name(), target); } // repeated int64 int_value = 2; if (this->int_value_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( 2, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _int_value_cached_byte_size_, target); - } - for (int i = 0; i < this->int_value_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->int_value(i), target); + target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( + _int_value_cached_byte_size_.load(std::memory_order_relaxed), + target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteInt64NoTagToArray(this->int_value_, target); } // repeated double double_value = 3; if (this->double_value_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( 3, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _double_value_cached_byte_size_, target); - } - for (int i = 0; i < this->double_value_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->double_value(i), target); + target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( + _double_value_cached_byte_size_.load(std::memory_order_relaxed), + target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteDoubleNoTagToArray(this->double_value_, target); } - // optional int64 value_num = 4; + // int64 value_num = 4; if (this->value_num() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->value_num(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->value_num(), target); } - // optional float boost = 5; - if (this->boost() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->boost(), target); + // float boost = 5; + if (!(this->boost() <= 0 && this->boost() >= 0)) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->boost(), target); } // repeated .milvus.grpc.KeyValuePair extra_params = 6; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 6, this->extra_params(i), false, target); + for (unsigned int i = 0, + n = static_cast(this->extra_params_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, this->extra_params(static_cast(i)), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.TermQuery) return target; } -int TermQuery::ByteSize() const { +size_t TermQuery::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.TermQuery) - int total_size = 0; + size_t total_size = 0; - // optional string field_name = 1; - if (this->field_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->field_name()); - } - - // optional int64 value_num = 4; - if (this->value_num() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->value_num()); - } - - // optional float boost = 5; - if (this->boost() != 0) { - total_size += 1 + 4; + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; // repeated int64 int_value = 2; { - int data_size = 0; - for (int i = 0; i < this->int_value_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int64Size(this->int_value(i)); - } + size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + Int64Size(this->int_value_); if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _int_value_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _int_value_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); total_size += data_size; } // repeated double double_value = 3; { - int data_size = 0; - data_size = 8 * this->double_value_size(); + unsigned int count = static_cast(this->double_value_size()); + size_t data_size = 8UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _double_value_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _double_value_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); total_size += data_size; } // repeated .milvus.grpc.KeyValuePair extra_params = 6; - total_size += 1 * this->extra_params_size(); - for (int i = 0; i < this->extra_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->extra_params(i)); + { + unsigned int count = static_cast(this->extra_params_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->extra_params(static_cast(i))); + } } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // string field_name = 1; + if (this->field_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->field_name()); + } + + // int64 value_num = 4; + if (this->value_num() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->value_num()); + } + + // float boost = 5; + if (!(this->boost() <= 0 && this->boost() >= 0)) { + total_size += 1 + 4; + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void TermQuery::MergeFrom(const ::google::protobuf::Message& from) { +void TermQuery::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.TermQuery) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const TermQuery* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const TermQuery* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.TermQuery) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.TermQuery) MergeFrom(*source); @@ -16115,25 +14542,27 @@ void TermQuery::MergeFrom(const ::google::protobuf::Message& from) { void TermQuery::MergeFrom(const TermQuery& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.TermQuery) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + int_value_.MergeFrom(from.int_value_); double_value_.MergeFrom(from.double_value_); extra_params_.MergeFrom(from.extra_params_); if (from.field_name().size() > 0) { - field_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.field_name_); + field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); } if (from.value_num() != 0) { set_value_num(from.value_num()); } - if (from.boost() != 0) { + if (!(from.boost() <= 0 && from.boost() >= 0)) { set_boost(from.boost()); } } -void TermQuery::CopyFrom(const ::google::protobuf::Message& from) { +void TermQuery::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.TermQuery) if (&from == this) return; Clear(); @@ -16148,231 +14577,55 @@ void TermQuery::CopyFrom(const TermQuery& from) { } bool TermQuery::IsInitialized() const { - return true; } -void TermQuery::Swap(TermQuery* other) { - if (other == this) return; - InternalSwap(other); -} void TermQuery::InternalSwap(TermQuery* other) { - field_name_.Swap(&other->field_name_); - int_value_.UnsafeArenaSwap(&other->int_value_); - double_value_.UnsafeArenaSwap(&other->double_value_); - std::swap(value_num_, other->value_num_); - std::swap(boost_, other->boost_); - extra_params_.UnsafeArenaSwap(&other->extra_params_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + int_value_.InternalSwap(&other->int_value_); + double_value_.InternalSwap(&other->double_value_); + CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); + field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(value_num_, other->value_num_); + swap(boost_, other->boost_); } -::google::protobuf::Metadata TermQuery::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = TermQuery_descriptor_; - metadata.reflection = TermQuery_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata TermQuery::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// TermQuery - -// optional string field_name = 1; -void TermQuery::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& TermQuery::field_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.TermQuery.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void TermQuery::set_field_name(const ::std::string& value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.TermQuery.field_name) -} - void TermQuery::set_field_name(const char* value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.TermQuery.field_name) -} - void TermQuery::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.TermQuery.field_name) -} - ::std::string* TermQuery::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.TermQuery.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* TermQuery::release_field_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.TermQuery.field_name) - - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void TermQuery::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.TermQuery.field_name) -} - -// repeated int64 int_value = 2; -int TermQuery::int_value_size() const { - return int_value_.size(); -} -void TermQuery::clear_int_value() { - int_value_.Clear(); -} - ::google::protobuf::int64 TermQuery::int_value(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.TermQuery.int_value) - return int_value_.Get(index); -} - void TermQuery::set_int_value(int index, ::google::protobuf::int64 value) { - int_value_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.TermQuery.int_value) -} - void TermQuery::add_int_value(::google::protobuf::int64 value) { - int_value_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.TermQuery.int_value) -} - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -TermQuery::int_value() const { - // @@protoc_insertion_point(field_list:milvus.grpc.TermQuery.int_value) - return int_value_; -} - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -TermQuery::mutable_int_value() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.TermQuery.int_value) - return &int_value_; -} - -// repeated double double_value = 3; -int TermQuery::double_value_size() const { - return double_value_.size(); -} -void TermQuery::clear_double_value() { - double_value_.Clear(); -} - double TermQuery::double_value(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.TermQuery.double_value) - return double_value_.Get(index); -} - void TermQuery::set_double_value(int index, double value) { - double_value_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.TermQuery.double_value) -} - void TermQuery::add_double_value(double value) { - double_value_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.TermQuery.double_value) -} - const ::google::protobuf::RepeatedField< double >& -TermQuery::double_value() const { - // @@protoc_insertion_point(field_list:milvus.grpc.TermQuery.double_value) - return double_value_; -} - ::google::protobuf::RepeatedField< double >* -TermQuery::mutable_double_value() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.TermQuery.double_value) - return &double_value_; -} - -// optional int64 value_num = 4; -void TermQuery::clear_value_num() { - value_num_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 TermQuery::value_num() const { - // @@protoc_insertion_point(field_get:milvus.grpc.TermQuery.value_num) - return value_num_; -} - void TermQuery::set_value_num(::google::protobuf::int64 value) { - - value_num_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.TermQuery.value_num) -} - -// optional float boost = 5; -void TermQuery::clear_boost() { - boost_ = 0; -} - float TermQuery::boost() const { - // @@protoc_insertion_point(field_get:milvus.grpc.TermQuery.boost) - return boost_; -} - void TermQuery::set_boost(float value) { - - boost_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.TermQuery.boost) -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 6; -int TermQuery::extra_params_size() const { - return extra_params_.size(); -} -void TermQuery::clear_extra_params() { - extra_params_.Clear(); -} -const ::milvus::grpc::KeyValuePair& TermQuery::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.TermQuery.extra_params) - return extra_params_.Get(index); -} -::milvus::grpc::KeyValuePair* TermQuery::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.TermQuery.extra_params) - return extra_params_.Mutable(index); -} -::milvus::grpc::KeyValuePair* TermQuery::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.TermQuery.extra_params) - return extra_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -TermQuery::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.TermQuery.extra_params) - return &extra_params_; -} -const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -TermQuery::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.TermQuery.extra_params) - return extra_params_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CompareExpr::kOperatorFieldNumber; -const int CompareExpr::kOperandFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void CompareExpr::InitAsDefaultInstance() { +} +class CompareExpr::_Internal { + public: +}; CompareExpr::CompareExpr() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.CompareExpr) } - -void CompareExpr::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - CompareExpr::CompareExpr(const CompareExpr& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + operand_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.operand().empty()) { + operand_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.operand_); + } + operator__ = from.operator__; // @@protoc_insertion_point(copy_constructor:milvus.grpc.CompareExpr) } void CompareExpr::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CompareExpr_suvlim_2eproto.base); + operand_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); operator__ = 0; - operand_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } CompareExpr::~CompareExpr() { @@ -16381,92 +14634,118 @@ CompareExpr::~CompareExpr() { } void CompareExpr::SharedDtor() { - operand_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } + operand_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void CompareExpr::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* CompareExpr::descriptor() { - protobuf_AssignDescriptorsOnce(); - return CompareExpr_descriptor_; -} - const CompareExpr& CompareExpr::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CompareExpr_suvlim_2eproto.base); + return *internal_default_instance(); } -CompareExpr* CompareExpr::default_instance_ = NULL; - -CompareExpr* CompareExpr::New(::google::protobuf::Arena* arena) const { - CompareExpr* n = new CompareExpr; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void CompareExpr::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.CompareExpr) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + operand_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); operator__ = 0; - operand_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CompareExpr::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.grpc.CompareOperator operator = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + set_operator_(static_cast<::milvus::grpc::CompareOperator>(val)); + } else goto handle_unusual; + continue; + // string operand = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_operand(), ptr, ctx, "milvus.grpc.CompareExpr.operand"); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool CompareExpr::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.CompareExpr) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .milvus.grpc.CompareOperator operator = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.grpc.CompareOperator operator = 1; case 1: { - if (tag == 8) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( input, &value))); set_operator_(static_cast< ::milvus::grpc::CompareOperator >(value)); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_operand; break; } - // optional string operand = 2; + // string operand = 2; case 2: { - if (tag == 18) { - parse_operand: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_operand())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->operand().data(), this->operand().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->operand().data(), static_cast(this->operand().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.CompareExpr.operand")); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -16479,87 +14758,108 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void CompareExpr::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.CompareExpr) - // optional .milvus.grpc.CompareOperator operator = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.CompareOperator operator = 1; if (this->operator_() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( 1, this->operator_(), output); } - // optional string operand = 2; + // string operand = 2; if (this->operand().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->operand().data(), this->operand().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->operand().data(), static_cast(this->operand().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.CompareExpr.operand"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->operand(), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.CompareExpr) } -::google::protobuf::uint8* CompareExpr::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* CompareExpr::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.CompareExpr) - // optional .milvus.grpc.CompareOperator operator = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.CompareOperator operator = 1; if (this->operator_() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 1, this->operator_(), target); } - // optional string operand = 2; + // string operand = 2; if (this->operand().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->operand().data(), this->operand().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->operand().data(), static_cast(this->operand().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.CompareExpr.operand"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 2, this->operand(), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.CompareExpr) return target; } -int CompareExpr::ByteSize() const { +size_t CompareExpr::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.CompareExpr) - int total_size = 0; + size_t total_size = 0; - // optional .milvus.grpc.CompareOperator operator = 1; - if (this->operator_() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->operator_()); + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; - // optional string operand = 2; + // string operand = 2; if (this->operand().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->operand()); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // .milvus.grpc.CompareOperator operator = 1; + if (this->operator_() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->operator_()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void CompareExpr::MergeFrom(const ::google::protobuf::Message& from) { +void CompareExpr::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.CompareExpr) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const CompareExpr* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const CompareExpr* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.CompareExpr) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.CompareExpr) MergeFrom(*source); @@ -16568,19 +14868,21 @@ void CompareExpr::MergeFrom(const ::google::protobuf::Message& from) { void CompareExpr::MergeFrom(const CompareExpr& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.CompareExpr) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.operand().size() > 0) { + + operand_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.operand_); } if (from.operator_() != 0) { set_operator_(from.operator_()); } - if (from.operand().size() > 0) { - - operand_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.operand_); - } } -void CompareExpr::CopyFrom(const ::google::protobuf::Message& from) { +void CompareExpr::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.CompareExpr) if (&from == this) return; Clear(); @@ -16595,124 +14897,52 @@ void CompareExpr::CopyFrom(const CompareExpr& from) { } bool CompareExpr::IsInitialized() const { - return true; } -void CompareExpr::Swap(CompareExpr* other) { - if (other == this) return; - InternalSwap(other); -} void CompareExpr::InternalSwap(CompareExpr* other) { - std::swap(operator__, other->operator__); - operand_.Swap(&other->operand_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + operand_.Swap(&other->operand_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(operator__, other->operator__); } -::google::protobuf::Metadata CompareExpr::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = CompareExpr_descriptor_; - metadata.reflection = CompareExpr_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata CompareExpr::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// CompareExpr - -// optional .milvus.grpc.CompareOperator operator = 1; -void CompareExpr::clear_operator_() { - operator__ = 0; -} - ::milvus::grpc::CompareOperator CompareExpr::operator_() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CompareExpr.operator) - return static_cast< ::milvus::grpc::CompareOperator >(operator__); -} - void CompareExpr::set_operator_(::milvus::grpc::CompareOperator value) { - - operator__ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.CompareExpr.operator) -} - -// optional string operand = 2; -void CompareExpr::clear_operand() { - operand_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& CompareExpr::operand() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CompareExpr.operand) - return operand_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void CompareExpr::set_operand(const ::std::string& value) { - - operand_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.CompareExpr.operand) -} - void CompareExpr::set_operand(const char* value) { - - operand_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.CompareExpr.operand) -} - void CompareExpr::set_operand(const char* value, size_t size) { - - operand_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.CompareExpr.operand) -} - ::std::string* CompareExpr::mutable_operand() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.CompareExpr.operand) - return operand_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* CompareExpr::release_operand() { - // @@protoc_insertion_point(field_release:milvus.grpc.CompareExpr.operand) - - return operand_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void CompareExpr::set_allocated_operand(::std::string* operand) { - if (operand != NULL) { - - } else { - - } - operand_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), operand); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CompareExpr.operand) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int RangeQuery::kFieldNameFieldNumber; -const int RangeQuery::kOperandFieldNumber; -const int RangeQuery::kBoostFieldNumber; -const int RangeQuery::kExtraParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void RangeQuery::InitAsDefaultInstance() { +} +class RangeQuery::_Internal { + public: +}; RangeQuery::RangeQuery() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.RangeQuery) } - -void RangeQuery::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - RangeQuery::RangeQuery(const RangeQuery& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + operand_(from.operand_), + extra_params_(from.extra_params_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.field_name().empty()) { + field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); + } + boost_ = from.boost_; // @@protoc_insertion_point(copy_constructor:milvus.grpc.RangeQuery) } void RangeQuery::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - field_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RangeQuery_suvlim_2eproto.base); + field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); boost_ = 0; } @@ -16722,127 +14952,164 @@ RangeQuery::~RangeQuery() { } void RangeQuery::SharedDtor() { - field_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } + field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void RangeQuery::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* RangeQuery::descriptor() { - protobuf_AssignDescriptorsOnce(); - return RangeQuery_descriptor_; -} - const RangeQuery& RangeQuery::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RangeQuery_suvlim_2eproto.base); + return *internal_default_instance(); } -RangeQuery* RangeQuery::default_instance_ = NULL; - -RangeQuery* RangeQuery::New(::google::protobuf::Arena* arena) const { - RangeQuery* n = new RangeQuery; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void RangeQuery::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.RangeQuery) - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - boost_ = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + operand_.Clear(); extra_params_.Clear(); + field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + boost_ = 0; + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* RangeQuery::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string field_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_field_name(), ptr, ctx, "milvus.grpc.RangeQuery.field_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .milvus.grpc.CompareExpr operand = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_operand(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); + } else goto handle_unusual; + continue; + // float boost = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) { + boost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(float); + } else goto handle_unusual; + continue; + // repeated .milvus.grpc.KeyValuePair extra_params = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_extra_params(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool RangeQuery::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.RangeQuery) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string field_name = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string field_name = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_field_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.RangeQuery.field_name")); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_operand; break; } // repeated .milvus.grpc.CompareExpr operand = 2; case 2: { - if (tag == 18) { - parse_operand: - DO_(input->IncrementRecursionDepth()); - parse_loop_operand: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_operand())); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_loop_operand; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectTag(29)) goto parse_boost; break; } - // optional float boost = 3; + // float boost = 3; case 3: { - if (tag == 29) { - parse_boost: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &boost_))); + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (29 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( + input, &boost_))); } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_extra_params; break; } // repeated .milvus.grpc.KeyValuePair extra_params = 4; case 4: { - if (tag == 34) { - parse_extra_params: - DO_(input->IncrementRecursionDepth()); - parse_loop_extra_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_extra_params())); } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -16855,126 +15122,161 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void RangeQuery::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.RangeQuery) - // optional string field_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string field_name = 1; if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.RangeQuery.field_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->field_name(), output); } // repeated .milvus.grpc.CompareExpr operand = 2; - for (unsigned int i = 0, n = this->operand_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->operand(i), output); + for (unsigned int i = 0, + n = static_cast(this->operand_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, + this->operand(static_cast(i)), + output); } - // optional float boost = 3; - if (this->boost() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->boost(), output); + // float boost = 3; + if (!(this->boost() <= 0 && this->boost() >= 0)) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(3, this->boost(), output); } // repeated .milvus.grpc.KeyValuePair extra_params = 4; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->extra_params(i), output); + for (unsigned int i = 0, + n = static_cast(this->extra_params_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, + this->extra_params(static_cast(i)), + output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.RangeQuery) } -::google::protobuf::uint8* RangeQuery::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* RangeQuery::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.RangeQuery) - // optional string field_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string field_name = 1; if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.RangeQuery.field_name"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 1, this->field_name(), target); } // repeated .milvus.grpc.CompareExpr operand = 2; - for (unsigned int i = 0, n = this->operand_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, this->operand(i), false, target); + for (unsigned int i = 0, + n = static_cast(this->operand_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->operand(static_cast(i)), target); } - // optional float boost = 3; - if (this->boost() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->boost(), target); + // float boost = 3; + if (!(this->boost() <= 0 && this->boost() >= 0)) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->boost(), target); } // repeated .milvus.grpc.KeyValuePair extra_params = 4; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, this->extra_params(i), false, target); + for (unsigned int i = 0, + n = static_cast(this->extra_params_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->extra_params(static_cast(i)), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.RangeQuery) return target; } -int RangeQuery::ByteSize() const { +size_t RangeQuery::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.RangeQuery) - int total_size = 0; + size_t total_size = 0; - // optional string field_name = 1; - if (this->field_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->field_name()); - } - - // optional float boost = 3; - if (this->boost() != 0) { - total_size += 1 + 4; + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; // repeated .milvus.grpc.CompareExpr operand = 2; - total_size += 1 * this->operand_size(); - for (int i = 0; i < this->operand_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->operand(i)); + { + unsigned int count = static_cast(this->operand_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->operand(static_cast(i))); + } } // repeated .milvus.grpc.KeyValuePair extra_params = 4; - total_size += 1 * this->extra_params_size(); - for (int i = 0; i < this->extra_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->extra_params(i)); + { + unsigned int count = static_cast(this->extra_params_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->extra_params(static_cast(i))); + } } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // string field_name = 1; + if (this->field_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->field_name()); + } + + // float boost = 3; + if (!(this->boost() <= 0 && this->boost() >= 0)) { + total_size += 1 + 4; + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void RangeQuery::MergeFrom(const ::google::protobuf::Message& from) { +void RangeQuery::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.RangeQuery) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const RangeQuery* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const RangeQuery* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.RangeQuery) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.RangeQuery) MergeFrom(*source); @@ -16983,21 +15285,23 @@ void RangeQuery::MergeFrom(const ::google::protobuf::Message& from) { void RangeQuery::MergeFrom(const RangeQuery& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.RangeQuery) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + operand_.MergeFrom(from.operand_); extra_params_.MergeFrom(from.extra_params_); if (from.field_name().size() > 0) { - field_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.field_name_); + field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); } - if (from.boost() != 0) { + if (!(from.boost() <= 0 && from.boost() >= 0)) { set_boost(from.boost()); } } -void RangeQuery::CopyFrom(const ::google::protobuf::Message& from) { +void RangeQuery::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.RangeQuery) if (&from == this) return; Clear(); @@ -17012,189 +15316,59 @@ void RangeQuery::CopyFrom(const RangeQuery& from) { } bool RangeQuery::IsInitialized() const { - return true; } -void RangeQuery::Swap(RangeQuery* other) { - if (other == this) return; - InternalSwap(other); -} void RangeQuery::InternalSwap(RangeQuery* other) { - field_name_.Swap(&other->field_name_); - operand_.UnsafeArenaSwap(&other->operand_); - std::swap(boost_, other->boost_); - extra_params_.UnsafeArenaSwap(&other->extra_params_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + CastToBase(&operand_)->InternalSwap(CastToBase(&other->operand_)); + CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); + field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(boost_, other->boost_); } -::google::protobuf::Metadata RangeQuery::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = RangeQuery_descriptor_; - metadata.reflection = RangeQuery_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata RangeQuery::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// RangeQuery - -// optional string field_name = 1; -void RangeQuery::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& RangeQuery::field_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.RangeQuery.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void RangeQuery::set_field_name(const ::std::string& value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.RangeQuery.field_name) -} - void RangeQuery::set_field_name(const char* value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.RangeQuery.field_name) -} - void RangeQuery::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.RangeQuery.field_name) -} - ::std::string* RangeQuery::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.RangeQuery.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* RangeQuery::release_field_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.RangeQuery.field_name) - - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void RangeQuery::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.RangeQuery.field_name) -} - -// repeated .milvus.grpc.CompareExpr operand = 2; -int RangeQuery::operand_size() const { - return operand_.size(); -} -void RangeQuery::clear_operand() { - operand_.Clear(); -} -const ::milvus::grpc::CompareExpr& RangeQuery::operand(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.RangeQuery.operand) - return operand_.Get(index); -} -::milvus::grpc::CompareExpr* RangeQuery::mutable_operand(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.RangeQuery.operand) - return operand_.Mutable(index); -} -::milvus::grpc::CompareExpr* RangeQuery::add_operand() { - // @@protoc_insertion_point(field_add:milvus.grpc.RangeQuery.operand) - return operand_.Add(); -} -::google::protobuf::RepeatedPtrField< ::milvus::grpc::CompareExpr >* -RangeQuery::mutable_operand() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.RangeQuery.operand) - return &operand_; -} -const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::CompareExpr >& -RangeQuery::operand() const { - // @@protoc_insertion_point(field_list:milvus.grpc.RangeQuery.operand) - return operand_; -} - -// optional float boost = 3; -void RangeQuery::clear_boost() { - boost_ = 0; -} - float RangeQuery::boost() const { - // @@protoc_insertion_point(field_get:milvus.grpc.RangeQuery.boost) - return boost_; -} - void RangeQuery::set_boost(float value) { - - boost_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.RangeQuery.boost) -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 4; -int RangeQuery::extra_params_size() const { - return extra_params_.size(); -} -void RangeQuery::clear_extra_params() { - extra_params_.Clear(); -} -const ::milvus::grpc::KeyValuePair& RangeQuery::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.RangeQuery.extra_params) - return extra_params_.Get(index); -} -::milvus::grpc::KeyValuePair* RangeQuery::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.RangeQuery.extra_params) - return extra_params_.Mutable(index); -} -::milvus::grpc::KeyValuePair* RangeQuery::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.RangeQuery.extra_params) - return extra_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -RangeQuery::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.RangeQuery.extra_params) - return &extra_params_; -} -const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -RangeQuery::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.RangeQuery.extra_params) - return extra_params_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VectorQuery::kFieldNameFieldNumber; -const int VectorQuery::kQueryBoostFieldNumber; -const int VectorQuery::kRecordsFieldNumber; -const int VectorQuery::kTopkFieldNumber; -const int VectorQuery::kExtraParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void VectorQuery::InitAsDefaultInstance() { +} +class VectorQuery::_Internal { + public: +}; VectorQuery::VectorQuery() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.VectorQuery) } - -void VectorQuery::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - VectorQuery::VectorQuery(const VectorQuery& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + records_(from.records_), + extra_params_(from.extra_params_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.field_name().empty()) { + field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); + } + ::memcpy(&topk_, &from.topk_, + static_cast(reinterpret_cast(&query_boost_) - + reinterpret_cast(&topk_)) + sizeof(query_boost_)); // @@protoc_insertion_point(copy_constructor:milvus.grpc.VectorQuery) } void VectorQuery::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - field_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - query_boost_ = 0; - topk_ = GOOGLE_LONGLONG(0); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_VectorQuery_suvlim_2eproto.base); + field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&topk_, 0, static_cast( + reinterpret_cast(&query_boost_) - + reinterpret_cast(&topk_)) + sizeof(query_boost_)); } VectorQuery::~VectorQuery() { @@ -17203,143 +15377,186 @@ VectorQuery::~VectorQuery() { } void VectorQuery::SharedDtor() { - field_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } + field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void VectorQuery::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* VectorQuery::descriptor() { - protobuf_AssignDescriptorsOnce(); - return VectorQuery_descriptor_; -} - const VectorQuery& VectorQuery::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VectorQuery_suvlim_2eproto.base); + return *internal_default_instance(); } -VectorQuery* VectorQuery::default_instance_ = NULL; - -VectorQuery* VectorQuery::New(::google::protobuf::Arena* arena) const { - VectorQuery* n = new VectorQuery; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void VectorQuery::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.VectorQuery) - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - query_boost_ = 0; - topk_ = GOOGLE_LONGLONG(0); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + records_.Clear(); extra_params_.Clear(); + field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&topk_, 0, static_cast( + reinterpret_cast(&query_boost_) - + reinterpret_cast(&topk_)) + sizeof(query_boost_)); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* VectorQuery::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string field_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_field_name(), ptr, ctx, "milvus.grpc.VectorQuery.field_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // float query_boost = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) { + query_boost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(float); + } else goto handle_unusual; + continue; + // repeated .milvus.grpc.VectorRowRecord records = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_records(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); + } else goto handle_unusual; + continue; + // int64 topk = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + topk_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .milvus.grpc.KeyValuePair extra_params = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_extra_params(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 42); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool VectorQuery::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.VectorQuery) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string field_name = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string field_name = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_field_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.VectorQuery.field_name")); } else { goto handle_unusual; } - if (input->ExpectTag(21)) goto parse_query_boost; break; } - // optional float query_boost = 2; + // float query_boost = 2; case 2: { - if (tag == 21) { - parse_query_boost: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &query_boost_))); + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (21 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( + input, &query_boost_))); } else { goto handle_unusual; } - if (input->ExpectTag(26)) goto parse_records; break; } // repeated .milvus.grpc.VectorRowRecord records = 3; case 3: { - if (tag == 26) { - parse_records: - DO_(input->IncrementRecursionDepth()); - parse_loop_records: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_records())); } else { goto handle_unusual; } - if (input->ExpectTag(26)) goto parse_loop_records; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectTag(32)) goto parse_topk; break; } - // optional int64 topk = 4; + // int64 topk = 4; case 4: { - if (tag == 32) { - parse_topk: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &topk_))); + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &topk_))); } else { goto handle_unusual; } - if (input->ExpectTag(42)) goto parse_extra_params; break; } // repeated .milvus.grpc.KeyValuePair extra_params = 5; case 5: { - if (tag == 42) { - parse_extra_params: - DO_(input->IncrementRecursionDepth()); - parse_loop_extra_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_extra_params())); } else { goto handle_unusual; } - if (input->ExpectTag(42)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -17352,143 +15569,178 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void VectorQuery::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.VectorQuery) - // optional string field_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string field_name = 1; if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.VectorQuery.field_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->field_name(), output); } - // optional float query_boost = 2; - if (this->query_boost() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->query_boost(), output); + // float query_boost = 2; + if (!(this->query_boost() <= 0 && this->query_boost() >= 0)) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(2, this->query_boost(), output); } // repeated .milvus.grpc.VectorRowRecord records = 3; - for (unsigned int i = 0, n = this->records_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->records(i), output); + for (unsigned int i = 0, + n = static_cast(this->records_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, + this->records(static_cast(i)), + output); } - // optional int64 topk = 4; + // int64 topk = 4; if (this->topk() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->topk(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(4, this->topk(), output); } // repeated .milvus.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->extra_params(i), output); + for (unsigned int i = 0, + n = static_cast(this->extra_params_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, + this->extra_params(static_cast(i)), + output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.VectorQuery) } -::google::protobuf::uint8* VectorQuery::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* VectorQuery::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.VectorQuery) - // optional string field_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string field_name = 1; if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.VectorQuery.field_name"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 1, this->field_name(), target); } - // optional float query_boost = 2; - if (this->query_boost() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->query_boost(), target); + // float query_boost = 2; + if (!(this->query_boost() <= 0 && this->query_boost() >= 0)) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->query_boost(), target); } // repeated .milvus.grpc.VectorRowRecord records = 3; - for (unsigned int i = 0, n = this->records_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, this->records(i), false, target); + for (unsigned int i = 0, + n = static_cast(this->records_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->records(static_cast(i)), target); } - // optional int64 topk = 4; + // int64 topk = 4; if (this->topk() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->topk(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->topk(), target); } // repeated .milvus.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 5, this->extra_params(i), false, target); + for (unsigned int i = 0, + n = static_cast(this->extra_params_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->extra_params(static_cast(i)), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.VectorQuery) return target; } -int VectorQuery::ByteSize() const { +size_t VectorQuery::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.VectorQuery) - int total_size = 0; + size_t total_size = 0; - // optional string field_name = 1; - if (this->field_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->field_name()); - } - - // optional float query_boost = 2; - if (this->query_boost() != 0) { - total_size += 1 + 4; - } - - // optional int64 topk = 4; - if (this->topk() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->topk()); + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; // repeated .milvus.grpc.VectorRowRecord records = 3; - total_size += 1 * this->records_size(); - for (int i = 0; i < this->records_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->records(i)); + { + unsigned int count = static_cast(this->records_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->records(static_cast(i))); + } } // repeated .milvus.grpc.KeyValuePair extra_params = 5; - total_size += 1 * this->extra_params_size(); - for (int i = 0; i < this->extra_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->extra_params(i)); + { + unsigned int count = static_cast(this->extra_params_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->extra_params(static_cast(i))); + } } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // string field_name = 1; + if (this->field_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->field_name()); + } + + // int64 topk = 4; + if (this->topk() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->topk()); + } + + // float query_boost = 2; + if (!(this->query_boost() <= 0 && this->query_boost() >= 0)) { + total_size += 1 + 4; + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void VectorQuery::MergeFrom(const ::google::protobuf::Message& from) { +void VectorQuery::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.VectorQuery) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const VectorQuery* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const VectorQuery* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.VectorQuery) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.VectorQuery) MergeFrom(*source); @@ -17497,24 +15749,26 @@ void VectorQuery::MergeFrom(const ::google::protobuf::Message& from) { void VectorQuery::MergeFrom(const VectorQuery& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.VectorQuery) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + records_.MergeFrom(from.records_); extra_params_.MergeFrom(from.extra_params_); if (from.field_name().size() > 0) { - field_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - if (from.query_boost() != 0) { - set_query_boost(from.query_boost()); + field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); } if (from.topk() != 0) { set_topk(from.topk()); } + if (!(from.query_boost() <= 0 && from.query_boost() >= 0)) { + set_query_boost(from.query_boost()); + } } -void VectorQuery::CopyFrom(const ::google::protobuf::Message& from) { +void VectorQuery::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.VectorQuery) if (&from == this) return; Clear(); @@ -17529,197 +15783,49 @@ void VectorQuery::CopyFrom(const VectorQuery& from) { } bool VectorQuery::IsInitialized() const { - return true; } -void VectorQuery::Swap(VectorQuery* other) { - if (other == this) return; - InternalSwap(other); -} void VectorQuery::InternalSwap(VectorQuery* other) { - field_name_.Swap(&other->field_name_); - std::swap(query_boost_, other->query_boost_); - records_.UnsafeArenaSwap(&other->records_); - std::swap(topk_, other->topk_); - extra_params_.UnsafeArenaSwap(&other->extra_params_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + CastToBase(&records_)->InternalSwap(CastToBase(&other->records_)); + CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); + field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(topk_, other->topk_); + swap(query_boost_, other->query_boost_); } -::google::protobuf::Metadata VectorQuery::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = VectorQuery_descriptor_; - metadata.reflection = VectorQuery_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata VectorQuery::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// VectorQuery - -// optional string field_name = 1; -void VectorQuery::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& VectorQuery::field_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorQuery.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void VectorQuery::set_field_name(const ::std::string& value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.VectorQuery.field_name) -} - void VectorQuery::set_field_name(const char* value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.VectorQuery.field_name) -} - void VectorQuery::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.VectorQuery.field_name) -} - ::std::string* VectorQuery::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorQuery.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* VectorQuery::release_field_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.VectorQuery.field_name) - - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void VectorQuery::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.VectorQuery.field_name) -} - -// optional float query_boost = 2; -void VectorQuery::clear_query_boost() { - query_boost_ = 0; -} - float VectorQuery::query_boost() const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorQuery.query_boost) - return query_boost_; -} - void VectorQuery::set_query_boost(float value) { - - query_boost_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.VectorQuery.query_boost) -} - -// repeated .milvus.grpc.VectorRowRecord records = 3; -int VectorQuery::records_size() const { - return records_.size(); -} -void VectorQuery::clear_records() { - records_.Clear(); -} -const ::milvus::grpc::VectorRowRecord& VectorQuery::records(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorQuery.records) - return records_.Get(index); -} -::milvus::grpc::VectorRowRecord* VectorQuery::mutable_records(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorQuery.records) - return records_.Mutable(index); -} -::milvus::grpc::VectorRowRecord* VectorQuery::add_records() { - // @@protoc_insertion_point(field_add:milvus.grpc.VectorQuery.records) - return records_.Add(); -} -::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* -VectorQuery::mutable_records() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorQuery.records) - return &records_; -} -const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& -VectorQuery::records() const { - // @@protoc_insertion_point(field_list:milvus.grpc.VectorQuery.records) - return records_; -} - -// optional int64 topk = 4; -void VectorQuery::clear_topk() { - topk_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 VectorQuery::topk() const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorQuery.topk) - return topk_; -} - void VectorQuery::set_topk(::google::protobuf::int64 value) { - - topk_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.VectorQuery.topk) -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 5; -int VectorQuery::extra_params_size() const { - return extra_params_.size(); -} -void VectorQuery::clear_extra_params() { - extra_params_.Clear(); -} -const ::milvus::grpc::KeyValuePair& VectorQuery::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorQuery.extra_params) - return extra_params_.Get(index); -} -::milvus::grpc::KeyValuePair* VectorQuery::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorQuery.extra_params) - return extra_params_.Mutable(index); -} -::milvus::grpc::KeyValuePair* VectorQuery::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.VectorQuery.extra_params) - return extra_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -VectorQuery::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorQuery.extra_params) - return &extra_params_; -} -const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -VectorQuery::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.VectorQuery.extra_params) - return extra_params_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int BooleanQuery::kOccurFieldNumber; -const int BooleanQuery::kGeneralQueryFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void BooleanQuery::InitAsDefaultInstance() { +} +class BooleanQuery::_Internal { + public: +}; BooleanQuery::BooleanQuery() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.BooleanQuery) } - -void BooleanQuery::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - BooleanQuery::BooleanQuery(const BooleanQuery& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + general_query_(from.general_query_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + occur_ = from.occur_; // @@protoc_insertion_point(copy_constructor:milvus.grpc.BooleanQuery) } void BooleanQuery::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BooleanQuery_suvlim_2eproto.base); occur_ = 0; } @@ -17729,91 +15835,118 @@ BooleanQuery::~BooleanQuery() { } void BooleanQuery::SharedDtor() { - if (this != default_instance_) { - } } void BooleanQuery::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* BooleanQuery::descriptor() { - protobuf_AssignDescriptorsOnce(); - return BooleanQuery_descriptor_; -} - const BooleanQuery& BooleanQuery::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BooleanQuery_suvlim_2eproto.base); + return *internal_default_instance(); } -BooleanQuery* BooleanQuery::default_instance_ = NULL; - -BooleanQuery* BooleanQuery::New(::google::protobuf::Arena* arena) const { - BooleanQuery* n = new BooleanQuery; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void BooleanQuery::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.BooleanQuery) - occur_ = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + general_query_.Clear(); + occur_ = 0; + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* BooleanQuery::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.grpc.Occur occur = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + set_occur(static_cast<::milvus::grpc::Occur>(val)); + } else goto handle_unusual; + continue; + // repeated .milvus.grpc.GeneralQuery general_query = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_general_query(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool BooleanQuery::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.BooleanQuery) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .milvus.grpc.Occur occur = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.grpc.Occur occur = 1; case 1: { - if (tag == 8) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( input, &value))); set_occur(static_cast< ::milvus::grpc::Occur >(value)); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_general_query; break; } // repeated .milvus.grpc.GeneralQuery general_query = 2; case 2: { - if (tag == 18) { - parse_general_query: - DO_(input->IncrementRecursionDepth()); - parse_loop_general_query: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_general_query())); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_loop_general_query; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -17826,80 +15959,108 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void BooleanQuery::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.BooleanQuery) - // optional .milvus.grpc.Occur occur = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Occur occur = 1; if (this->occur() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( 1, this->occur(), output); } // repeated .milvus.grpc.GeneralQuery general_query = 2; - for (unsigned int i = 0, n = this->general_query_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->general_query(i), output); + for (unsigned int i = 0, + n = static_cast(this->general_query_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, + this->general_query(static_cast(i)), + output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.BooleanQuery) } -::google::protobuf::uint8* BooleanQuery::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* BooleanQuery::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.BooleanQuery) - // optional .milvus.grpc.Occur occur = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Occur occur = 1; if (this->occur() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 1, this->occur(), target); } // repeated .milvus.grpc.GeneralQuery general_query = 2; - for (unsigned int i = 0, n = this->general_query_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, this->general_query(i), false, target); + for (unsigned int i = 0, + n = static_cast(this->general_query_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->general_query(static_cast(i)), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.BooleanQuery) return target; } -int BooleanQuery::ByteSize() const { +size_t BooleanQuery::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.BooleanQuery) - int total_size = 0; + size_t total_size = 0; - // optional .milvus.grpc.Occur occur = 1; - if (this->occur() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->occur()); + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; // repeated .milvus.grpc.GeneralQuery general_query = 2; - total_size += 1 * this->general_query_size(); - for (int i = 0; i < this->general_query_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->general_query(i)); + { + unsigned int count = static_cast(this->general_query_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->general_query(static_cast(i))); + } } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // .milvus.grpc.Occur occur = 1; + if (this->occur() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->occur()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void BooleanQuery::MergeFrom(const ::google::protobuf::Message& from) { +void BooleanQuery::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.BooleanQuery) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const BooleanQuery* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const BooleanQuery* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.BooleanQuery) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.BooleanQuery) MergeFrom(*source); @@ -17908,16 +16069,18 @@ void BooleanQuery::MergeFrom(const ::google::protobuf::Message& from) { void BooleanQuery::MergeFrom(const BooleanQuery& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.BooleanQuery) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + general_query_.MergeFrom(from.general_query_); if (from.occur() != 0) { set_occur(from.occur()); } } -void BooleanQuery::CopyFrom(const ::google::protobuf::Message& from) { +void BooleanQuery::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.BooleanQuery) if (&from == this) return; Clear(); @@ -17932,112 +16095,149 @@ void BooleanQuery::CopyFrom(const BooleanQuery& from) { } bool BooleanQuery::IsInitialized() const { - return true; } -void BooleanQuery::Swap(BooleanQuery* other) { - if (other == this) return; - InternalSwap(other); -} void BooleanQuery::InternalSwap(BooleanQuery* other) { - std::swap(occur_, other->occur_); - general_query_.UnsafeArenaSwap(&other->general_query_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + CastToBase(&general_query_)->InternalSwap(CastToBase(&other->general_query_)); + swap(occur_, other->occur_); } -::google::protobuf::Metadata BooleanQuery::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = BooleanQuery_descriptor_; - metadata.reflection = BooleanQuery_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata BooleanQuery::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// BooleanQuery - -// optional .milvus.grpc.Occur occur = 1; -void BooleanQuery::clear_occur() { - occur_ = 0; -} - ::milvus::grpc::Occur BooleanQuery::occur() const { - // @@protoc_insertion_point(field_get:milvus.grpc.BooleanQuery.occur) - return static_cast< ::milvus::grpc::Occur >(occur_); -} - void BooleanQuery::set_occur(::milvus::grpc::Occur value) { - - occur_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.BooleanQuery.occur) -} - -// repeated .milvus.grpc.GeneralQuery general_query = 2; -int BooleanQuery::general_query_size() const { - return general_query_.size(); -} -void BooleanQuery::clear_general_query() { - general_query_.Clear(); -} -const ::milvus::grpc::GeneralQuery& BooleanQuery::general_query(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.BooleanQuery.general_query) - return general_query_.Get(index); -} -::milvus::grpc::GeneralQuery* BooleanQuery::mutable_general_query(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.BooleanQuery.general_query) - return general_query_.Mutable(index); -} -::milvus::grpc::GeneralQuery* BooleanQuery::add_general_query() { - // @@protoc_insertion_point(field_add:milvus.grpc.BooleanQuery.general_query) - return general_query_.Add(); -} -::google::protobuf::RepeatedPtrField< ::milvus::grpc::GeneralQuery >* -BooleanQuery::mutable_general_query() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.BooleanQuery.general_query) - return &general_query_; -} -const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::GeneralQuery >& -BooleanQuery::general_query() const { - // @@protoc_insertion_point(field_list:milvus.grpc.BooleanQuery.general_query) - return general_query_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GeneralQuery::kBooleanQueryFieldNumber; -const int GeneralQuery::kTermQueryFieldNumber; -const int GeneralQuery::kRangeQueryFieldNumber; -const int GeneralQuery::kVectorQueryFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void GeneralQuery::InitAsDefaultInstance() { + ::milvus::grpc::_GeneralQuery_default_instance_.boolean_query_ = const_cast< ::milvus::grpc::BooleanQuery*>( + ::milvus::grpc::BooleanQuery::internal_default_instance()); + ::milvus::grpc::_GeneralQuery_default_instance_.term_query_ = const_cast< ::milvus::grpc::TermQuery*>( + ::milvus::grpc::TermQuery::internal_default_instance()); + ::milvus::grpc::_GeneralQuery_default_instance_.range_query_ = const_cast< ::milvus::grpc::RangeQuery*>( + ::milvus::grpc::RangeQuery::internal_default_instance()); + ::milvus::grpc::_GeneralQuery_default_instance_.vector_query_ = const_cast< ::milvus::grpc::VectorQuery*>( + ::milvus::grpc::VectorQuery::internal_default_instance()); +} +class GeneralQuery::_Internal { + public: + static const ::milvus::grpc::BooleanQuery& boolean_query(const GeneralQuery* msg); + static const ::milvus::grpc::TermQuery& term_query(const GeneralQuery* msg); + static const ::milvus::grpc::RangeQuery& range_query(const GeneralQuery* msg); + static const ::milvus::grpc::VectorQuery& vector_query(const GeneralQuery* msg); +}; +const ::milvus::grpc::BooleanQuery& +GeneralQuery::_Internal::boolean_query(const GeneralQuery* msg) { + return *msg->query_.boolean_query_; +} +const ::milvus::grpc::TermQuery& +GeneralQuery::_Internal::term_query(const GeneralQuery* msg) { + return *msg->query_.term_query_; +} +const ::milvus::grpc::RangeQuery& +GeneralQuery::_Internal::range_query(const GeneralQuery* msg) { + return *msg->query_.range_query_; +} +const ::milvus::grpc::VectorQuery& +GeneralQuery::_Internal::vector_query(const GeneralQuery* msg) { + return *msg->query_.vector_query_; +} +void GeneralQuery::set_allocated_boolean_query(::milvus::grpc::BooleanQuery* boolean_query) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + clear_query(); + if (boolean_query) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + boolean_query = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, boolean_query, submessage_arena); + } + set_has_boolean_query(); + query_.boolean_query_ = boolean_query; + } + // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GeneralQuery.boolean_query) +} +void GeneralQuery::set_allocated_term_query(::milvus::grpc::TermQuery* term_query) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + clear_query(); + if (term_query) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + term_query = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, term_query, submessage_arena); + } + set_has_term_query(); + query_.term_query_ = term_query; + } + // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GeneralQuery.term_query) +} +void GeneralQuery::set_allocated_range_query(::milvus::grpc::RangeQuery* range_query) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + clear_query(); + if (range_query) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + range_query = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, range_query, submessage_arena); + } + set_has_range_query(); + query_.range_query_ = range_query; + } + // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GeneralQuery.range_query) +} +void GeneralQuery::set_allocated_vector_query(::milvus::grpc::VectorQuery* vector_query) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + clear_query(); + if (vector_query) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + vector_query = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, vector_query, submessage_arena); + } + set_has_vector_query(); + query_.vector_query_ = vector_query; + } + // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GeneralQuery.vector_query) +} GeneralQuery::GeneralQuery() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.GeneralQuery) } - -void GeneralQuery::InitAsDefaultInstance() { - _is_default_instance_ = true; - GeneralQuery_default_oneof_instance_->boolean_query_ = const_cast< ::milvus::grpc::BooleanQuery*>(&::milvus::grpc::BooleanQuery::default_instance()); - GeneralQuery_default_oneof_instance_->term_query_ = const_cast< ::milvus::grpc::TermQuery*>(&::milvus::grpc::TermQuery::default_instance()); - GeneralQuery_default_oneof_instance_->range_query_ = const_cast< ::milvus::grpc::RangeQuery*>(&::milvus::grpc::RangeQuery::default_instance()); - GeneralQuery_default_oneof_instance_->vector_query_ = const_cast< ::milvus::grpc::VectorQuery*>(&::milvus::grpc::VectorQuery::default_instance()); -} - GeneralQuery::GeneralQuery(const GeneralQuery& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_query(); + switch (from.query_case()) { + case kBooleanQuery: { + mutable_boolean_query()->::milvus::grpc::BooleanQuery::MergeFrom(from.boolean_query()); + break; + } + case kTermQuery: { + mutable_term_query()->::milvus::grpc::TermQuery::MergeFrom(from.term_query()); + break; + } + case kRangeQuery: { + mutable_range_query()->::milvus::grpc::RangeQuery::MergeFrom(from.range_query()); + break; + } + case kVectorQuery: { + mutable_vector_query()->::milvus::grpc::VectorQuery::MergeFrom(from.vector_query()); + break; + } + case QUERY_NOT_SET: { + break; + } + } // @@protoc_insertion_point(copy_constructor:milvus.grpc.GeneralQuery) } void GeneralQuery::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BooleanQuery_suvlim_2eproto.base); clear_has_query(); } @@ -18050,38 +16250,20 @@ void GeneralQuery::SharedDtor() { if (has_query()) { clear_query(); } - if (this != default_instance_) { - } } void GeneralQuery::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* GeneralQuery::descriptor() { - protobuf_AssignDescriptorsOnce(); - return GeneralQuery_descriptor_; -} - const GeneralQuery& GeneralQuery::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BooleanQuery_suvlim_2eproto.base); + return *internal_default_instance(); } -GeneralQuery* GeneralQuery::default_instance_ = NULL; - -GeneralQuery* GeneralQuery::New(::google::protobuf::Arena* arena) const { - GeneralQuery* n = new GeneralQuery; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void GeneralQuery::clear_query() { // @@protoc_insertion_point(one_of_clear_start:milvus.grpc.GeneralQuery) - switch(query_case()) { + switch (query_case()) { case kBooleanQuery: { delete query_.boolean_query_; break; @@ -18108,78 +16290,131 @@ void GeneralQuery::clear_query() { void GeneralQuery::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.GeneralQuery) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + clear_query(); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GeneralQuery::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.grpc.BooleanQuery boolean_query = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_boolean_query(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.grpc.TermQuery term_query = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(mutable_term_query(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.grpc.RangeQuery range_query = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ctx->ParseMessage(mutable_range_query(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.grpc.VectorQuery vector_query = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ctx->ParseMessage(mutable_vector_query(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool GeneralQuery::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.GeneralQuery) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .milvus.grpc.BooleanQuery boolean_query = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.grpc.BooleanQuery boolean_query = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_boolean_query())); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_term_query; break; } - // optional .milvus.grpc.TermQuery term_query = 2; + // .milvus.grpc.TermQuery term_query = 2; case 2: { - if (tag == 18) { - parse_term_query: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_term_query())); } else { goto handle_unusual; } - if (input->ExpectTag(26)) goto parse_range_query; break; } - // optional .milvus.grpc.RangeQuery range_query = 3; + // .milvus.grpc.RangeQuery range_query = 3; case 3: { - if (tag == 26) { - parse_range_query: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_range_query())); } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_vector_query; break; } - // optional .milvus.grpc.VectorQuery vector_query = 4; + // .milvus.grpc.VectorQuery vector_query = 4; case 4: { - if (tag == 34) { - parse_vector_query: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_vector_query())); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -18192,102 +16427,126 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void GeneralQuery::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.GeneralQuery) - // optional .milvus.grpc.BooleanQuery boolean_query = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.BooleanQuery boolean_query = 1; if (has_boolean_query()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *query_.boolean_query_, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::boolean_query(this), output); } - // optional .milvus.grpc.TermQuery term_query = 2; + // .milvus.grpc.TermQuery term_query = 2; if (has_term_query()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *query_.term_query_, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, _Internal::term_query(this), output); } - // optional .milvus.grpc.RangeQuery range_query = 3; + // .milvus.grpc.RangeQuery range_query = 3; if (has_range_query()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, *query_.range_query_, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, _Internal::range_query(this), output); } - // optional .milvus.grpc.VectorQuery vector_query = 4; + // .milvus.grpc.VectorQuery vector_query = 4; if (has_vector_query()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, *query_.vector_query_, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, _Internal::vector_query(this), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.GeneralQuery) } -::google::protobuf::uint8* GeneralQuery::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* GeneralQuery::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.GeneralQuery) - // optional .milvus.grpc.BooleanQuery boolean_query = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.BooleanQuery boolean_query = 1; if (has_boolean_query()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *query_.boolean_query_, false, target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::boolean_query(this), target); } - // optional .milvus.grpc.TermQuery term_query = 2; + // .milvus.grpc.TermQuery term_query = 2; if (has_term_query()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *query_.term_query_, false, target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, _Internal::term_query(this), target); } - // optional .milvus.grpc.RangeQuery range_query = 3; + // .milvus.grpc.RangeQuery range_query = 3; if (has_range_query()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, *query_.range_query_, false, target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, _Internal::range_query(this), target); } - // optional .milvus.grpc.VectorQuery vector_query = 4; + // .milvus.grpc.VectorQuery vector_query = 4; if (has_vector_query()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, *query_.vector_query_, false, target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, _Internal::vector_query(this), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.GeneralQuery) return target; } -int GeneralQuery::ByteSize() const { +size_t GeneralQuery::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.GeneralQuery) - int total_size = 0; + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; switch (query_case()) { - // optional .milvus.grpc.BooleanQuery boolean_query = 1; + // .milvus.grpc.BooleanQuery boolean_query = 1; case kBooleanQuery: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *query_.boolean_query_); break; } - // optional .milvus.grpc.TermQuery term_query = 2; + // .milvus.grpc.TermQuery term_query = 2; case kTermQuery: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *query_.term_query_); break; } - // optional .milvus.grpc.RangeQuery range_query = 3; + // .milvus.grpc.RangeQuery range_query = 3; case kRangeQuery: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *query_.range_query_); break; } - // optional .milvus.grpc.VectorQuery vector_query = 4; + // .milvus.grpc.VectorQuery vector_query = 4; case kVectorQuery: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *query_.vector_query_); break; } @@ -18295,23 +16554,20 @@ int GeneralQuery::ByteSize() const { break; } } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void GeneralQuery::MergeFrom(const ::google::protobuf::Message& from) { +void GeneralQuery::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.GeneralQuery) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const GeneralQuery* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const GeneralQuery* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.GeneralQuery) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.GeneralQuery) MergeFrom(*source); @@ -18320,9 +16576,11 @@ void GeneralQuery::MergeFrom(const ::google::protobuf::Message& from) { void GeneralQuery::MergeFrom(const GeneralQuery& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.GeneralQuery) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + switch (from.query_case()) { case kBooleanQuery: { mutable_boolean_query()->::milvus::grpc::BooleanQuery::MergeFrom(from.boolean_query()); @@ -18346,7 +16604,7 @@ void GeneralQuery::MergeFrom(const GeneralQuery& from) { } } -void GeneralQuery::CopyFrom(const ::google::protobuf::Message& from) { +void GeneralQuery::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.GeneralQuery) if (&from == this) return; Clear(); @@ -18361,269 +16619,63 @@ void GeneralQuery::CopyFrom(const GeneralQuery& from) { } bool GeneralQuery::IsInitialized() const { - return true; } -void GeneralQuery::Swap(GeneralQuery* other) { - if (other == this) return; - InternalSwap(other); -} void GeneralQuery::InternalSwap(GeneralQuery* other) { - std::swap(query_, other->query_); - std::swap(_oneof_case_[0], other->_oneof_case_[0]); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(query_, other->query_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata GeneralQuery::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = GeneralQuery_descriptor_; - metadata.reflection = GeneralQuery_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata GeneralQuery::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// GeneralQuery - -// optional .milvus.grpc.BooleanQuery boolean_query = 1; -bool GeneralQuery::has_boolean_query() const { - return query_case() == kBooleanQuery; -} -void GeneralQuery::set_has_boolean_query() { - _oneof_case_[0] = kBooleanQuery; -} -void GeneralQuery::clear_boolean_query() { - if (has_boolean_query()) { - delete query_.boolean_query_; - clear_has_query(); - } -} - const ::milvus::grpc::BooleanQuery& GeneralQuery::boolean_query() const { - // @@protoc_insertion_point(field_get:milvus.grpc.GeneralQuery.boolean_query) - return has_boolean_query() - ? *query_.boolean_query_ - : ::milvus::grpc::BooleanQuery::default_instance(); -} -::milvus::grpc::BooleanQuery* GeneralQuery::mutable_boolean_query() { - if (!has_boolean_query()) { - clear_query(); - set_has_boolean_query(); - query_.boolean_query_ = new ::milvus::grpc::BooleanQuery; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.GeneralQuery.boolean_query) - return query_.boolean_query_; -} -::milvus::grpc::BooleanQuery* GeneralQuery::release_boolean_query() { - // @@protoc_insertion_point(field_release:milvus.grpc.GeneralQuery.boolean_query) - if (has_boolean_query()) { - clear_has_query(); - ::milvus::grpc::BooleanQuery* temp = query_.boolean_query_; - query_.boolean_query_ = NULL; - return temp; - } else { - return NULL; - } -} -void GeneralQuery::set_allocated_boolean_query(::milvus::grpc::BooleanQuery* boolean_query) { - clear_query(); - if (boolean_query) { - set_has_boolean_query(); - query_.boolean_query_ = boolean_query; - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GeneralQuery.boolean_query) -} - -// optional .milvus.grpc.TermQuery term_query = 2; -bool GeneralQuery::has_term_query() const { - return query_case() == kTermQuery; -} -void GeneralQuery::set_has_term_query() { - _oneof_case_[0] = kTermQuery; -} -void GeneralQuery::clear_term_query() { - if (has_term_query()) { - delete query_.term_query_; - clear_has_query(); - } -} - const ::milvus::grpc::TermQuery& GeneralQuery::term_query() const { - // @@protoc_insertion_point(field_get:milvus.grpc.GeneralQuery.term_query) - return has_term_query() - ? *query_.term_query_ - : ::milvus::grpc::TermQuery::default_instance(); -} -::milvus::grpc::TermQuery* GeneralQuery::mutable_term_query() { - if (!has_term_query()) { - clear_query(); - set_has_term_query(); - query_.term_query_ = new ::milvus::grpc::TermQuery; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.GeneralQuery.term_query) - return query_.term_query_; -} -::milvus::grpc::TermQuery* GeneralQuery::release_term_query() { - // @@protoc_insertion_point(field_release:milvus.grpc.GeneralQuery.term_query) - if (has_term_query()) { - clear_has_query(); - ::milvus::grpc::TermQuery* temp = query_.term_query_; - query_.term_query_ = NULL; - return temp; - } else { - return NULL; - } -} -void GeneralQuery::set_allocated_term_query(::milvus::grpc::TermQuery* term_query) { - clear_query(); - if (term_query) { - set_has_term_query(); - query_.term_query_ = term_query; - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GeneralQuery.term_query) -} - -// optional .milvus.grpc.RangeQuery range_query = 3; -bool GeneralQuery::has_range_query() const { - return query_case() == kRangeQuery; -} -void GeneralQuery::set_has_range_query() { - _oneof_case_[0] = kRangeQuery; -} -void GeneralQuery::clear_range_query() { - if (has_range_query()) { - delete query_.range_query_; - clear_has_query(); - } -} - const ::milvus::grpc::RangeQuery& GeneralQuery::range_query() const { - // @@protoc_insertion_point(field_get:milvus.grpc.GeneralQuery.range_query) - return has_range_query() - ? *query_.range_query_ - : ::milvus::grpc::RangeQuery::default_instance(); -} -::milvus::grpc::RangeQuery* GeneralQuery::mutable_range_query() { - if (!has_range_query()) { - clear_query(); - set_has_range_query(); - query_.range_query_ = new ::milvus::grpc::RangeQuery; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.GeneralQuery.range_query) - return query_.range_query_; -} -::milvus::grpc::RangeQuery* GeneralQuery::release_range_query() { - // @@protoc_insertion_point(field_release:milvus.grpc.GeneralQuery.range_query) - if (has_range_query()) { - clear_has_query(); - ::milvus::grpc::RangeQuery* temp = query_.range_query_; - query_.range_query_ = NULL; - return temp; - } else { - return NULL; - } -} -void GeneralQuery::set_allocated_range_query(::milvus::grpc::RangeQuery* range_query) { - clear_query(); - if (range_query) { - set_has_range_query(); - query_.range_query_ = range_query; - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GeneralQuery.range_query) -} - -// optional .milvus.grpc.VectorQuery vector_query = 4; -bool GeneralQuery::has_vector_query() const { - return query_case() == kVectorQuery; -} -void GeneralQuery::set_has_vector_query() { - _oneof_case_[0] = kVectorQuery; -} -void GeneralQuery::clear_vector_query() { - if (has_vector_query()) { - delete query_.vector_query_; - clear_has_query(); - } -} - const ::milvus::grpc::VectorQuery& GeneralQuery::vector_query() const { - // @@protoc_insertion_point(field_get:milvus.grpc.GeneralQuery.vector_query) - return has_vector_query() - ? *query_.vector_query_ - : ::milvus::grpc::VectorQuery::default_instance(); -} -::milvus::grpc::VectorQuery* GeneralQuery::mutable_vector_query() { - if (!has_vector_query()) { - clear_query(); - set_has_vector_query(); - query_.vector_query_ = new ::milvus::grpc::VectorQuery; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.GeneralQuery.vector_query) - return query_.vector_query_; -} -::milvus::grpc::VectorQuery* GeneralQuery::release_vector_query() { - // @@protoc_insertion_point(field_release:milvus.grpc.GeneralQuery.vector_query) - if (has_vector_query()) { - clear_has_query(); - ::milvus::grpc::VectorQuery* temp = query_.vector_query_; - query_.vector_query_ = NULL; - return temp; - } else { - return NULL; - } -} -void GeneralQuery::set_allocated_vector_query(::milvus::grpc::VectorQuery* vector_query) { - clear_query(); - if (vector_query) { - set_has_vector_query(); - query_.vector_query_ = vector_query; - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GeneralQuery.vector_query) -} - -bool GeneralQuery::has_query() const { - return query_case() != QUERY_NOT_SET; -} -void GeneralQuery::clear_has_query() { - _oneof_case_[0] = QUERY_NOT_SET; -} -GeneralQuery::QueryCase GeneralQuery::query_case() const { - return GeneralQuery::QueryCase(_oneof_case_[0]); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SearchParamPB::kCollectionNameFieldNumber; -const int SearchParamPB::kPartitionTagArrayFieldNumber; -const int SearchParamPB::kGeneralQueryFieldNumber; -const int SearchParamPB::kExtraParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void SearchParamPB::InitAsDefaultInstance() { + ::milvus::grpc::_SearchParamPB_default_instance_._instance.get_mutable()->general_query_ = const_cast< ::milvus::grpc::GeneralQuery*>( + ::milvus::grpc::GeneralQuery::internal_default_instance()); +} +class SearchParamPB::_Internal { + public: + static const ::milvus::grpc::GeneralQuery& general_query(const SearchParamPB* msg); +}; +const ::milvus::grpc::GeneralQuery& +SearchParamPB::_Internal::general_query(const SearchParamPB* msg) { + return *msg->general_query_; +} SearchParamPB::SearchParamPB() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.SearchParamPB) } - -void SearchParamPB::InitAsDefaultInstance() { - _is_default_instance_ = true; - general_query_ = const_cast< ::milvus::grpc::GeneralQuery*>(&::milvus::grpc::GeneralQuery::default_instance()); -} - SearchParamPB::SearchParamPB(const SearchParamPB& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + partition_tag_array_(from.partition_tag_array_), + extra_params_(from.extra_params_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.has_general_query()) { + general_query_ = new ::milvus::grpc::GeneralQuery(*from.general_query_); + } else { + general_query_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:milvus.grpc.SearchParamPB) } void SearchParamPB::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - general_query_ = NULL; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SearchParamPB_suvlim_2eproto.base); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + general_query_ = nullptr; } SearchParamPB::~SearchParamPB() { @@ -18632,129 +16684,171 @@ SearchParamPB::~SearchParamPB() { } void SearchParamPB::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - delete general_query_; - } + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete general_query_; } void SearchParamPB::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* SearchParamPB::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SearchParamPB_descriptor_; -} - const SearchParamPB& SearchParamPB::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchParamPB_suvlim_2eproto.base); + return *internal_default_instance(); } -SearchParamPB* SearchParamPB::default_instance_ = NULL; - -SearchParamPB* SearchParamPB::New(::google::protobuf::Arena* arena) const { - SearchParamPB* n = new SearchParamPB; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void SearchParamPB::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.SearchParamPB) - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && general_query_ != NULL) delete general_query_; - general_query_ = NULL; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + partition_tag_array_.Clear(); extra_params_.Clear(); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && general_query_ != nullptr) { + delete general_query_; + } + general_query_ = nullptr; + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SearchParamPB::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string collection_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.SearchParamPB.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated string partition_tag_array = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_partition_tag_array(), ptr, ctx, "milvus.grpc.SearchParamPB.partition_tag_array"); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); + } else goto handle_unusual; + continue; + // .milvus.grpc.GeneralQuery general_query = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ctx->ParseMessage(mutable_general_query(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .milvus.grpc.KeyValuePair extra_params = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_extra_params(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool SearchParamPB::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.SearchParamPB) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string collection_name = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.SearchParamPB.collection_name")); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_partition_tag_array; break; } // repeated string partition_tag_array = 2; case 2: { - if (tag == 18) { - parse_partition_tag_array: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->add_partition_tag_array())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->partition_tag_array(this->partition_tag_array_size() - 1).data(), - this->partition_tag_array(this->partition_tag_array_size() - 1).length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + static_cast(this->partition_tag_array(this->partition_tag_array_size() - 1).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.SearchParamPB.partition_tag_array")); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_partition_tag_array; - if (input->ExpectTag(26)) goto parse_general_query; break; } - // optional .milvus.grpc.GeneralQuery general_query = 3; + // .milvus.grpc.GeneralQuery general_query = 3; case 3: { - if (tag == 26) { - parse_general_query: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_general_query())); } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_extra_params; break; } // repeated .milvus.grpc.KeyValuePair extra_params = 4; case 4: { - if (tag == 34) { - parse_extra_params: - DO_(input->IncrementRecursionDepth()); - parse_loop_extra_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_extra_params())); } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -18767,137 +16861,166 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SearchParamPB::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.SearchParamPB) - // optional string collection_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.SearchParamPB.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->collection_name(), output); } // repeated string partition_tag_array = 2; - for (int i = 0; i < this->partition_tag_array_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag_array(i).data(), this->partition_tag_array(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + for (int i = 0, n = this->partition_tag_array_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_tag_array(i).data(), static_cast(this->partition_tag_array(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.SearchParamPB.partition_tag_array"); - ::google::protobuf::internal::WireFormatLite::WriteString( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( 2, this->partition_tag_array(i), output); } - // optional .milvus.grpc.GeneralQuery general_query = 3; + // .milvus.grpc.GeneralQuery general_query = 3; if (this->has_general_query()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, *this->general_query_, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, _Internal::general_query(this), output); } // repeated .milvus.grpc.KeyValuePair extra_params = 4; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->extra_params(i), output); + for (unsigned int i = 0, + n = static_cast(this->extra_params_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, + this->extra_params(static_cast(i)), + output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.SearchParamPB) } -::google::protobuf::uint8* SearchParamPB::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* SearchParamPB::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.SearchParamPB) - // optional string collection_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.SearchParamPB.collection_name"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 1, this->collection_name(), target); } // repeated string partition_tag_array = 2; - for (int i = 0; i < this->partition_tag_array_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag_array(i).data(), this->partition_tag_array(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + for (int i = 0, n = this->partition_tag_array_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_tag_array(i).data(), static_cast(this->partition_tag_array(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.SearchParamPB.partition_tag_array"); - target = ::google::protobuf::internal::WireFormatLite:: + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: WriteStringToArray(2, this->partition_tag_array(i), target); } - // optional .milvus.grpc.GeneralQuery general_query = 3; + // .milvus.grpc.GeneralQuery general_query = 3; if (this->has_general_query()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, *this->general_query_, false, target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, _Internal::general_query(this), target); } // repeated .milvus.grpc.KeyValuePair extra_params = 4; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, this->extra_params(i), false, target); + for (unsigned int i = 0, + n = static_cast(this->extra_params_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->extra_params(static_cast(i)), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SearchParamPB) return target; } -int SearchParamPB::ByteSize() const { +size_t SearchParamPB::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.SearchParamPB) - int total_size = 0; + size_t total_size = 0; - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // optional .milvus.grpc.GeneralQuery general_query = 3; - if (this->has_general_query()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->general_query_); + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; // repeated string partition_tag_array = 2; - total_size += 1 * this->partition_tag_array_size(); - for (int i = 0; i < this->partition_tag_array_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->partition_tag_array_size()); + for (int i = 0, n = this->partition_tag_array_size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->partition_tag_array(i)); } // repeated .milvus.grpc.KeyValuePair extra_params = 4; - total_size += 1 * this->extra_params_size(); - for (int i = 0; i < this->extra_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->extra_params(i)); + { + unsigned int count = static_cast(this->extra_params_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->extra_params(static_cast(i))); + } } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // string collection_name = 1; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // .milvus.grpc.GeneralQuery general_query = 3; + if (this->has_general_query()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *general_query_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void SearchParamPB::MergeFrom(const ::google::protobuf::Message& from) { +void SearchParamPB::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.SearchParamPB) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const SearchParamPB* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const SearchParamPB* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.SearchParamPB) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SearchParamPB) MergeFrom(*source); @@ -18906,21 +17029,23 @@ void SearchParamPB::MergeFrom(const ::google::protobuf::Message& from) { void SearchParamPB::MergeFrom(const SearchParamPB& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.SearchParamPB) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + partition_tag_array_.MergeFrom(from.partition_tag_array_); extra_params_.MergeFrom(from.extra_params_); if (from.collection_name().size() > 0) { - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); } if (from.has_general_query()) { mutable_general_query()->::milvus::grpc::GeneralQuery::MergeFrom(from.general_query()); } } -void SearchParamPB::CopyFrom(const ::google::protobuf::Message& from) { +void SearchParamPB::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.SearchParamPB) if (&from == this) return; Clear(); @@ -18935,250 +17060,75 @@ void SearchParamPB::CopyFrom(const SearchParamPB& from) { } bool SearchParamPB::IsInitialized() const { - return true; } -void SearchParamPB::Swap(SearchParamPB* other) { - if (other == this) return; - InternalSwap(other); -} void SearchParamPB::InternalSwap(SearchParamPB* other) { - collection_name_.Swap(&other->collection_name_); - partition_tag_array_.UnsafeArenaSwap(&other->partition_tag_array_); - std::swap(general_query_, other->general_query_); - extra_params_.UnsafeArenaSwap(&other->extra_params_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + partition_tag_array_.InternalSwap(CastToBase(&other->partition_tag_array_)); + CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(general_query_, other->general_query_); } -::google::protobuf::Metadata SearchParamPB::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SearchParamPB_descriptor_; - metadata.reflection = SearchParamPB_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata SearchParamPB::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SearchParamPB - -// optional string collection_name = 1; -void SearchParamPB::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& SearchParamPB::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParamPB.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void SearchParamPB::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.SearchParamPB.collection_name) -} - void SearchParamPB::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchParamPB.collection_name) -} - void SearchParamPB::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchParamPB.collection_name) -} - ::std::string* SearchParamPB::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParamPB.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* SearchParamPB::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.SearchParamPB.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void SearchParamPB::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchParamPB.collection_name) -} - -// repeated string partition_tag_array = 2; -int SearchParamPB::partition_tag_array_size() const { - return partition_tag_array_.size(); -} -void SearchParamPB::clear_partition_tag_array() { - partition_tag_array_.Clear(); -} - const ::std::string& SearchParamPB::partition_tag_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParamPB.partition_tag_array) - return partition_tag_array_.Get(index); -} - ::std::string* SearchParamPB::mutable_partition_tag_array(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParamPB.partition_tag_array) - return partition_tag_array_.Mutable(index); -} - void SearchParamPB::set_partition_tag_array(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.SearchParamPB.partition_tag_array) - partition_tag_array_.Mutable(index)->assign(value); -} - void SearchParamPB::set_partition_tag_array(int index, const char* value) { - partition_tag_array_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchParamPB.partition_tag_array) -} - void SearchParamPB::set_partition_tag_array(int index, const char* value, size_t size) { - partition_tag_array_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchParamPB.partition_tag_array) -} - ::std::string* SearchParamPB::add_partition_tag_array() { - // @@protoc_insertion_point(field_add_mutable:milvus.grpc.SearchParamPB.partition_tag_array) - return partition_tag_array_.Add(); -} - void SearchParamPB::add_partition_tag_array(const ::std::string& value) { - partition_tag_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.grpc.SearchParamPB.partition_tag_array) -} - void SearchParamPB::add_partition_tag_array(const char* value) { - partition_tag_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.grpc.SearchParamPB.partition_tag_array) -} - void SearchParamPB::add_partition_tag_array(const char* value, size_t size) { - partition_tag_array_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.grpc.SearchParamPB.partition_tag_array) -} - const ::google::protobuf::RepeatedPtrField< ::std::string>& -SearchParamPB::partition_tag_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchParamPB.partition_tag_array) - return partition_tag_array_; -} - ::google::protobuf::RepeatedPtrField< ::std::string>* -SearchParamPB::mutable_partition_tag_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchParamPB.partition_tag_array) - return &partition_tag_array_; -} - -// optional .milvus.grpc.GeneralQuery general_query = 3; -bool SearchParamPB::has_general_query() const { - return !_is_default_instance_ && general_query_ != NULL; -} -void SearchParamPB::clear_general_query() { - if (GetArenaNoVirtual() == NULL && general_query_ != NULL) delete general_query_; - general_query_ = NULL; -} -const ::milvus::grpc::GeneralQuery& SearchParamPB::general_query() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParamPB.general_query) - return general_query_ != NULL ? *general_query_ : *default_instance_->general_query_; -} -::milvus::grpc::GeneralQuery* SearchParamPB::mutable_general_query() { - - if (general_query_ == NULL) { - general_query_ = new ::milvus::grpc::GeneralQuery; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParamPB.general_query) - return general_query_; -} -::milvus::grpc::GeneralQuery* SearchParamPB::release_general_query() { - // @@protoc_insertion_point(field_release:milvus.grpc.SearchParamPB.general_query) - - ::milvus::grpc::GeneralQuery* temp = general_query_; - general_query_ = NULL; - return temp; -} -void SearchParamPB::set_allocated_general_query(::milvus::grpc::GeneralQuery* general_query) { - delete general_query_; - general_query_ = general_query; - if (general_query) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchParamPB.general_query) -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 4; -int SearchParamPB::extra_params_size() const { - return extra_params_.size(); -} -void SearchParamPB::clear_extra_params() { - extra_params_.Clear(); -} -const ::milvus::grpc::KeyValuePair& SearchParamPB::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParamPB.extra_params) - return extra_params_.Get(index); -} -::milvus::grpc::KeyValuePair* SearchParamPB::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParamPB.extra_params) - return extra_params_.Mutable(index); -} -::milvus::grpc::KeyValuePair* SearchParamPB::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.SearchParamPB.extra_params) - return extra_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -SearchParamPB::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchParamPB.extra_params) - return &extra_params_; -} -const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -SearchParamPB::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchParamPB.extra_params) - return extra_params_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int InsertOrDeleteMsg::kCollectionNameFieldNumber; -const int InsertOrDeleteMsg::kRowsDataFieldNumber; -const int InsertOrDeleteMsg::kUidFieldNumber; -const int InsertOrDeleteMsg::kPartitionTagFieldNumber; -const int InsertOrDeleteMsg::kTimestampFieldNumber; -const int InsertOrDeleteMsg::kSegmentIdFieldNumber; -const int InsertOrDeleteMsg::kChannelIdFieldNumber; -const int InsertOrDeleteMsg::kOpFieldNumber; -const int InsertOrDeleteMsg::kClientIdFieldNumber; -const int InsertOrDeleteMsg::kExtraParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void InsertOrDeleteMsg::InitAsDefaultInstance() { + ::milvus::grpc::_InsertOrDeleteMsg_default_instance_._instance.get_mutable()->rows_data_ = const_cast< ::milvus::grpc::RowData*>( + ::milvus::grpc::RowData::internal_default_instance()); +} +class InsertOrDeleteMsg::_Internal { + public: + static const ::milvus::grpc::RowData& rows_data(const InsertOrDeleteMsg* msg); +}; +const ::milvus::grpc::RowData& +InsertOrDeleteMsg::_Internal::rows_data(const InsertOrDeleteMsg* msg) { + return *msg->rows_data_; +} InsertOrDeleteMsg::InsertOrDeleteMsg() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.InsertOrDeleteMsg) } - -void InsertOrDeleteMsg::InitAsDefaultInstance() { - _is_default_instance_ = true; - rows_data_ = const_cast< ::milvus::grpc::RowData*>(&::milvus::grpc::RowData::default_instance()); -} - InsertOrDeleteMsg::InsertOrDeleteMsg(const InsertOrDeleteMsg& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + extra_params_(from.extra_params_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + partition_tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.partition_tag().empty()) { + partition_tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); + } + if (from.has_rows_data()) { + rows_data_ = new ::milvus::grpc::RowData(*from.rows_data_); + } else { + rows_data_ = nullptr; + } + ::memcpy(&uid_, &from.uid_, + static_cast(reinterpret_cast(&op_) - + reinterpret_cast(&uid_)) + sizeof(op_)); // @@protoc_insertion_point(copy_constructor:milvus.grpc.InsertOrDeleteMsg) } void InsertOrDeleteMsg::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - rows_data_ = NULL; - uid_ = GOOGLE_LONGLONG(0); - partition_tag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - timestamp_ = GOOGLE_LONGLONG(0); - segment_id_ = GOOGLE_LONGLONG(0); - channel_id_ = GOOGLE_LONGLONG(0); - op_ = 0; - client_id_ = GOOGLE_LONGLONG(0); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_InsertOrDeleteMsg_suvlim_2eproto.base); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + partition_tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&rows_data_, 0, static_cast( + reinterpret_cast(&op_) - + reinterpret_cast(&rows_data_)) + sizeof(op_)); } InsertOrDeleteMsg::~InsertOrDeleteMsg() { @@ -19187,243 +17137,291 @@ InsertOrDeleteMsg::~InsertOrDeleteMsg() { } void InsertOrDeleteMsg::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - partition_tag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - delete rows_data_; - } + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + partition_tag_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete rows_data_; } void InsertOrDeleteMsg::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* InsertOrDeleteMsg::descriptor() { - protobuf_AssignDescriptorsOnce(); - return InsertOrDeleteMsg_descriptor_; -} - const InsertOrDeleteMsg& InsertOrDeleteMsg::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_InsertOrDeleteMsg_suvlim_2eproto.base); + return *internal_default_instance(); } -InsertOrDeleteMsg* InsertOrDeleteMsg::default_instance_ = NULL; - -InsertOrDeleteMsg* InsertOrDeleteMsg::New(::google::protobuf::Arena* arena) const { - InsertOrDeleteMsg* n = new InsertOrDeleteMsg; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void InsertOrDeleteMsg::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.InsertOrDeleteMsg) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(InsertOrDeleteMsg, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&first, 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - ZR_(timestamp_, channel_id_); - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && rows_data_ != NULL) delete rows_data_; - rows_data_ = NULL; - uid_ = GOOGLE_LONGLONG(0); - partition_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - op_ = 0; - client_id_ = GOOGLE_LONGLONG(0); - -#undef ZR_HELPER_ -#undef ZR_ + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; extra_params_.Clear(); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + partition_tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && rows_data_ != nullptr) { + delete rows_data_; + } + rows_data_ = nullptr; + ::memset(&uid_, 0, static_cast( + reinterpret_cast(&op_) - + reinterpret_cast(&uid_)) + sizeof(op_)); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* InsertOrDeleteMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string collection_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.InsertOrDeleteMsg.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.grpc.RowData rows_data = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(mutable_rows_data(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 uid = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string partition_tag = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_partition_tag(), ptr, ctx, "milvus.grpc.InsertOrDeleteMsg.partition_tag"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 timestamp = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 segment_id = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + segment_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 channel_id = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { + channel_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.grpc.OpType op = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + set_op(static_cast<::milvus::grpc::OpType>(val)); + } else goto handle_unusual; + continue; + // int64 client_id = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { + client_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .milvus.grpc.KeyValuePair extra_params = 10; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_extra_params(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 82); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool InsertOrDeleteMsg::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.InsertOrDeleteMsg) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string collection_name = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.InsertOrDeleteMsg.collection_name")); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_rows_data; break; } - // optional .milvus.grpc.RowData rows_data = 2; + // .milvus.grpc.RowData rows_data = 2; case 2: { - if (tag == 18) { - parse_rows_data: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_rows_data())); } else { goto handle_unusual; } - if (input->ExpectTag(24)) goto parse_uid; break; } - // optional int64 uid = 3; + // int64 uid = 3; case 3: { - if (tag == 24) { - parse_uid: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &uid_))); + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &uid_))); } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_partition_tag; break; } - // optional string partition_tag = 4; + // string partition_tag = 4; case 4: { - if (tag == 34) { - parse_partition_tag: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_partition_tag())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), this->partition_tag().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_tag().data(), static_cast(this->partition_tag().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.InsertOrDeleteMsg.partition_tag")); } else { goto handle_unusual; } - if (input->ExpectTag(40)) goto parse_timestamp; break; } - // optional int64 timestamp = 5; + // int64 timestamp = 5; case 5: { - if (tag == 40) { - parse_timestamp: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( input, ×tamp_))); - } else { goto handle_unusual; } - if (input->ExpectTag(48)) goto parse_segment_id; break; } - // optional int64 segment_id = 6; + // int64 segment_id = 6; case 6: { - if (tag == 48) { - parse_segment_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( input, &segment_id_))); - } else { goto handle_unusual; } - if (input->ExpectTag(56)) goto parse_channel_id; break; } - // optional int64 channel_id = 7; + // int64 channel_id = 7; case 7: { - if (tag == 56) { - parse_channel_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &channel_id_))); + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (56 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &channel_id_))); } else { goto handle_unusual; } - if (input->ExpectTag(64)) goto parse_op; break; } - // optional .milvus.grpc.OpType op = 8; + // .milvus.grpc.OpType op = 8; case 8: { - if (tag == 64) { - parse_op: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (64 & 0xFF)) { + int value = 0; + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( input, &value))); set_op(static_cast< ::milvus::grpc::OpType >(value)); } else { goto handle_unusual; } - if (input->ExpectTag(72)) goto parse_client_id; break; } - // optional int64 client_id = 9; + // int64 client_id = 9; case 9: { - if (tag == 72) { - parse_client_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &client_id_))); + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (72 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &client_id_))); } else { goto handle_unusual; } - if (input->ExpectTag(82)) goto parse_extra_params; break; } // repeated .milvus.grpc.KeyValuePair extra_params = 10; case 10: { - if (tag == 82) { - parse_extra_params: - DO_(input->IncrementRecursionDepth()); - parse_loop_extra_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (82 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_extra_params())); } else { goto handle_unusual; } - if (input->ExpectTag(82)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -19436,241 +17434,269 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void InsertOrDeleteMsg::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.InsertOrDeleteMsg) - // optional string collection_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.InsertOrDeleteMsg.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->collection_name(), output); } - // optional .milvus.grpc.RowData rows_data = 2; + // .milvus.grpc.RowData rows_data = 2; if (this->has_rows_data()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *this->rows_data_, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, _Internal::rows_data(this), output); } - // optional int64 uid = 3; + // int64 uid = 3; if (this->uid() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->uid(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->uid(), output); } - // optional string partition_tag = 4; + // string partition_tag = 4; if (this->partition_tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), this->partition_tag().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_tag().data(), static_cast(this->partition_tag().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.InsertOrDeleteMsg.partition_tag"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 4, this->partition_tag(), output); } - // optional int64 timestamp = 5; + // int64 timestamp = 5; if (this->timestamp() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->timestamp(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(5, this->timestamp(), output); } - // optional int64 segment_id = 6; + // int64 segment_id = 6; if (this->segment_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(6, this->segment_id(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(6, this->segment_id(), output); } - // optional int64 channel_id = 7; + // int64 channel_id = 7; if (this->channel_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(7, this->channel_id(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(7, this->channel_id(), output); } - // optional .milvus.grpc.OpType op = 8; + // .milvus.grpc.OpType op = 8; if (this->op() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( 8, this->op(), output); } - // optional int64 client_id = 9; + // int64 client_id = 9; if (this->client_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(9, this->client_id(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(9, this->client_id(), output); } // repeated .milvus.grpc.KeyValuePair extra_params = 10; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 10, this->extra_params(i), output); + for (unsigned int i = 0, + n = static_cast(this->extra_params_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 10, + this->extra_params(static_cast(i)), + output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.InsertOrDeleteMsg) } -::google::protobuf::uint8* InsertOrDeleteMsg::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* InsertOrDeleteMsg::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.InsertOrDeleteMsg) - // optional string collection_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.InsertOrDeleteMsg.collection_name"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 1, this->collection_name(), target); } - // optional .milvus.grpc.RowData rows_data = 2; + // .milvus.grpc.RowData rows_data = 2; if (this->has_rows_data()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *this->rows_data_, false, target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, _Internal::rows_data(this), target); } - // optional int64 uid = 3; + // int64 uid = 3; if (this->uid() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->uid(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->uid(), target); } - // optional string partition_tag = 4; + // string partition_tag = 4; if (this->partition_tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), this->partition_tag().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_tag().data(), static_cast(this->partition_tag().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.InsertOrDeleteMsg.partition_tag"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 4, this->partition_tag(), target); } - // optional int64 timestamp = 5; + // int64 timestamp = 5; if (this->timestamp() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->timestamp(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->timestamp(), target); } - // optional int64 segment_id = 6; + // int64 segment_id = 6; if (this->segment_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(6, this->segment_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->segment_id(), target); } - // optional int64 channel_id = 7; + // int64 channel_id = 7; if (this->channel_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(7, this->channel_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(7, this->channel_id(), target); } - // optional .milvus.grpc.OpType op = 8; + // .milvus.grpc.OpType op = 8; if (this->op() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 8, this->op(), target); } - // optional int64 client_id = 9; + // int64 client_id = 9; if (this->client_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(9, this->client_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(9, this->client_id(), target); } // repeated .milvus.grpc.KeyValuePair extra_params = 10; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 10, this->extra_params(i), false, target); + for (unsigned int i = 0, + n = static_cast(this->extra_params_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 10, this->extra_params(static_cast(i)), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.InsertOrDeleteMsg) return target; } -int InsertOrDeleteMsg::ByteSize() const { +size_t InsertOrDeleteMsg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.InsertOrDeleteMsg) - int total_size = 0; + size_t total_size = 0; - // optional string collection_name = 1; + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .milvus.grpc.KeyValuePair extra_params = 10; + { + unsigned int count = static_cast(this->extra_params_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->extra_params(static_cast(i))); + } + } + + // string collection_name = 1; if (this->collection_name().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->collection_name()); } - // optional .milvus.grpc.RowData rows_data = 2; - if (this->has_rows_data()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->rows_data_); - } - - // optional int64 uid = 3; - if (this->uid() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->uid()); - } - - // optional string partition_tag = 4; + // string partition_tag = 4; if (this->partition_tag().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->partition_tag()); } - // optional int64 timestamp = 5; + // .milvus.grpc.RowData rows_data = 2; + if (this->has_rows_data()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *rows_data_); + } + + // int64 uid = 3; + if (this->uid() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->uid()); + } + + // int64 timestamp = 5; if (this->timestamp() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->timestamp()); } - // optional int64 segment_id = 6; + // int64 segment_id = 6; if (this->segment_id() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->segment_id()); } - // optional int64 channel_id = 7; + // int64 channel_id = 7; if (this->channel_id() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->channel_id()); } - // optional .milvus.grpc.OpType op = 8; - if (this->op() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->op()); - } - - // optional int64 client_id = 9; + // int64 client_id = 9; if (this->client_id() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->client_id()); } - // repeated .milvus.grpc.KeyValuePair extra_params = 10; - total_size += 1 * this->extra_params_size(); - for (int i = 0; i < this->extra_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->extra_params(i)); + // .milvus.grpc.OpType op = 8; + if (this->op() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->op()); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void InsertOrDeleteMsg::MergeFrom(const ::google::protobuf::Message& from) { +void InsertOrDeleteMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.InsertOrDeleteMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const InsertOrDeleteMsg* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const InsertOrDeleteMsg* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.InsertOrDeleteMsg) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.InsertOrDeleteMsg) MergeFrom(*source); @@ -19679,13 +17705,19 @@ void InsertOrDeleteMsg::MergeFrom(const ::google::protobuf::Message& from) { void InsertOrDeleteMsg::MergeFrom(const InsertOrDeleteMsg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.InsertOrDeleteMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + extra_params_.MergeFrom(from.extra_params_); if (from.collection_name().size() > 0) { - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.partition_tag().size() > 0) { + + partition_tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); } if (from.has_rows_data()) { mutable_rows_data()->::milvus::grpc::RowData::MergeFrom(from.rows_data()); @@ -19693,10 +17725,6 @@ void InsertOrDeleteMsg::MergeFrom(const InsertOrDeleteMsg& from) { if (from.uid() != 0) { set_uid(from.uid()); } - if (from.partition_tag().size() > 0) { - - partition_tag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); - } if (from.timestamp() != 0) { set_timestamp(from.timestamp()); } @@ -19706,15 +17734,15 @@ void InsertOrDeleteMsg::MergeFrom(const InsertOrDeleteMsg& from) { if (from.channel_id() != 0) { set_channel_id(from.channel_id()); } - if (from.op() != 0) { - set_op(from.op()); - } if (from.client_id() != 0) { set_client_id(from.client_id()); } + if (from.op() != 0) { + set_op(from.op()); + } } -void InsertOrDeleteMsg::CopyFrom(const ::google::protobuf::Message& from) { +void InsertOrDeleteMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.InsertOrDeleteMsg) if (&from == this) return; Clear(); @@ -19729,323 +17757,82 @@ void InsertOrDeleteMsg::CopyFrom(const InsertOrDeleteMsg& from) { } bool InsertOrDeleteMsg::IsInitialized() const { - return true; } -void InsertOrDeleteMsg::Swap(InsertOrDeleteMsg* other) { - if (other == this) return; - InternalSwap(other); -} void InsertOrDeleteMsg::InternalSwap(InsertOrDeleteMsg* other) { - collection_name_.Swap(&other->collection_name_); - std::swap(rows_data_, other->rows_data_); - std::swap(uid_, other->uid_); - partition_tag_.Swap(&other->partition_tag_); - std::swap(timestamp_, other->timestamp_); - std::swap(segment_id_, other->segment_id_); - std::swap(channel_id_, other->channel_id_); - std::swap(op_, other->op_); - std::swap(client_id_, other->client_id_); - extra_params_.UnsafeArenaSwap(&other->extra_params_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + partition_tag_.Swap(&other->partition_tag_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(rows_data_, other->rows_data_); + swap(uid_, other->uid_); + swap(timestamp_, other->timestamp_); + swap(segment_id_, other->segment_id_); + swap(channel_id_, other->channel_id_); + swap(client_id_, other->client_id_); + swap(op_, other->op_); } -::google::protobuf::Metadata InsertOrDeleteMsg::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = InsertOrDeleteMsg_descriptor_; - metadata.reflection = InsertOrDeleteMsg_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata InsertOrDeleteMsg::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// InsertOrDeleteMsg - -// optional string collection_name = 1; -void InsertOrDeleteMsg::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& InsertOrDeleteMsg::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void InsertOrDeleteMsg::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.InsertOrDeleteMsg.collection_name) -} - void InsertOrDeleteMsg::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.InsertOrDeleteMsg.collection_name) -} - void InsertOrDeleteMsg::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.InsertOrDeleteMsg.collection_name) -} - ::std::string* InsertOrDeleteMsg::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertOrDeleteMsg.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* InsertOrDeleteMsg::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.InsertOrDeleteMsg.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void InsertOrDeleteMsg::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.InsertOrDeleteMsg.collection_name) -} - -// optional .milvus.grpc.RowData rows_data = 2; -bool InsertOrDeleteMsg::has_rows_data() const { - return !_is_default_instance_ && rows_data_ != NULL; -} -void InsertOrDeleteMsg::clear_rows_data() { - if (GetArenaNoVirtual() == NULL && rows_data_ != NULL) delete rows_data_; - rows_data_ = NULL; -} -const ::milvus::grpc::RowData& InsertOrDeleteMsg::rows_data() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.rows_data) - return rows_data_ != NULL ? *rows_data_ : *default_instance_->rows_data_; -} -::milvus::grpc::RowData* InsertOrDeleteMsg::mutable_rows_data() { - - if (rows_data_ == NULL) { - rows_data_ = new ::milvus::grpc::RowData; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertOrDeleteMsg.rows_data) - return rows_data_; -} -::milvus::grpc::RowData* InsertOrDeleteMsg::release_rows_data() { - // @@protoc_insertion_point(field_release:milvus.grpc.InsertOrDeleteMsg.rows_data) - - ::milvus::grpc::RowData* temp = rows_data_; - rows_data_ = NULL; - return temp; -} -void InsertOrDeleteMsg::set_allocated_rows_data(::milvus::grpc::RowData* rows_data) { - delete rows_data_; - rows_data_ = rows_data; - if (rows_data) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.InsertOrDeleteMsg.rows_data) -} - -// optional int64 uid = 3; -void InsertOrDeleteMsg::clear_uid() { - uid_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 InsertOrDeleteMsg::uid() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.uid) - return uid_; -} - void InsertOrDeleteMsg::set_uid(::google::protobuf::int64 value) { - - uid_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.InsertOrDeleteMsg.uid) -} - -// optional string partition_tag = 4; -void InsertOrDeleteMsg::clear_partition_tag() { - partition_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& InsertOrDeleteMsg::partition_tag() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.partition_tag) - return partition_tag_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void InsertOrDeleteMsg::set_partition_tag(const ::std::string& value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.InsertOrDeleteMsg.partition_tag) -} - void InsertOrDeleteMsg::set_partition_tag(const char* value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.InsertOrDeleteMsg.partition_tag) -} - void InsertOrDeleteMsg::set_partition_tag(const char* value, size_t size) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.InsertOrDeleteMsg.partition_tag) -} - ::std::string* InsertOrDeleteMsg::mutable_partition_tag() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertOrDeleteMsg.partition_tag) - return partition_tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* InsertOrDeleteMsg::release_partition_tag() { - // @@protoc_insertion_point(field_release:milvus.grpc.InsertOrDeleteMsg.partition_tag) - - return partition_tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void InsertOrDeleteMsg::set_allocated_partition_tag(::std::string* partition_tag) { - if (partition_tag != NULL) { - - } else { - - } - partition_tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), partition_tag); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.InsertOrDeleteMsg.partition_tag) -} - -// optional int64 timestamp = 5; -void InsertOrDeleteMsg::clear_timestamp() { - timestamp_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 InsertOrDeleteMsg::timestamp() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.timestamp) - return timestamp_; -} - void InsertOrDeleteMsg::set_timestamp(::google::protobuf::int64 value) { - - timestamp_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.InsertOrDeleteMsg.timestamp) -} - -// optional int64 segment_id = 6; -void InsertOrDeleteMsg::clear_segment_id() { - segment_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 InsertOrDeleteMsg::segment_id() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.segment_id) - return segment_id_; -} - void InsertOrDeleteMsg::set_segment_id(::google::protobuf::int64 value) { - - segment_id_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.InsertOrDeleteMsg.segment_id) -} - -// optional int64 channel_id = 7; -void InsertOrDeleteMsg::clear_channel_id() { - channel_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 InsertOrDeleteMsg::channel_id() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.channel_id) - return channel_id_; -} - void InsertOrDeleteMsg::set_channel_id(::google::protobuf::int64 value) { - - channel_id_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.InsertOrDeleteMsg.channel_id) -} - -// optional .milvus.grpc.OpType op = 8; -void InsertOrDeleteMsg::clear_op() { - op_ = 0; -} - ::milvus::grpc::OpType InsertOrDeleteMsg::op() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.op) - return static_cast< ::milvus::grpc::OpType >(op_); -} - void InsertOrDeleteMsg::set_op(::milvus::grpc::OpType value) { - - op_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.InsertOrDeleteMsg.op) -} - -// optional int64 client_id = 9; -void InsertOrDeleteMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 InsertOrDeleteMsg::client_id() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.client_id) - return client_id_; -} - void InsertOrDeleteMsg::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.InsertOrDeleteMsg.client_id) -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 10; -int InsertOrDeleteMsg::extra_params_size() const { - return extra_params_.size(); -} -void InsertOrDeleteMsg::clear_extra_params() { - extra_params_.Clear(); -} -const ::milvus::grpc::KeyValuePair& InsertOrDeleteMsg::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.extra_params) - return extra_params_.Get(index); -} -::milvus::grpc::KeyValuePair* InsertOrDeleteMsg::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertOrDeleteMsg.extra_params) - return extra_params_.Mutable(index); -} -::milvus::grpc::KeyValuePair* InsertOrDeleteMsg::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.InsertOrDeleteMsg.extra_params) - return extra_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -InsertOrDeleteMsg::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.InsertOrDeleteMsg.extra_params) - return &extra_params_; -} -const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -InsertOrDeleteMsg::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.InsertOrDeleteMsg.extra_params) - return extra_params_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SearchMsg::kCollectionNameFieldNumber; -const int SearchMsg::kRecordsFieldNumber; -const int SearchMsg::kPartitionTagFieldNumber; -const int SearchMsg::kUidFieldNumber; -const int SearchMsg::kTimestampFieldNumber; -const int SearchMsg::kClientIdFieldNumber; -const int SearchMsg::kExtraParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void SearchMsg::InitAsDefaultInstance() { + ::milvus::grpc::_SearchMsg_default_instance_._instance.get_mutable()->records_ = const_cast< ::milvus::grpc::VectorRowRecord*>( + ::milvus::grpc::VectorRowRecord::internal_default_instance()); +} +class SearchMsg::_Internal { + public: + static const ::milvus::grpc::VectorRowRecord& records(const SearchMsg* msg); +}; +const ::milvus::grpc::VectorRowRecord& +SearchMsg::_Internal::records(const SearchMsg* msg) { + return *msg->records_; +} SearchMsg::SearchMsg() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.SearchMsg) } - -void SearchMsg::InitAsDefaultInstance() { - _is_default_instance_ = true; - records_ = const_cast< ::milvus::grpc::VectorRowRecord*>(&::milvus::grpc::VectorRowRecord::default_instance()); -} - SearchMsg::SearchMsg(const SearchMsg& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + extra_params_(from.extra_params_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + partition_tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.partition_tag().empty()) { + partition_tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); + } + if (from.has_records()) { + records_ = new ::milvus::grpc::VectorRowRecord(*from.records_); + } else { + records_ = nullptr; + } + ::memcpy(&uid_, &from.uid_, + static_cast(reinterpret_cast(&client_id_) - + reinterpret_cast(&uid_)) + sizeof(client_id_)); // @@protoc_insertion_point(copy_constructor:milvus.grpc.SearchMsg) } void SearchMsg::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - records_ = NULL; - partition_tag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - uid_ = GOOGLE_LONGLONG(0); - timestamp_ = GOOGLE_LONGLONG(0); - client_id_ = GOOGLE_LONGLONG(0); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SearchMsg_suvlim_2eproto.base); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + partition_tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&records_, 0, static_cast( + reinterpret_cast(&client_id_) - + reinterpret_cast(&records_)) + sizeof(client_id_)); } SearchMsg::~SearchMsg() { @@ -20054,194 +17841,229 @@ SearchMsg::~SearchMsg() { } void SearchMsg::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - partition_tag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - delete records_; - } + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + partition_tag_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete records_; } void SearchMsg::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* SearchMsg::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SearchMsg_descriptor_; -} - const SearchMsg& SearchMsg::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchMsg_suvlim_2eproto.base); + return *internal_default_instance(); } -SearchMsg* SearchMsg::default_instance_ = NULL; - -SearchMsg* SearchMsg::New(::google::protobuf::Arena* arena) const { - SearchMsg* n = new SearchMsg; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void SearchMsg::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.SearchMsg) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(SearchMsg, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&first, 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - ZR_(uid_, client_id_); - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && records_ != NULL) delete records_; - records_ = NULL; - partition_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - -#undef ZR_HELPER_ -#undef ZR_ + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; extra_params_.Clear(); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + partition_tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && records_ != nullptr) { + delete records_; + } + records_ = nullptr; + ::memset(&uid_, 0, static_cast( + reinterpret_cast(&client_id_) - + reinterpret_cast(&uid_)) + sizeof(client_id_)); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SearchMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string collection_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.SearchMsg.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.grpc.VectorRowRecord records = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(mutable_records(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string partition_tag = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_partition_tag(), ptr, ctx, "milvus.grpc.SearchMsg.partition_tag"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 uid = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 timestamp = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 client_id = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + client_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .milvus.grpc.KeyValuePair extra_params = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_extra_params(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 58); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool SearchMsg::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.SearchMsg) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string collection_name = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.SearchMsg.collection_name")); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_records; break; } - // optional .milvus.grpc.VectorRowRecord records = 2; + // .milvus.grpc.VectorRowRecord records = 2; case 2: { - if (tag == 18) { - parse_records: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_records())); } else { goto handle_unusual; } - if (input->ExpectTag(26)) goto parse_partition_tag; break; } - // optional string partition_tag = 3; + // string partition_tag = 3; case 3: { - if (tag == 26) { - parse_partition_tag: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_partition_tag())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), this->partition_tag().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_tag().data(), static_cast(this->partition_tag().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.SearchMsg.partition_tag")); } else { goto handle_unusual; } - if (input->ExpectTag(32)) goto parse_uid; break; } - // optional int64 uid = 4; + // int64 uid = 4; case 4: { - if (tag == 32) { - parse_uid: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( input, &uid_))); - } else { goto handle_unusual; } - if (input->ExpectTag(40)) goto parse_timestamp; break; } - // optional int64 timestamp = 5; + // int64 timestamp = 5; case 5: { - if (tag == 40) { - parse_timestamp: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, ×tamp_))); + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, ×tamp_))); } else { goto handle_unusual; } - if (input->ExpectTag(48)) goto parse_client_id; break; } - // optional int64 client_id = 6; + // int64 client_id = 6; case 6: { - if (tag == 48) { - parse_client_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &client_id_))); + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &client_id_))); } else { goto handle_unusual; } - if (input->ExpectTag(58)) goto parse_extra_params; break; } // repeated .milvus.grpc.KeyValuePair extra_params = 7; case 7: { - if (tag == 58) { - parse_extra_params: - DO_(input->IncrementRecursionDepth()); - parse_loop_extra_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_extra_params())); } else { goto handle_unusual; } - if (input->ExpectTag(58)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -20254,189 +18076,217 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SearchMsg::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.SearchMsg) - // optional string collection_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.SearchMsg.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->collection_name(), output); } - // optional .milvus.grpc.VectorRowRecord records = 2; + // .milvus.grpc.VectorRowRecord records = 2; if (this->has_records()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *this->records_, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, _Internal::records(this), output); } - // optional string partition_tag = 3; + // string partition_tag = 3; if (this->partition_tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), this->partition_tag().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_tag().data(), static_cast(this->partition_tag().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.SearchMsg.partition_tag"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 3, this->partition_tag(), output); } - // optional int64 uid = 4; + // int64 uid = 4; if (this->uid() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->uid(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(4, this->uid(), output); } - // optional int64 timestamp = 5; + // int64 timestamp = 5; if (this->timestamp() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->timestamp(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(5, this->timestamp(), output); } - // optional int64 client_id = 6; + // int64 client_id = 6; if (this->client_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(6, this->client_id(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(6, this->client_id(), output); } // repeated .milvus.grpc.KeyValuePair extra_params = 7; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, this->extra_params(i), output); + for (unsigned int i = 0, + n = static_cast(this->extra_params_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, + this->extra_params(static_cast(i)), + output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.SearchMsg) } -::google::protobuf::uint8* SearchMsg::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* SearchMsg::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.SearchMsg) - // optional string collection_name = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.SearchMsg.collection_name"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 1, this->collection_name(), target); } - // optional .milvus.grpc.VectorRowRecord records = 2; + // .milvus.grpc.VectorRowRecord records = 2; if (this->has_records()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *this->records_, false, target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, _Internal::records(this), target); } - // optional string partition_tag = 3; + // string partition_tag = 3; if (this->partition_tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), this->partition_tag().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_tag().data(), static_cast(this->partition_tag().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.SearchMsg.partition_tag"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 3, this->partition_tag(), target); } - // optional int64 uid = 4; + // int64 uid = 4; if (this->uid() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->uid(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->uid(), target); } - // optional int64 timestamp = 5; + // int64 timestamp = 5; if (this->timestamp() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->timestamp(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->timestamp(), target); } - // optional int64 client_id = 6; + // int64 client_id = 6; if (this->client_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(6, this->client_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->client_id(), target); } // repeated .milvus.grpc.KeyValuePair extra_params = 7; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 7, this->extra_params(i), false, target); + for (unsigned int i = 0, + n = static_cast(this->extra_params_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, this->extra_params(static_cast(i)), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SearchMsg) return target; } -int SearchMsg::ByteSize() const { +size_t SearchMsg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.SearchMsg) - int total_size = 0; + size_t total_size = 0; - // optional string collection_name = 1; + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .milvus.grpc.KeyValuePair extra_params = 7; + { + unsigned int count = static_cast(this->extra_params_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->extra_params(static_cast(i))); + } + } + + // string collection_name = 1; if (this->collection_name().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->collection_name()); } - // optional .milvus.grpc.VectorRowRecord records = 2; - if (this->has_records()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->records_); - } - - // optional string partition_tag = 3; + // string partition_tag = 3; if (this->partition_tag().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->partition_tag()); } - // optional int64 uid = 4; + // .milvus.grpc.VectorRowRecord records = 2; + if (this->has_records()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *records_); + } + + // int64 uid = 4; if (this->uid() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->uid()); } - // optional int64 timestamp = 5; + // int64 timestamp = 5; if (this->timestamp() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->timestamp()); } - // optional int64 client_id = 6; + // int64 client_id = 6; if (this->client_id() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->client_id()); } - // repeated .milvus.grpc.KeyValuePair extra_params = 7; - total_size += 1 * this->extra_params_size(); - for (int i = 0; i < this->extra_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->extra_params(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void SearchMsg::MergeFrom(const ::google::protobuf::Message& from) { +void SearchMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.SearchMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const SearchMsg* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const SearchMsg* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.SearchMsg) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SearchMsg) MergeFrom(*source); @@ -20445,20 +18295,22 @@ void SearchMsg::MergeFrom(const ::google::protobuf::Message& from) { void SearchMsg::MergeFrom(const SearchMsg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.SearchMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + extra_params_.MergeFrom(from.extra_params_); if (from.collection_name().size() > 0) { - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.has_records()) { - mutable_records()->::milvus::grpc::VectorRowRecord::MergeFrom(from.records()); + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); } if (from.partition_tag().size() > 0) { - partition_tag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); + partition_tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); + } + if (from.has_records()) { + mutable_records()->::milvus::grpc::VectorRowRecord::MergeFrom(from.records()); } if (from.uid() != 0) { set_uid(from.uid()); @@ -20471,7 +18323,7 @@ void SearchMsg::MergeFrom(const SearchMsg& from) { } } -void SearchMsg::CopyFrom(const ::google::protobuf::Message& from) { +void SearchMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.SearchMsg) if (&from == this) return; Clear(); @@ -20486,269 +18338,55 @@ void SearchMsg::CopyFrom(const SearchMsg& from) { } bool SearchMsg::IsInitialized() const { - return true; } -void SearchMsg::Swap(SearchMsg* other) { - if (other == this) return; - InternalSwap(other); -} void SearchMsg::InternalSwap(SearchMsg* other) { - collection_name_.Swap(&other->collection_name_); - std::swap(records_, other->records_); - partition_tag_.Swap(&other->partition_tag_); - std::swap(uid_, other->uid_); - std::swap(timestamp_, other->timestamp_); - std::swap(client_id_, other->client_id_); - extra_params_.UnsafeArenaSwap(&other->extra_params_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + partition_tag_.Swap(&other->partition_tag_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(records_, other->records_); + swap(uid_, other->uid_); + swap(timestamp_, other->timestamp_); + swap(client_id_, other->client_id_); } -::google::protobuf::Metadata SearchMsg::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SearchMsg_descriptor_; - metadata.reflection = SearchMsg_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata SearchMsg::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SearchMsg - -// optional string collection_name = 1; -void SearchMsg::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& SearchMsg::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchMsg.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void SearchMsg::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.SearchMsg.collection_name) -} - void SearchMsg::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchMsg.collection_name) -} - void SearchMsg::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchMsg.collection_name) -} - ::std::string* SearchMsg::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchMsg.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* SearchMsg::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.SearchMsg.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void SearchMsg::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchMsg.collection_name) -} - -// optional .milvus.grpc.VectorRowRecord records = 2; -bool SearchMsg::has_records() const { - return !_is_default_instance_ && records_ != NULL; -} -void SearchMsg::clear_records() { - if (GetArenaNoVirtual() == NULL && records_ != NULL) delete records_; - records_ = NULL; -} -const ::milvus::grpc::VectorRowRecord& SearchMsg::records() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchMsg.records) - return records_ != NULL ? *records_ : *default_instance_->records_; -} -::milvus::grpc::VectorRowRecord* SearchMsg::mutable_records() { - - if (records_ == NULL) { - records_ = new ::milvus::grpc::VectorRowRecord; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchMsg.records) - return records_; -} -::milvus::grpc::VectorRowRecord* SearchMsg::release_records() { - // @@protoc_insertion_point(field_release:milvus.grpc.SearchMsg.records) - - ::milvus::grpc::VectorRowRecord* temp = records_; - records_ = NULL; - return temp; -} -void SearchMsg::set_allocated_records(::milvus::grpc::VectorRowRecord* records) { - delete records_; - records_ = records; - if (records) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchMsg.records) -} - -// optional string partition_tag = 3; -void SearchMsg::clear_partition_tag() { - partition_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& SearchMsg::partition_tag() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchMsg.partition_tag) - return partition_tag_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void SearchMsg::set_partition_tag(const ::std::string& value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.SearchMsg.partition_tag) -} - void SearchMsg::set_partition_tag(const char* value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchMsg.partition_tag) -} - void SearchMsg::set_partition_tag(const char* value, size_t size) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchMsg.partition_tag) -} - ::std::string* SearchMsg::mutable_partition_tag() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchMsg.partition_tag) - return partition_tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* SearchMsg::release_partition_tag() { - // @@protoc_insertion_point(field_release:milvus.grpc.SearchMsg.partition_tag) - - return partition_tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void SearchMsg::set_allocated_partition_tag(::std::string* partition_tag) { - if (partition_tag != NULL) { - - } else { - - } - partition_tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), partition_tag); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchMsg.partition_tag) -} - -// optional int64 uid = 4; -void SearchMsg::clear_uid() { - uid_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 SearchMsg::uid() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchMsg.uid) - return uid_; -} - void SearchMsg::set_uid(::google::protobuf::int64 value) { - - uid_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.SearchMsg.uid) -} - -// optional int64 timestamp = 5; -void SearchMsg::clear_timestamp() { - timestamp_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 SearchMsg::timestamp() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchMsg.timestamp) - return timestamp_; -} - void SearchMsg::set_timestamp(::google::protobuf::int64 value) { - - timestamp_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.SearchMsg.timestamp) -} - -// optional int64 client_id = 6; -void SearchMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 SearchMsg::client_id() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchMsg.client_id) - return client_id_; -} - void SearchMsg::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.SearchMsg.client_id) -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 7; -int SearchMsg::extra_params_size() const { - return extra_params_.size(); -} -void SearchMsg::clear_extra_params() { - extra_params_.Clear(); -} -const ::milvus::grpc::KeyValuePair& SearchMsg::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchMsg.extra_params) - return extra_params_.Get(index); -} -::milvus::grpc::KeyValuePair* SearchMsg::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchMsg.extra_params) - return extra_params_.Mutable(index); -} -::milvus::grpc::KeyValuePair* SearchMsg::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.SearchMsg.extra_params) - return extra_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -SearchMsg::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchMsg.extra_params) - return &extra_params_; -} -const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -SearchMsg::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchMsg.extra_params) - return extra_params_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TimeSyncMsg::kPeerIdFieldNumber; -const int TimeSyncMsg::kTimestampFieldNumber; -const int TimeSyncMsg::kSyncTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void TimeSyncMsg::InitAsDefaultInstance() { +} +class TimeSyncMsg::_Internal { + public: +}; TimeSyncMsg::TimeSyncMsg() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.TimeSyncMsg) } - -void TimeSyncMsg::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - TimeSyncMsg::TimeSyncMsg(const TimeSyncMsg& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&clientid_, &from.clientid_, + static_cast(reinterpret_cast(&msgtype_) - + reinterpret_cast(&clientid_)) + sizeof(msgtype_)); // @@protoc_insertion_point(copy_constructor:milvus.grpc.TimeSyncMsg) } void TimeSyncMsg::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - peer_id_ = GOOGLE_LONGLONG(0); - timestamp_ = GOOGLE_LONGLONG(0); - sync_type_ = 0; + ::memset(&clientid_, 0, static_cast( + reinterpret_cast(&msgtype_) - + reinterpret_cast(&clientid_)) + sizeof(msgtype_)); } TimeSyncMsg::~TimeSyncMsg() { @@ -20757,123 +18395,136 @@ TimeSyncMsg::~TimeSyncMsg() { } void TimeSyncMsg::SharedDtor() { - if (this != default_instance_) { - } } void TimeSyncMsg::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* TimeSyncMsg::descriptor() { - protobuf_AssignDescriptorsOnce(); - return TimeSyncMsg_descriptor_; -} - const TimeSyncMsg& TimeSyncMsg::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TimeSyncMsg_suvlim_2eproto.base); + return *internal_default_instance(); } -TimeSyncMsg* TimeSyncMsg::default_instance_ = NULL; - -TimeSyncMsg* TimeSyncMsg::New(::google::protobuf::Arena* arena) const { - TimeSyncMsg* n = new TimeSyncMsg; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void TimeSyncMsg::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.TimeSyncMsg) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(TimeSyncMsg, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&first, 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - ZR_(peer_id_, sync_type_); - -#undef ZR_HELPER_ -#undef ZR_ + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + ::memset(&clientid_, 0, static_cast( + reinterpret_cast(&msgtype_) - + reinterpret_cast(&clientid_)) + sizeof(msgtype_)); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TimeSyncMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // int64 ClientId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + clientid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 Timestamp = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.grpc.OpType MsgType = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + set_msgtype(static_cast<::milvus::grpc::OpType>(val)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool TimeSyncMsg::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.TimeSyncMsg) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int64 peer_Id = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int64 ClientId = 1; case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &peer_id_))); + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &clientid_))); } else { goto handle_unusual; } - if (input->ExpectTag(16)) goto parse_Timestamp; break; } - // optional int64 Timestamp = 2; + // int64 Timestamp = 2; case 2: { - if (tag == 16) { - parse_Timestamp: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, ×tamp_))); + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, ×tamp_))); } else { goto handle_unusual; } - if (input->ExpectTag(24)) goto parse_sync_type; break; } - // optional .milvus.grpc.SyncType sync_type = 3; + // .milvus.grpc.OpType MsgType = 3; case 3: { - if (tag == 24) { - parse_sync_type: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { + int value = 0; + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( input, &value))); - set_sync_type(static_cast< ::milvus::grpc::SyncType >(value)); + set_msgtype(static_cast< ::milvus::grpc::OpType >(value)); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -20886,93 +18537,114 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void TimeSyncMsg::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.TimeSyncMsg) - // optional int64 peer_Id = 1; - if (this->peer_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->peer_id(), output); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 ClientId = 1; + if (this->clientid() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->clientid(), output); } - // optional int64 Timestamp = 2; + // int64 Timestamp = 2; if (this->timestamp() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->timestamp(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->timestamp(), output); } - // optional .milvus.grpc.SyncType sync_type = 3; - if (this->sync_type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->sync_type(), output); + // .milvus.grpc.OpType MsgType = 3; + if (this->msgtype() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( + 3, this->msgtype(), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.TimeSyncMsg) } -::google::protobuf::uint8* TimeSyncMsg::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* TimeSyncMsg::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.TimeSyncMsg) - // optional int64 peer_Id = 1; - if (this->peer_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->peer_id(), target); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 ClientId = 1; + if (this->clientid() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->clientid(), target); } - // optional int64 Timestamp = 2; + // int64 Timestamp = 2; if (this->timestamp() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->timestamp(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->timestamp(), target); } - // optional .milvus.grpc.SyncType sync_type = 3; - if (this->sync_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->sync_type(), target); + // .milvus.grpc.OpType MsgType = 3; + if (this->msgtype() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 3, this->msgtype(), target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.TimeSyncMsg) return target; } -int TimeSyncMsg::ByteSize() const { +size_t TimeSyncMsg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.TimeSyncMsg) - int total_size = 0; + size_t total_size = 0; - // optional int64 peer_Id = 1; - if (this->peer_id() != 0) { + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 ClientId = 1; + if (this->clientid() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->peer_id()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->clientid()); } - // optional int64 Timestamp = 2; + // int64 Timestamp = 2; if (this->timestamp() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->timestamp()); } - // optional .milvus.grpc.SyncType sync_type = 3; - if (this->sync_type() != 0) { + // .milvus.grpc.OpType MsgType = 3; + if (this->msgtype() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->sync_type()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->msgtype()); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void TimeSyncMsg::MergeFrom(const ::google::protobuf::Message& from) { +void TimeSyncMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.TimeSyncMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const TimeSyncMsg* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const TimeSyncMsg* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.TimeSyncMsg) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.TimeSyncMsg) MergeFrom(*source); @@ -20981,21 +18653,23 @@ void TimeSyncMsg::MergeFrom(const ::google::protobuf::Message& from) { void TimeSyncMsg::MergeFrom(const TimeSyncMsg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.TimeSyncMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.peer_id() != 0) { - set_peer_id(from.peer_id()); + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.clientid() != 0) { + set_clientid(from.clientid()); } if (from.timestamp() != 0) { set_timestamp(from.timestamp()); } - if (from.sync_type() != 0) { - set_sync_type(from.sync_type()); + if (from.msgtype() != 0) { + set_msgtype(from.msgtype()); } } -void TimeSyncMsg::CopyFrom(const ::google::protobuf::Message& from) { +void TimeSyncMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.TimeSyncMsg) if (&from == this) return; Clear(); @@ -21010,106 +18684,46 @@ void TimeSyncMsg::CopyFrom(const TimeSyncMsg& from) { } bool TimeSyncMsg::IsInitialized() const { - return true; } -void TimeSyncMsg::Swap(TimeSyncMsg* other) { - if (other == this) return; - InternalSwap(other); -} void TimeSyncMsg::InternalSwap(TimeSyncMsg* other) { - std::swap(peer_id_, other->peer_id_); - std::swap(timestamp_, other->timestamp_); - std::swap(sync_type_, other->sync_type_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(clientid_, other->clientid_); + swap(timestamp_, other->timestamp_); + swap(msgtype_, other->msgtype_); } -::google::protobuf::Metadata TimeSyncMsg::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = TimeSyncMsg_descriptor_; - metadata.reflection = TimeSyncMsg_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata TimeSyncMsg::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// TimeSyncMsg - -// optional int64 peer_Id = 1; -void TimeSyncMsg::clear_peer_id() { - peer_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 TimeSyncMsg::peer_id() const { - // @@protoc_insertion_point(field_get:milvus.grpc.TimeSyncMsg.peer_Id) - return peer_id_; -} - void TimeSyncMsg::set_peer_id(::google::protobuf::int64 value) { - - peer_id_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.TimeSyncMsg.peer_Id) -} - -// optional int64 Timestamp = 2; -void TimeSyncMsg::clear_timestamp() { - timestamp_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 TimeSyncMsg::timestamp() const { - // @@protoc_insertion_point(field_get:milvus.grpc.TimeSyncMsg.Timestamp) - return timestamp_; -} - void TimeSyncMsg::set_timestamp(::google::protobuf::int64 value) { - - timestamp_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.TimeSyncMsg.Timestamp) -} - -// optional .milvus.grpc.SyncType sync_type = 3; -void TimeSyncMsg::clear_sync_type() { - sync_type_ = 0; -} - ::milvus::grpc::SyncType TimeSyncMsg::sync_type() const { - // @@protoc_insertion_point(field_get:milvus.grpc.TimeSyncMsg.sync_type) - return static_cast< ::milvus::grpc::SyncType >(sync_type_); -} - void TimeSyncMsg::set_sync_type(::milvus::grpc::SyncType value) { - - sync_type_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.TimeSyncMsg.sync_type) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SegmentRecord::kUidFieldNumber; -const int SegmentRecord::kSegmentIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void SegmentRecord::InitAsDefaultInstance() { +} +class SegmentRecord::_Internal { + public: +}; SegmentRecord::SegmentRecord() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.SegmentRecord) } - -void SegmentRecord::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - SegmentRecord::SegmentRecord(const SegmentRecord& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + segment_id_(from.segment_id_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + uid_ = from.uid_; // @@protoc_insertion_point(copy_constructor:milvus.grpc.SegmentRecord) } void SegmentRecord::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - uid_ = GOOGLE_LONGLONG(0); + uid_ = PROTOBUF_LONGLONG(0); } SegmentRecord::~SegmentRecord() { @@ -21118,91 +18732,119 @@ SegmentRecord::~SegmentRecord() { } void SegmentRecord::SharedDtor() { - if (this != default_instance_) { - } } void SegmentRecord::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* SegmentRecord::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SegmentRecord_descriptor_; -} - const SegmentRecord& SegmentRecord::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SegmentRecord_suvlim_2eproto.base); + return *internal_default_instance(); } -SegmentRecord* SegmentRecord::default_instance_ = NULL; - -SegmentRecord* SegmentRecord::New(::google::protobuf::Arena* arena) const { - SegmentRecord* n = new SegmentRecord; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void SegmentRecord::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.SegmentRecord) - uid_ = GOOGLE_LONGLONG(0); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + segment_id_.Clear(); + uid_ = PROTOBUF_LONGLONG(0); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SegmentRecord::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // int64 uid = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated int64 segment_id = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_segment_id(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) { + add_segment_id(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool SegmentRecord::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.SegmentRecord) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int64 uid = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int64 uid = 1; case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &uid_))); + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &uid_))); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_segment_id; break; } // repeated int64 segment_id = 2; case 2: { - if (tag == 18) { - parse_segment_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( input, this->mutable_segment_id()))); - } else if (tag == 16) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - 1, 18, input, this->mutable_segment_id()))); + } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + 1, 18u, input, this->mutable_segment_id()))); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -21215,99 +18857,118 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SegmentRecord::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.SegmentRecord) - // optional int64 uid = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 uid = 1; if (this->uid() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->uid(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->uid(), output); } // repeated int64 segment_id = 2; if (this->segment_id_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_segment_id_cached_byte_size_); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(2, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_segment_id_cached_byte_size_.load( + std::memory_order_relaxed)); } - for (int i = 0; i < this->segment_id_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag( + for (int i = 0, n = this->segment_id_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( this->segment_id(i), output); } + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.SegmentRecord) } -::google::protobuf::uint8* SegmentRecord::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* SegmentRecord::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.SegmentRecord) - // optional int64 uid = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 uid = 1; if (this->uid() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->uid(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->uid(), target); } // repeated int64 segment_id = 2; if (this->segment_id_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( 2, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _segment_id_cached_byte_size_, target); - } - for (int i = 0; i < this->segment_id_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->segment_id(i), target); + target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( + _segment_id_cached_byte_size_.load(std::memory_order_relaxed), + target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteInt64NoTagToArray(this->segment_id_, target); } + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SegmentRecord) return target; } -int SegmentRecord::ByteSize() const { +size_t SegmentRecord::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.SegmentRecord) - int total_size = 0; + size_t total_size = 0; - // optional int64 uid = 1; - if (this->uid() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->uid()); + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; // repeated int64 segment_id = 2; { - int data_size = 0; - for (int i = 0; i < this->segment_id_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int64Size(this->segment_id(i)); - } + size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + Int64Size(this->segment_id_); if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _segment_id_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _segment_id_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); total_size += data_size; } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // int64 uid = 1; + if (this->uid() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->uid()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void SegmentRecord::MergeFrom(const ::google::protobuf::Message& from) { +void SegmentRecord::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.SegmentRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const SegmentRecord* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const SegmentRecord* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.SegmentRecord) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SegmentRecord) MergeFrom(*source); @@ -21316,16 +18977,18 @@ void SegmentRecord::MergeFrom(const ::google::protobuf::Message& from) { void SegmentRecord::MergeFrom(const SegmentRecord& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.SegmentRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + segment_id_.MergeFrom(from.segment_id_); if (from.uid() != 0) { set_uid(from.uid()); } } -void SegmentRecord::CopyFrom(const ::google::protobuf::Message& from) { +void SegmentRecord::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.SegmentRecord) if (&from == this) return; Clear(); @@ -21340,109 +19003,61 @@ void SegmentRecord::CopyFrom(const SegmentRecord& from) { } bool SegmentRecord::IsInitialized() const { - return true; } -void SegmentRecord::Swap(SegmentRecord* other) { - if (other == this) return; - InternalSwap(other); -} void SegmentRecord::InternalSwap(SegmentRecord* other) { - std::swap(uid_, other->uid_); - segment_id_.UnsafeArenaSwap(&other->segment_id_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + segment_id_.InternalSwap(&other->segment_id_); + swap(uid_, other->uid_); } -::google::protobuf::Metadata SegmentRecord::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SegmentRecord_descriptor_; - metadata.reflection = SegmentRecord_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata SegmentRecord::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SegmentRecord - -// optional int64 uid = 1; -void SegmentRecord::clear_uid() { - uid_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 SegmentRecord::uid() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SegmentRecord.uid) - return uid_; -} - void SegmentRecord::set_uid(::google::protobuf::int64 value) { - - uid_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.SegmentRecord.uid) -} - -// repeated int64 segment_id = 2; -int SegmentRecord::segment_id_size() const { - return segment_id_.size(); -} -void SegmentRecord::clear_segment_id() { - segment_id_.Clear(); -} - ::google::protobuf::int64 SegmentRecord::segment_id(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SegmentRecord.segment_id) - return segment_id_.Get(index); -} - void SegmentRecord::set_segment_id(int index, ::google::protobuf::int64 value) { - segment_id_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.SegmentRecord.segment_id) -} - void SegmentRecord::add_segment_id(::google::protobuf::int64 value) { - segment_id_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.SegmentRecord.segment_id) -} - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -SegmentRecord::segment_id() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SegmentRecord.segment_id) - return segment_id_; -} - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -SegmentRecord::mutable_segment_id() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SegmentRecord.segment_id) - return &segment_id_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Key2SegMsg::kClientIdFieldNumber; -const int Key2SegMsg::kRecordsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +void Key2SegMsg::InitAsDefaultInstance() { + ::milvus::grpc::_Key2SegMsg_default_instance_._instance.get_mutable()->records_ = const_cast< ::milvus::grpc::SegmentRecord*>( + ::milvus::grpc::SegmentRecord::internal_default_instance()); +} +class Key2SegMsg::_Internal { + public: + static const ::milvus::grpc::SegmentRecord& records(const Key2SegMsg* msg); +}; +const ::milvus::grpc::SegmentRecord& +Key2SegMsg::_Internal::records(const Key2SegMsg* msg) { + return *msg->records_; +} Key2SegMsg::Key2SegMsg() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.Key2SegMsg) } - -void Key2SegMsg::InitAsDefaultInstance() { - _is_default_instance_ = true; - records_ = const_cast< ::milvus::grpc::SegmentRecord*>(&::milvus::grpc::SegmentRecord::default_instance()); -} - Key2SegMsg::Key2SegMsg(const Key2SegMsg& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_records()) { + records_ = new ::milvus::grpc::SegmentRecord(*from.records_); + } else { + records_ = nullptr; + } + ::memcpy(&client_id_, &from.client_id_, + static_cast(reinterpret_cast(&msg_type_) - + reinterpret_cast(&client_id_)) + sizeof(msg_type_)); // @@protoc_insertion_point(copy_constructor:milvus.grpc.Key2SegMsg) } void Key2SegMsg::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - client_id_ = GOOGLE_LONGLONG(0); - records_ = NULL; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Key2SegMsg_suvlim_2eproto.base); + ::memset(&records_, 0, static_cast( + reinterpret_cast(&msg_type_) - + reinterpret_cast(&records_)) + sizeof(msg_type_)); } Key2SegMsg::~Key2SegMsg() { @@ -21451,88 +19066,139 @@ Key2SegMsg::~Key2SegMsg() { } void Key2SegMsg::SharedDtor() { - if (this != default_instance_) { - delete records_; - } + if (this != internal_default_instance()) delete records_; } void Key2SegMsg::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } -const ::google::protobuf::Descriptor* Key2SegMsg::descriptor() { - protobuf_AssignDescriptorsOnce(); - return Key2SegMsg_descriptor_; -} - const Key2SegMsg& Key2SegMsg::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Key2SegMsg_suvlim_2eproto.base); + return *internal_default_instance(); } -Key2SegMsg* Key2SegMsg::default_instance_ = NULL; - -Key2SegMsg* Key2SegMsg::New(::google::protobuf::Arena* arena) const { - Key2SegMsg* n = new Key2SegMsg; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void Key2SegMsg::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.Key2SegMsg) - client_id_ = GOOGLE_LONGLONG(0); - if (GetArenaNoVirtual() == NULL && records_ != NULL) delete records_; - records_ = NULL; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && records_ != nullptr) { + delete records_; + } + records_ = nullptr; + ::memset(&client_id_, 0, static_cast( + reinterpret_cast(&msg_type_) - + reinterpret_cast(&client_id_)) + sizeof(msg_type_)); + _internal_metadata_.Clear(); } +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Key2SegMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // int64 client_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + client_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.grpc.SegmentRecord records = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(mutable_records(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.grpc.OpType msg_type = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + set_msg_type(static_cast<::milvus::grpc::OpType>(val)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool Key2SegMsg::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.Key2SegMsg) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int64 client_id = 1; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int64 client_id = 1; case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &client_id_))); + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &client_id_))); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_records; break; } - // optional .milvus.grpc.SegmentRecord records = 2; + // .milvus.grpc.SegmentRecord records = 2; case 2: { - if (tag == 18) { - parse_records: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_records())); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; + break; + } + + // .milvus.grpc.OpType msg_type = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { + int value = 0; + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_msg_type(static_cast< ::milvus::grpc::OpType >(value)); + } else { + goto handle_unusual; + } break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -21545,78 +19211,117 @@ failure: return false; #undef DO_ } +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void Key2SegMsg::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.Key2SegMsg) - // optional int64 client_id = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 client_id = 1; if (this->client_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->client_id(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->client_id(), output); } - // optional .milvus.grpc.SegmentRecord records = 2; + // .milvus.grpc.SegmentRecord records = 2; if (this->has_records()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *this->records_, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, _Internal::records(this), output); } + // .milvus.grpc.OpType msg_type = 3; + if (this->msg_type() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( + 3, this->msg_type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } // @@protoc_insertion_point(serialize_end:milvus.grpc.Key2SegMsg) } -::google::protobuf::uint8* Key2SegMsg::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* Key2SegMsg::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Key2SegMsg) - // optional int64 client_id = 1; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 client_id = 1; if (this->client_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->client_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->client_id(), target); } - // optional .milvus.grpc.SegmentRecord records = 2; + // .milvus.grpc.SegmentRecord records = 2; if (this->has_records()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *this->records_, false, target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, _Internal::records(this), target); } + // .milvus.grpc.OpType msg_type = 3; + if (this->msg_type() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 3, this->msg_type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Key2SegMsg) return target; } -int Key2SegMsg::ByteSize() const { +size_t Key2SegMsg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:milvus.grpc.Key2SegMsg) - int total_size = 0; + size_t total_size = 0; - // optional int64 client_id = 1; + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .milvus.grpc.SegmentRecord records = 2; + if (this->has_records()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *records_); + } + + // int64 client_id = 1; if (this->client_id() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->client_id()); } - // optional .milvus.grpc.SegmentRecord records = 2; - if (this->has_records()) { + // .milvus.grpc.OpType msg_type = 3; + if (this->msg_type() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->records_); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->msg_type()); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void Key2SegMsg::MergeFrom(const ::google::protobuf::Message& from) { +void Key2SegMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.Key2SegMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const Key2SegMsg* source = - ::google::protobuf::internal::DynamicCastToGenerated( + GOOGLE_DCHECK_NE(&from, this); + const Key2SegMsg* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); - if (source == NULL) { + if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.Key2SegMsg) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Key2SegMsg) MergeFrom(*source); @@ -21625,18 +19330,23 @@ void Key2SegMsg::MergeFrom(const ::google::protobuf::Message& from) { void Key2SegMsg::MergeFrom(const Key2SegMsg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.Key2SegMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_records()) { + mutable_records()->::milvus::grpc::SegmentRecord::MergeFrom(from.records()); } if (from.client_id() != 0) { set_client_id(from.client_id()); } - if (from.has_records()) { - mutable_records()->::milvus::grpc::SegmentRecord::MergeFrom(from.records()); + if (from.msg_type() != 0) { + set_msg_type(from.msg_type()); } } -void Key2SegMsg::CopyFrom(const ::google::protobuf::Message& from) { +void Key2SegMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Key2SegMsg) if (&from == this) return; Clear(); @@ -21651,89 +19361,168 @@ void Key2SegMsg::CopyFrom(const Key2SegMsg& from) { } bool Key2SegMsg::IsInitialized() const { - return true; } -void Key2SegMsg::Swap(Key2SegMsg* other) { - if (other == this) return; - InternalSwap(other); -} void Key2SegMsg::InternalSwap(Key2SegMsg* other) { - std::swap(client_id_, other->client_id_); - std::swap(records_, other->records_); + using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(records_, other->records_); + swap(client_id_, other->client_id_); + swap(msg_type_, other->msg_type_); } -::google::protobuf::Metadata Key2SegMsg::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = Key2SegMsg_descriptor_; - metadata.reflection = Key2SegMsg_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata Key2SegMsg::GetMetadata() const { + return GetMetadataStatic(); } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// Key2SegMsg - -// optional int64 client_id = 1; -void Key2SegMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 Key2SegMsg::client_id() const { - // @@protoc_insertion_point(field_get:milvus.grpc.Key2SegMsg.client_id) - return client_id_; -} - void Key2SegMsg::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.Key2SegMsg.client_id) -} - -// optional .milvus.grpc.SegmentRecord records = 2; -bool Key2SegMsg::has_records() const { - return !_is_default_instance_ && records_ != NULL; -} -void Key2SegMsg::clear_records() { - if (GetArenaNoVirtual() == NULL && records_ != NULL) delete records_; - records_ = NULL; -} -const ::milvus::grpc::SegmentRecord& Key2SegMsg::records() const { - // @@protoc_insertion_point(field_get:milvus.grpc.Key2SegMsg.records) - return records_ != NULL ? *records_ : *default_instance_->records_; -} -::milvus::grpc::SegmentRecord* Key2SegMsg::mutable_records() { - - if (records_ == NULL) { - records_ = new ::milvus::grpc::SegmentRecord; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.Key2SegMsg.records) - return records_; -} -::milvus::grpc::SegmentRecord* Key2SegMsg::release_records() { - // @@protoc_insertion_point(field_release:milvus.grpc.Key2SegMsg.records) - - ::milvus::grpc::SegmentRecord* temp = records_; - records_ = NULL; - return temp; -} -void Key2SegMsg::set_allocated_records(::milvus::grpc::SegmentRecord* records) { - delete records_; - records_ = records; - if (records) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Key2SegMsg.records) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) - } // namespace grpc } // namespace milvus +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::milvus::grpc::KeyValuePair* Arena::CreateMaybeMessage< ::milvus::grpc::KeyValuePair >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::KeyValuePair >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::CollectionName* Arena::CreateMaybeMessage< ::milvus::grpc::CollectionName >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::CollectionName >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::CollectionNameList* Arena::CreateMaybeMessage< ::milvus::grpc::CollectionNameList >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::CollectionNameList >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::FieldName* Arena::CreateMaybeMessage< ::milvus::grpc::FieldName >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::FieldName >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::Mapping* Arena::CreateMaybeMessage< ::milvus::grpc::Mapping >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::Mapping >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::MappingList* Arena::CreateMaybeMessage< ::milvus::grpc::MappingList >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::MappingList >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::PartitionParam* Arena::CreateMaybeMessage< ::milvus::grpc::PartitionParam >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::PartitionParam >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::PartitionList* Arena::CreateMaybeMessage< ::milvus::grpc::PartitionList >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::PartitionList >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::VectorRowRecord* Arena::CreateMaybeMessage< ::milvus::grpc::VectorRowRecord >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::VectorRowRecord >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::EntityIds* Arena::CreateMaybeMessage< ::milvus::grpc::EntityIds >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::EntityIds >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::VectorRecord* Arena::CreateMaybeMessage< ::milvus::grpc::VectorRecord >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::VectorRecord >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::VectorParam* Arena::CreateMaybeMessage< ::milvus::grpc::VectorParam >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::VectorParam >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::FieldMeta* Arena::CreateMaybeMessage< ::milvus::grpc::FieldMeta >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::FieldMeta >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::Schema* Arena::CreateMaybeMessage< ::milvus::grpc::Schema >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::Schema >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::RowData* Arena::CreateMaybeMessage< ::milvus::grpc::RowData >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::RowData >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::InsertParam* Arena::CreateMaybeMessage< ::milvus::grpc::InsertParam >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::InsertParam >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::SearchParam* Arena::CreateMaybeMessage< ::milvus::grpc::SearchParam >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::SearchParam >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::SearchInSegmentParam* Arena::CreateMaybeMessage< ::milvus::grpc::SearchInSegmentParam >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::SearchInSegmentParam >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::Entities* Arena::CreateMaybeMessage< ::milvus::grpc::Entities >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::Entities >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::QueryResult* Arena::CreateMaybeMessage< ::milvus::grpc::QueryResult >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::QueryResult >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::StringReply* Arena::CreateMaybeMessage< ::milvus::grpc::StringReply >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::StringReply >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::BoolReply* Arena::CreateMaybeMessage< ::milvus::grpc::BoolReply >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::BoolReply >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::CollectionRowCount* Arena::CreateMaybeMessage< ::milvus::grpc::CollectionRowCount >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::CollectionRowCount >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::Command* Arena::CreateMaybeMessage< ::milvus::grpc::Command >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::Command >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::IndexParam* Arena::CreateMaybeMessage< ::milvus::grpc::IndexParam >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::IndexParam >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::FlushParam* Arena::CreateMaybeMessage< ::milvus::grpc::FlushParam >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::FlushParam >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::CompactParam* Arena::CreateMaybeMessage< ::milvus::grpc::CompactParam >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::CompactParam >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::DeleteByIDParam* Arena::CreateMaybeMessage< ::milvus::grpc::DeleteByIDParam >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::DeleteByIDParam >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::CollectionInfo* Arena::CreateMaybeMessage< ::milvus::grpc::CollectionInfo >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::CollectionInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::GetEntityIDsParam* Arena::CreateMaybeMessage< ::milvus::grpc::GetEntityIDsParam >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::GetEntityIDsParam >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::EntityIdentity* Arena::CreateMaybeMessage< ::milvus::grpc::EntityIdentity >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::EntityIdentity >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::VectorFieldParam* Arena::CreateMaybeMessage< ::milvus::grpc::VectorFieldParam >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::VectorFieldParam >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::FieldType* Arena::CreateMaybeMessage< ::milvus::grpc::FieldType >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::FieldType >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::FieldParam* Arena::CreateMaybeMessage< ::milvus::grpc::FieldParam >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::FieldParam >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::VectorFieldRecord* Arena::CreateMaybeMessage< ::milvus::grpc::VectorFieldRecord >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::VectorFieldRecord >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::TermQuery* Arena::CreateMaybeMessage< ::milvus::grpc::TermQuery >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::TermQuery >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::CompareExpr* Arena::CreateMaybeMessage< ::milvus::grpc::CompareExpr >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::CompareExpr >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::RangeQuery* Arena::CreateMaybeMessage< ::milvus::grpc::RangeQuery >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::RangeQuery >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::VectorQuery* Arena::CreateMaybeMessage< ::milvus::grpc::VectorQuery >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::VectorQuery >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::BooleanQuery* Arena::CreateMaybeMessage< ::milvus::grpc::BooleanQuery >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::BooleanQuery >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::GeneralQuery* Arena::CreateMaybeMessage< ::milvus::grpc::GeneralQuery >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::GeneralQuery >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::SearchParamPB* Arena::CreateMaybeMessage< ::milvus::grpc::SearchParamPB >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::SearchParamPB >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::InsertOrDeleteMsg* Arena::CreateMaybeMessage< ::milvus::grpc::InsertOrDeleteMsg >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::InsertOrDeleteMsg >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::SearchMsg* Arena::CreateMaybeMessage< ::milvus::grpc::SearchMsg >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::SearchMsg >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::TimeSyncMsg* Arena::CreateMaybeMessage< ::milvus::grpc::TimeSyncMsg >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::TimeSyncMsg >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::SegmentRecord* Arena::CreateMaybeMessage< ::milvus::grpc::SegmentRecord >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::SegmentRecord >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::Key2SegMsg* Arena::CreateMaybeMessage< ::milvus::grpc::Key2SegMsg >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::Key2SegMsg >(arena); +} +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) +#include diff --git a/proxy/src/grpc/gen-milvus/suvlim.pb.h b/proxy/src/grpc/gen-milvus/suvlim.pb.h index 5d0c358ccc..edc1ae6534 100644 --- a/proxy/src/grpc/gen-milvus/suvlim.pb.h +++ b/proxy/src/grpc/gen-milvus/suvlim.pb.h @@ -1,136 +1,259 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: suvlim.proto -#ifndef PROTOBUF_suvlim_2eproto__INCLUDED -#define PROTOBUF_suvlim_2eproto__INCLUDED +#ifndef GOOGLE_PROTOBUF_INCLUDED_suvlim_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_suvlim_2eproto +#include #include -#include - -#if GOOGLE_PROTOBUF_VERSION < 3000000 +#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 incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#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 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 -#include +#include // IWYU pragma: export +#include // IWYU pragma: export #include #include +#include "status.pb.h" // @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE +// Internal implementation detail -- do not use these members. +struct TableStruct_suvlim_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[47] + 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_suvlim_2eproto; +namespace milvus { +namespace grpc { +class BoolReply; +class BoolReplyDefaultTypeInternal; +extern BoolReplyDefaultTypeInternal _BoolReply_default_instance_; +class BooleanQuery; +class BooleanQueryDefaultTypeInternal; +extern BooleanQueryDefaultTypeInternal _BooleanQuery_default_instance_; +class CollectionInfo; +class CollectionInfoDefaultTypeInternal; +extern CollectionInfoDefaultTypeInternal _CollectionInfo_default_instance_; +class CollectionName; +class CollectionNameDefaultTypeInternal; +extern CollectionNameDefaultTypeInternal _CollectionName_default_instance_; +class CollectionNameList; +class CollectionNameListDefaultTypeInternal; +extern CollectionNameListDefaultTypeInternal _CollectionNameList_default_instance_; +class CollectionRowCount; +class CollectionRowCountDefaultTypeInternal; +extern CollectionRowCountDefaultTypeInternal _CollectionRowCount_default_instance_; +class Command; +class CommandDefaultTypeInternal; +extern CommandDefaultTypeInternal _Command_default_instance_; +class CompactParam; +class CompactParamDefaultTypeInternal; +extern CompactParamDefaultTypeInternal _CompactParam_default_instance_; +class CompareExpr; +class CompareExprDefaultTypeInternal; +extern CompareExprDefaultTypeInternal _CompareExpr_default_instance_; +class DeleteByIDParam; +class DeleteByIDParamDefaultTypeInternal; +extern DeleteByIDParamDefaultTypeInternal _DeleteByIDParam_default_instance_; +class Entities; +class EntitiesDefaultTypeInternal; +extern EntitiesDefaultTypeInternal _Entities_default_instance_; +class EntityIdentity; +class EntityIdentityDefaultTypeInternal; +extern EntityIdentityDefaultTypeInternal _EntityIdentity_default_instance_; +class EntityIds; +class EntityIdsDefaultTypeInternal; +extern EntityIdsDefaultTypeInternal _EntityIds_default_instance_; +class FieldMeta; +class FieldMetaDefaultTypeInternal; +extern FieldMetaDefaultTypeInternal _FieldMeta_default_instance_; +class FieldName; +class FieldNameDefaultTypeInternal; +extern FieldNameDefaultTypeInternal _FieldName_default_instance_; +class FieldParam; +class FieldParamDefaultTypeInternal; +extern FieldParamDefaultTypeInternal _FieldParam_default_instance_; +class FieldType; +class FieldTypeDefaultTypeInternal; +extern FieldTypeDefaultTypeInternal _FieldType_default_instance_; +class FlushParam; +class FlushParamDefaultTypeInternal; +extern FlushParamDefaultTypeInternal _FlushParam_default_instance_; +class GeneralQuery; +class GeneralQueryDefaultTypeInternal; +extern GeneralQueryDefaultTypeInternal _GeneralQuery_default_instance_; +class GetEntityIDsParam; +class GetEntityIDsParamDefaultTypeInternal; +extern GetEntityIDsParamDefaultTypeInternal _GetEntityIDsParam_default_instance_; +class IndexParam; +class IndexParamDefaultTypeInternal; +extern IndexParamDefaultTypeInternal _IndexParam_default_instance_; +class InsertOrDeleteMsg; +class InsertOrDeleteMsgDefaultTypeInternal; +extern InsertOrDeleteMsgDefaultTypeInternal _InsertOrDeleteMsg_default_instance_; +class InsertParam; +class InsertParamDefaultTypeInternal; +extern InsertParamDefaultTypeInternal _InsertParam_default_instance_; +class Key2SegMsg; +class Key2SegMsgDefaultTypeInternal; +extern Key2SegMsgDefaultTypeInternal _Key2SegMsg_default_instance_; +class KeyValuePair; +class KeyValuePairDefaultTypeInternal; +extern KeyValuePairDefaultTypeInternal _KeyValuePair_default_instance_; +class Mapping; +class MappingDefaultTypeInternal; +extern MappingDefaultTypeInternal _Mapping_default_instance_; +class MappingList; +class MappingListDefaultTypeInternal; +extern MappingListDefaultTypeInternal _MappingList_default_instance_; +class PartitionList; +class PartitionListDefaultTypeInternal; +extern PartitionListDefaultTypeInternal _PartitionList_default_instance_; +class PartitionParam; +class PartitionParamDefaultTypeInternal; +extern PartitionParamDefaultTypeInternal _PartitionParam_default_instance_; +class QueryResult; +class QueryResultDefaultTypeInternal; +extern QueryResultDefaultTypeInternal _QueryResult_default_instance_; +class RangeQuery; +class RangeQueryDefaultTypeInternal; +extern RangeQueryDefaultTypeInternal _RangeQuery_default_instance_; +class RowData; +class RowDataDefaultTypeInternal; +extern RowDataDefaultTypeInternal _RowData_default_instance_; +class Schema; +class SchemaDefaultTypeInternal; +extern SchemaDefaultTypeInternal _Schema_default_instance_; +class SearchInSegmentParam; +class SearchInSegmentParamDefaultTypeInternal; +extern SearchInSegmentParamDefaultTypeInternal _SearchInSegmentParam_default_instance_; +class SearchMsg; +class SearchMsgDefaultTypeInternal; +extern SearchMsgDefaultTypeInternal _SearchMsg_default_instance_; +class SearchParam; +class SearchParamDefaultTypeInternal; +extern SearchParamDefaultTypeInternal _SearchParam_default_instance_; +class SearchParamPB; +class SearchParamPBDefaultTypeInternal; +extern SearchParamPBDefaultTypeInternal _SearchParamPB_default_instance_; +class SegmentRecord; +class SegmentRecordDefaultTypeInternal; +extern SegmentRecordDefaultTypeInternal _SegmentRecord_default_instance_; +class StringReply; +class StringReplyDefaultTypeInternal; +extern StringReplyDefaultTypeInternal _StringReply_default_instance_; +class TermQuery; +class TermQueryDefaultTypeInternal; +extern TermQueryDefaultTypeInternal _TermQuery_default_instance_; +class TimeSyncMsg; +class TimeSyncMsgDefaultTypeInternal; +extern TimeSyncMsgDefaultTypeInternal _TimeSyncMsg_default_instance_; +class VectorFieldParam; +class VectorFieldParamDefaultTypeInternal; +extern VectorFieldParamDefaultTypeInternal _VectorFieldParam_default_instance_; +class VectorFieldRecord; +class VectorFieldRecordDefaultTypeInternal; +extern VectorFieldRecordDefaultTypeInternal _VectorFieldRecord_default_instance_; +class VectorParam; +class VectorParamDefaultTypeInternal; +extern VectorParamDefaultTypeInternal _VectorParam_default_instance_; +class VectorQuery; +class VectorQueryDefaultTypeInternal; +extern VectorQueryDefaultTypeInternal _VectorQuery_default_instance_; +class VectorRecord; +class VectorRecordDefaultTypeInternal; +extern VectorRecordDefaultTypeInternal _VectorRecord_default_instance_; +class VectorRowRecord; +class VectorRowRecordDefaultTypeInternal; +extern VectorRowRecordDefaultTypeInternal _VectorRowRecord_default_instance_; +} // namespace grpc +} // namespace milvus +PROTOBUF_NAMESPACE_OPEN +template<> ::milvus::grpc::BoolReply* Arena::CreateMaybeMessage<::milvus::grpc::BoolReply>(Arena*); +template<> ::milvus::grpc::BooleanQuery* Arena::CreateMaybeMessage<::milvus::grpc::BooleanQuery>(Arena*); +template<> ::milvus::grpc::CollectionInfo* Arena::CreateMaybeMessage<::milvus::grpc::CollectionInfo>(Arena*); +template<> ::milvus::grpc::CollectionName* Arena::CreateMaybeMessage<::milvus::grpc::CollectionName>(Arena*); +template<> ::milvus::grpc::CollectionNameList* Arena::CreateMaybeMessage<::milvus::grpc::CollectionNameList>(Arena*); +template<> ::milvus::grpc::CollectionRowCount* Arena::CreateMaybeMessage<::milvus::grpc::CollectionRowCount>(Arena*); +template<> ::milvus::grpc::Command* Arena::CreateMaybeMessage<::milvus::grpc::Command>(Arena*); +template<> ::milvus::grpc::CompactParam* Arena::CreateMaybeMessage<::milvus::grpc::CompactParam>(Arena*); +template<> ::milvus::grpc::CompareExpr* Arena::CreateMaybeMessage<::milvus::grpc::CompareExpr>(Arena*); +template<> ::milvus::grpc::DeleteByIDParam* Arena::CreateMaybeMessage<::milvus::grpc::DeleteByIDParam>(Arena*); +template<> ::milvus::grpc::Entities* Arena::CreateMaybeMessage<::milvus::grpc::Entities>(Arena*); +template<> ::milvus::grpc::EntityIdentity* Arena::CreateMaybeMessage<::milvus::grpc::EntityIdentity>(Arena*); +template<> ::milvus::grpc::EntityIds* Arena::CreateMaybeMessage<::milvus::grpc::EntityIds>(Arena*); +template<> ::milvus::grpc::FieldMeta* Arena::CreateMaybeMessage<::milvus::grpc::FieldMeta>(Arena*); +template<> ::milvus::grpc::FieldName* Arena::CreateMaybeMessage<::milvus::grpc::FieldName>(Arena*); +template<> ::milvus::grpc::FieldParam* Arena::CreateMaybeMessage<::milvus::grpc::FieldParam>(Arena*); +template<> ::milvus::grpc::FieldType* Arena::CreateMaybeMessage<::milvus::grpc::FieldType>(Arena*); +template<> ::milvus::grpc::FlushParam* Arena::CreateMaybeMessage<::milvus::grpc::FlushParam>(Arena*); +template<> ::milvus::grpc::GeneralQuery* Arena::CreateMaybeMessage<::milvus::grpc::GeneralQuery>(Arena*); +template<> ::milvus::grpc::GetEntityIDsParam* Arena::CreateMaybeMessage<::milvus::grpc::GetEntityIDsParam>(Arena*); +template<> ::milvus::grpc::IndexParam* Arena::CreateMaybeMessage<::milvus::grpc::IndexParam>(Arena*); +template<> ::milvus::grpc::InsertOrDeleteMsg* Arena::CreateMaybeMessage<::milvus::grpc::InsertOrDeleteMsg>(Arena*); +template<> ::milvus::grpc::InsertParam* Arena::CreateMaybeMessage<::milvus::grpc::InsertParam>(Arena*); +template<> ::milvus::grpc::Key2SegMsg* Arena::CreateMaybeMessage<::milvus::grpc::Key2SegMsg>(Arena*); +template<> ::milvus::grpc::KeyValuePair* Arena::CreateMaybeMessage<::milvus::grpc::KeyValuePair>(Arena*); +template<> ::milvus::grpc::Mapping* Arena::CreateMaybeMessage<::milvus::grpc::Mapping>(Arena*); +template<> ::milvus::grpc::MappingList* Arena::CreateMaybeMessage<::milvus::grpc::MappingList>(Arena*); +template<> ::milvus::grpc::PartitionList* Arena::CreateMaybeMessage<::milvus::grpc::PartitionList>(Arena*); +template<> ::milvus::grpc::PartitionParam* Arena::CreateMaybeMessage<::milvus::grpc::PartitionParam>(Arena*); +template<> ::milvus::grpc::QueryResult* Arena::CreateMaybeMessage<::milvus::grpc::QueryResult>(Arena*); +template<> ::milvus::grpc::RangeQuery* Arena::CreateMaybeMessage<::milvus::grpc::RangeQuery>(Arena*); +template<> ::milvus::grpc::RowData* Arena::CreateMaybeMessage<::milvus::grpc::RowData>(Arena*); +template<> ::milvus::grpc::Schema* Arena::CreateMaybeMessage<::milvus::grpc::Schema>(Arena*); +template<> ::milvus::grpc::SearchInSegmentParam* Arena::CreateMaybeMessage<::milvus::grpc::SearchInSegmentParam>(Arena*); +template<> ::milvus::grpc::SearchMsg* Arena::CreateMaybeMessage<::milvus::grpc::SearchMsg>(Arena*); +template<> ::milvus::grpc::SearchParam* Arena::CreateMaybeMessage<::milvus::grpc::SearchParam>(Arena*); +template<> ::milvus::grpc::SearchParamPB* Arena::CreateMaybeMessage<::milvus::grpc::SearchParamPB>(Arena*); +template<> ::milvus::grpc::SegmentRecord* Arena::CreateMaybeMessage<::milvus::grpc::SegmentRecord>(Arena*); +template<> ::milvus::grpc::StringReply* Arena::CreateMaybeMessage<::milvus::grpc::StringReply>(Arena*); +template<> ::milvus::grpc::TermQuery* Arena::CreateMaybeMessage<::milvus::grpc::TermQuery>(Arena*); +template<> ::milvus::grpc::TimeSyncMsg* Arena::CreateMaybeMessage<::milvus::grpc::TimeSyncMsg>(Arena*); +template<> ::milvus::grpc::VectorFieldParam* Arena::CreateMaybeMessage<::milvus::grpc::VectorFieldParam>(Arena*); +template<> ::milvus::grpc::VectorFieldRecord* Arena::CreateMaybeMessage<::milvus::grpc::VectorFieldRecord>(Arena*); +template<> ::milvus::grpc::VectorParam* Arena::CreateMaybeMessage<::milvus::grpc::VectorParam>(Arena*); +template<> ::milvus::grpc::VectorQuery* Arena::CreateMaybeMessage<::milvus::grpc::VectorQuery>(Arena*); +template<> ::milvus::grpc::VectorRecord* Arena::CreateMaybeMessage<::milvus::grpc::VectorRecord>(Arena*); +template<> ::milvus::grpc::VectorRowRecord* Arena::CreateMaybeMessage<::milvus::grpc::VectorRowRecord>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace milvus { namespace grpc { -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_suvlim_2eproto(); -void protobuf_AssignDesc_suvlim_2eproto(); -void protobuf_ShutdownFile_suvlim_2eproto(); - -class BoolReply; -class BooleanQuery; -class CollectionInfo; -class CollectionName; -class CollectionNameList; -class CollectionRowCount; -class Command; -class CompactParam; -class CompareExpr; -class DeleteByIDParam; -class Entities; -class EntityIdentity; -class EntityIds; -class FieldMeta; -class FieldName; -class FieldParam; -class FieldType; -class FlushParam; -class GeneralQuery; -class GetEntityIDsParam; -class IndexParam; -class InsertOrDeleteMsg; -class InsertParam; -class Key2SegMsg; -class KeyValuePair; -class Mapping; -class MappingList; -class PartitionList; -class PartitionParam; -class QueryResult; -class RangeQuery; -class RowData; -class Schema; -class SearchInSegmentParam; -class SearchMsg; -class SearchParam; -class SearchParamPB; -class SegmentRecord; -class Status; -class StringReply; -class TermQuery; -class TimeSyncMsg; -class VectorFieldParam; -class VectorFieldRecord; -class VectorParam; -class VectorQuery; -class VectorRecord; -class VectorRowRecord; - -enum ErrorCode { - 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_ = ::google::protobuf::kint32min, - ErrorCode_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool ErrorCode_IsValid(int value); -const ErrorCode ErrorCode_MIN = SUCCESS; -const ErrorCode ErrorCode_MAX = OUT_OF_MEMORY; -const int ErrorCode_ARRAYSIZE = ErrorCode_MAX + 1; - -const ::google::protobuf::EnumDescriptor* ErrorCode_descriptor(); -inline const ::std::string& ErrorCode_Name(ErrorCode value) { - return ::google::protobuf::internal::NameOfEnum( - ErrorCode_descriptor(), value); -} -inline bool ErrorCode_Parse( - const ::std::string& name, ErrorCode* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ErrorCode_descriptor(), name, value); -} -enum DataType { +enum DataType : int { NONE = 0, BOOL = 1, INT8 = 2, @@ -142,3535 +265,5065 @@ enum DataType { STRING = 20, VECTOR_BINARY = 100, VECTOR_FLOAT = 101, - DataType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - DataType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max + DataType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), + DataType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() }; bool DataType_IsValid(int value); -const DataType DataType_MIN = NONE; -const DataType DataType_MAX = VECTOR_FLOAT; -const int DataType_ARRAYSIZE = DataType_MAX + 1; +constexpr DataType DataType_MIN = NONE; +constexpr DataType DataType_MAX = VECTOR_FLOAT; +constexpr int DataType_ARRAYSIZE = DataType_MAX + 1; -const ::google::protobuf::EnumDescriptor* DataType_descriptor(); -inline const ::std::string& DataType_Name(DataType value) { - return ::google::protobuf::internal::NameOfEnum( - DataType_descriptor(), value); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DataType_descriptor(); +template +inline const std::string& DataType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function DataType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + DataType_descriptor(), enum_t_value); } inline bool DataType_Parse( - const ::std::string& name, DataType* value) { - return ::google::protobuf::internal::ParseNamedEnum( + const std::string& name, DataType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( DataType_descriptor(), name, value); } -enum CompareOperator { +enum CompareOperator : int { LT = 0, LTE = 1, EQ = 2, GT = 3, GTE = 4, NE = 5, - CompareOperator_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - CompareOperator_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max + CompareOperator_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), + CompareOperator_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() }; bool CompareOperator_IsValid(int value); -const CompareOperator CompareOperator_MIN = LT; -const CompareOperator CompareOperator_MAX = NE; -const int CompareOperator_ARRAYSIZE = CompareOperator_MAX + 1; +constexpr CompareOperator CompareOperator_MIN = LT; +constexpr CompareOperator CompareOperator_MAX = NE; +constexpr int CompareOperator_ARRAYSIZE = CompareOperator_MAX + 1; -const ::google::protobuf::EnumDescriptor* CompareOperator_descriptor(); -inline const ::std::string& CompareOperator_Name(CompareOperator value) { - return ::google::protobuf::internal::NameOfEnum( - CompareOperator_descriptor(), value); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CompareOperator_descriptor(); +template +inline const std::string& CompareOperator_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function CompareOperator_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + CompareOperator_descriptor(), enum_t_value); } inline bool CompareOperator_Parse( - const ::std::string& name, CompareOperator* value) { - return ::google::protobuf::internal::ParseNamedEnum( + const std::string& name, CompareOperator* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( CompareOperator_descriptor(), name, value); } -enum Occur { +enum Occur : int { INVALID = 0, MUST = 1, SHOULD = 2, MUST_NOT = 3, - Occur_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - Occur_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max + Occur_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), + Occur_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() }; bool Occur_IsValid(int value); -const Occur Occur_MIN = INVALID; -const Occur Occur_MAX = MUST_NOT; -const int Occur_ARRAYSIZE = Occur_MAX + 1; +constexpr Occur Occur_MIN = INVALID; +constexpr Occur Occur_MAX = MUST_NOT; +constexpr int Occur_ARRAYSIZE = Occur_MAX + 1; -const ::google::protobuf::EnumDescriptor* Occur_descriptor(); -inline const ::std::string& Occur_Name(Occur value) { - return ::google::protobuf::internal::NameOfEnum( - Occur_descriptor(), value); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Occur_descriptor(); +template +inline const std::string& Occur_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function Occur_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + Occur_descriptor(), enum_t_value); } inline bool Occur_Parse( - const ::std::string& name, Occur* value) { - return ::google::protobuf::internal::ParseNamedEnum( + const std::string& name, Occur* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( Occur_descriptor(), name, value); } -enum OpType { +enum OpType : int { INSERT = 0, DELETE = 1, - OpType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - OpType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max + SEARCH = 2, + SEARCH_RESULT = 3, + OpType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), + OpType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() }; bool OpType_IsValid(int value); -const OpType OpType_MIN = INSERT; -const OpType OpType_MAX = DELETE; -const int OpType_ARRAYSIZE = OpType_MAX + 1; +constexpr OpType OpType_MIN = INSERT; +constexpr OpType OpType_MAX = SEARCH_RESULT; +constexpr int OpType_ARRAYSIZE = OpType_MAX + 1; -const ::google::protobuf::EnumDescriptor* OpType_descriptor(); -inline const ::std::string& OpType_Name(OpType value) { - return ::google::protobuf::internal::NameOfEnum( - OpType_descriptor(), value); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* OpType_descriptor(); +template +inline const std::string& OpType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function OpType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + OpType_descriptor(), enum_t_value); } inline bool OpType_Parse( - const ::std::string& name, OpType* value) { - return ::google::protobuf::internal::ParseNamedEnum( + const std::string& name, OpType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( OpType_descriptor(), name, value); } -enum SyncType { - READ = 0, - WRITE = 1, - SyncType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - SyncType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool SyncType_IsValid(int value); -const SyncType SyncType_MIN = READ; -const SyncType SyncType_MAX = WRITE; -const int SyncType_ARRAYSIZE = SyncType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* SyncType_descriptor(); -inline const ::std::string& SyncType_Name(SyncType value) { - return ::google::protobuf::internal::NameOfEnum( - SyncType_descriptor(), value); -} -inline bool SyncType_Parse( - const ::std::string& name, SyncType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - SyncType_descriptor(), name, value); -} // =================================================================== -class Status : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Status) */ { - public: - Status(); - virtual ~Status(); - - Status(const Status& from); - - inline Status& operator=(const Status& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const Status& default_instance(); - - void Swap(Status* other); - - // implements Message ---------------------------------------------- - - inline Status* New() const { return New(NULL); } - - Status* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Status& from); - void MergeFrom(const Status& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Status* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .milvus.grpc.ErrorCode error_code = 1; - void clear_error_code(); - static const int kErrorCodeFieldNumber = 1; - ::milvus::grpc::ErrorCode error_code() const; - void set_error_code(::milvus::grpc::ErrorCode value); - - // optional string reason = 2; - void clear_reason(); - static const int kReasonFieldNumber = 2; - const ::std::string& reason() const; - void set_reason(const ::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); - - // @@protoc_insertion_point(class_scope:milvus.grpc.Status) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr reason_; - int error_code_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static Status* default_instance_; -}; -// ------------------------------------------------------------------- - -class KeyValuePair : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.KeyValuePair) */ { +class KeyValuePair : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.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 ::google::protobuf::Descriptor* descriptor(); + 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(); - void Swap(KeyValuePair* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const KeyValuePair* internal_default_instance() { + return reinterpret_cast( + &_KeyValuePair_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + 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 { return New(NULL); } + inline KeyValuePair* New() const final { + return CreateMaybeMessage(nullptr); + } - KeyValuePair* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + 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); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + 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.grpc.KeyValuePair"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string key = 1; + enum : int { + kKeyFieldNumber = 1, + kValueFieldNumber = 2, + }; + // string key = 1; void clear_key(); - static const int kKeyFieldNumber = 1; - const ::std::string& key() const; - void set_key(const ::std::string& value); + 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); + std::string* mutable_key(); + std::string* release_key(); + void set_allocated_key(std::string* key); - // optional string value = 2; + // string value = 2; void clear_value(); - static const int kValueFieldNumber = 2; - const ::std::string& value() const; - void set_value(const ::std::string& 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); + std::string* mutable_value(); + std::string* release_value(); + void set_allocated_value(std::string* value); // @@protoc_insertion_point(class_scope:milvus.grpc.KeyValuePair) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr key_; - ::google::protobuf::internal::ArenaStringPtr value_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static KeyValuePair* default_instance_; + ::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_suvlim_2eproto; }; // ------------------------------------------------------------------- -class CollectionName : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.CollectionName) */ { +class CollectionName : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.CollectionName) */ { public: CollectionName(); virtual ~CollectionName(); CollectionName(const CollectionName& from); + CollectionName(CollectionName&& from) noexcept + : CollectionName() { + *this = ::std::move(from); + } inline CollectionName& operator=(const CollectionName& from) { CopyFrom(from); return *this; } + inline CollectionName& operator=(CollectionName&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 CollectionName& default_instance(); - void Swap(CollectionName* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CollectionName* internal_default_instance() { + return reinterpret_cast( + &_CollectionName_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(CollectionName& a, CollectionName& b) { + a.Swap(&b); + } + inline void Swap(CollectionName* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline CollectionName* New() const { return New(NULL); } + inline CollectionName* New() const final { + return CreateMaybeMessage(nullptr); + } - CollectionName* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + CollectionName* 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 CollectionName& from); void MergeFrom(const CollectionName& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(CollectionName* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.CollectionName"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string collection_name = 1; + enum : int { + kCollectionNameFieldNumber = 1, + }; + // string collection_name = 1; void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); void set_collection_name(const char* value); void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); // @@protoc_insertion_point(class_scope:milvus.grpc.CollectionName) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static CollectionName* default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class CollectionNameList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.CollectionNameList) */ { +class CollectionNameList : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.CollectionNameList) */ { public: CollectionNameList(); virtual ~CollectionNameList(); CollectionNameList(const CollectionNameList& from); + CollectionNameList(CollectionNameList&& from) noexcept + : CollectionNameList() { + *this = ::std::move(from); + } inline CollectionNameList& operator=(const CollectionNameList& from) { CopyFrom(from); return *this; } + inline CollectionNameList& operator=(CollectionNameList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 CollectionNameList& default_instance(); - void Swap(CollectionNameList* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CollectionNameList* internal_default_instance() { + return reinterpret_cast( + &_CollectionNameList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(CollectionNameList& a, CollectionNameList& b) { + a.Swap(&b); + } + inline void Swap(CollectionNameList* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline CollectionNameList* New() const { return New(NULL); } + inline CollectionNameList* New() const final { + return CreateMaybeMessage(nullptr); + } - CollectionNameList* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + CollectionNameList* 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 CollectionNameList& from); void MergeFrom(const CollectionNameList& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(CollectionNameList* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.CollectionNameList"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional .milvus.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - static const int kStatusFieldNumber = 1; - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* mutable_status(); - ::milvus::grpc::Status* release_status(); - void set_allocated_status(::milvus::grpc::Status* status); - + enum : int { + kCollectionNamesFieldNumber = 2, + kStatusFieldNumber = 1, + }; // repeated string collection_names = 2; int collection_names_size() const; void clear_collection_names(); - static const int kCollectionNamesFieldNumber = 2; - const ::std::string& collection_names(int index) const; - ::std::string* mutable_collection_names(int index); - void set_collection_names(int index, const ::std::string& value); + const std::string& collection_names(int index) const; + std::string* mutable_collection_names(int index); + void set_collection_names(int index, const std::string& value); + void set_collection_names(int index, std::string&& value); void set_collection_names(int index, const char* value); void set_collection_names(int index, const char* value, size_t size); - ::std::string* add_collection_names(); - void add_collection_names(const ::std::string& value); + std::string* add_collection_names(); + void add_collection_names(const std::string& value); + void add_collection_names(std::string&& value); void add_collection_names(const char* value); void add_collection_names(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& collection_names() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_collection_names(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& collection_names() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_collection_names(); + + // .milvus.grpc.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::grpc::Status& status() const; + ::milvus::grpc::Status* release_status(); + ::milvus::grpc::Status* mutable_status(); + void set_allocated_status(::milvus::grpc::Status* status); // @@protoc_insertion_point(class_scope:milvus.grpc.CollectionNameList) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField collection_names_; ::milvus::grpc::Status* status_; - ::google::protobuf::RepeatedPtrField< ::std::string> collection_names_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static CollectionNameList* default_instance_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class FieldName : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.FieldName) */ { +class FieldName : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.FieldName) */ { public: FieldName(); virtual ~FieldName(); FieldName(const FieldName& from); + FieldName(FieldName&& from) noexcept + : FieldName() { + *this = ::std::move(from); + } inline FieldName& operator=(const FieldName& from) { CopyFrom(from); return *this; } + inline FieldName& operator=(FieldName&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 FieldName& default_instance(); - void Swap(FieldName* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FieldName* internal_default_instance() { + return reinterpret_cast( + &_FieldName_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(FieldName& a, FieldName& b) { + a.Swap(&b); + } + inline void Swap(FieldName* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline FieldName* New() const { return New(NULL); } + inline FieldName* New() const final { + return CreateMaybeMessage(nullptr); + } - FieldName* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + FieldName* 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 FieldName& from); void MergeFrom(const FieldName& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(FieldName* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.FieldName"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string collection_name = 1; + enum : int { + kCollectionNameFieldNumber = 1, + kFieldNameFieldNumber = 2, + }; + // string collection_name = 1; void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); void set_collection_name(const char* value); void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); - // optional string field_name = 2; + // string field_name = 2; void clear_field_name(); - static const int kFieldNameFieldNumber = 2; - const ::std::string& field_name() const; - void set_field_name(const ::std::string& value); + const std::string& field_name() const; + void set_field_name(const std::string& value); + void set_field_name(std::string&& value); void set_field_name(const char* value); void set_field_name(const char* value, size_t size); - ::std::string* mutable_field_name(); - ::std::string* release_field_name(); - void set_allocated_field_name(::std::string* field_name); + std::string* mutable_field_name(); + std::string* release_field_name(); + void set_allocated_field_name(std::string* field_name); // @@protoc_insertion_point(class_scope:milvus.grpc.FieldName) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - ::google::protobuf::internal::ArenaStringPtr field_name_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static FieldName* default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class Mapping : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Mapping) */ { +class Mapping : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Mapping) */ { public: Mapping(); virtual ~Mapping(); Mapping(const Mapping& from); + Mapping(Mapping&& from) noexcept + : Mapping() { + *this = ::std::move(from); + } inline Mapping& operator=(const Mapping& from) { CopyFrom(from); return *this; } + inline Mapping& operator=(Mapping&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 Mapping& default_instance(); - void Swap(Mapping* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Mapping* internal_default_instance() { + return reinterpret_cast( + &_Mapping_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(Mapping& a, Mapping& b) { + a.Swap(&b); + } + inline void Swap(Mapping* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline Mapping* New() const { return New(NULL); } + inline Mapping* New() const final { + return CreateMaybeMessage(nullptr); + } - Mapping* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + Mapping* 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 Mapping& from); void MergeFrom(const Mapping& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(Mapping* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.Mapping"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional .milvus.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - static const int kStatusFieldNumber = 1; - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* mutable_status(); - ::milvus::grpc::Status* release_status(); - void set_allocated_status(::milvus::grpc::Status* status); - - // optional string collection_name = 2; - void clear_collection_name(); - static const int kCollectionNameFieldNumber = 2; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); - + enum : int { + kFieldsFieldNumber = 3, + kExtraParamsFieldNumber = 4, + kCollectionNameFieldNumber = 2, + kStatusFieldNumber = 1, + }; // repeated .milvus.grpc.FieldParam fields = 3; int fields_size() const; void clear_fields(); - static const int kFieldsFieldNumber = 3; - const ::milvus::grpc::FieldParam& fields(int index) const; ::milvus::grpc::FieldParam* mutable_fields(int index); - ::milvus::grpc::FieldParam* add_fields(); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::FieldParam >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldParam >* mutable_fields(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::FieldParam >& + const ::milvus::grpc::FieldParam& fields(int index) const; + ::milvus::grpc::FieldParam* add_fields(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldParam >& fields() const; // repeated .milvus.grpc.KeyValuePair extra_params = 4; int extra_params_size() const; void clear_extra_params(); - static const int kExtraParamsFieldNumber = 4; - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::milvus::grpc::KeyValuePair* add_extra_params(); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* mutable_extra_params(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& + const ::milvus::grpc::KeyValuePair& extra_params(int index) const; + ::milvus::grpc::KeyValuePair* add_extra_params(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& extra_params() const; + // string collection_name = 2; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // .milvus.grpc.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::grpc::Status& status() const; + ::milvus::grpc::Status* release_status(); + ::milvus::grpc::Status* mutable_status(); + void set_allocated_status(::milvus::grpc::Status* status); + // @@protoc_insertion_point(class_scope:milvus.grpc.Mapping) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldParam > fields_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; ::milvus::grpc::Status* status_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::FieldParam > fields_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static Mapping* default_instance_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class MappingList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.MappingList) */ { +class MappingList : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.MappingList) */ { public: MappingList(); virtual ~MappingList(); MappingList(const MappingList& from); + MappingList(MappingList&& from) noexcept + : MappingList() { + *this = ::std::move(from); + } inline MappingList& operator=(const MappingList& from) { CopyFrom(from); return *this; } + inline MappingList& operator=(MappingList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 MappingList& default_instance(); - void Swap(MappingList* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MappingList* internal_default_instance() { + return reinterpret_cast( + &_MappingList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(MappingList& a, MappingList& b) { + a.Swap(&b); + } + inline void Swap(MappingList* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline MappingList* New() const { return New(NULL); } + inline MappingList* New() const final { + return CreateMaybeMessage(nullptr); + } - MappingList* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + MappingList* 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 MappingList& from); void MergeFrom(const MappingList& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(MappingList* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.MappingList"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional .milvus.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - static const int kStatusFieldNumber = 1; - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* mutable_status(); - ::milvus::grpc::Status* release_status(); - void set_allocated_status(::milvus::grpc::Status* status); - + enum : int { + kMappingListFieldNumber = 2, + kStatusFieldNumber = 1, + }; // repeated .milvus.grpc.Mapping mapping_list = 2; int mapping_list_size() const; void clear_mapping_list(); - static const int kMappingListFieldNumber = 2; - const ::milvus::grpc::Mapping& mapping_list(int index) const; ::milvus::grpc::Mapping* mutable_mapping_list(int index); - ::milvus::grpc::Mapping* add_mapping_list(); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::Mapping >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::Mapping >* mutable_mapping_list(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::Mapping >& + const ::milvus::grpc::Mapping& mapping_list(int index) const; + ::milvus::grpc::Mapping* add_mapping_list(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::Mapping >& mapping_list() const; + // .milvus.grpc.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::grpc::Status& status() const; + ::milvus::grpc::Status* release_status(); + ::milvus::grpc::Status* mutable_status(); + void set_allocated_status(::milvus::grpc::Status* status); + // @@protoc_insertion_point(class_scope:milvus.grpc.MappingList) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::Mapping > mapping_list_; ::milvus::grpc::Status* status_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::Mapping > mapping_list_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static MappingList* default_instance_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class PartitionParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.PartitionParam) */ { +class PartitionParam : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.PartitionParam) */ { public: PartitionParam(); virtual ~PartitionParam(); PartitionParam(const PartitionParam& from); + PartitionParam(PartitionParam&& from) noexcept + : PartitionParam() { + *this = ::std::move(from); + } inline PartitionParam& operator=(const PartitionParam& from) { CopyFrom(from); return *this; } + inline PartitionParam& operator=(PartitionParam&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 PartitionParam& default_instance(); - void Swap(PartitionParam* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PartitionParam* internal_default_instance() { + return reinterpret_cast( + &_PartitionParam_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(PartitionParam& a, PartitionParam& b) { + a.Swap(&b); + } + inline void Swap(PartitionParam* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline PartitionParam* New() const { return New(NULL); } + inline PartitionParam* New() const final { + return CreateMaybeMessage(nullptr); + } - PartitionParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + PartitionParam* 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 PartitionParam& from); void MergeFrom(const PartitionParam& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(PartitionParam* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.PartitionParam"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string collection_name = 1; + enum : int { + kCollectionNameFieldNumber = 1, + kTagFieldNumber = 2, + }; + // string collection_name = 1; void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); void set_collection_name(const char* value); void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); - // optional string tag = 2; + // string tag = 2; void clear_tag(); - static const int kTagFieldNumber = 2; - const ::std::string& tag() const; - void set_tag(const ::std::string& value); + const std::string& tag() const; + void set_tag(const std::string& value); + void set_tag(std::string&& value); void set_tag(const char* value); void set_tag(const char* value, size_t size); - ::std::string* mutable_tag(); - ::std::string* release_tag(); - void set_allocated_tag(::std::string* tag); + std::string* mutable_tag(); + std::string* release_tag(); + void set_allocated_tag(std::string* tag); // @@protoc_insertion_point(class_scope:milvus.grpc.PartitionParam) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - ::google::protobuf::internal::ArenaStringPtr tag_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static PartitionParam* default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tag_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class PartitionList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.PartitionList) */ { +class PartitionList : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.PartitionList) */ { public: PartitionList(); virtual ~PartitionList(); PartitionList(const PartitionList& from); + PartitionList(PartitionList&& from) noexcept + : PartitionList() { + *this = ::std::move(from); + } inline PartitionList& operator=(const PartitionList& from) { CopyFrom(from); return *this; } + inline PartitionList& operator=(PartitionList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 PartitionList& default_instance(); - void Swap(PartitionList* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PartitionList* internal_default_instance() { + return reinterpret_cast( + &_PartitionList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(PartitionList& a, PartitionList& b) { + a.Swap(&b); + } + inline void Swap(PartitionList* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline PartitionList* New() const { return New(NULL); } + inline PartitionList* New() const final { + return CreateMaybeMessage(nullptr); + } - PartitionList* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + PartitionList* 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 PartitionList& from); void MergeFrom(const PartitionList& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(PartitionList* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.PartitionList"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional .milvus.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - static const int kStatusFieldNumber = 1; - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* mutable_status(); - ::milvus::grpc::Status* release_status(); - void set_allocated_status(::milvus::grpc::Status* status); - + enum : int { + kPartitionTagArrayFieldNumber = 2, + kStatusFieldNumber = 1, + }; // repeated string partition_tag_array = 2; int partition_tag_array_size() const; void clear_partition_tag_array(); - static const int kPartitionTagArrayFieldNumber = 2; - const ::std::string& partition_tag_array(int index) const; - ::std::string* mutable_partition_tag_array(int index); - void set_partition_tag_array(int index, const ::std::string& value); + const std::string& partition_tag_array(int index) const; + std::string* mutable_partition_tag_array(int index); + void set_partition_tag_array(int index, const std::string& value); + void set_partition_tag_array(int index, std::string&& value); void set_partition_tag_array(int index, const char* value); void set_partition_tag_array(int index, const char* value, size_t size); - ::std::string* add_partition_tag_array(); - void add_partition_tag_array(const ::std::string& value); + std::string* add_partition_tag_array(); + void add_partition_tag_array(const std::string& value); + void add_partition_tag_array(std::string&& value); void add_partition_tag_array(const char* value); void add_partition_tag_array(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& partition_tag_array() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_partition_tag_array(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& partition_tag_array() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_partition_tag_array(); + + // .milvus.grpc.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::grpc::Status& status() const; + ::milvus::grpc::Status* release_status(); + ::milvus::grpc::Status* mutable_status(); + void set_allocated_status(::milvus::grpc::Status* status); // @@protoc_insertion_point(class_scope:milvus.grpc.PartitionList) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField partition_tag_array_; ::milvus::grpc::Status* status_; - ::google::protobuf::RepeatedPtrField< ::std::string> partition_tag_array_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static PartitionList* default_instance_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class VectorRowRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorRowRecord) */ { +class VectorRowRecord : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorRowRecord) */ { public: VectorRowRecord(); virtual ~VectorRowRecord(); VectorRowRecord(const VectorRowRecord& from); + VectorRowRecord(VectorRowRecord&& from) noexcept + : VectorRowRecord() { + *this = ::std::move(from); + } inline VectorRowRecord& operator=(const VectorRowRecord& from) { CopyFrom(from); return *this; } + inline VectorRowRecord& operator=(VectorRowRecord&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 VectorRowRecord& default_instance(); - void Swap(VectorRowRecord* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const VectorRowRecord* internal_default_instance() { + return reinterpret_cast( + &_VectorRowRecord_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(VectorRowRecord& a, VectorRowRecord& b) { + a.Swap(&b); + } + inline void Swap(VectorRowRecord* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline VectorRowRecord* New() const { return New(NULL); } + inline VectorRowRecord* New() const final { + return CreateMaybeMessage(nullptr); + } - VectorRowRecord* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + VectorRowRecord* 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 VectorRowRecord& from); void MergeFrom(const VectorRowRecord& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(VectorRowRecord* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.VectorRowRecord"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kFloatDataFieldNumber = 1, + kBinaryDataFieldNumber = 2, + }; // repeated float float_data = 1; int float_data_size() const; void clear_float_data(); - static const int kFloatDataFieldNumber = 1; float float_data(int index) const; void set_float_data(int index, float value); void add_float_data(float value); - const ::google::protobuf::RepeatedField< float >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& float_data() const; - ::google::protobuf::RepeatedField< float >* + ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* mutable_float_data(); - // optional bytes binary_data = 2; + // bytes binary_data = 2; void clear_binary_data(); - static const int kBinaryDataFieldNumber = 2; - const ::std::string& binary_data() const; - void set_binary_data(const ::std::string& value); + const std::string& binary_data() const; + void set_binary_data(const std::string& value); + void set_binary_data(std::string&& value); void set_binary_data(const char* value); void set_binary_data(const void* value, size_t size); - ::std::string* mutable_binary_data(); - ::std::string* release_binary_data(); - void set_allocated_binary_data(::std::string* binary_data); + std::string* mutable_binary_data(); + std::string* release_binary_data(); + void set_allocated_binary_data(std::string* binary_data); // @@protoc_insertion_point(class_scope:milvus.grpc.VectorRowRecord) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::RepeatedField< float > float_data_; - mutable int _float_data_cached_byte_size_; - ::google::protobuf::internal::ArenaStringPtr binary_data_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static VectorRowRecord* default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > float_data_; + mutable std::atomic _float_data_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr binary_data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class EntityIds : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.EntityIds) */ { +class EntityIds : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.EntityIds) */ { public: EntityIds(); virtual ~EntityIds(); EntityIds(const EntityIds& from); + EntityIds(EntityIds&& from) noexcept + : EntityIds() { + *this = ::std::move(from); + } inline EntityIds& operator=(const EntityIds& from) { CopyFrom(from); return *this; } + inline EntityIds& operator=(EntityIds&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 EntityIds& default_instance(); - void Swap(EntityIds* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EntityIds* internal_default_instance() { + return reinterpret_cast( + &_EntityIds_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(EntityIds& a, EntityIds& b) { + a.Swap(&b); + } + inline void Swap(EntityIds* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline EntityIds* New() const { return New(NULL); } + inline EntityIds* New() const final { + return CreateMaybeMessage(nullptr); + } - EntityIds* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + EntityIds* 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 EntityIds& from); void MergeFrom(const EntityIds& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(EntityIds* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.EntityIds"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional .milvus.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - static const int kStatusFieldNumber = 1; - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* mutable_status(); - ::milvus::grpc::Status* release_status(); - void set_allocated_status(::milvus::grpc::Status* status); - + enum : int { + kEntityIdArrayFieldNumber = 2, + kStatusFieldNumber = 1, + }; // repeated int64 entity_id_array = 2; int entity_id_array_size() const; void clear_entity_id_array(); - static const int kEntityIdArrayFieldNumber = 2; - ::google::protobuf::int64 entity_id_array(int index) const; - void set_entity_id_array(int index, ::google::protobuf::int64 value); - void add_entity_id_array(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& + ::PROTOBUF_NAMESPACE_ID::int64 entity_id_array(int index) const; + void set_entity_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); + void add_entity_id_array(::PROTOBUF_NAMESPACE_ID::int64 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& entity_id_array() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* mutable_entity_id_array(); + // .milvus.grpc.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::grpc::Status& status() const; + ::milvus::grpc::Status* release_status(); + ::milvus::grpc::Status* mutable_status(); + void set_allocated_status(::milvus::grpc::Status* status); + // @@protoc_insertion_point(class_scope:milvus.grpc.EntityIds) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > entity_id_array_; + mutable std::atomic _entity_id_array_cached_byte_size_; ::milvus::grpc::Status* status_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > entity_id_array_; - mutable int _entity_id_array_cached_byte_size_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static EntityIds* default_instance_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class VectorRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorRecord) */ { +class VectorRecord : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorRecord) */ { public: VectorRecord(); virtual ~VectorRecord(); VectorRecord(const VectorRecord& from); + VectorRecord(VectorRecord&& from) noexcept + : VectorRecord() { + *this = ::std::move(from); + } inline VectorRecord& operator=(const VectorRecord& from) { CopyFrom(from); return *this; } + inline VectorRecord& operator=(VectorRecord&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 VectorRecord& default_instance(); - void Swap(VectorRecord* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const VectorRecord* internal_default_instance() { + return reinterpret_cast( + &_VectorRecord_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(VectorRecord& a, VectorRecord& b) { + a.Swap(&b); + } + inline void Swap(VectorRecord* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline VectorRecord* New() const { return New(NULL); } + inline VectorRecord* New() const final { + return CreateMaybeMessage(nullptr); + } - VectorRecord* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + VectorRecord* 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 VectorRecord& from); void MergeFrom(const VectorRecord& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(VectorRecord* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.VectorRecord"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kRecordsFieldNumber = 1, + }; // repeated .milvus.grpc.VectorRowRecord records = 1; int records_size() const; void clear_records(); - static const int kRecordsFieldNumber = 1; - const ::milvus::grpc::VectorRowRecord& records(int index) const; ::milvus::grpc::VectorRowRecord* mutable_records(int index); - ::milvus::grpc::VectorRowRecord* add_records(); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* mutable_records(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& + const ::milvus::grpc::VectorRowRecord& records(int index) const; + ::milvus::grpc::VectorRowRecord* add_records(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& records() const; // @@protoc_insertion_point(class_scope:milvus.grpc.VectorRecord) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorRowRecord > records_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static VectorRecord* default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord > records_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class VectorParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorParam) */ { +class VectorParam : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorParam) */ { public: VectorParam(); virtual ~VectorParam(); VectorParam(const VectorParam& from); + VectorParam(VectorParam&& from) noexcept + : VectorParam() { + *this = ::std::move(from); + } inline VectorParam& operator=(const VectorParam& from) { CopyFrom(from); return *this; } + inline VectorParam& operator=(VectorParam&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 VectorParam& default_instance(); - void Swap(VectorParam* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const VectorParam* internal_default_instance() { + return reinterpret_cast( + &_VectorParam_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(VectorParam& a, VectorParam& b) { + a.Swap(&b); + } + inline void Swap(VectorParam* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline VectorParam* New() const { return New(NULL); } + inline VectorParam* New() const final { + return CreateMaybeMessage(nullptr); + } - VectorParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + VectorParam* 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 VectorParam& from); void MergeFrom(const VectorParam& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(VectorParam* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.VectorParam"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string json = 1; + enum : int { + kJsonFieldNumber = 1, + kRowRecordFieldNumber = 2, + }; + // string json = 1; void clear_json(); - static const int kJsonFieldNumber = 1; - const ::std::string& json() const; - void set_json(const ::std::string& value); + const std::string& json() const; + void set_json(const std::string& value); + void set_json(std::string&& value); void set_json(const char* value); void set_json(const char* value, size_t size); - ::std::string* mutable_json(); - ::std::string* release_json(); - void set_allocated_json(::std::string* json); + std::string* mutable_json(); + std::string* release_json(); + void set_allocated_json(std::string* json); - // optional .milvus.grpc.VectorRecord row_record = 2; + // .milvus.grpc.VectorRecord row_record = 2; bool has_row_record() const; void clear_row_record(); - static const int kRowRecordFieldNumber = 2; const ::milvus::grpc::VectorRecord& row_record() const; - ::milvus::grpc::VectorRecord* mutable_row_record(); ::milvus::grpc::VectorRecord* release_row_record(); + ::milvus::grpc::VectorRecord* mutable_row_record(); void set_allocated_row_record(::milvus::grpc::VectorRecord* row_record); // @@protoc_insertion_point(class_scope:milvus.grpc.VectorParam) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr json_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr json_; ::milvus::grpc::VectorRecord* row_record_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static VectorParam* default_instance_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class FieldMeta : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.FieldMeta) */ { +class FieldMeta : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.FieldMeta) */ { public: FieldMeta(); virtual ~FieldMeta(); FieldMeta(const FieldMeta& from); + FieldMeta(FieldMeta&& from) noexcept + : FieldMeta() { + *this = ::std::move(from); + } inline FieldMeta& operator=(const FieldMeta& from) { CopyFrom(from); return *this; } + inline FieldMeta& operator=(FieldMeta&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 FieldMeta& default_instance(); - void Swap(FieldMeta* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FieldMeta* internal_default_instance() { + return reinterpret_cast( + &_FieldMeta_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(FieldMeta& a, FieldMeta& b) { + a.Swap(&b); + } + inline void Swap(FieldMeta* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline FieldMeta* New() const { return New(NULL); } + inline FieldMeta* New() const final { + return CreateMaybeMessage(nullptr); + } - FieldMeta* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + FieldMeta* 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 FieldMeta& from); void MergeFrom(const FieldMeta& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(FieldMeta* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.FieldMeta"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string field_name = 1; + enum : int { + kFieldNameFieldNumber = 1, + kDimFieldNumber = 3, + kTypeFieldNumber = 2, + }; + // string field_name = 1; void clear_field_name(); - static const int kFieldNameFieldNumber = 1; - const ::std::string& field_name() const; - void set_field_name(const ::std::string& value); + const std::string& field_name() const; + void set_field_name(const std::string& value); + void set_field_name(std::string&& value); void set_field_name(const char* value); void set_field_name(const char* value, size_t size); - ::std::string* mutable_field_name(); - ::std::string* release_field_name(); - void set_allocated_field_name(::std::string* field_name); + std::string* mutable_field_name(); + std::string* release_field_name(); + void set_allocated_field_name(std::string* field_name); - // optional .milvus.grpc.DataType type = 2; + // int64 dim = 3; + void clear_dim(); + ::PROTOBUF_NAMESPACE_ID::int64 dim() const; + void set_dim(::PROTOBUF_NAMESPACE_ID::int64 value); + + // .milvus.grpc.DataType type = 2; void clear_type(); - static const int kTypeFieldNumber = 2; ::milvus::grpc::DataType type() const; void set_type(::milvus::grpc::DataType value); - // optional int64 dim = 3; - void clear_dim(); - static const int kDimFieldNumber = 3; - ::google::protobuf::int64 dim() const; - void set_dim(::google::protobuf::int64 value); - // @@protoc_insertion_point(class_scope:milvus.grpc.FieldMeta) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr field_name_; - ::google::protobuf::int64 dim_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; + ::PROTOBUF_NAMESPACE_ID::int64 dim_; int type_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static FieldMeta* default_instance_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class Schema : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Schema) */ { +class Schema : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Schema) */ { public: Schema(); virtual ~Schema(); Schema(const Schema& from); + Schema(Schema&& from) noexcept + : Schema() { + *this = ::std::move(from); + } inline Schema& operator=(const Schema& from) { CopyFrom(from); return *this; } + inline Schema& operator=(Schema&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 Schema& default_instance(); - void Swap(Schema* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Schema* internal_default_instance() { + return reinterpret_cast( + &_Schema_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(Schema& a, Schema& b) { + a.Swap(&b); + } + inline void Swap(Schema* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline Schema* New() const { return New(NULL); } + inline Schema* New() const final { + return CreateMaybeMessage(nullptr); + } - Schema* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + Schema* 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 Schema& from); void MergeFrom(const Schema& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(Schema* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.Schema"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kFieldMetasFieldNumber = 1, + }; // repeated .milvus.grpc.FieldMeta field_metas = 1; int field_metas_size() const; void clear_field_metas(); - static const int kFieldMetasFieldNumber = 1; - const ::milvus::grpc::FieldMeta& field_metas(int index) const; ::milvus::grpc::FieldMeta* mutable_field_metas(int index); - ::milvus::grpc::FieldMeta* add_field_metas(); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::FieldMeta >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldMeta >* mutable_field_metas(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::FieldMeta >& + const ::milvus::grpc::FieldMeta& field_metas(int index) const; + ::milvus::grpc::FieldMeta* add_field_metas(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldMeta >& field_metas() const; // @@protoc_insertion_point(class_scope:milvus.grpc.Schema) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::FieldMeta > field_metas_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static Schema* default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldMeta > field_metas_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class RowData : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.RowData) */ { +class RowData : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.RowData) */ { public: RowData(); virtual ~RowData(); RowData(const RowData& from); + RowData(RowData&& from) noexcept + : RowData() { + *this = ::std::move(from); + } inline RowData& operator=(const RowData& from) { CopyFrom(from); return *this; } + inline RowData& operator=(RowData&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 RowData& default_instance(); - void Swap(RowData* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const RowData* internal_default_instance() { + return reinterpret_cast( + &_RowData_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(RowData& a, RowData& b) { + a.Swap(&b); + } + inline void Swap(RowData* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline RowData* New() const { return New(NULL); } + inline RowData* New() const final { + return CreateMaybeMessage(nullptr); + } - RowData* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + RowData* 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 RowData& from); void MergeFrom(const RowData& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(RowData* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.RowData"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional bytes blob = 1; + enum : int { + kBlobFieldNumber = 1, + }; + // bytes blob = 1; void clear_blob(); - static const int kBlobFieldNumber = 1; - const ::std::string& blob() const; - void set_blob(const ::std::string& value); + const std::string& blob() const; + void set_blob(const std::string& value); + void set_blob(std::string&& value); void set_blob(const char* value); void set_blob(const void* value, size_t size); - ::std::string* mutable_blob(); - ::std::string* release_blob(); - void set_allocated_blob(::std::string* blob); + std::string* mutable_blob(); + std::string* release_blob(); + void set_allocated_blob(std::string* blob); // @@protoc_insertion_point(class_scope:milvus.grpc.RowData) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr blob_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static RowData* default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr blob_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class InsertParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.InsertParam) */ { +class InsertParam : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.InsertParam) */ { public: InsertParam(); virtual ~InsertParam(); InsertParam(const InsertParam& from); + InsertParam(InsertParam&& from) noexcept + : InsertParam() { + *this = ::std::move(from); + } inline InsertParam& operator=(const InsertParam& from) { CopyFrom(from); return *this; } + inline InsertParam& operator=(InsertParam&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 InsertParam& default_instance(); - void Swap(InsertParam* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const InsertParam* internal_default_instance() { + return reinterpret_cast( + &_InsertParam_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + friend void swap(InsertParam& a, InsertParam& b) { + a.Swap(&b); + } + inline void Swap(InsertParam* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline InsertParam* New() const { return New(NULL); } + inline InsertParam* New() const final { + return CreateMaybeMessage(nullptr); + } - InsertParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + InsertParam* 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 InsertParam& from); void MergeFrom(const InsertParam& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(InsertParam* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.InsertParam"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string collection_name = 1; - void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); - - // optional .milvus.grpc.Schema schema = 2; - bool has_schema() const; - void clear_schema(); - static const int kSchemaFieldNumber = 2; - const ::milvus::grpc::Schema& schema() const; - ::milvus::grpc::Schema* mutable_schema(); - ::milvus::grpc::Schema* release_schema(); - void set_allocated_schema(::milvus::grpc::Schema* schema); - + enum : int { + kRowsDataFieldNumber = 3, + kEntityIdArrayFieldNumber = 4, + kExtraParamsFieldNumber = 6, + kCollectionNameFieldNumber = 1, + kPartitionTagFieldNumber = 5, + kSchemaFieldNumber = 2, + }; // repeated .milvus.grpc.RowData rows_data = 3; int rows_data_size() const; void clear_rows_data(); - static const int kRowsDataFieldNumber = 3; - const ::milvus::grpc::RowData& rows_data(int index) const; ::milvus::grpc::RowData* mutable_rows_data(int index); - ::milvus::grpc::RowData* add_rows_data(); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowData >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowData >* mutable_rows_data(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowData >& + const ::milvus::grpc::RowData& rows_data(int index) const; + ::milvus::grpc::RowData* add_rows_data(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowData >& rows_data() const; // repeated int64 entity_id_array = 4; int entity_id_array_size() const; void clear_entity_id_array(); - static const int kEntityIdArrayFieldNumber = 4; - ::google::protobuf::int64 entity_id_array(int index) const; - void set_entity_id_array(int index, ::google::protobuf::int64 value); - void add_entity_id_array(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& + ::PROTOBUF_NAMESPACE_ID::int64 entity_id_array(int index) const; + void set_entity_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); + void add_entity_id_array(::PROTOBUF_NAMESPACE_ID::int64 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& entity_id_array() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* mutable_entity_id_array(); - // optional string partition_tag = 5; - void clear_partition_tag(); - static const int kPartitionTagFieldNumber = 5; - const ::std::string& partition_tag() const; - void set_partition_tag(const ::std::string& value); - void set_partition_tag(const char* value); - void set_partition_tag(const char* value, size_t size); - ::std::string* mutable_partition_tag(); - ::std::string* release_partition_tag(); - void set_allocated_partition_tag(::std::string* partition_tag); - // repeated .milvus.grpc.KeyValuePair extra_params = 6; int extra_params_size() const; void clear_extra_params(); - static const int kExtraParamsFieldNumber = 6; - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::milvus::grpc::KeyValuePair* add_extra_params(); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* mutable_extra_params(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& + const ::milvus::grpc::KeyValuePair& extra_params(int index) const; + ::milvus::grpc::KeyValuePair* add_extra_params(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& extra_params() const; + // string collection_name = 1; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // string partition_tag = 5; + void clear_partition_tag(); + const std::string& partition_tag() const; + void set_partition_tag(const std::string& value); + void set_partition_tag(std::string&& value); + void set_partition_tag(const char* value); + void set_partition_tag(const char* value, size_t size); + std::string* mutable_partition_tag(); + std::string* release_partition_tag(); + void set_allocated_partition_tag(std::string* partition_tag); + + // .milvus.grpc.Schema schema = 2; + bool has_schema() const; + void clear_schema(); + const ::milvus::grpc::Schema& schema() const; + ::milvus::grpc::Schema* release_schema(); + ::milvus::grpc::Schema* mutable_schema(); + void set_allocated_schema(::milvus::grpc::Schema* schema); + // @@protoc_insertion_point(class_scope:milvus.grpc.InsertParam) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowData > rows_data_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > entity_id_array_; + mutable std::atomic _entity_id_array_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr partition_tag_; ::milvus::grpc::Schema* schema_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowData > rows_data_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > entity_id_array_; - mutable int _entity_id_array_cached_byte_size_; - ::google::protobuf::internal::ArenaStringPtr partition_tag_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static InsertParam* default_instance_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class SearchParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchParam) */ { +class SearchParam : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchParam) */ { public: SearchParam(); virtual ~SearchParam(); SearchParam(const SearchParam& from); + SearchParam(SearchParam&& from) noexcept + : SearchParam() { + *this = ::std::move(from); + } inline SearchParam& operator=(const SearchParam& from) { CopyFrom(from); return *this; } + inline SearchParam& operator=(SearchParam&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 SearchParam& default_instance(); - void Swap(SearchParam* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SearchParam* internal_default_instance() { + return reinterpret_cast( + &_SearchParam_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + friend void swap(SearchParam& a, SearchParam& b) { + a.Swap(&b); + } + inline void Swap(SearchParam* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline SearchParam* New() const { return New(NULL); } + inline SearchParam* New() const final { + return CreateMaybeMessage(nullptr); + } - SearchParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + SearchParam* 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 SearchParam& from); void MergeFrom(const SearchParam& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(SearchParam* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.SearchParam"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string collection_name = 1; - void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); - + enum : int { + kVectorParamFieldNumber = 2, + kPartitionTagFieldNumber = 4, + kExtraParamsFieldNumber = 5, + kCollectionNameFieldNumber = 1, + kDslFieldNumber = 3, + }; // repeated .milvus.grpc.VectorParam vector_param = 2; int vector_param_size() const; void clear_vector_param(); - static const int kVectorParamFieldNumber = 2; - const ::milvus::grpc::VectorParam& vector_param(int index) const; ::milvus::grpc::VectorParam* mutable_vector_param(int index); - ::milvus::grpc::VectorParam* add_vector_param(); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorParam >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorParam >* mutable_vector_param(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorParam >& + const ::milvus::grpc::VectorParam& vector_param(int index) const; + ::milvus::grpc::VectorParam* add_vector_param(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorParam >& vector_param() const; - // optional string dsl = 3; - void clear_dsl(); - static const int kDslFieldNumber = 3; - const ::std::string& dsl() const; - void set_dsl(const ::std::string& value); - void set_dsl(const char* value); - void set_dsl(const char* value, size_t size); - ::std::string* mutable_dsl(); - ::std::string* release_dsl(); - void set_allocated_dsl(::std::string* dsl); - // repeated string partition_tag = 4; int partition_tag_size() const; void clear_partition_tag(); - static const int kPartitionTagFieldNumber = 4; - const ::std::string& partition_tag(int index) const; - ::std::string* mutable_partition_tag(int index); - void set_partition_tag(int index, const ::std::string& value); + const std::string& partition_tag(int index) const; + std::string* mutable_partition_tag(int index); + void set_partition_tag(int index, const std::string& value); + void set_partition_tag(int index, std::string&& value); void set_partition_tag(int index, const char* value); void set_partition_tag(int index, const char* value, size_t size); - ::std::string* add_partition_tag(); - void add_partition_tag(const ::std::string& value); + std::string* add_partition_tag(); + void add_partition_tag(const std::string& value); + void add_partition_tag(std::string&& value); void add_partition_tag(const char* value); void add_partition_tag(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& partition_tag() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_partition_tag(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& partition_tag() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_partition_tag(); // repeated .milvus.grpc.KeyValuePair extra_params = 5; int extra_params_size() const; void clear_extra_params(); - static const int kExtraParamsFieldNumber = 5; - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::milvus::grpc::KeyValuePair* add_extra_params(); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* mutable_extra_params(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& + const ::milvus::grpc::KeyValuePair& extra_params(int index) const; + ::milvus::grpc::KeyValuePair* add_extra_params(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& extra_params() const; + // string collection_name = 1; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // string dsl = 3; + void clear_dsl(); + const std::string& dsl() const; + void set_dsl(const std::string& value); + void set_dsl(std::string&& value); + void set_dsl(const char* value); + void set_dsl(const char* value, size_t size); + std::string* mutable_dsl(); + std::string* release_dsl(); + void set_allocated_dsl(std::string* dsl); + // @@protoc_insertion_point(class_scope:milvus.grpc.SearchParam) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorParam > vector_param_; - ::google::protobuf::internal::ArenaStringPtr dsl_; - ::google::protobuf::RepeatedPtrField< ::std::string> partition_tag_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static SearchParam* default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorParam > vector_param_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField partition_tag_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dsl_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class SearchInSegmentParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchInSegmentParam) */ { +class SearchInSegmentParam : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchInSegmentParam) */ { public: SearchInSegmentParam(); virtual ~SearchInSegmentParam(); SearchInSegmentParam(const SearchInSegmentParam& from); + SearchInSegmentParam(SearchInSegmentParam&& from) noexcept + : SearchInSegmentParam() { + *this = ::std::move(from); + } inline SearchInSegmentParam& operator=(const SearchInSegmentParam& from) { CopyFrom(from); return *this; } + inline SearchInSegmentParam& operator=(SearchInSegmentParam&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 SearchInSegmentParam& default_instance(); - void Swap(SearchInSegmentParam* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SearchInSegmentParam* internal_default_instance() { + return reinterpret_cast( + &_SearchInSegmentParam_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + friend void swap(SearchInSegmentParam& a, SearchInSegmentParam& b) { + a.Swap(&b); + } + inline void Swap(SearchInSegmentParam* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline SearchInSegmentParam* New() const { return New(NULL); } + inline SearchInSegmentParam* New() const final { + return CreateMaybeMessage(nullptr); + } - SearchInSegmentParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + SearchInSegmentParam* 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 SearchInSegmentParam& from); void MergeFrom(const SearchInSegmentParam& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(SearchInSegmentParam* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.SearchInSegmentParam"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kFileIdArrayFieldNumber = 1, + kSearchParamFieldNumber = 2, + }; // repeated string file_id_array = 1; int file_id_array_size() const; void clear_file_id_array(); - static const int kFileIdArrayFieldNumber = 1; - const ::std::string& file_id_array(int index) const; - ::std::string* mutable_file_id_array(int index); - void set_file_id_array(int index, const ::std::string& value); + const std::string& file_id_array(int index) const; + std::string* mutable_file_id_array(int index); + void set_file_id_array(int index, const std::string& value); + void set_file_id_array(int index, std::string&& value); void set_file_id_array(int index, const char* value); void set_file_id_array(int index, const char* value, size_t size); - ::std::string* add_file_id_array(); - void add_file_id_array(const ::std::string& value); + std::string* add_file_id_array(); + void add_file_id_array(const std::string& value); + void add_file_id_array(std::string&& value); void add_file_id_array(const char* value); void add_file_id_array(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& file_id_array() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_file_id_array(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& file_id_array() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_file_id_array(); - // optional .milvus.grpc.SearchParam search_param = 2; + // .milvus.grpc.SearchParam search_param = 2; bool has_search_param() const; void clear_search_param(); - static const int kSearchParamFieldNumber = 2; const ::milvus::grpc::SearchParam& search_param() const; - ::milvus::grpc::SearchParam* mutable_search_param(); ::milvus::grpc::SearchParam* release_search_param(); + ::milvus::grpc::SearchParam* mutable_search_param(); void set_allocated_search_param(::milvus::grpc::SearchParam* search_param); // @@protoc_insertion_point(class_scope:milvus.grpc.SearchInSegmentParam) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::RepeatedPtrField< ::std::string> file_id_array_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField file_id_array_; ::milvus::grpc::SearchParam* search_param_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static SearchInSegmentParam* default_instance_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class Entities : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Entities) */ { +class Entities : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Entities) */ { public: Entities(); virtual ~Entities(); Entities(const Entities& from); + Entities(Entities&& from) noexcept + : Entities() { + *this = ::std::move(from); + } inline Entities& operator=(const Entities& from) { CopyFrom(from); return *this; } + inline Entities& operator=(Entities&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 Entities& default_instance(); - void Swap(Entities* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Entities* internal_default_instance() { + return reinterpret_cast( + &_Entities_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + friend void swap(Entities& a, Entities& b) { + a.Swap(&b); + } + inline void Swap(Entities* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline Entities* New() const { return New(NULL); } + inline Entities* New() const final { + return CreateMaybeMessage(nullptr); + } - Entities* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + Entities* 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 Entities& from); void MergeFrom(const Entities& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(Entities* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.Entities"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional .milvus.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - static const int kStatusFieldNumber = 1; - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* mutable_status(); - ::milvus::grpc::Status* release_status(); - void set_allocated_status(::milvus::grpc::Status* status); - + enum : int { + kIdsFieldNumber = 2, + kValidRowFieldNumber = 3, + kRowsDataFieldNumber = 4, + kStatusFieldNumber = 1, + }; // repeated int64 ids = 2; int ids_size() const; void clear_ids(); - static const int kIdsFieldNumber = 2; - ::google::protobuf::int64 ids(int index) const; - void set_ids(int index, ::google::protobuf::int64 value); - void add_ids(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& + ::PROTOBUF_NAMESPACE_ID::int64 ids(int index) const; + void set_ids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); + void add_ids(::PROTOBUF_NAMESPACE_ID::int64 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& ids() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* mutable_ids(); // repeated bool valid_row = 3; int valid_row_size() const; void clear_valid_row(); - static const int kValidRowFieldNumber = 3; bool valid_row(int index) const; void set_valid_row(int index, bool value); void add_valid_row(bool value); - const ::google::protobuf::RepeatedField< bool >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >& valid_row() const; - ::google::protobuf::RepeatedField< bool >* + ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >* mutable_valid_row(); // repeated .milvus.grpc.RowData rows_data = 4; int rows_data_size() const; void clear_rows_data(); - static const int kRowsDataFieldNumber = 4; - const ::milvus::grpc::RowData& rows_data(int index) const; ::milvus::grpc::RowData* mutable_rows_data(int index); - ::milvus::grpc::RowData* add_rows_data(); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowData >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowData >* mutable_rows_data(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowData >& + const ::milvus::grpc::RowData& rows_data(int index) const; + ::milvus::grpc::RowData* add_rows_data(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowData >& rows_data() const; + // .milvus.grpc.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::grpc::Status& status() const; + ::milvus::grpc::Status* release_status(); + ::milvus::grpc::Status* mutable_status(); + void set_allocated_status(::milvus::grpc::Status* status); + // @@protoc_insertion_point(class_scope:milvus.grpc.Entities) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > ids_; + mutable std::atomic _ids_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool > valid_row_; + mutable std::atomic _valid_row_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowData > rows_data_; ::milvus::grpc::Status* status_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > ids_; - mutable int _ids_cached_byte_size_; - ::google::protobuf::RepeatedField< bool > valid_row_; - mutable int _valid_row_cached_byte_size_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowData > rows_data_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static Entities* default_instance_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class QueryResult : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.QueryResult) */ { +class QueryResult : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.QueryResult) */ { public: QueryResult(); virtual ~QueryResult(); QueryResult(const QueryResult& from); + QueryResult(QueryResult&& from) noexcept + : QueryResult() { + *this = ::std::move(from); + } inline QueryResult& operator=(const QueryResult& from) { CopyFrom(from); return *this; } + inline QueryResult& operator=(QueryResult&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 QueryResult& default_instance(); - void Swap(QueryResult* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const QueryResult* internal_default_instance() { + return reinterpret_cast( + &_QueryResult_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + friend void swap(QueryResult& a, QueryResult& b) { + a.Swap(&b); + } + inline void Swap(QueryResult* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline QueryResult* New() const { return New(NULL); } + inline QueryResult* New() const final { + return CreateMaybeMessage(nullptr); + } - QueryResult* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + QueryResult* 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 QueryResult& from); void MergeFrom(const QueryResult& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(QueryResult* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.QueryResult"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional .milvus.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - static const int kStatusFieldNumber = 1; - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* mutable_status(); - ::milvus::grpc::Status* release_status(); - void set_allocated_status(::milvus::grpc::Status* status); - - // optional .milvus.grpc.Entities entities = 2; - bool has_entities() const; - void clear_entities(); - static const int kEntitiesFieldNumber = 2; - const ::milvus::grpc::Entities& entities() const; - ::milvus::grpc::Entities* mutable_entities(); - ::milvus::grpc::Entities* release_entities(); - void set_allocated_entities(::milvus::grpc::Entities* entities); - - // optional int64 row_num = 3; - void clear_row_num(); - static const int kRowNumFieldNumber = 3; - ::google::protobuf::int64 row_num() const; - void set_row_num(::google::protobuf::int64 value); - + enum : int { + kScoresFieldNumber = 4, + kDistancesFieldNumber = 5, + kExtraParamsFieldNumber = 6, + kStatusFieldNumber = 1, + kEntitiesFieldNumber = 2, + kRowNumFieldNumber = 3, + }; // repeated float scores = 4; int scores_size() const; void clear_scores(); - static const int kScoresFieldNumber = 4; float scores(int index) const; void set_scores(int index, float value); void add_scores(float value); - const ::google::protobuf::RepeatedField< float >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& scores() const; - ::google::protobuf::RepeatedField< float >* + ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* mutable_scores(); // repeated float distances = 5; int distances_size() const; void clear_distances(); - static const int kDistancesFieldNumber = 5; float distances(int index) const; void set_distances(int index, float value); void add_distances(float value); - const ::google::protobuf::RepeatedField< float >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& distances() const; - ::google::protobuf::RepeatedField< float >* + ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* mutable_distances(); // repeated .milvus.grpc.KeyValuePair extra_params = 6; int extra_params_size() const; void clear_extra_params(); - static const int kExtraParamsFieldNumber = 6; - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::milvus::grpc::KeyValuePair* add_extra_params(); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* mutable_extra_params(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& + const ::milvus::grpc::KeyValuePair& extra_params(int index) const; + ::milvus::grpc::KeyValuePair* add_extra_params(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& extra_params() const; + // .milvus.grpc.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::grpc::Status& status() const; + ::milvus::grpc::Status* release_status(); + ::milvus::grpc::Status* mutable_status(); + void set_allocated_status(::milvus::grpc::Status* status); + + // .milvus.grpc.Entities entities = 2; + bool has_entities() const; + void clear_entities(); + const ::milvus::grpc::Entities& entities() const; + ::milvus::grpc::Entities* release_entities(); + ::milvus::grpc::Entities* mutable_entities(); + void set_allocated_entities(::milvus::grpc::Entities* entities); + + // int64 row_num = 3; + void clear_row_num(); + ::PROTOBUF_NAMESPACE_ID::int64 row_num() const; + void set_row_num(::PROTOBUF_NAMESPACE_ID::int64 value); + // @@protoc_insertion_point(class_scope:milvus.grpc.QueryResult) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > scores_; + mutable std::atomic _scores_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > distances_; + mutable std::atomic _distances_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; ::milvus::grpc::Status* status_; ::milvus::grpc::Entities* entities_; - ::google::protobuf::int64 row_num_; - ::google::protobuf::RepeatedField< float > scores_; - mutable int _scores_cached_byte_size_; - ::google::protobuf::RepeatedField< float > distances_; - mutable int _distances_cached_byte_size_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static QueryResult* default_instance_; + ::PROTOBUF_NAMESPACE_ID::int64 row_num_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class StringReply : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.StringReply) */ { +class StringReply : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.StringReply) */ { public: StringReply(); virtual ~StringReply(); StringReply(const StringReply& from); + StringReply(StringReply&& from) noexcept + : StringReply() { + *this = ::std::move(from); + } inline StringReply& operator=(const StringReply& from) { CopyFrom(from); return *this; } + inline StringReply& operator=(StringReply&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 StringReply& default_instance(); - void Swap(StringReply* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StringReply* internal_default_instance() { + return reinterpret_cast( + &_StringReply_default_instance_); + } + static constexpr int kIndexInFileMessages = + 20; + + friend void swap(StringReply& a, StringReply& b) { + a.Swap(&b); + } + inline void Swap(StringReply* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline StringReply* New() const { return New(NULL); } + inline StringReply* New() const final { + return CreateMaybeMessage(nullptr); + } - StringReply* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + StringReply* 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 StringReply& from); void MergeFrom(const StringReply& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(StringReply* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.StringReply"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional .milvus.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - static const int kStatusFieldNumber = 1; - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* mutable_status(); - ::milvus::grpc::Status* release_status(); - void set_allocated_status(::milvus::grpc::Status* status); - - // optional string string_reply = 2; + enum : int { + kStringReplyFieldNumber = 2, + kStatusFieldNumber = 1, + }; + // string string_reply = 2; void clear_string_reply(); - static const int kStringReplyFieldNumber = 2; - const ::std::string& string_reply() const; - void set_string_reply(const ::std::string& value); + const std::string& string_reply() const; + void set_string_reply(const std::string& value); + void set_string_reply(std::string&& value); void set_string_reply(const char* value); void set_string_reply(const char* value, size_t size); - ::std::string* mutable_string_reply(); - ::std::string* release_string_reply(); - void set_allocated_string_reply(::std::string* string_reply); + std::string* mutable_string_reply(); + std::string* release_string_reply(); + void set_allocated_string_reply(std::string* string_reply); + + // .milvus.grpc.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::grpc::Status& status() const; + ::milvus::grpc::Status* release_status(); + ::milvus::grpc::Status* mutable_status(); + void set_allocated_status(::milvus::grpc::Status* status); // @@protoc_insertion_point(class_scope:milvus.grpc.StringReply) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_reply_; ::milvus::grpc::Status* status_; - ::google::protobuf::internal::ArenaStringPtr string_reply_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static StringReply* default_instance_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class BoolReply : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.BoolReply) */ { +class BoolReply : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.BoolReply) */ { public: BoolReply(); virtual ~BoolReply(); BoolReply(const BoolReply& from); + BoolReply(BoolReply&& from) noexcept + : BoolReply() { + *this = ::std::move(from); + } inline BoolReply& operator=(const BoolReply& from) { CopyFrom(from); return *this; } + inline BoolReply& operator=(BoolReply&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 BoolReply& default_instance(); - void Swap(BoolReply* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BoolReply* internal_default_instance() { + return reinterpret_cast( + &_BoolReply_default_instance_); + } + static constexpr int kIndexInFileMessages = + 21; + + friend void swap(BoolReply& a, BoolReply& b) { + a.Swap(&b); + } + inline void Swap(BoolReply* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline BoolReply* New() const { return New(NULL); } + inline BoolReply* New() const final { + return CreateMaybeMessage(nullptr); + } - BoolReply* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + BoolReply* 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 BoolReply& from); void MergeFrom(const BoolReply& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(BoolReply* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.BoolReply"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional .milvus.grpc.Status status = 1; + enum : int { + kStatusFieldNumber = 1, + kBoolReplyFieldNumber = 2, + }; + // .milvus.grpc.Status status = 1; bool has_status() const; void clear_status(); - static const int kStatusFieldNumber = 1; const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* mutable_status(); ::milvus::grpc::Status* release_status(); + ::milvus::grpc::Status* mutable_status(); void set_allocated_status(::milvus::grpc::Status* status); - // optional bool bool_reply = 2; + // bool bool_reply = 2; void clear_bool_reply(); - static const int kBoolReplyFieldNumber = 2; bool bool_reply() const; void set_bool_reply(bool value); // @@protoc_insertion_point(class_scope:milvus.grpc.BoolReply) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::milvus::grpc::Status* status_; bool bool_reply_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static BoolReply* default_instance_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class CollectionRowCount : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.CollectionRowCount) */ { +class CollectionRowCount : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.CollectionRowCount) */ { public: CollectionRowCount(); virtual ~CollectionRowCount(); CollectionRowCount(const CollectionRowCount& from); + CollectionRowCount(CollectionRowCount&& from) noexcept + : CollectionRowCount() { + *this = ::std::move(from); + } inline CollectionRowCount& operator=(const CollectionRowCount& from) { CopyFrom(from); return *this; } + inline CollectionRowCount& operator=(CollectionRowCount&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 CollectionRowCount& default_instance(); - void Swap(CollectionRowCount* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CollectionRowCount* internal_default_instance() { + return reinterpret_cast( + &_CollectionRowCount_default_instance_); + } + static constexpr int kIndexInFileMessages = + 22; + + friend void swap(CollectionRowCount& a, CollectionRowCount& b) { + a.Swap(&b); + } + inline void Swap(CollectionRowCount* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline CollectionRowCount* New() const { return New(NULL); } + inline CollectionRowCount* New() const final { + return CreateMaybeMessage(nullptr); + } - CollectionRowCount* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + CollectionRowCount* 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 CollectionRowCount& from); void MergeFrom(const CollectionRowCount& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(CollectionRowCount* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.CollectionRowCount"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional .milvus.grpc.Status status = 1; + enum : int { + kStatusFieldNumber = 1, + kCollectionRowCountFieldNumber = 2, + }; + // .milvus.grpc.Status status = 1; bool has_status() const; void clear_status(); - static const int kStatusFieldNumber = 1; const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* mutable_status(); ::milvus::grpc::Status* release_status(); + ::milvus::grpc::Status* mutable_status(); void set_allocated_status(::milvus::grpc::Status* status); - // optional int64 collection_row_count = 2; + // int64 collection_row_count = 2; void clear_collection_row_count(); - static const int kCollectionRowCountFieldNumber = 2; - ::google::protobuf::int64 collection_row_count() const; - void set_collection_row_count(::google::protobuf::int64 value); + ::PROTOBUF_NAMESPACE_ID::int64 collection_row_count() const; + void set_collection_row_count(::PROTOBUF_NAMESPACE_ID::int64 value); // @@protoc_insertion_point(class_scope:milvus.grpc.CollectionRowCount) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::milvus::grpc::Status* status_; - ::google::protobuf::int64 collection_row_count_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static CollectionRowCount* default_instance_; + ::PROTOBUF_NAMESPACE_ID::int64 collection_row_count_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class Command : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Command) */ { +class Command : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Command) */ { public: Command(); virtual ~Command(); Command(const Command& from); + Command(Command&& from) noexcept + : Command() { + *this = ::std::move(from); + } inline Command& operator=(const Command& from) { CopyFrom(from); return *this; } + inline Command& operator=(Command&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 Command& default_instance(); - void Swap(Command* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Command* internal_default_instance() { + return reinterpret_cast( + &_Command_default_instance_); + } + static constexpr int kIndexInFileMessages = + 23; + + friend void swap(Command& a, Command& b) { + a.Swap(&b); + } + inline void Swap(Command* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline Command* New() const { return New(NULL); } + inline Command* New() const final { + return CreateMaybeMessage(nullptr); + } - Command* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + Command* 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 Command& from); void MergeFrom(const Command& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(Command* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.Command"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string cmd = 1; + enum : int { + kCmdFieldNumber = 1, + }; + // string cmd = 1; void clear_cmd(); - static const int kCmdFieldNumber = 1; - const ::std::string& cmd() const; - void set_cmd(const ::std::string& value); + const std::string& cmd() const; + void set_cmd(const std::string& value); + void set_cmd(std::string&& value); void set_cmd(const char* value); void set_cmd(const char* value, size_t size); - ::std::string* mutable_cmd(); - ::std::string* release_cmd(); - void set_allocated_cmd(::std::string* cmd); + std::string* mutable_cmd(); + std::string* release_cmd(); + void set_allocated_cmd(std::string* cmd); // @@protoc_insertion_point(class_scope:milvus.grpc.Command) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr cmd_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static Command* default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr cmd_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class IndexParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.IndexParam) */ { +class IndexParam : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.IndexParam) */ { public: IndexParam(); virtual ~IndexParam(); IndexParam(const IndexParam& from); + IndexParam(IndexParam&& from) noexcept + : IndexParam() { + *this = ::std::move(from); + } inline IndexParam& operator=(const IndexParam& from) { CopyFrom(from); return *this; } + inline IndexParam& operator=(IndexParam&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 IndexParam& default_instance(); - void Swap(IndexParam* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const IndexParam* internal_default_instance() { + return reinterpret_cast( + &_IndexParam_default_instance_); + } + static constexpr int kIndexInFileMessages = + 24; + + friend void swap(IndexParam& a, IndexParam& b) { + a.Swap(&b); + } + inline void Swap(IndexParam* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline IndexParam* New() const { return New(NULL); } + inline IndexParam* New() const final { + return CreateMaybeMessage(nullptr); + } - IndexParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + IndexParam* 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 IndexParam& from); void MergeFrom(const IndexParam& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(IndexParam* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.IndexParam"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional .milvus.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - static const int kStatusFieldNumber = 1; - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* mutable_status(); - ::milvus::grpc::Status* release_status(); - void set_allocated_status(::milvus::grpc::Status* status); - - // optional string collection_name = 2; - void clear_collection_name(); - static const int kCollectionNameFieldNumber = 2; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); - - // optional string field_name = 3; - void clear_field_name(); - static const int kFieldNameFieldNumber = 3; - const ::std::string& field_name() const; - void set_field_name(const ::std::string& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - ::std::string* mutable_field_name(); - ::std::string* release_field_name(); - void set_allocated_field_name(::std::string* field_name); - - // optional string index_name = 4; - void clear_index_name(); - static const int kIndexNameFieldNumber = 4; - const ::std::string& index_name() const; - void set_index_name(const ::std::string& value); - void set_index_name(const char* value); - void set_index_name(const char* value, size_t size); - ::std::string* mutable_index_name(); - ::std::string* release_index_name(); - void set_allocated_index_name(::std::string* index_name); - + enum : int { + kExtraParamsFieldNumber = 5, + kCollectionNameFieldNumber = 2, + kFieldNameFieldNumber = 3, + kIndexNameFieldNumber = 4, + kStatusFieldNumber = 1, + }; // repeated .milvus.grpc.KeyValuePair extra_params = 5; int extra_params_size() const; void clear_extra_params(); - static const int kExtraParamsFieldNumber = 5; - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::milvus::grpc::KeyValuePair* add_extra_params(); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* mutable_extra_params(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& + const ::milvus::grpc::KeyValuePair& extra_params(int index) const; + ::milvus::grpc::KeyValuePair* add_extra_params(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& extra_params() const; + // string collection_name = 2; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // string field_name = 3; + void clear_field_name(); + const std::string& field_name() const; + void set_field_name(const std::string& value); + void set_field_name(std::string&& value); + void set_field_name(const char* value); + void set_field_name(const char* value, size_t size); + std::string* mutable_field_name(); + std::string* release_field_name(); + void set_allocated_field_name(std::string* field_name); + + // string index_name = 4; + void clear_index_name(); + const std::string& index_name() const; + void set_index_name(const std::string& value); + void set_index_name(std::string&& value); + void set_index_name(const char* value); + void set_index_name(const char* value, size_t size); + std::string* mutable_index_name(); + std::string* release_index_name(); + void set_allocated_index_name(std::string* index_name); + + // .milvus.grpc.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::grpc::Status& status() const; + ::milvus::grpc::Status* release_status(); + ::milvus::grpc::Status* mutable_status(); + void set_allocated_status(::milvus::grpc::Status* status); + // @@protoc_insertion_point(class_scope:milvus.grpc.IndexParam) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr index_name_; ::milvus::grpc::Status* status_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - ::google::protobuf::internal::ArenaStringPtr field_name_; - ::google::protobuf::internal::ArenaStringPtr index_name_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static IndexParam* default_instance_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class FlushParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.FlushParam) */ { +class FlushParam : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.FlushParam) */ { public: FlushParam(); virtual ~FlushParam(); FlushParam(const FlushParam& from); + FlushParam(FlushParam&& from) noexcept + : FlushParam() { + *this = ::std::move(from); + } inline FlushParam& operator=(const FlushParam& from) { CopyFrom(from); return *this; } + inline FlushParam& operator=(FlushParam&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 FlushParam& default_instance(); - void Swap(FlushParam* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FlushParam* internal_default_instance() { + return reinterpret_cast( + &_FlushParam_default_instance_); + } + static constexpr int kIndexInFileMessages = + 25; + + friend void swap(FlushParam& a, FlushParam& b) { + a.Swap(&b); + } + inline void Swap(FlushParam* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline FlushParam* New() const { return New(NULL); } + inline FlushParam* New() const final { + return CreateMaybeMessage(nullptr); + } - FlushParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + FlushParam* 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 FlushParam& from); void MergeFrom(const FlushParam& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(FlushParam* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.FlushParam"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kCollectionNameArrayFieldNumber = 1, + }; // repeated string collection_name_array = 1; int collection_name_array_size() const; void clear_collection_name_array(); - static const int kCollectionNameArrayFieldNumber = 1; - const ::std::string& collection_name_array(int index) const; - ::std::string* mutable_collection_name_array(int index); - void set_collection_name_array(int index, const ::std::string& value); + const std::string& collection_name_array(int index) const; + std::string* mutable_collection_name_array(int index); + void set_collection_name_array(int index, const std::string& value); + void set_collection_name_array(int index, std::string&& value); void set_collection_name_array(int index, const char* value); void set_collection_name_array(int index, const char* value, size_t size); - ::std::string* add_collection_name_array(); - void add_collection_name_array(const ::std::string& value); + std::string* add_collection_name_array(); + void add_collection_name_array(const std::string& value); + void add_collection_name_array(std::string&& value); void add_collection_name_array(const char* value); void add_collection_name_array(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& collection_name_array() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_collection_name_array(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& collection_name_array() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_collection_name_array(); // @@protoc_insertion_point(class_scope:milvus.grpc.FlushParam) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::RepeatedPtrField< ::std::string> collection_name_array_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static FlushParam* default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField collection_name_array_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class CompactParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.CompactParam) */ { +class CompactParam : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.CompactParam) */ { public: CompactParam(); virtual ~CompactParam(); CompactParam(const CompactParam& from); + CompactParam(CompactParam&& from) noexcept + : CompactParam() { + *this = ::std::move(from); + } inline CompactParam& operator=(const CompactParam& from) { CopyFrom(from); return *this; } + inline CompactParam& operator=(CompactParam&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 CompactParam& default_instance(); - void Swap(CompactParam* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CompactParam* internal_default_instance() { + return reinterpret_cast( + &_CompactParam_default_instance_); + } + static constexpr int kIndexInFileMessages = + 26; + + friend void swap(CompactParam& a, CompactParam& b) { + a.Swap(&b); + } + inline void Swap(CompactParam* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline CompactParam* New() const { return New(NULL); } + inline CompactParam* New() const final { + return CreateMaybeMessage(nullptr); + } - CompactParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + CompactParam* 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 CompactParam& from); void MergeFrom(const CompactParam& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(CompactParam* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.CompactParam"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string collection_name = 1; + enum : int { + kCollectionNameFieldNumber = 1, + kThresholdFieldNumber = 2, + }; + // string collection_name = 1; void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); void set_collection_name(const char* value); void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); - // optional double threshold = 2; + // double threshold = 2; void clear_threshold(); - static const int kThresholdFieldNumber = 2; double threshold() const; void set_threshold(double value); // @@protoc_insertion_point(class_scope:milvus.grpc.CompactParam) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; double threshold_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static CompactParam* default_instance_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class DeleteByIDParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.DeleteByIDParam) */ { +class DeleteByIDParam : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.DeleteByIDParam) */ { public: DeleteByIDParam(); virtual ~DeleteByIDParam(); DeleteByIDParam(const DeleteByIDParam& from); + DeleteByIDParam(DeleteByIDParam&& from) noexcept + : DeleteByIDParam() { + *this = ::std::move(from); + } inline DeleteByIDParam& operator=(const DeleteByIDParam& from) { CopyFrom(from); return *this; } + inline DeleteByIDParam& operator=(DeleteByIDParam&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 DeleteByIDParam& default_instance(); - void Swap(DeleteByIDParam* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DeleteByIDParam* internal_default_instance() { + return reinterpret_cast( + &_DeleteByIDParam_default_instance_); + } + static constexpr int kIndexInFileMessages = + 27; + + friend void swap(DeleteByIDParam& a, DeleteByIDParam& b) { + a.Swap(&b); + } + inline void Swap(DeleteByIDParam* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline DeleteByIDParam* New() const { return New(NULL); } + inline DeleteByIDParam* New() const final { + return CreateMaybeMessage(nullptr); + } - DeleteByIDParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + DeleteByIDParam* 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 DeleteByIDParam& from); void MergeFrom(const DeleteByIDParam& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(DeleteByIDParam* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.DeleteByIDParam"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string collection_name = 1; - void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); - + enum : int { + kIdArrayFieldNumber = 2, + kCollectionNameFieldNumber = 1, + }; // repeated int64 id_array = 2; int id_array_size() const; void clear_id_array(); - static const int kIdArrayFieldNumber = 2; - ::google::protobuf::int64 id_array(int index) const; - void set_id_array(int index, ::google::protobuf::int64 value); - void add_id_array(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& + ::PROTOBUF_NAMESPACE_ID::int64 id_array(int index) const; + void set_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); + void add_id_array(::PROTOBUF_NAMESPACE_ID::int64 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& id_array() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* mutable_id_array(); + // string collection_name = 1; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + // @@protoc_insertion_point(class_scope:milvus.grpc.DeleteByIDParam) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > id_array_; - mutable int _id_array_cached_byte_size_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static DeleteByIDParam* default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > id_array_; + mutable std::atomic _id_array_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class CollectionInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.CollectionInfo) */ { +class CollectionInfo : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.CollectionInfo) */ { public: CollectionInfo(); virtual ~CollectionInfo(); CollectionInfo(const CollectionInfo& from); + CollectionInfo(CollectionInfo&& from) noexcept + : CollectionInfo() { + *this = ::std::move(from); + } inline CollectionInfo& operator=(const CollectionInfo& from) { CopyFrom(from); return *this; } + inline CollectionInfo& operator=(CollectionInfo&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 CollectionInfo& default_instance(); - void Swap(CollectionInfo* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CollectionInfo* internal_default_instance() { + return reinterpret_cast( + &_CollectionInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 28; + + friend void swap(CollectionInfo& a, CollectionInfo& b) { + a.Swap(&b); + } + inline void Swap(CollectionInfo* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline CollectionInfo* New() const { return New(NULL); } + inline CollectionInfo* New() const final { + return CreateMaybeMessage(nullptr); + } - CollectionInfo* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + CollectionInfo* 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 CollectionInfo& from); void MergeFrom(const CollectionInfo& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(CollectionInfo* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.CollectionInfo"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional .milvus.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - static const int kStatusFieldNumber = 1; - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* mutable_status(); - ::milvus::grpc::Status* release_status(); - void set_allocated_status(::milvus::grpc::Status* status); - - // optional string json_info = 2; + enum : int { + kJsonInfoFieldNumber = 2, + kStatusFieldNumber = 1, + }; + // string json_info = 2; void clear_json_info(); - static const int kJsonInfoFieldNumber = 2; - const ::std::string& json_info() const; - void set_json_info(const ::std::string& value); + const std::string& json_info() const; + void set_json_info(const std::string& value); + void set_json_info(std::string&& value); void set_json_info(const char* value); void set_json_info(const char* value, size_t size); - ::std::string* mutable_json_info(); - ::std::string* release_json_info(); - void set_allocated_json_info(::std::string* json_info); + std::string* mutable_json_info(); + std::string* release_json_info(); + void set_allocated_json_info(std::string* json_info); + + // .milvus.grpc.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::grpc::Status& status() const; + ::milvus::grpc::Status* release_status(); + ::milvus::grpc::Status* mutable_status(); + void set_allocated_status(::milvus::grpc::Status* status); // @@protoc_insertion_point(class_scope:milvus.grpc.CollectionInfo) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr json_info_; ::milvus::grpc::Status* status_; - ::google::protobuf::internal::ArenaStringPtr json_info_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static CollectionInfo* default_instance_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class GetEntityIDsParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.GetEntityIDsParam) */ { +class GetEntityIDsParam : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.GetEntityIDsParam) */ { public: GetEntityIDsParam(); virtual ~GetEntityIDsParam(); GetEntityIDsParam(const GetEntityIDsParam& from); + GetEntityIDsParam(GetEntityIDsParam&& from) noexcept + : GetEntityIDsParam() { + *this = ::std::move(from); + } inline GetEntityIDsParam& operator=(const GetEntityIDsParam& from) { CopyFrom(from); return *this; } + inline GetEntityIDsParam& operator=(GetEntityIDsParam&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 GetEntityIDsParam& default_instance(); - void Swap(GetEntityIDsParam* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetEntityIDsParam* internal_default_instance() { + return reinterpret_cast( + &_GetEntityIDsParam_default_instance_); + } + static constexpr int kIndexInFileMessages = + 29; + + friend void swap(GetEntityIDsParam& a, GetEntityIDsParam& b) { + a.Swap(&b); + } + inline void Swap(GetEntityIDsParam* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline GetEntityIDsParam* New() const { return New(NULL); } + inline GetEntityIDsParam* New() const final { + return CreateMaybeMessage(nullptr); + } - GetEntityIDsParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + GetEntityIDsParam* 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 GetEntityIDsParam& from); void MergeFrom(const GetEntityIDsParam& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(GetEntityIDsParam* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.GetEntityIDsParam"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string collection_name = 1; + enum : int { + kCollectionNameFieldNumber = 1, + kSegmentIdFieldNumber = 2, + }; + // string collection_name = 1; void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); void set_collection_name(const char* value); void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); - // optional int64 segment_id = 2; + // int64 segment_id = 2; void clear_segment_id(); - static const int kSegmentIdFieldNumber = 2; - ::google::protobuf::int64 segment_id() const; - void set_segment_id(::google::protobuf::int64 value); + ::PROTOBUF_NAMESPACE_ID::int64 segment_id() const; + void set_segment_id(::PROTOBUF_NAMESPACE_ID::int64 value); // @@protoc_insertion_point(class_scope:milvus.grpc.GetEntityIDsParam) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - ::google::protobuf::int64 segment_id_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static GetEntityIDsParam* default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::PROTOBUF_NAMESPACE_ID::int64 segment_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class EntityIdentity : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.EntityIdentity) */ { +class EntityIdentity : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.EntityIdentity) */ { public: EntityIdentity(); virtual ~EntityIdentity(); EntityIdentity(const EntityIdentity& from); + EntityIdentity(EntityIdentity&& from) noexcept + : EntityIdentity() { + *this = ::std::move(from); + } inline EntityIdentity& operator=(const EntityIdentity& from) { CopyFrom(from); return *this; } + inline EntityIdentity& operator=(EntityIdentity&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 EntityIdentity& default_instance(); - void Swap(EntityIdentity* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EntityIdentity* internal_default_instance() { + return reinterpret_cast( + &_EntityIdentity_default_instance_); + } + static constexpr int kIndexInFileMessages = + 30; + + friend void swap(EntityIdentity& a, EntityIdentity& b) { + a.Swap(&b); + } + inline void Swap(EntityIdentity* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline EntityIdentity* New() const { return New(NULL); } + inline EntityIdentity* New() const final { + return CreateMaybeMessage(nullptr); + } - EntityIdentity* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + EntityIdentity* 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 EntityIdentity& from); void MergeFrom(const EntityIdentity& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(EntityIdentity* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.EntityIdentity"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string collection_name = 1; - void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); - + enum : int { + kIdArrayFieldNumber = 2, + kFieldNamesFieldNumber = 3, + kCollectionNameFieldNumber = 1, + }; // repeated int64 id_array = 2; int id_array_size() const; void clear_id_array(); - static const int kIdArrayFieldNumber = 2; - ::google::protobuf::int64 id_array(int index) const; - void set_id_array(int index, ::google::protobuf::int64 value); - void add_id_array(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& + ::PROTOBUF_NAMESPACE_ID::int64 id_array(int index) const; + void set_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); + void add_id_array(::PROTOBUF_NAMESPACE_ID::int64 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& id_array() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* mutable_id_array(); // repeated string field_names = 3; int field_names_size() const; void clear_field_names(); - static const int kFieldNamesFieldNumber = 3; - const ::std::string& field_names(int index) const; - ::std::string* mutable_field_names(int index); - void set_field_names(int index, const ::std::string& value); + const std::string& field_names(int index) const; + std::string* mutable_field_names(int index); + void set_field_names(int index, const std::string& value); + void set_field_names(int index, std::string&& value); void set_field_names(int index, const char* value); void set_field_names(int index, const char* value, size_t size); - ::std::string* add_field_names(); - void add_field_names(const ::std::string& value); + std::string* add_field_names(); + void add_field_names(const std::string& value); + void add_field_names(std::string&& value); void add_field_names(const char* value); void add_field_names(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& field_names() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_field_names(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& field_names() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_field_names(); + + // string collection_name = 1; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); // @@protoc_insertion_point(class_scope:milvus.grpc.EntityIdentity) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > id_array_; - mutable int _id_array_cached_byte_size_; - ::google::protobuf::RepeatedPtrField< ::std::string> field_names_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static EntityIdentity* default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > id_array_; + mutable std::atomic _id_array_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField field_names_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class VectorFieldParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorFieldParam) */ { +class VectorFieldParam : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorFieldParam) */ { public: VectorFieldParam(); virtual ~VectorFieldParam(); VectorFieldParam(const VectorFieldParam& from); + VectorFieldParam(VectorFieldParam&& from) noexcept + : VectorFieldParam() { + *this = ::std::move(from); + } inline VectorFieldParam& operator=(const VectorFieldParam& from) { CopyFrom(from); return *this; } + inline VectorFieldParam& operator=(VectorFieldParam&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 VectorFieldParam& default_instance(); - void Swap(VectorFieldParam* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const VectorFieldParam* internal_default_instance() { + return reinterpret_cast( + &_VectorFieldParam_default_instance_); + } + static constexpr int kIndexInFileMessages = + 31; + + friend void swap(VectorFieldParam& a, VectorFieldParam& b) { + a.Swap(&b); + } + inline void Swap(VectorFieldParam* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline VectorFieldParam* New() const { return New(NULL); } + inline VectorFieldParam* New() const final { + return CreateMaybeMessage(nullptr); + } - VectorFieldParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + VectorFieldParam* 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 VectorFieldParam& from); void MergeFrom(const VectorFieldParam& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(VectorFieldParam* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.VectorFieldParam"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional int64 dimension = 1; + enum : int { + kDimensionFieldNumber = 1, + }; + // int64 dimension = 1; void clear_dimension(); - static const int kDimensionFieldNumber = 1; - ::google::protobuf::int64 dimension() const; - void set_dimension(::google::protobuf::int64 value); + ::PROTOBUF_NAMESPACE_ID::int64 dimension() const; + void set_dimension(::PROTOBUF_NAMESPACE_ID::int64 value); // @@protoc_insertion_point(class_scope:milvus.grpc.VectorFieldParam) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::int64 dimension_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static VectorFieldParam* default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::int64 dimension_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class FieldType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.FieldType) */ { +class FieldType : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.FieldType) */ { public: FieldType(); virtual ~FieldType(); FieldType(const FieldType& from); + FieldType(FieldType&& from) noexcept + : FieldType() { + *this = ::std::move(from); + } inline FieldType& operator=(const FieldType& from) { CopyFrom(from); return *this; } + inline FieldType& operator=(FieldType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 FieldType& default_instance(); enum ValueCase { @@ -3679,904 +5332,1301 @@ class FieldType : public ::google::protobuf::Message /* @@protoc_insertion_point VALUE_NOT_SET = 0, }; - void Swap(FieldType* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FieldType* internal_default_instance() { + return reinterpret_cast( + &_FieldType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 32; + + friend void swap(FieldType& a, FieldType& b) { + a.Swap(&b); + } + inline void Swap(FieldType* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline FieldType* New() const { return New(NULL); } + inline FieldType* New() const final { + return CreateMaybeMessage(nullptr); + } - FieldType* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + FieldType* 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 FieldType& from); void MergeFrom(const FieldType& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(FieldType* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.FieldType"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional .milvus.grpc.DataType data_type = 1; + enum : int { + kDataTypeFieldNumber = 1, + kVectorParamFieldNumber = 2, + }; + // .milvus.grpc.DataType data_type = 1; private: bool has_data_type() const; public: void clear_data_type(); - static const int kDataTypeFieldNumber = 1; ::milvus::grpc::DataType data_type() const; void set_data_type(::milvus::grpc::DataType value); - // optional .milvus.grpc.VectorFieldParam vector_param = 2; + // .milvus.grpc.VectorFieldParam vector_param = 2; bool has_vector_param() const; void clear_vector_param(); - static const int kVectorParamFieldNumber = 2; const ::milvus::grpc::VectorFieldParam& vector_param() const; - ::milvus::grpc::VectorFieldParam* mutable_vector_param(); ::milvus::grpc::VectorFieldParam* release_vector_param(); + ::milvus::grpc::VectorFieldParam* mutable_vector_param(); void set_allocated_vector_param(::milvus::grpc::VectorFieldParam* vector_param); + void clear_value(); ValueCase value_case() const; // @@protoc_insertion_point(class_scope:milvus.grpc.FieldType) private: - inline void set_has_data_type(); - inline void set_has_vector_param(); + class _Internal; + void set_has_data_type(); + void set_has_vector_param(); inline bool has_value() const; - void clear_value(); inline void clear_has_value(); - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; union ValueUnion { ValueUnion() {} int data_type_; ::milvus::grpc::VectorFieldParam* vector_param_; } value_; - mutable int _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static FieldType* default_instance_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class FieldParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.FieldParam) */ { +class FieldParam : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.FieldParam) */ { public: FieldParam(); virtual ~FieldParam(); FieldParam(const FieldParam& from); + FieldParam(FieldParam&& from) noexcept + : FieldParam() { + *this = ::std::move(from); + } inline FieldParam& operator=(const FieldParam& from) { CopyFrom(from); return *this; } + inline FieldParam& operator=(FieldParam&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 FieldParam& default_instance(); - void Swap(FieldParam* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FieldParam* internal_default_instance() { + return reinterpret_cast( + &_FieldParam_default_instance_); + } + static constexpr int kIndexInFileMessages = + 33; + + friend void swap(FieldParam& a, FieldParam& b) { + a.Swap(&b); + } + inline void Swap(FieldParam* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline FieldParam* New() const { return New(NULL); } + inline FieldParam* New() const final { + return CreateMaybeMessage(nullptr); + } - FieldParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + FieldParam* 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 FieldParam& from); void MergeFrom(const FieldParam& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(FieldParam* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.FieldParam"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional uint64 id = 1; - void clear_id(); - static const int kIdFieldNumber = 1; - ::google::protobuf::uint64 id() const; - void set_id(::google::protobuf::uint64 value); - - // optional string name = 2; - void clear_name(); - static const int kNameFieldNumber = 2; - const ::std::string& name() const; - void set_name(const ::std::string& value); - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // optional .milvus.grpc.DataType type = 3; - void clear_type(); - static const int kTypeFieldNumber = 3; - ::milvus::grpc::DataType type() const; - void set_type(::milvus::grpc::DataType value); - + enum : int { + kIndexParamsFieldNumber = 4, + kExtraParamsFieldNumber = 5, + kNameFieldNumber = 2, + kIdFieldNumber = 1, + kTypeFieldNumber = 3, + }; // repeated .milvus.grpc.KeyValuePair index_params = 4; int index_params_size() const; void clear_index_params(); - static const int kIndexParamsFieldNumber = 4; - const ::milvus::grpc::KeyValuePair& index_params(int index) const; ::milvus::grpc::KeyValuePair* mutable_index_params(int index); - ::milvus::grpc::KeyValuePair* add_index_params(); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* mutable_index_params(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& + const ::milvus::grpc::KeyValuePair& index_params(int index) const; + ::milvus::grpc::KeyValuePair* add_index_params(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& index_params() const; // repeated .milvus.grpc.KeyValuePair extra_params = 5; int extra_params_size() const; void clear_extra_params(); - static const int kExtraParamsFieldNumber = 5; - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::milvus::grpc::KeyValuePair* add_extra_params(); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* mutable_extra_params(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& + const ::milvus::grpc::KeyValuePair& extra_params(int index) const; + ::milvus::grpc::KeyValuePair* add_extra_params(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& extra_params() const; + // string name = 2; + void clear_name(); + const std::string& name() const; + void set_name(const std::string& value); + void set_name(std::string&& value); + void set_name(const char* value); + void set_name(const char* value, size_t size); + std::string* mutable_name(); + std::string* release_name(); + void set_allocated_name(std::string* name); + + // uint64 id = 1; + void clear_id(); + ::PROTOBUF_NAMESPACE_ID::uint64 id() const; + void set_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + + // .milvus.grpc.DataType type = 3; + void clear_type(); + ::milvus::grpc::DataType type() const; + void set_type(::milvus::grpc::DataType value); + // @@protoc_insertion_point(class_scope:milvus.grpc.FieldParam) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::uint64 id_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair > index_params_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > index_params_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::uint64 id_; int type_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static FieldParam* default_instance_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class VectorFieldRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorFieldRecord) */ { +class VectorFieldRecord : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorFieldRecord) */ { public: VectorFieldRecord(); virtual ~VectorFieldRecord(); VectorFieldRecord(const VectorFieldRecord& from); + VectorFieldRecord(VectorFieldRecord&& from) noexcept + : VectorFieldRecord() { + *this = ::std::move(from); + } inline VectorFieldRecord& operator=(const VectorFieldRecord& from) { CopyFrom(from); return *this; } + inline VectorFieldRecord& operator=(VectorFieldRecord&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 VectorFieldRecord& default_instance(); - void Swap(VectorFieldRecord* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const VectorFieldRecord* internal_default_instance() { + return reinterpret_cast( + &_VectorFieldRecord_default_instance_); + } + static constexpr int kIndexInFileMessages = + 34; + + friend void swap(VectorFieldRecord& a, VectorFieldRecord& b) { + a.Swap(&b); + } + inline void Swap(VectorFieldRecord* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline VectorFieldRecord* New() const { return New(NULL); } + inline VectorFieldRecord* New() const final { + return CreateMaybeMessage(nullptr); + } - VectorFieldRecord* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + VectorFieldRecord* 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 VectorFieldRecord& from); void MergeFrom(const VectorFieldRecord& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(VectorFieldRecord* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.VectorFieldRecord"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kValueFieldNumber = 1, + }; // repeated .milvus.grpc.VectorRowRecord value = 1; int value_size() const; void clear_value(); - static const int kValueFieldNumber = 1; - const ::milvus::grpc::VectorRowRecord& value(int index) const; ::milvus::grpc::VectorRowRecord* mutable_value(int index); - ::milvus::grpc::VectorRowRecord* add_value(); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* mutable_value(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& + const ::milvus::grpc::VectorRowRecord& value(int index) const; + ::milvus::grpc::VectorRowRecord* add_value(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& value() const; // @@protoc_insertion_point(class_scope:milvus.grpc.VectorFieldRecord) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorRowRecord > value_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static VectorFieldRecord* default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord > value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class TermQuery : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.TermQuery) */ { +class TermQuery : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.TermQuery) */ { public: TermQuery(); virtual ~TermQuery(); TermQuery(const TermQuery& from); + TermQuery(TermQuery&& from) noexcept + : TermQuery() { + *this = ::std::move(from); + } inline TermQuery& operator=(const TermQuery& from) { CopyFrom(from); return *this; } + inline TermQuery& operator=(TermQuery&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 TermQuery& default_instance(); - void Swap(TermQuery* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TermQuery* internal_default_instance() { + return reinterpret_cast( + &_TermQuery_default_instance_); + } + static constexpr int kIndexInFileMessages = + 35; + + friend void swap(TermQuery& a, TermQuery& b) { + a.Swap(&b); + } + inline void Swap(TermQuery* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline TermQuery* New() const { return New(NULL); } + inline TermQuery* New() const final { + return CreateMaybeMessage(nullptr); + } - TermQuery* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + TermQuery* 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 TermQuery& from); void MergeFrom(const TermQuery& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(TermQuery* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.TermQuery"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string field_name = 1; - void clear_field_name(); - static const int kFieldNameFieldNumber = 1; - const ::std::string& field_name() const; - void set_field_name(const ::std::string& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - ::std::string* mutable_field_name(); - ::std::string* release_field_name(); - void set_allocated_field_name(::std::string* field_name); - + enum : int { + kIntValueFieldNumber = 2, + kDoubleValueFieldNumber = 3, + kExtraParamsFieldNumber = 6, + kFieldNameFieldNumber = 1, + kValueNumFieldNumber = 4, + kBoostFieldNumber = 5, + }; // repeated int64 int_value = 2; int int_value_size() const; void clear_int_value(); - static const int kIntValueFieldNumber = 2; - ::google::protobuf::int64 int_value(int index) const; - void set_int_value(int index, ::google::protobuf::int64 value); - void add_int_value(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& + ::PROTOBUF_NAMESPACE_ID::int64 int_value(int index) const; + void set_int_value(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); + void add_int_value(::PROTOBUF_NAMESPACE_ID::int64 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& int_value() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* mutable_int_value(); // repeated double double_value = 3; int double_value_size() const; void clear_double_value(); - static const int kDoubleValueFieldNumber = 3; double double_value(int index) const; void set_double_value(int index, double value); void add_double_value(double value); - const ::google::protobuf::RepeatedField< double >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& double_value() const; - ::google::protobuf::RepeatedField< double >* + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* mutable_double_value(); - // optional int64 value_num = 4; - void clear_value_num(); - static const int kValueNumFieldNumber = 4; - ::google::protobuf::int64 value_num() const; - void set_value_num(::google::protobuf::int64 value); - - // optional float boost = 5; - void clear_boost(); - static const int kBoostFieldNumber = 5; - float boost() const; - void set_boost(float value); - // repeated .milvus.grpc.KeyValuePair extra_params = 6; int extra_params_size() const; void clear_extra_params(); - static const int kExtraParamsFieldNumber = 6; - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::milvus::grpc::KeyValuePair* add_extra_params(); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* mutable_extra_params(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& + const ::milvus::grpc::KeyValuePair& extra_params(int index) const; + ::milvus::grpc::KeyValuePair* add_extra_params(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& extra_params() const; + // string field_name = 1; + void clear_field_name(); + const std::string& field_name() const; + void set_field_name(const std::string& value); + void set_field_name(std::string&& value); + void set_field_name(const char* value); + void set_field_name(const char* value, size_t size); + std::string* mutable_field_name(); + std::string* release_field_name(); + void set_allocated_field_name(std::string* field_name); + + // int64 value_num = 4; + void clear_value_num(); + ::PROTOBUF_NAMESPACE_ID::int64 value_num() const; + void set_value_num(::PROTOBUF_NAMESPACE_ID::int64 value); + + // float boost = 5; + void clear_boost(); + float boost() const; + void set_boost(float value); + // @@protoc_insertion_point(class_scope:milvus.grpc.TermQuery) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr field_name_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > int_value_; - mutable int _int_value_cached_byte_size_; - ::google::protobuf::RepeatedField< double > double_value_; - mutable int _double_value_cached_byte_size_; - ::google::protobuf::int64 value_num_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > int_value_; + mutable std::atomic _int_value_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > double_value_; + mutable std::atomic _double_value_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; + ::PROTOBUF_NAMESPACE_ID::int64 value_num_; float boost_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static TermQuery* default_instance_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class CompareExpr : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.CompareExpr) */ { +class CompareExpr : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.CompareExpr) */ { public: CompareExpr(); virtual ~CompareExpr(); CompareExpr(const CompareExpr& from); + CompareExpr(CompareExpr&& from) noexcept + : CompareExpr() { + *this = ::std::move(from); + } inline CompareExpr& operator=(const CompareExpr& from) { CopyFrom(from); return *this; } + inline CompareExpr& operator=(CompareExpr&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 CompareExpr& default_instance(); - void Swap(CompareExpr* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CompareExpr* internal_default_instance() { + return reinterpret_cast( + &_CompareExpr_default_instance_); + } + static constexpr int kIndexInFileMessages = + 36; + + friend void swap(CompareExpr& a, CompareExpr& b) { + a.Swap(&b); + } + inline void Swap(CompareExpr* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline CompareExpr* New() const { return New(NULL); } + inline CompareExpr* New() const final { + return CreateMaybeMessage(nullptr); + } - CompareExpr* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + CompareExpr* 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 CompareExpr& from); void MergeFrom(const CompareExpr& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(CompareExpr* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.CompareExpr"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional .milvus.grpc.CompareOperator operator = 1; + enum : int { + kOperandFieldNumber = 2, + kOperatorFieldNumber = 1, + }; + // string operand = 2; + void clear_operand(); + const std::string& operand() const; + void set_operand(const std::string& value); + void set_operand(std::string&& value); + void set_operand(const char* value); + void set_operand(const char* value, size_t size); + std::string* mutable_operand(); + std::string* release_operand(); + void set_allocated_operand(std::string* operand); + + // .milvus.grpc.CompareOperator operator = 1; void clear_operator_(); - static const int kOperatorFieldNumber = 1; ::milvus::grpc::CompareOperator operator_() const; void set_operator_(::milvus::grpc::CompareOperator value); - // optional string operand = 2; - void clear_operand(); - static const int kOperandFieldNumber = 2; - const ::std::string& operand() const; - void set_operand(const ::std::string& value); - void set_operand(const char* value); - void set_operand(const char* value, size_t size); - ::std::string* mutable_operand(); - ::std::string* release_operand(); - void set_allocated_operand(::std::string* operand); - // @@protoc_insertion_point(class_scope:milvus.grpc.CompareExpr) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr operand_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr operand_; int operator__; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static CompareExpr* default_instance_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class RangeQuery : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.RangeQuery) */ { +class RangeQuery : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.RangeQuery) */ { public: RangeQuery(); virtual ~RangeQuery(); RangeQuery(const RangeQuery& from); + RangeQuery(RangeQuery&& from) noexcept + : RangeQuery() { + *this = ::std::move(from); + } inline RangeQuery& operator=(const RangeQuery& from) { CopyFrom(from); return *this; } + inline RangeQuery& operator=(RangeQuery&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 RangeQuery& default_instance(); - void Swap(RangeQuery* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const RangeQuery* internal_default_instance() { + return reinterpret_cast( + &_RangeQuery_default_instance_); + } + static constexpr int kIndexInFileMessages = + 37; + + friend void swap(RangeQuery& a, RangeQuery& b) { + a.Swap(&b); + } + inline void Swap(RangeQuery* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline RangeQuery* New() const { return New(NULL); } + inline RangeQuery* New() const final { + return CreateMaybeMessage(nullptr); + } - RangeQuery* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + RangeQuery* 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 RangeQuery& from); void MergeFrom(const RangeQuery& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(RangeQuery* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.RangeQuery"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string field_name = 1; - void clear_field_name(); - static const int kFieldNameFieldNumber = 1; - const ::std::string& field_name() const; - void set_field_name(const ::std::string& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - ::std::string* mutable_field_name(); - ::std::string* release_field_name(); - void set_allocated_field_name(::std::string* field_name); - + enum : int { + kOperandFieldNumber = 2, + kExtraParamsFieldNumber = 4, + kFieldNameFieldNumber = 1, + kBoostFieldNumber = 3, + }; // repeated .milvus.grpc.CompareExpr operand = 2; int operand_size() const; void clear_operand(); - static const int kOperandFieldNumber = 2; - const ::milvus::grpc::CompareExpr& operand(int index) const; ::milvus::grpc::CompareExpr* mutable_operand(int index); - ::milvus::grpc::CompareExpr* add_operand(); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::CompareExpr >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::CompareExpr >* mutable_operand(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::CompareExpr >& + const ::milvus::grpc::CompareExpr& operand(int index) const; + ::milvus::grpc::CompareExpr* add_operand(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::CompareExpr >& operand() const; - // optional float boost = 3; - void clear_boost(); - static const int kBoostFieldNumber = 3; - float boost() const; - void set_boost(float value); - // repeated .milvus.grpc.KeyValuePair extra_params = 4; int extra_params_size() const; void clear_extra_params(); - static const int kExtraParamsFieldNumber = 4; - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::milvus::grpc::KeyValuePair* add_extra_params(); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* mutable_extra_params(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& + const ::milvus::grpc::KeyValuePair& extra_params(int index) const; + ::milvus::grpc::KeyValuePair* add_extra_params(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& extra_params() const; + // string field_name = 1; + void clear_field_name(); + const std::string& field_name() const; + void set_field_name(const std::string& value); + void set_field_name(std::string&& value); + void set_field_name(const char* value); + void set_field_name(const char* value, size_t size); + std::string* mutable_field_name(); + std::string* release_field_name(); + void set_allocated_field_name(std::string* field_name); + + // float boost = 3; + void clear_boost(); + float boost() const; + void set_boost(float value); + // @@protoc_insertion_point(class_scope:milvus.grpc.RangeQuery) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr field_name_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::CompareExpr > operand_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::CompareExpr > operand_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; float boost_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static RangeQuery* default_instance_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class VectorQuery : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorQuery) */ { +class VectorQuery : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorQuery) */ { public: VectorQuery(); virtual ~VectorQuery(); VectorQuery(const VectorQuery& from); + VectorQuery(VectorQuery&& from) noexcept + : VectorQuery() { + *this = ::std::move(from); + } inline VectorQuery& operator=(const VectorQuery& from) { CopyFrom(from); return *this; } + inline VectorQuery& operator=(VectorQuery&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 VectorQuery& default_instance(); - void Swap(VectorQuery* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const VectorQuery* internal_default_instance() { + return reinterpret_cast( + &_VectorQuery_default_instance_); + } + static constexpr int kIndexInFileMessages = + 38; + + friend void swap(VectorQuery& a, VectorQuery& b) { + a.Swap(&b); + } + inline void Swap(VectorQuery* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline VectorQuery* New() const { return New(NULL); } + inline VectorQuery* New() const final { + return CreateMaybeMessage(nullptr); + } - VectorQuery* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + VectorQuery* 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 VectorQuery& from); void MergeFrom(const VectorQuery& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(VectorQuery* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.VectorQuery"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string field_name = 1; - void clear_field_name(); - static const int kFieldNameFieldNumber = 1; - const ::std::string& field_name() const; - void set_field_name(const ::std::string& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - ::std::string* mutable_field_name(); - ::std::string* release_field_name(); - void set_allocated_field_name(::std::string* field_name); - - // optional float query_boost = 2; - void clear_query_boost(); - static const int kQueryBoostFieldNumber = 2; - float query_boost() const; - void set_query_boost(float value); - + enum : int { + kRecordsFieldNumber = 3, + kExtraParamsFieldNumber = 5, + kFieldNameFieldNumber = 1, + kTopkFieldNumber = 4, + kQueryBoostFieldNumber = 2, + }; // repeated .milvus.grpc.VectorRowRecord records = 3; int records_size() const; void clear_records(); - static const int kRecordsFieldNumber = 3; - const ::milvus::grpc::VectorRowRecord& records(int index) const; ::milvus::grpc::VectorRowRecord* mutable_records(int index); - ::milvus::grpc::VectorRowRecord* add_records(); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* mutable_records(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& + const ::milvus::grpc::VectorRowRecord& records(int index) const; + ::milvus::grpc::VectorRowRecord* add_records(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& records() const; - // optional int64 topk = 4; - void clear_topk(); - static const int kTopkFieldNumber = 4; - ::google::protobuf::int64 topk() const; - void set_topk(::google::protobuf::int64 value); - // repeated .milvus.grpc.KeyValuePair extra_params = 5; int extra_params_size() const; void clear_extra_params(); - static const int kExtraParamsFieldNumber = 5; - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::milvus::grpc::KeyValuePair* add_extra_params(); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* mutable_extra_params(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& + const ::milvus::grpc::KeyValuePair& extra_params(int index) const; + ::milvus::grpc::KeyValuePair* add_extra_params(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& extra_params() const; + // string field_name = 1; + void clear_field_name(); + const std::string& field_name() const; + void set_field_name(const std::string& value); + void set_field_name(std::string&& value); + void set_field_name(const char* value); + void set_field_name(const char* value, size_t size); + std::string* mutable_field_name(); + std::string* release_field_name(); + void set_allocated_field_name(std::string* field_name); + + // int64 topk = 4; + void clear_topk(); + ::PROTOBUF_NAMESPACE_ID::int64 topk() const; + void set_topk(::PROTOBUF_NAMESPACE_ID::int64 value); + + // float query_boost = 2; + void clear_query_boost(); + float query_boost() const; + void set_query_boost(float value); + // @@protoc_insertion_point(class_scope:milvus.grpc.VectorQuery) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr field_name_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorRowRecord > records_; - ::google::protobuf::int64 topk_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord > records_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; + ::PROTOBUF_NAMESPACE_ID::int64 topk_; float query_boost_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static VectorQuery* default_instance_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class BooleanQuery : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.BooleanQuery) */ { +class BooleanQuery : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.BooleanQuery) */ { public: BooleanQuery(); virtual ~BooleanQuery(); BooleanQuery(const BooleanQuery& from); + BooleanQuery(BooleanQuery&& from) noexcept + : BooleanQuery() { + *this = ::std::move(from); + } inline BooleanQuery& operator=(const BooleanQuery& from) { CopyFrom(from); return *this; } + inline BooleanQuery& operator=(BooleanQuery&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 BooleanQuery& default_instance(); - void Swap(BooleanQuery* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BooleanQuery* internal_default_instance() { + return reinterpret_cast( + &_BooleanQuery_default_instance_); + } + static constexpr int kIndexInFileMessages = + 39; + + friend void swap(BooleanQuery& a, BooleanQuery& b) { + a.Swap(&b); + } + inline void Swap(BooleanQuery* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline BooleanQuery* New() const { return New(NULL); } + inline BooleanQuery* New() const final { + return CreateMaybeMessage(nullptr); + } - BooleanQuery* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + BooleanQuery* 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 BooleanQuery& from); void MergeFrom(const BooleanQuery& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(BooleanQuery* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.BooleanQuery"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional .milvus.grpc.Occur occur = 1; - void clear_occur(); - static const int kOccurFieldNumber = 1; - ::milvus::grpc::Occur occur() const; - void set_occur(::milvus::grpc::Occur value); - + enum : int { + kGeneralQueryFieldNumber = 2, + kOccurFieldNumber = 1, + }; // repeated .milvus.grpc.GeneralQuery general_query = 2; int general_query_size() const; void clear_general_query(); - static const int kGeneralQueryFieldNumber = 2; - const ::milvus::grpc::GeneralQuery& general_query(int index) const; ::milvus::grpc::GeneralQuery* mutable_general_query(int index); - ::milvus::grpc::GeneralQuery* add_general_query(); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::GeneralQuery >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::GeneralQuery >* mutable_general_query(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::GeneralQuery >& + const ::milvus::grpc::GeneralQuery& general_query(int index) const; + ::milvus::grpc::GeneralQuery* add_general_query(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::GeneralQuery >& general_query() const; + // .milvus.grpc.Occur occur = 1; + void clear_occur(); + ::milvus::grpc::Occur occur() const; + void set_occur(::milvus::grpc::Occur value); + // @@protoc_insertion_point(class_scope:milvus.grpc.BooleanQuery) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::GeneralQuery > general_query_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::GeneralQuery > general_query_; int occur_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static BooleanQuery* default_instance_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class GeneralQuery : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.GeneralQuery) */ { +class GeneralQuery : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.GeneralQuery) */ { public: GeneralQuery(); virtual ~GeneralQuery(); GeneralQuery(const GeneralQuery& from); + GeneralQuery(GeneralQuery&& from) noexcept + : GeneralQuery() { + *this = ::std::move(from); + } inline GeneralQuery& operator=(const GeneralQuery& from) { CopyFrom(from); return *this; } + inline GeneralQuery& operator=(GeneralQuery&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 GeneralQuery& default_instance(); enum QueryCase { @@ -4587,101 +6637,134 @@ class GeneralQuery : public ::google::protobuf::Message /* @@protoc_insertion_po QUERY_NOT_SET = 0, }; - void Swap(GeneralQuery* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GeneralQuery* internal_default_instance() { + return reinterpret_cast( + &_GeneralQuery_default_instance_); + } + static constexpr int kIndexInFileMessages = + 40; + + friend void swap(GeneralQuery& a, GeneralQuery& b) { + a.Swap(&b); + } + inline void Swap(GeneralQuery* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline GeneralQuery* New() const { return New(NULL); } + inline GeneralQuery* New() const final { + return CreateMaybeMessage(nullptr); + } - GeneralQuery* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + GeneralQuery* 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 GeneralQuery& from); void MergeFrom(const GeneralQuery& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(GeneralQuery* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.GeneralQuery"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional .milvus.grpc.BooleanQuery boolean_query = 1; + enum : int { + kBooleanQueryFieldNumber = 1, + kTermQueryFieldNumber = 2, + kRangeQueryFieldNumber = 3, + kVectorQueryFieldNumber = 4, + }; + // .milvus.grpc.BooleanQuery boolean_query = 1; bool has_boolean_query() const; void clear_boolean_query(); - static const int kBooleanQueryFieldNumber = 1; const ::milvus::grpc::BooleanQuery& boolean_query() const; - ::milvus::grpc::BooleanQuery* mutable_boolean_query(); ::milvus::grpc::BooleanQuery* release_boolean_query(); + ::milvus::grpc::BooleanQuery* mutable_boolean_query(); void set_allocated_boolean_query(::milvus::grpc::BooleanQuery* boolean_query); - // optional .milvus.grpc.TermQuery term_query = 2; + // .milvus.grpc.TermQuery term_query = 2; bool has_term_query() const; void clear_term_query(); - static const int kTermQueryFieldNumber = 2; const ::milvus::grpc::TermQuery& term_query() const; - ::milvus::grpc::TermQuery* mutable_term_query(); ::milvus::grpc::TermQuery* release_term_query(); + ::milvus::grpc::TermQuery* mutable_term_query(); void set_allocated_term_query(::milvus::grpc::TermQuery* term_query); - // optional .milvus.grpc.RangeQuery range_query = 3; + // .milvus.grpc.RangeQuery range_query = 3; bool has_range_query() const; void clear_range_query(); - static const int kRangeQueryFieldNumber = 3; const ::milvus::grpc::RangeQuery& range_query() const; - ::milvus::grpc::RangeQuery* mutable_range_query(); ::milvus::grpc::RangeQuery* release_range_query(); + ::milvus::grpc::RangeQuery* mutable_range_query(); void set_allocated_range_query(::milvus::grpc::RangeQuery* range_query); - // optional .milvus.grpc.VectorQuery vector_query = 4; + // .milvus.grpc.VectorQuery vector_query = 4; bool has_vector_query() const; void clear_vector_query(); - static const int kVectorQueryFieldNumber = 4; const ::milvus::grpc::VectorQuery& vector_query() const; - ::milvus::grpc::VectorQuery* mutable_vector_query(); ::milvus::grpc::VectorQuery* release_vector_query(); + ::milvus::grpc::VectorQuery* mutable_vector_query(); void set_allocated_vector_query(::milvus::grpc::VectorQuery* vector_query); + void clear_query(); QueryCase query_case() const; // @@protoc_insertion_point(class_scope:milvus.grpc.GeneralQuery) private: - inline void set_has_boolean_query(); - inline void set_has_term_query(); - inline void set_has_range_query(); - inline void set_has_vector_query(); + class _Internal; + void set_has_boolean_query(); + void set_has_term_query(); + void set_has_range_query(); + void set_has_vector_query(); inline bool has_query() const; - void clear_query(); inline void clear_has_query(); - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; union QueryUnion { QueryUnion() {} ::milvus::grpc::BooleanQuery* boolean_query_; @@ -4689,889 +6772,1147 @@ class GeneralQuery : public ::google::protobuf::Message /* @@protoc_insertion_po ::milvus::grpc::RangeQuery* range_query_; ::milvus::grpc::VectorQuery* vector_query_; } query_; - mutable int _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static GeneralQuery* default_instance_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class SearchParamPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchParamPB) */ { +class SearchParamPB : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchParamPB) */ { public: SearchParamPB(); virtual ~SearchParamPB(); SearchParamPB(const SearchParamPB& from); + SearchParamPB(SearchParamPB&& from) noexcept + : SearchParamPB() { + *this = ::std::move(from); + } inline SearchParamPB& operator=(const SearchParamPB& from) { CopyFrom(from); return *this; } + inline SearchParamPB& operator=(SearchParamPB&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 SearchParamPB& default_instance(); - void Swap(SearchParamPB* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SearchParamPB* internal_default_instance() { + return reinterpret_cast( + &_SearchParamPB_default_instance_); + } + static constexpr int kIndexInFileMessages = + 41; + + friend void swap(SearchParamPB& a, SearchParamPB& b) { + a.Swap(&b); + } + inline void Swap(SearchParamPB* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline SearchParamPB* New() const { return New(NULL); } + inline SearchParamPB* New() const final { + return CreateMaybeMessage(nullptr); + } - SearchParamPB* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + SearchParamPB* 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 SearchParamPB& from); void MergeFrom(const SearchParamPB& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(SearchParamPB* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.SearchParamPB"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string collection_name = 1; - void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); - + enum : int { + kPartitionTagArrayFieldNumber = 2, + kExtraParamsFieldNumber = 4, + kCollectionNameFieldNumber = 1, + kGeneralQueryFieldNumber = 3, + }; // repeated string partition_tag_array = 2; int partition_tag_array_size() const; void clear_partition_tag_array(); - static const int kPartitionTagArrayFieldNumber = 2; - const ::std::string& partition_tag_array(int index) const; - ::std::string* mutable_partition_tag_array(int index); - void set_partition_tag_array(int index, const ::std::string& value); + const std::string& partition_tag_array(int index) const; + std::string* mutable_partition_tag_array(int index); + void set_partition_tag_array(int index, const std::string& value); + void set_partition_tag_array(int index, std::string&& value); void set_partition_tag_array(int index, const char* value); void set_partition_tag_array(int index, const char* value, size_t size); - ::std::string* add_partition_tag_array(); - void add_partition_tag_array(const ::std::string& value); + std::string* add_partition_tag_array(); + void add_partition_tag_array(const std::string& value); + void add_partition_tag_array(std::string&& value); void add_partition_tag_array(const char* value); void add_partition_tag_array(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& partition_tag_array() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_partition_tag_array(); - - // optional .milvus.grpc.GeneralQuery general_query = 3; - bool has_general_query() const; - void clear_general_query(); - static const int kGeneralQueryFieldNumber = 3; - const ::milvus::grpc::GeneralQuery& general_query() const; - ::milvus::grpc::GeneralQuery* mutable_general_query(); - ::milvus::grpc::GeneralQuery* release_general_query(); - void set_allocated_general_query(::milvus::grpc::GeneralQuery* general_query); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& partition_tag_array() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_partition_tag_array(); // repeated .milvus.grpc.KeyValuePair extra_params = 4; int extra_params_size() const; void clear_extra_params(); - static const int kExtraParamsFieldNumber = 4; - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::milvus::grpc::KeyValuePair* add_extra_params(); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* mutable_extra_params(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& + const ::milvus::grpc::KeyValuePair& extra_params(int index) const; + ::milvus::grpc::KeyValuePair* add_extra_params(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& extra_params() const; + // string collection_name = 1; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // .milvus.grpc.GeneralQuery general_query = 3; + bool has_general_query() const; + void clear_general_query(); + const ::milvus::grpc::GeneralQuery& general_query() const; + ::milvus::grpc::GeneralQuery* release_general_query(); + ::milvus::grpc::GeneralQuery* mutable_general_query(); + void set_allocated_general_query(::milvus::grpc::GeneralQuery* general_query); + // @@protoc_insertion_point(class_scope:milvus.grpc.SearchParamPB) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - ::google::protobuf::RepeatedPtrField< ::std::string> partition_tag_array_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField partition_tag_array_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; ::milvus::grpc::GeneralQuery* general_query_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static SearchParamPB* default_instance_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class InsertOrDeleteMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.InsertOrDeleteMsg) */ { +class InsertOrDeleteMsg : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.InsertOrDeleteMsg) */ { public: InsertOrDeleteMsg(); virtual ~InsertOrDeleteMsg(); InsertOrDeleteMsg(const InsertOrDeleteMsg& from); + InsertOrDeleteMsg(InsertOrDeleteMsg&& from) noexcept + : InsertOrDeleteMsg() { + *this = ::std::move(from); + } inline InsertOrDeleteMsg& operator=(const InsertOrDeleteMsg& from) { CopyFrom(from); return *this; } + inline InsertOrDeleteMsg& operator=(InsertOrDeleteMsg&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 InsertOrDeleteMsg& default_instance(); - void Swap(InsertOrDeleteMsg* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const InsertOrDeleteMsg* internal_default_instance() { + return reinterpret_cast( + &_InsertOrDeleteMsg_default_instance_); + } + static constexpr int kIndexInFileMessages = + 42; + + friend void swap(InsertOrDeleteMsg& a, InsertOrDeleteMsg& b) { + a.Swap(&b); + } + inline void Swap(InsertOrDeleteMsg* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline InsertOrDeleteMsg* New() const { return New(NULL); } + inline InsertOrDeleteMsg* New() const final { + return CreateMaybeMessage(nullptr); + } - InsertOrDeleteMsg* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + InsertOrDeleteMsg* 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 InsertOrDeleteMsg& from); void MergeFrom(const InsertOrDeleteMsg& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(InsertOrDeleteMsg* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.InsertOrDeleteMsg"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string collection_name = 1; - void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); - - // optional .milvus.grpc.RowData rows_data = 2; - bool has_rows_data() const; - void clear_rows_data(); - static const int kRowsDataFieldNumber = 2; - const ::milvus::grpc::RowData& rows_data() const; - ::milvus::grpc::RowData* mutable_rows_data(); - ::milvus::grpc::RowData* release_rows_data(); - void set_allocated_rows_data(::milvus::grpc::RowData* rows_data); - - // optional int64 uid = 3; - void clear_uid(); - static const int kUidFieldNumber = 3; - ::google::protobuf::int64 uid() const; - void set_uid(::google::protobuf::int64 value); - - // optional string partition_tag = 4; - void clear_partition_tag(); - static const int kPartitionTagFieldNumber = 4; - const ::std::string& partition_tag() const; - void set_partition_tag(const ::std::string& value); - void set_partition_tag(const char* value); - void set_partition_tag(const char* value, size_t size); - ::std::string* mutable_partition_tag(); - ::std::string* release_partition_tag(); - void set_allocated_partition_tag(::std::string* partition_tag); - - // optional int64 timestamp = 5; - void clear_timestamp(); - static const int kTimestampFieldNumber = 5; - ::google::protobuf::int64 timestamp() const; - void set_timestamp(::google::protobuf::int64 value); - - // optional int64 segment_id = 6; - void clear_segment_id(); - static const int kSegmentIdFieldNumber = 6; - ::google::protobuf::int64 segment_id() const; - void set_segment_id(::google::protobuf::int64 value); - - // optional int64 channel_id = 7; - void clear_channel_id(); - static const int kChannelIdFieldNumber = 7; - ::google::protobuf::int64 channel_id() const; - void set_channel_id(::google::protobuf::int64 value); - - // optional .milvus.grpc.OpType op = 8; - void clear_op(); - static const int kOpFieldNumber = 8; - ::milvus::grpc::OpType op() const; - void set_op(::milvus::grpc::OpType value); - - // optional int64 client_id = 9; - void clear_client_id(); - static const int kClientIdFieldNumber = 9; - ::google::protobuf::int64 client_id() const; - void set_client_id(::google::protobuf::int64 value); - + enum : int { + kExtraParamsFieldNumber = 10, + kCollectionNameFieldNumber = 1, + kPartitionTagFieldNumber = 4, + kRowsDataFieldNumber = 2, + kUidFieldNumber = 3, + kTimestampFieldNumber = 5, + kSegmentIdFieldNumber = 6, + kChannelIdFieldNumber = 7, + kClientIdFieldNumber = 9, + kOpFieldNumber = 8, + }; // repeated .milvus.grpc.KeyValuePair extra_params = 10; int extra_params_size() const; void clear_extra_params(); - static const int kExtraParamsFieldNumber = 10; - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::milvus::grpc::KeyValuePair* add_extra_params(); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* mutable_extra_params(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& + const ::milvus::grpc::KeyValuePair& extra_params(int index) const; + ::milvus::grpc::KeyValuePair* add_extra_params(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& extra_params() const; + // string collection_name = 1; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // string partition_tag = 4; + void clear_partition_tag(); + const std::string& partition_tag() const; + void set_partition_tag(const std::string& value); + void set_partition_tag(std::string&& value); + void set_partition_tag(const char* value); + void set_partition_tag(const char* value, size_t size); + std::string* mutable_partition_tag(); + std::string* release_partition_tag(); + void set_allocated_partition_tag(std::string* partition_tag); + + // .milvus.grpc.RowData rows_data = 2; + bool has_rows_data() const; + void clear_rows_data(); + const ::milvus::grpc::RowData& rows_data() const; + ::milvus::grpc::RowData* release_rows_data(); + ::milvus::grpc::RowData* mutable_rows_data(); + void set_allocated_rows_data(::milvus::grpc::RowData* rows_data); + + // int64 uid = 3; + void clear_uid(); + ::PROTOBUF_NAMESPACE_ID::int64 uid() const; + void set_uid(::PROTOBUF_NAMESPACE_ID::int64 value); + + // int64 timestamp = 5; + void clear_timestamp(); + ::PROTOBUF_NAMESPACE_ID::int64 timestamp() const; + void set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + + // int64 segment_id = 6; + void clear_segment_id(); + ::PROTOBUF_NAMESPACE_ID::int64 segment_id() const; + void set_segment_id(::PROTOBUF_NAMESPACE_ID::int64 value); + + // int64 channel_id = 7; + void clear_channel_id(); + ::PROTOBUF_NAMESPACE_ID::int64 channel_id() const; + void set_channel_id(::PROTOBUF_NAMESPACE_ID::int64 value); + + // int64 client_id = 9; + void clear_client_id(); + ::PROTOBUF_NAMESPACE_ID::int64 client_id() const; + void set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value); + + // .milvus.grpc.OpType op = 8; + void clear_op(); + ::milvus::grpc::OpType op() const; + void set_op(::milvus::grpc::OpType value); + // @@protoc_insertion_point(class_scope:milvus.grpc.InsertOrDeleteMsg) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr partition_tag_; ::milvus::grpc::RowData* rows_data_; - ::google::protobuf::int64 uid_; - ::google::protobuf::internal::ArenaStringPtr partition_tag_; - ::google::protobuf::int64 timestamp_; - ::google::protobuf::int64 segment_id_; - ::google::protobuf::int64 channel_id_; - ::google::protobuf::int64 client_id_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; + ::PROTOBUF_NAMESPACE_ID::int64 uid_; + ::PROTOBUF_NAMESPACE_ID::int64 timestamp_; + ::PROTOBUF_NAMESPACE_ID::int64 segment_id_; + ::PROTOBUF_NAMESPACE_ID::int64 channel_id_; + ::PROTOBUF_NAMESPACE_ID::int64 client_id_; int op_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static InsertOrDeleteMsg* default_instance_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class SearchMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchMsg) */ { +class SearchMsg : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchMsg) */ { public: SearchMsg(); virtual ~SearchMsg(); SearchMsg(const SearchMsg& from); + SearchMsg(SearchMsg&& from) noexcept + : SearchMsg() { + *this = ::std::move(from); + } inline SearchMsg& operator=(const SearchMsg& from) { CopyFrom(from); return *this; } + inline SearchMsg& operator=(SearchMsg&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 SearchMsg& default_instance(); - void Swap(SearchMsg* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SearchMsg* internal_default_instance() { + return reinterpret_cast( + &_SearchMsg_default_instance_); + } + static constexpr int kIndexInFileMessages = + 43; + + friend void swap(SearchMsg& a, SearchMsg& b) { + a.Swap(&b); + } + inline void Swap(SearchMsg* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline SearchMsg* New() const { return New(NULL); } + inline SearchMsg* New() const final { + return CreateMaybeMessage(nullptr); + } - SearchMsg* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + SearchMsg* 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 SearchMsg& from); void MergeFrom(const SearchMsg& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(SearchMsg* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.SearchMsg"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string collection_name = 1; - void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); - - // optional .milvus.grpc.VectorRowRecord records = 2; - bool has_records() const; - void clear_records(); - static const int kRecordsFieldNumber = 2; - const ::milvus::grpc::VectorRowRecord& records() const; - ::milvus::grpc::VectorRowRecord* mutable_records(); - ::milvus::grpc::VectorRowRecord* release_records(); - void set_allocated_records(::milvus::grpc::VectorRowRecord* records); - - // optional string partition_tag = 3; - void clear_partition_tag(); - static const int kPartitionTagFieldNumber = 3; - const ::std::string& partition_tag() const; - void set_partition_tag(const ::std::string& value); - void set_partition_tag(const char* value); - void set_partition_tag(const char* value, size_t size); - ::std::string* mutable_partition_tag(); - ::std::string* release_partition_tag(); - void set_allocated_partition_tag(::std::string* partition_tag); - - // optional int64 uid = 4; - void clear_uid(); - static const int kUidFieldNumber = 4; - ::google::protobuf::int64 uid() const; - void set_uid(::google::protobuf::int64 value); - - // optional int64 timestamp = 5; - void clear_timestamp(); - static const int kTimestampFieldNumber = 5; - ::google::protobuf::int64 timestamp() const; - void set_timestamp(::google::protobuf::int64 value); - - // optional int64 client_id = 6; - void clear_client_id(); - static const int kClientIdFieldNumber = 6; - ::google::protobuf::int64 client_id() const; - void set_client_id(::google::protobuf::int64 value); - + enum : int { + kExtraParamsFieldNumber = 7, + kCollectionNameFieldNumber = 1, + kPartitionTagFieldNumber = 3, + kRecordsFieldNumber = 2, + kUidFieldNumber = 4, + kTimestampFieldNumber = 5, + kClientIdFieldNumber = 6, + }; // repeated .milvus.grpc.KeyValuePair extra_params = 7; int extra_params_size() const; void clear_extra_params(); - static const int kExtraParamsFieldNumber = 7; - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::milvus::grpc::KeyValuePair* add_extra_params(); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* mutable_extra_params(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& + const ::milvus::grpc::KeyValuePair& extra_params(int index) const; + ::milvus::grpc::KeyValuePair* add_extra_params(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& extra_params() const; + // string collection_name = 1; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // string partition_tag = 3; + void clear_partition_tag(); + const std::string& partition_tag() const; + void set_partition_tag(const std::string& value); + void set_partition_tag(std::string&& value); + void set_partition_tag(const char* value); + void set_partition_tag(const char* value, size_t size); + std::string* mutable_partition_tag(); + std::string* release_partition_tag(); + void set_allocated_partition_tag(std::string* partition_tag); + + // .milvus.grpc.VectorRowRecord records = 2; + bool has_records() const; + void clear_records(); + const ::milvus::grpc::VectorRowRecord& records() const; + ::milvus::grpc::VectorRowRecord* release_records(); + ::milvus::grpc::VectorRowRecord* mutable_records(); + void set_allocated_records(::milvus::grpc::VectorRowRecord* records); + + // int64 uid = 4; + void clear_uid(); + ::PROTOBUF_NAMESPACE_ID::int64 uid() const; + void set_uid(::PROTOBUF_NAMESPACE_ID::int64 value); + + // int64 timestamp = 5; + void clear_timestamp(); + ::PROTOBUF_NAMESPACE_ID::int64 timestamp() const; + void set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + + // int64 client_id = 6; + void clear_client_id(); + ::PROTOBUF_NAMESPACE_ID::int64 client_id() const; + void set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value); + // @@protoc_insertion_point(class_scope:milvus.grpc.SearchMsg) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr partition_tag_; ::milvus::grpc::VectorRowRecord* records_; - ::google::protobuf::internal::ArenaStringPtr partition_tag_; - ::google::protobuf::int64 uid_; - ::google::protobuf::int64 timestamp_; - ::google::protobuf::int64 client_id_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static SearchMsg* default_instance_; + ::PROTOBUF_NAMESPACE_ID::int64 uid_; + ::PROTOBUF_NAMESPACE_ID::int64 timestamp_; + ::PROTOBUF_NAMESPACE_ID::int64 client_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class TimeSyncMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.TimeSyncMsg) */ { +class TimeSyncMsg : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.TimeSyncMsg) */ { public: TimeSyncMsg(); virtual ~TimeSyncMsg(); TimeSyncMsg(const TimeSyncMsg& from); + TimeSyncMsg(TimeSyncMsg&& from) noexcept + : TimeSyncMsg() { + *this = ::std::move(from); + } inline TimeSyncMsg& operator=(const TimeSyncMsg& from) { CopyFrom(from); return *this; } + inline TimeSyncMsg& operator=(TimeSyncMsg&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 TimeSyncMsg& default_instance(); - void Swap(TimeSyncMsg* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TimeSyncMsg* internal_default_instance() { + return reinterpret_cast( + &_TimeSyncMsg_default_instance_); + } + static constexpr int kIndexInFileMessages = + 44; + + friend void swap(TimeSyncMsg& a, TimeSyncMsg& b) { + a.Swap(&b); + } + inline void Swap(TimeSyncMsg* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline TimeSyncMsg* New() const { return New(NULL); } + inline TimeSyncMsg* New() const final { + return CreateMaybeMessage(nullptr); + } - TimeSyncMsg* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + TimeSyncMsg* 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 TimeSyncMsg& from); void MergeFrom(const TimeSyncMsg& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(TimeSyncMsg* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.TimeSyncMsg"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional int64 peer_Id = 1; - void clear_peer_id(); - static const int kPeerIdFieldNumber = 1; - ::google::protobuf::int64 peer_id() const; - void set_peer_id(::google::protobuf::int64 value); + enum : int { + kClientIdFieldNumber = 1, + kTimestampFieldNumber = 2, + kMsgTypeFieldNumber = 3, + }; + // int64 ClientId = 1; + void clear_clientid(); + ::PROTOBUF_NAMESPACE_ID::int64 clientid() const; + void set_clientid(::PROTOBUF_NAMESPACE_ID::int64 value); - // optional int64 Timestamp = 2; + // int64 Timestamp = 2; void clear_timestamp(); - static const int kTimestampFieldNumber = 2; - ::google::protobuf::int64 timestamp() const; - void set_timestamp(::google::protobuf::int64 value); + ::PROTOBUF_NAMESPACE_ID::int64 timestamp() const; + void set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); - // optional .milvus.grpc.SyncType sync_type = 3; - void clear_sync_type(); - static const int kSyncTypeFieldNumber = 3; - ::milvus::grpc::SyncType sync_type() const; - void set_sync_type(::milvus::grpc::SyncType value); + // .milvus.grpc.OpType MsgType = 3; + void clear_msgtype(); + ::milvus::grpc::OpType msgtype() const; + void set_msgtype(::milvus::grpc::OpType value); // @@protoc_insertion_point(class_scope:milvus.grpc.TimeSyncMsg) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::int64 peer_id_; - ::google::protobuf::int64 timestamp_; - int sync_type_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static TimeSyncMsg* default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::int64 clientid_; + ::PROTOBUF_NAMESPACE_ID::int64 timestamp_; + int msgtype_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class SegmentRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SegmentRecord) */ { +class SegmentRecord : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SegmentRecord) */ { public: SegmentRecord(); virtual ~SegmentRecord(); SegmentRecord(const SegmentRecord& from); + SegmentRecord(SegmentRecord&& from) noexcept + : SegmentRecord() { + *this = ::std::move(from); + } inline SegmentRecord& operator=(const SegmentRecord& from) { CopyFrom(from); return *this; } + inline SegmentRecord& operator=(SegmentRecord&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 SegmentRecord& default_instance(); - void Swap(SegmentRecord* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SegmentRecord* internal_default_instance() { + return reinterpret_cast( + &_SegmentRecord_default_instance_); + } + static constexpr int kIndexInFileMessages = + 45; + + friend void swap(SegmentRecord& a, SegmentRecord& b) { + a.Swap(&b); + } + inline void Swap(SegmentRecord* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline SegmentRecord* New() const { return New(NULL); } + inline SegmentRecord* New() const final { + return CreateMaybeMessage(nullptr); + } - SegmentRecord* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + SegmentRecord* 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 SegmentRecord& from); void MergeFrom(const SegmentRecord& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(SegmentRecord* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.SegmentRecord"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional int64 uid = 1; - void clear_uid(); - static const int kUidFieldNumber = 1; - ::google::protobuf::int64 uid() const; - void set_uid(::google::protobuf::int64 value); - + enum : int { + kSegmentIdFieldNumber = 2, + kUidFieldNumber = 1, + }; // repeated int64 segment_id = 2; int segment_id_size() const; void clear_segment_id(); - static const int kSegmentIdFieldNumber = 2; - ::google::protobuf::int64 segment_id(int index) const; - void set_segment_id(int index, ::google::protobuf::int64 value); - void add_segment_id(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& + ::PROTOBUF_NAMESPACE_ID::int64 segment_id(int index) const; + void set_segment_id(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); + void add_segment_id(::PROTOBUF_NAMESPACE_ID::int64 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& segment_id() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* mutable_segment_id(); + // int64 uid = 1; + void clear_uid(); + ::PROTOBUF_NAMESPACE_ID::int64 uid() const; + void set_uid(::PROTOBUF_NAMESPACE_ID::int64 value); + // @@protoc_insertion_point(class_scope:milvus.grpc.SegmentRecord) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::int64 uid_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > segment_id_; - mutable int _segment_id_cached_byte_size_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static SegmentRecord* default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > segment_id_; + mutable std::atomic _segment_id_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::int64 uid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // ------------------------------------------------------------------- -class Key2SegMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Key2SegMsg) */ { +class Key2SegMsg : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Key2SegMsg) */ { public: Key2SegMsg(); virtual ~Key2SegMsg(); Key2SegMsg(const Key2SegMsg& from); + Key2SegMsg(Key2SegMsg&& from) noexcept + : Key2SegMsg() { + *this = ::std::move(from); + } inline Key2SegMsg& operator=(const Key2SegMsg& from) { CopyFrom(from); return *this; } + inline Key2SegMsg& operator=(Key2SegMsg&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - static const ::google::protobuf::Descriptor* descriptor(); + 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 Key2SegMsg& default_instance(); - void Swap(Key2SegMsg* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Key2SegMsg* internal_default_instance() { + return reinterpret_cast( + &_Key2SegMsg_default_instance_); + } + static constexpr int kIndexInFileMessages = + 46; + + friend void swap(Key2SegMsg& a, Key2SegMsg& b) { + a.Swap(&b); + } + inline void Swap(Key2SegMsg* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- - inline Key2SegMsg* New() const { return New(NULL); } + inline Key2SegMsg* New() const final { + return CreateMaybeMessage(nullptr); + } - Key2SegMsg* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + Key2SegMsg* 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 Key2SegMsg& from); void MergeFrom(const Key2SegMsg& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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( - ::google::protobuf::io::CodedInputStream* input); + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + ::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: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(Key2SegMsg* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.Key2SegMsg"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return nullptr; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional int64 client_id = 1; - void clear_client_id(); - static const int kClientIdFieldNumber = 1; - ::google::protobuf::int64 client_id() const; - void set_client_id(::google::protobuf::int64 value); - - // optional .milvus.grpc.SegmentRecord records = 2; + enum : int { + kRecordsFieldNumber = 2, + kClientIdFieldNumber = 1, + kMsgTypeFieldNumber = 3, + }; + // .milvus.grpc.SegmentRecord records = 2; bool has_records() const; void clear_records(); - static const int kRecordsFieldNumber = 2; const ::milvus::grpc::SegmentRecord& records() const; - ::milvus::grpc::SegmentRecord* mutable_records(); ::milvus::grpc::SegmentRecord* release_records(); + ::milvus::grpc::SegmentRecord* mutable_records(); void set_allocated_records(::milvus::grpc::SegmentRecord* records); + // int64 client_id = 1; + void clear_client_id(); + ::PROTOBUF_NAMESPACE_ID::int64 client_id() const; + void set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value); + + // .milvus.grpc.OpType msg_type = 3; + void clear_msg_type(); + ::milvus::grpc::OpType msg_type() const; + void set_msg_type(::milvus::grpc::OpType value); + // @@protoc_insertion_point(class_scope:milvus.grpc.Key2SegMsg) private: + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::int64 client_id_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::milvus::grpc::SegmentRecord* records_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static Key2SegMsg* default_instance_; + ::PROTOBUF_NAMESPACE_ID::int64 client_id_; + int msg_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; }; // =================================================================== // =================================================================== -#if !PROTOBUF_INLINE_NOT_IN_HEADERS -// Status - -// optional .milvus.grpc.ErrorCode error_code = 1; -inline void Status::clear_error_code() { - error_code_ = 0; -} -inline ::milvus::grpc::ErrorCode Status::error_code() const { - // @@protoc_insertion_point(field_get:milvus.grpc.Status.error_code) - return static_cast< ::milvus::grpc::ErrorCode >(error_code_); -} -inline void Status::set_error_code(::milvus::grpc::ErrorCode value) { - - error_code_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.Status.error_code) -} - -// optional string reason = 2; -inline void Status::clear_reason() { - reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Status::reason() const { - // @@protoc_insertion_point(field_get:milvus.grpc.Status.reason) - return reason_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Status::set_reason(const ::std::string& value) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.Status.reason) -} -inline void Status::set_reason(const char* value) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.Status.reason) -} -inline void Status::set_reason(const char* value, size_t size) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.Status.reason) -} -inline ::std::string* Status::mutable_reason() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.Status.reason) - return reason_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Status::release_reason() { - // @@protoc_insertion_point(field_release:milvus.grpc.Status.reason) - - return reason_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Status::set_allocated_reason(::std::string* reason) { - if (reason != NULL) { - - } else { - - } - reason_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reason); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Status.reason) -} - -// ------------------------------------------------------------------- - +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ // KeyValuePair -// optional string key = 1; +// string key = 1; inline void KeyValuePair::clear_key() { - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& KeyValuePair::key() const { +inline const std::string& KeyValuePair::key() const { // @@protoc_insertion_point(field_get:milvus.grpc.KeyValuePair.key) - return key_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return key_.GetNoArena(); } -inline void KeyValuePair::set_key(const ::std::string& value) { +inline void KeyValuePair::set_key(const std::string& value) { - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.KeyValuePair.key) } -inline void KeyValuePair::set_key(const char* value) { +inline void KeyValuePair::set_key(std::string&& value) { - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + key_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.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.grpc.KeyValuePair.key) } inline void KeyValuePair::set_key(const char* value, size_t size) { - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.KeyValuePair.key) } -inline ::std::string* KeyValuePair::mutable_key() { +inline std::string* KeyValuePair::mutable_key() { // @@protoc_insertion_point(field_mutable:milvus.grpc.KeyValuePair.key) - return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* KeyValuePair::release_key() { +inline std::string* KeyValuePair::release_key() { // @@protoc_insertion_point(field_release:milvus.grpc.KeyValuePair.key) - return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return key_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void KeyValuePair::set_allocated_key(::std::string* key) { - if (key != NULL) { +inline void KeyValuePair::set_allocated_key(std::string* key) { + if (key != nullptr) { } else { } - key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); + key_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.KeyValuePair.key) } -// optional string value = 2; +// string value = 2; inline void KeyValuePair::clear_value() { - value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& KeyValuePair::value() const { +inline const std::string& KeyValuePair::value() const { // @@protoc_insertion_point(field_get:milvus.grpc.KeyValuePair.value) - return value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return value_.GetNoArena(); } -inline void KeyValuePair::set_value(const ::std::string& value) { +inline void KeyValuePair::set_value(const std::string& value) { - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.KeyValuePair.value) } -inline void KeyValuePair::set_value(const char* value) { +inline void KeyValuePair::set_value(std::string&& value) { - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + value_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.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.grpc.KeyValuePair.value) } inline void KeyValuePair::set_value(const char* value, size_t size) { - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.KeyValuePair.value) } -inline ::std::string* KeyValuePair::mutable_value() { +inline std::string* KeyValuePair::mutable_value() { // @@protoc_insertion_point(field_mutable:milvus.grpc.KeyValuePair.value) - return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return value_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* KeyValuePair::release_value() { +inline std::string* KeyValuePair::release_value() { // @@protoc_insertion_point(field_release:milvus.grpc.KeyValuePair.value) - return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return value_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void KeyValuePair::set_allocated_value(::std::string* value) { - if (value != NULL) { +inline void KeyValuePair::set_allocated_value(std::string* value) { + if (value != nullptr) { } else { } - value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + value_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.KeyValuePair.value) } @@ -5579,47 +7920,54 @@ inline void KeyValuePair::set_allocated_value(::std::string* value) { // CollectionName -// optional string collection_name = 1; +// string collection_name = 1; inline void CollectionName::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& CollectionName::collection_name() const { +inline const std::string& CollectionName::collection_name() const { // @@protoc_insertion_point(field_get:milvus.grpc.CollectionName.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.GetNoArena(); } -inline void CollectionName::set_collection_name(const ::std::string& value) { +inline void CollectionName::set_collection_name(const std::string& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.CollectionName.collection_name) } -inline void CollectionName::set_collection_name(const char* value) { +inline void CollectionName::set_collection_name(std::string&& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.CollectionName.collection_name) +} +inline void CollectionName::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.CollectionName.collection_name) } inline void CollectionName::set_collection_name(const char* value, size_t size) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.CollectionName.collection_name) } -inline ::std::string* CollectionName::mutable_collection_name() { +inline std::string* CollectionName::mutable_collection_name() { // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionName.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* CollectionName::release_collection_name() { +inline std::string* CollectionName::release_collection_name() { // @@protoc_insertion_point(field_release:milvus.grpc.CollectionName.collection_name) - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void CollectionName::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { +inline void CollectionName::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { } else { } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CollectionName.collection_name) } @@ -5627,41 +7975,48 @@ inline void CollectionName::set_allocated_collection_name(::std::string* collect // CollectionNameList -// optional .milvus.grpc.Status status = 1; +// .milvus.grpc.Status status = 1; inline bool CollectionNameList::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -inline void CollectionNameList::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; + return this != internal_default_instance() && status_ != nullptr; } inline const ::milvus::grpc::Status& CollectionNameList::status() const { + const ::milvus::grpc::Status* p = status_; // @@protoc_insertion_point(field_get:milvus.grpc.CollectionNameList.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::milvus::grpc::Status* CollectionNameList::mutable_status() { - - if (status_ == NULL) { - status_ = new ::milvus::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionNameList.status) - return status_; + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::grpc::_Status_default_instance_); } inline ::milvus::grpc::Status* CollectionNameList::release_status() { // @@protoc_insertion_point(field_release:milvus.grpc.CollectionNameList.status) ::milvus::grpc::Status* temp = status_; - status_ = NULL; + status_ = nullptr; return temp; } +inline ::milvus::grpc::Status* CollectionNameList::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionNameList.status) + return status_; +} inline void CollectionNameList::set_allocated_status(::milvus::grpc::Status* status) { - delete status_; - status_ = status; + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } } else { } + status_ = status; // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CollectionNameList.status) } @@ -5672,19 +8027,24 @@ inline int CollectionNameList::collection_names_size() const { inline void CollectionNameList::clear_collection_names() { collection_names_.Clear(); } -inline const ::std::string& CollectionNameList::collection_names(int index) const { +inline const std::string& CollectionNameList::collection_names(int index) const { // @@protoc_insertion_point(field_get:milvus.grpc.CollectionNameList.collection_names) return collection_names_.Get(index); } -inline ::std::string* CollectionNameList::mutable_collection_names(int index) { +inline std::string* CollectionNameList::mutable_collection_names(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionNameList.collection_names) return collection_names_.Mutable(index); } -inline void CollectionNameList::set_collection_names(int index, const ::std::string& value) { +inline void CollectionNameList::set_collection_names(int index, const std::string& value) { // @@protoc_insertion_point(field_set:milvus.grpc.CollectionNameList.collection_names) collection_names_.Mutable(index)->assign(value); } +inline void CollectionNameList::set_collection_names(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.grpc.CollectionNameList.collection_names) + collection_names_.Mutable(index)->assign(std::move(value)); +} inline void CollectionNameList::set_collection_names(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); collection_names_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:milvus.grpc.CollectionNameList.collection_names) } @@ -5693,15 +8053,20 @@ inline void CollectionNameList::set_collection_names(int index, const char* valu reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.CollectionNameList.collection_names) } -inline ::std::string* CollectionNameList::add_collection_names() { +inline std::string* CollectionNameList::add_collection_names() { // @@protoc_insertion_point(field_add_mutable:milvus.grpc.CollectionNameList.collection_names) return collection_names_.Add(); } -inline void CollectionNameList::add_collection_names(const ::std::string& value) { +inline void CollectionNameList::add_collection_names(const std::string& value) { collection_names_.Add()->assign(value); // @@protoc_insertion_point(field_add:milvus.grpc.CollectionNameList.collection_names) } +inline void CollectionNameList::add_collection_names(std::string&& value) { + collection_names_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:milvus.grpc.CollectionNameList.collection_names) +} inline void CollectionNameList::add_collection_names(const char* value) { + GOOGLE_DCHECK(value != nullptr); collection_names_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:milvus.grpc.CollectionNameList.collection_names) } @@ -5709,12 +8074,12 @@ inline void CollectionNameList::add_collection_names(const char* value, size_t s collection_names_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:milvus.grpc.CollectionNameList.collection_names) } -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& CollectionNameList::collection_names() const { // @@protoc_insertion_point(field_list:milvus.grpc.CollectionNameList.collection_names) return collection_names_; } -inline ::google::protobuf::RepeatedPtrField< ::std::string>* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* CollectionNameList::mutable_collection_names() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.CollectionNameList.collection_names) return &collection_names_; @@ -5724,91 +8089,105 @@ CollectionNameList::mutable_collection_names() { // FieldName -// optional string collection_name = 1; +// string collection_name = 1; inline void FieldName::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& FieldName::collection_name() const { +inline const std::string& FieldName::collection_name() const { // @@protoc_insertion_point(field_get:milvus.grpc.FieldName.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.GetNoArena(); } -inline void FieldName::set_collection_name(const ::std::string& value) { +inline void FieldName::set_collection_name(const std::string& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.FieldName.collection_name) } -inline void FieldName::set_collection_name(const char* value) { +inline void FieldName::set_collection_name(std::string&& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.FieldName.collection_name) +} +inline void FieldName::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.FieldName.collection_name) } inline void FieldName::set_collection_name(const char* value, size_t size) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.FieldName.collection_name) } -inline ::std::string* FieldName::mutable_collection_name() { +inline std::string* FieldName::mutable_collection_name() { // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldName.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* FieldName::release_collection_name() { +inline std::string* FieldName::release_collection_name() { // @@protoc_insertion_point(field_release:milvus.grpc.FieldName.collection_name) - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void FieldName::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { +inline void FieldName::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { } else { } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.FieldName.collection_name) } -// optional string field_name = 2; +// string field_name = 2; inline void FieldName::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& FieldName::field_name() const { +inline const std::string& FieldName::field_name() const { // @@protoc_insertion_point(field_get:milvus.grpc.FieldName.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return field_name_.GetNoArena(); } -inline void FieldName::set_field_name(const ::std::string& value) { +inline void FieldName::set_field_name(const std::string& value) { - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.FieldName.field_name) } -inline void FieldName::set_field_name(const char* value) { +inline void FieldName::set_field_name(std::string&& value) { - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + field_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.FieldName.field_name) +} +inline void FieldName::set_field_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.FieldName.field_name) } inline void FieldName::set_field_name(const char* value, size_t size) { - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.FieldName.field_name) } -inline ::std::string* FieldName::mutable_field_name() { +inline std::string* FieldName::mutable_field_name() { // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldName.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* FieldName::release_field_name() { +inline std::string* FieldName::release_field_name() { // @@protoc_insertion_point(field_release:milvus.grpc.FieldName.field_name) - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void FieldName::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { +inline void FieldName::set_allocated_field_name(std::string* field_name) { + if (field_name != nullptr) { } else { } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); + field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.FieldName.field_name) } @@ -5816,85 +8195,99 @@ inline void FieldName::set_allocated_field_name(::std::string* field_name) { // Mapping -// optional .milvus.grpc.Status status = 1; +// .milvus.grpc.Status status = 1; inline bool Mapping::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -inline void Mapping::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; + return this != internal_default_instance() && status_ != nullptr; } inline const ::milvus::grpc::Status& Mapping::status() const { + const ::milvus::grpc::Status* p = status_; // @@protoc_insertion_point(field_get:milvus.grpc.Mapping.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::milvus::grpc::Status* Mapping::mutable_status() { - - if (status_ == NULL) { - status_ = new ::milvus::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.Mapping.status) - return status_; + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::grpc::_Status_default_instance_); } inline ::milvus::grpc::Status* Mapping::release_status() { // @@protoc_insertion_point(field_release:milvus.grpc.Mapping.status) ::milvus::grpc::Status* temp = status_; - status_ = NULL; + status_ = nullptr; return temp; } +inline ::milvus::grpc::Status* Mapping::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.grpc.Mapping.status) + return status_; +} inline void Mapping::set_allocated_status(::milvus::grpc::Status* status) { - delete status_; - status_ = status; + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } } else { } + status_ = status; // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Mapping.status) } -// optional string collection_name = 2; +// string collection_name = 2; inline void Mapping::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& Mapping::collection_name() const { +inline const std::string& Mapping::collection_name() const { // @@protoc_insertion_point(field_get:milvus.grpc.Mapping.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.GetNoArena(); } -inline void Mapping::set_collection_name(const ::std::string& value) { +inline void Mapping::set_collection_name(const std::string& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.Mapping.collection_name) } -inline void Mapping::set_collection_name(const char* value) { +inline void Mapping::set_collection_name(std::string&& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.Mapping.collection_name) +} +inline void Mapping::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.Mapping.collection_name) } inline void Mapping::set_collection_name(const char* value, size_t size) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.Mapping.collection_name) } -inline ::std::string* Mapping::mutable_collection_name() { +inline std::string* Mapping::mutable_collection_name() { // @@protoc_insertion_point(field_mutable:milvus.grpc.Mapping.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* Mapping::release_collection_name() { +inline std::string* Mapping::release_collection_name() { // @@protoc_insertion_point(field_release:milvus.grpc.Mapping.collection_name) - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void Mapping::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { +inline void Mapping::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { } else { } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Mapping.collection_name) } @@ -5905,24 +8298,24 @@ inline int Mapping::fields_size() const { inline void Mapping::clear_fields() { fields_.Clear(); } -inline const ::milvus::grpc::FieldParam& Mapping::fields(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.Mapping.fields) - return fields_.Get(index); -} inline ::milvus::grpc::FieldParam* Mapping::mutable_fields(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.Mapping.fields) return fields_.Mutable(index); } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldParam >* +Mapping::mutable_fields() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Mapping.fields) + return &fields_; +} +inline const ::milvus::grpc::FieldParam& Mapping::fields(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.Mapping.fields) + return fields_.Get(index); +} inline ::milvus::grpc::FieldParam* Mapping::add_fields() { // @@protoc_insertion_point(field_add:milvus.grpc.Mapping.fields) return fields_.Add(); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::FieldParam >* -Mapping::mutable_fields() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Mapping.fields) - return &fields_; -} -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::FieldParam >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldParam >& Mapping::fields() const { // @@protoc_insertion_point(field_list:milvus.grpc.Mapping.fields) return fields_; @@ -5935,24 +8328,24 @@ inline int Mapping::extra_params_size() const { inline void Mapping::clear_extra_params() { extra_params_.Clear(); } -inline const ::milvus::grpc::KeyValuePair& Mapping::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.Mapping.extra_params) - return extra_params_.Get(index); -} inline ::milvus::grpc::KeyValuePair* Mapping::mutable_extra_params(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.Mapping.extra_params) return extra_params_.Mutable(index); } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* +Mapping::mutable_extra_params() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Mapping.extra_params) + return &extra_params_; +} +inline const ::milvus::grpc::KeyValuePair& Mapping::extra_params(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.Mapping.extra_params) + return extra_params_.Get(index); +} inline ::milvus::grpc::KeyValuePair* Mapping::add_extra_params() { // @@protoc_insertion_point(field_add:milvus.grpc.Mapping.extra_params) return extra_params_.Add(); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -Mapping::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Mapping.extra_params) - return &extra_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& Mapping::extra_params() const { // @@protoc_insertion_point(field_list:milvus.grpc.Mapping.extra_params) return extra_params_; @@ -5962,41 +8355,48 @@ Mapping::extra_params() const { // MappingList -// optional .milvus.grpc.Status status = 1; +// .milvus.grpc.Status status = 1; inline bool MappingList::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -inline void MappingList::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; + return this != internal_default_instance() && status_ != nullptr; } inline const ::milvus::grpc::Status& MappingList::status() const { + const ::milvus::grpc::Status* p = status_; // @@protoc_insertion_point(field_get:milvus.grpc.MappingList.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::milvus::grpc::Status* MappingList::mutable_status() { - - if (status_ == NULL) { - status_ = new ::milvus::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.MappingList.status) - return status_; + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::grpc::_Status_default_instance_); } inline ::milvus::grpc::Status* MappingList::release_status() { // @@protoc_insertion_point(field_release:milvus.grpc.MappingList.status) ::milvus::grpc::Status* temp = status_; - status_ = NULL; + status_ = nullptr; return temp; } +inline ::milvus::grpc::Status* MappingList::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.grpc.MappingList.status) + return status_; +} inline void MappingList::set_allocated_status(::milvus::grpc::Status* status) { - delete status_; - status_ = status; + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } } else { } + status_ = status; // @@protoc_insertion_point(field_set_allocated:milvus.grpc.MappingList.status) } @@ -6007,24 +8407,24 @@ inline int MappingList::mapping_list_size() const { inline void MappingList::clear_mapping_list() { mapping_list_.Clear(); } -inline const ::milvus::grpc::Mapping& MappingList::mapping_list(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.MappingList.mapping_list) - return mapping_list_.Get(index); -} inline ::milvus::grpc::Mapping* MappingList::mutable_mapping_list(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.MappingList.mapping_list) return mapping_list_.Mutable(index); } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::Mapping >* +MappingList::mutable_mapping_list() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.MappingList.mapping_list) + return &mapping_list_; +} +inline const ::milvus::grpc::Mapping& MappingList::mapping_list(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.MappingList.mapping_list) + return mapping_list_.Get(index); +} inline ::milvus::grpc::Mapping* MappingList::add_mapping_list() { // @@protoc_insertion_point(field_add:milvus.grpc.MappingList.mapping_list) return mapping_list_.Add(); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::Mapping >* -MappingList::mutable_mapping_list() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.MappingList.mapping_list) - return &mapping_list_; -} -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::Mapping >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::Mapping >& MappingList::mapping_list() const { // @@protoc_insertion_point(field_list:milvus.grpc.MappingList.mapping_list) return mapping_list_; @@ -6034,91 +8434,105 @@ MappingList::mapping_list() const { // PartitionParam -// optional string collection_name = 1; +// string collection_name = 1; inline void PartitionParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& PartitionParam::collection_name() const { +inline const std::string& PartitionParam::collection_name() const { // @@protoc_insertion_point(field_get:milvus.grpc.PartitionParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.GetNoArena(); } -inline void PartitionParam::set_collection_name(const ::std::string& value) { +inline void PartitionParam::set_collection_name(const std::string& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.PartitionParam.collection_name) } -inline void PartitionParam::set_collection_name(const char* value) { +inline void PartitionParam::set_collection_name(std::string&& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.PartitionParam.collection_name) +} +inline void PartitionParam::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.PartitionParam.collection_name) } inline void PartitionParam::set_collection_name(const char* value, size_t size) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.PartitionParam.collection_name) } -inline ::std::string* PartitionParam::mutable_collection_name() { +inline std::string* PartitionParam::mutable_collection_name() { // @@protoc_insertion_point(field_mutable:milvus.grpc.PartitionParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* PartitionParam::release_collection_name() { +inline std::string* PartitionParam::release_collection_name() { // @@protoc_insertion_point(field_release:milvus.grpc.PartitionParam.collection_name) - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void PartitionParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { +inline void PartitionParam::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { } else { } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.PartitionParam.collection_name) } -// optional string tag = 2; +// string tag = 2; inline void PartitionParam::clear_tag() { - tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& PartitionParam::tag() const { +inline const std::string& PartitionParam::tag() const { // @@protoc_insertion_point(field_get:milvus.grpc.PartitionParam.tag) - return tag_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return tag_.GetNoArena(); } -inline void PartitionParam::set_tag(const ::std::string& value) { +inline void PartitionParam::set_tag(const std::string& value) { - tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.PartitionParam.tag) } -inline void PartitionParam::set_tag(const char* value) { +inline void PartitionParam::set_tag(std::string&& value) { - tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + tag_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.PartitionParam.tag) +} +inline void PartitionParam::set_tag(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.PartitionParam.tag) } inline void PartitionParam::set_tag(const char* value, size_t size) { - tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.PartitionParam.tag) } -inline ::std::string* PartitionParam::mutable_tag() { +inline std::string* PartitionParam::mutable_tag() { // @@protoc_insertion_point(field_mutable:milvus.grpc.PartitionParam.tag) - return tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return tag_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* PartitionParam::release_tag() { +inline std::string* PartitionParam::release_tag() { // @@protoc_insertion_point(field_release:milvus.grpc.PartitionParam.tag) - return tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return tag_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void PartitionParam::set_allocated_tag(::std::string* tag) { - if (tag != NULL) { +inline void PartitionParam::set_allocated_tag(std::string* tag) { + if (tag != nullptr) { } else { } - tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tag); + tag_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), tag); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.PartitionParam.tag) } @@ -6126,41 +8540,48 @@ inline void PartitionParam::set_allocated_tag(::std::string* tag) { // PartitionList -// optional .milvus.grpc.Status status = 1; +// .milvus.grpc.Status status = 1; inline bool PartitionList::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -inline void PartitionList::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; + return this != internal_default_instance() && status_ != nullptr; } inline const ::milvus::grpc::Status& PartitionList::status() const { + const ::milvus::grpc::Status* p = status_; // @@protoc_insertion_point(field_get:milvus.grpc.PartitionList.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::milvus::grpc::Status* PartitionList::mutable_status() { - - if (status_ == NULL) { - status_ = new ::milvus::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.PartitionList.status) - return status_; + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::grpc::_Status_default_instance_); } inline ::milvus::grpc::Status* PartitionList::release_status() { // @@protoc_insertion_point(field_release:milvus.grpc.PartitionList.status) ::milvus::grpc::Status* temp = status_; - status_ = NULL; + status_ = nullptr; return temp; } +inline ::milvus::grpc::Status* PartitionList::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.grpc.PartitionList.status) + return status_; +} inline void PartitionList::set_allocated_status(::milvus::grpc::Status* status) { - delete status_; - status_ = status; + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } } else { } + status_ = status; // @@protoc_insertion_point(field_set_allocated:milvus.grpc.PartitionList.status) } @@ -6171,19 +8592,24 @@ inline int PartitionList::partition_tag_array_size() const { inline void PartitionList::clear_partition_tag_array() { partition_tag_array_.Clear(); } -inline const ::std::string& PartitionList::partition_tag_array(int index) const { +inline const std::string& PartitionList::partition_tag_array(int index) const { // @@protoc_insertion_point(field_get:milvus.grpc.PartitionList.partition_tag_array) return partition_tag_array_.Get(index); } -inline ::std::string* PartitionList::mutable_partition_tag_array(int index) { +inline std::string* PartitionList::mutable_partition_tag_array(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.PartitionList.partition_tag_array) return partition_tag_array_.Mutable(index); } -inline void PartitionList::set_partition_tag_array(int index, const ::std::string& value) { +inline void PartitionList::set_partition_tag_array(int index, const std::string& value) { // @@protoc_insertion_point(field_set:milvus.grpc.PartitionList.partition_tag_array) partition_tag_array_.Mutable(index)->assign(value); } +inline void PartitionList::set_partition_tag_array(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.grpc.PartitionList.partition_tag_array) + partition_tag_array_.Mutable(index)->assign(std::move(value)); +} inline void PartitionList::set_partition_tag_array(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); partition_tag_array_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:milvus.grpc.PartitionList.partition_tag_array) } @@ -6192,15 +8618,20 @@ inline void PartitionList::set_partition_tag_array(int index, const char* value, reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.PartitionList.partition_tag_array) } -inline ::std::string* PartitionList::add_partition_tag_array() { +inline std::string* PartitionList::add_partition_tag_array() { // @@protoc_insertion_point(field_add_mutable:milvus.grpc.PartitionList.partition_tag_array) return partition_tag_array_.Add(); } -inline void PartitionList::add_partition_tag_array(const ::std::string& value) { +inline void PartitionList::add_partition_tag_array(const std::string& value) { partition_tag_array_.Add()->assign(value); // @@protoc_insertion_point(field_add:milvus.grpc.PartitionList.partition_tag_array) } +inline void PartitionList::add_partition_tag_array(std::string&& value) { + partition_tag_array_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:milvus.grpc.PartitionList.partition_tag_array) +} inline void PartitionList::add_partition_tag_array(const char* value) { + GOOGLE_DCHECK(value != nullptr); partition_tag_array_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:milvus.grpc.PartitionList.partition_tag_array) } @@ -6208,12 +8639,12 @@ inline void PartitionList::add_partition_tag_array(const char* value, size_t siz partition_tag_array_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:milvus.grpc.PartitionList.partition_tag_array) } -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& PartitionList::partition_tag_array() const { // @@protoc_insertion_point(field_list:milvus.grpc.PartitionList.partition_tag_array) return partition_tag_array_; } -inline ::google::protobuf::RepeatedPtrField< ::std::string>* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* PartitionList::mutable_partition_tag_array() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.PartitionList.partition_tag_array) return &partition_tag_array_; @@ -6242,58 +8673,65 @@ inline void VectorRowRecord::add_float_data(float value) { float_data_.Add(value); // @@protoc_insertion_point(field_add:milvus.grpc.VectorRowRecord.float_data) } -inline const ::google::protobuf::RepeatedField< float >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& VectorRowRecord::float_data() const { // @@protoc_insertion_point(field_list:milvus.grpc.VectorRowRecord.float_data) return float_data_; } -inline ::google::protobuf::RepeatedField< float >* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* VectorRowRecord::mutable_float_data() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorRowRecord.float_data) return &float_data_; } -// optional bytes binary_data = 2; +// bytes binary_data = 2; inline void VectorRowRecord::clear_binary_data() { - binary_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + binary_data_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& VectorRowRecord::binary_data() const { +inline const std::string& VectorRowRecord::binary_data() const { // @@protoc_insertion_point(field_get:milvus.grpc.VectorRowRecord.binary_data) - return binary_data_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return binary_data_.GetNoArena(); } -inline void VectorRowRecord::set_binary_data(const ::std::string& value) { +inline void VectorRowRecord::set_binary_data(const std::string& value) { - binary_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + binary_data_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.VectorRowRecord.binary_data) } -inline void VectorRowRecord::set_binary_data(const char* value) { +inline void VectorRowRecord::set_binary_data(std::string&& value) { - binary_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + binary_data_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.VectorRowRecord.binary_data) +} +inline void VectorRowRecord::set_binary_data(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + binary_data_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.VectorRowRecord.binary_data) } inline void VectorRowRecord::set_binary_data(const void* value, size_t size) { - binary_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + binary_data_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.VectorRowRecord.binary_data) } -inline ::std::string* VectorRowRecord::mutable_binary_data() { +inline std::string* VectorRowRecord::mutable_binary_data() { // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorRowRecord.binary_data) - return binary_data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return binary_data_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* VectorRowRecord::release_binary_data() { +inline std::string* VectorRowRecord::release_binary_data() { // @@protoc_insertion_point(field_release:milvus.grpc.VectorRowRecord.binary_data) - return binary_data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return binary_data_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void VectorRowRecord::set_allocated_binary_data(::std::string* binary_data) { - if (binary_data != NULL) { +inline void VectorRowRecord::set_allocated_binary_data(std::string* binary_data) { + if (binary_data != nullptr) { } else { } - binary_data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), binary_data); + binary_data_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), binary_data); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.VectorRowRecord.binary_data) } @@ -6301,41 +8739,48 @@ inline void VectorRowRecord::set_allocated_binary_data(::std::string* binary_dat // EntityIds -// optional .milvus.grpc.Status status = 1; +// .milvus.grpc.Status status = 1; inline bool EntityIds::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -inline void EntityIds::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; + return this != internal_default_instance() && status_ != nullptr; } inline const ::milvus::grpc::Status& EntityIds::status() const { + const ::milvus::grpc::Status* p = status_; // @@protoc_insertion_point(field_get:milvus.grpc.EntityIds.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::milvus::grpc::Status* EntityIds::mutable_status() { - - if (status_ == NULL) { - status_ = new ::milvus::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.EntityIds.status) - return status_; + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::grpc::_Status_default_instance_); } inline ::milvus::grpc::Status* EntityIds::release_status() { // @@protoc_insertion_point(field_release:milvus.grpc.EntityIds.status) ::milvus::grpc::Status* temp = status_; - status_ = NULL; + status_ = nullptr; return temp; } +inline ::milvus::grpc::Status* EntityIds::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.grpc.EntityIds.status) + return status_; +} inline void EntityIds::set_allocated_status(::milvus::grpc::Status* status) { - delete status_; - status_ = status; + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } } else { } + status_ = status; // @@protoc_insertion_point(field_set_allocated:milvus.grpc.EntityIds.status) } @@ -6346,24 +8791,24 @@ inline int EntityIds::entity_id_array_size() const { inline void EntityIds::clear_entity_id_array() { entity_id_array_.Clear(); } -inline ::google::protobuf::int64 EntityIds::entity_id_array(int index) const { +inline ::PROTOBUF_NAMESPACE_ID::int64 EntityIds::entity_id_array(int index) const { // @@protoc_insertion_point(field_get:milvus.grpc.EntityIds.entity_id_array) return entity_id_array_.Get(index); } -inline void EntityIds::set_entity_id_array(int index, ::google::protobuf::int64 value) { +inline void EntityIds::set_entity_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { entity_id_array_.Set(index, value); // @@protoc_insertion_point(field_set:milvus.grpc.EntityIds.entity_id_array) } -inline void EntityIds::add_entity_id_array(::google::protobuf::int64 value) { +inline void EntityIds::add_entity_id_array(::PROTOBUF_NAMESPACE_ID::int64 value) { entity_id_array_.Add(value); // @@protoc_insertion_point(field_add:milvus.grpc.EntityIds.entity_id_array) } -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& EntityIds::entity_id_array() const { // @@protoc_insertion_point(field_list:milvus.grpc.EntityIds.entity_id_array) return entity_id_array_; } -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* EntityIds::mutable_entity_id_array() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.EntityIds.entity_id_array) return &entity_id_array_; @@ -6380,24 +8825,24 @@ inline int VectorRecord::records_size() const { inline void VectorRecord::clear_records() { records_.Clear(); } -inline const ::milvus::grpc::VectorRowRecord& VectorRecord::records(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorRecord.records) - return records_.Get(index); -} inline ::milvus::grpc::VectorRowRecord* VectorRecord::mutable_records(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorRecord.records) return records_.Mutable(index); } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* +VectorRecord::mutable_records() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorRecord.records) + return &records_; +} +inline const ::milvus::grpc::VectorRowRecord& VectorRecord::records(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.VectorRecord.records) + return records_.Get(index); +} inline ::milvus::grpc::VectorRowRecord* VectorRecord::add_records() { // @@protoc_insertion_point(field_add:milvus.grpc.VectorRecord.records) return records_.Add(); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* -VectorRecord::mutable_records() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorRecord.records) - return &records_; -} -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& VectorRecord::records() const { // @@protoc_insertion_point(field_list:milvus.grpc.VectorRecord.records) return records_; @@ -6407,85 +8852,105 @@ VectorRecord::records() const { // VectorParam -// optional string json = 1; +// string json = 1; inline void VectorParam::clear_json() { - json_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + json_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& VectorParam::json() const { +inline const std::string& VectorParam::json() const { // @@protoc_insertion_point(field_get:milvus.grpc.VectorParam.json) - return json_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return json_.GetNoArena(); } -inline void VectorParam::set_json(const ::std::string& value) { +inline void VectorParam::set_json(const std::string& value) { - json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + json_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.VectorParam.json) } -inline void VectorParam::set_json(const char* value) { +inline void VectorParam::set_json(std::string&& value) { - json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + json_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.VectorParam.json) +} +inline void VectorParam::set_json(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + json_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.VectorParam.json) } inline void VectorParam::set_json(const char* value, size_t size) { - json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + json_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.VectorParam.json) } -inline ::std::string* VectorParam::mutable_json() { +inline std::string* VectorParam::mutable_json() { // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorParam.json) - return json_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return json_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* VectorParam::release_json() { +inline std::string* VectorParam::release_json() { // @@protoc_insertion_point(field_release:milvus.grpc.VectorParam.json) - return json_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return json_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void VectorParam::set_allocated_json(::std::string* json) { - if (json != NULL) { +inline void VectorParam::set_allocated_json(std::string* json) { + if (json != nullptr) { } else { } - json_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json); + json_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), json); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.VectorParam.json) } -// optional .milvus.grpc.VectorRecord row_record = 2; +// .milvus.grpc.VectorRecord row_record = 2; inline bool VectorParam::has_row_record() const { - return !_is_default_instance_ && row_record_ != NULL; + return this != internal_default_instance() && row_record_ != nullptr; } inline void VectorParam::clear_row_record() { - if (GetArenaNoVirtual() == NULL && row_record_ != NULL) delete row_record_; - row_record_ = NULL; + if (GetArenaNoVirtual() == nullptr && row_record_ != nullptr) { + delete row_record_; + } + row_record_ = nullptr; } inline const ::milvus::grpc::VectorRecord& VectorParam::row_record() const { + const ::milvus::grpc::VectorRecord* p = row_record_; // @@protoc_insertion_point(field_get:milvus.grpc.VectorParam.row_record) - return row_record_ != NULL ? *row_record_ : *default_instance_->row_record_; -} -inline ::milvus::grpc::VectorRecord* VectorParam::mutable_row_record() { - - if (row_record_ == NULL) { - row_record_ = new ::milvus::grpc::VectorRecord; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorParam.row_record) - return row_record_; + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::grpc::_VectorRecord_default_instance_); } inline ::milvus::grpc::VectorRecord* VectorParam::release_row_record() { // @@protoc_insertion_point(field_release:milvus.grpc.VectorParam.row_record) ::milvus::grpc::VectorRecord* temp = row_record_; - row_record_ = NULL; + row_record_ = nullptr; return temp; } +inline ::milvus::grpc::VectorRecord* VectorParam::mutable_row_record() { + + if (row_record_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::grpc::VectorRecord>(GetArenaNoVirtual()); + row_record_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorParam.row_record) + return row_record_; +} inline void VectorParam::set_allocated_row_record(::milvus::grpc::VectorRecord* row_record) { - delete row_record_; - row_record_ = row_record; + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete row_record_; + } if (row_record) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + row_record = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, row_record, submessage_arena); + } } else { } + row_record_ = row_record; // @@protoc_insertion_point(field_set_allocated:milvus.grpc.VectorParam.row_record) } @@ -6493,51 +8958,58 @@ inline void VectorParam::set_allocated_row_record(::milvus::grpc::VectorRecord* // FieldMeta -// optional string field_name = 1; +// string field_name = 1; inline void FieldMeta::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& FieldMeta::field_name() const { +inline const std::string& FieldMeta::field_name() const { // @@protoc_insertion_point(field_get:milvus.grpc.FieldMeta.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return field_name_.GetNoArena(); } -inline void FieldMeta::set_field_name(const ::std::string& value) { +inline void FieldMeta::set_field_name(const std::string& value) { - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.FieldMeta.field_name) } -inline void FieldMeta::set_field_name(const char* value) { +inline void FieldMeta::set_field_name(std::string&& value) { - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + field_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.FieldMeta.field_name) +} +inline void FieldMeta::set_field_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.FieldMeta.field_name) } inline void FieldMeta::set_field_name(const char* value, size_t size) { - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.FieldMeta.field_name) } -inline ::std::string* FieldMeta::mutable_field_name() { +inline std::string* FieldMeta::mutable_field_name() { // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldMeta.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* FieldMeta::release_field_name() { +inline std::string* FieldMeta::release_field_name() { // @@protoc_insertion_point(field_release:milvus.grpc.FieldMeta.field_name) - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void FieldMeta::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { +inline void FieldMeta::set_allocated_field_name(std::string* field_name) { + if (field_name != nullptr) { } else { } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); + field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.FieldMeta.field_name) } -// optional .milvus.grpc.DataType type = 2; +// .milvus.grpc.DataType type = 2; inline void FieldMeta::clear_type() { type_ = 0; } @@ -6551,15 +9023,15 @@ inline void FieldMeta::set_type(::milvus::grpc::DataType value) { // @@protoc_insertion_point(field_set:milvus.grpc.FieldMeta.type) } -// optional int64 dim = 3; +// int64 dim = 3; inline void FieldMeta::clear_dim() { - dim_ = GOOGLE_LONGLONG(0); + dim_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 FieldMeta::dim() const { +inline ::PROTOBUF_NAMESPACE_ID::int64 FieldMeta::dim() const { // @@protoc_insertion_point(field_get:milvus.grpc.FieldMeta.dim) return dim_; } -inline void FieldMeta::set_dim(::google::protobuf::int64 value) { +inline void FieldMeta::set_dim(::PROTOBUF_NAMESPACE_ID::int64 value) { dim_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.FieldMeta.dim) @@ -6576,24 +9048,24 @@ inline int Schema::field_metas_size() const { inline void Schema::clear_field_metas() { field_metas_.Clear(); } -inline const ::milvus::grpc::FieldMeta& Schema::field_metas(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.Schema.field_metas) - return field_metas_.Get(index); -} inline ::milvus::grpc::FieldMeta* Schema::mutable_field_metas(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.Schema.field_metas) return field_metas_.Mutable(index); } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldMeta >* +Schema::mutable_field_metas() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Schema.field_metas) + return &field_metas_; +} +inline const ::milvus::grpc::FieldMeta& Schema::field_metas(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.Schema.field_metas) + return field_metas_.Get(index); +} inline ::milvus::grpc::FieldMeta* Schema::add_field_metas() { // @@protoc_insertion_point(field_add:milvus.grpc.Schema.field_metas) return field_metas_.Add(); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::FieldMeta >* -Schema::mutable_field_metas() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Schema.field_metas) - return &field_metas_; -} -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::FieldMeta >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldMeta >& Schema::field_metas() const { // @@protoc_insertion_point(field_list:milvus.grpc.Schema.field_metas) return field_metas_; @@ -6603,47 +9075,54 @@ Schema::field_metas() const { // RowData -// optional bytes blob = 1; +// bytes blob = 1; inline void RowData::clear_blob() { - blob_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + blob_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& RowData::blob() const { +inline const std::string& RowData::blob() const { // @@protoc_insertion_point(field_get:milvus.grpc.RowData.blob) - return blob_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return blob_.GetNoArena(); } -inline void RowData::set_blob(const ::std::string& value) { +inline void RowData::set_blob(const std::string& value) { - blob_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + blob_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.RowData.blob) } -inline void RowData::set_blob(const char* value) { +inline void RowData::set_blob(std::string&& value) { - blob_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + blob_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.RowData.blob) +} +inline void RowData::set_blob(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + blob_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.RowData.blob) } inline void RowData::set_blob(const void* value, size_t size) { - blob_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + blob_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.RowData.blob) } -inline ::std::string* RowData::mutable_blob() { +inline std::string* RowData::mutable_blob() { // @@protoc_insertion_point(field_mutable:milvus.grpc.RowData.blob) - return blob_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return blob_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* RowData::release_blob() { +inline std::string* RowData::release_blob() { // @@protoc_insertion_point(field_release:milvus.grpc.RowData.blob) - return blob_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return blob_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void RowData::set_allocated_blob(::std::string* blob) { - if (blob != NULL) { +inline void RowData::set_allocated_blob(std::string* blob) { + if (blob != nullptr) { } else { } - blob_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), blob); + blob_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), blob); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.RowData.blob) } @@ -6651,85 +9130,105 @@ inline void RowData::set_allocated_blob(::std::string* blob) { // InsertParam -// optional string collection_name = 1; +// string collection_name = 1; inline void InsertParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& InsertParam::collection_name() const { +inline const std::string& InsertParam::collection_name() const { // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.GetNoArena(); } -inline void InsertParam::set_collection_name(const ::std::string& value) { +inline void InsertParam::set_collection_name(const std::string& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.InsertParam.collection_name) } -inline void InsertParam::set_collection_name(const char* value) { +inline void InsertParam::set_collection_name(std::string&& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.InsertParam.collection_name) +} +inline void InsertParam::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.InsertParam.collection_name) } inline void InsertParam::set_collection_name(const char* value, size_t size) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.InsertParam.collection_name) } -inline ::std::string* InsertParam::mutable_collection_name() { +inline std::string* InsertParam::mutable_collection_name() { // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* InsertParam::release_collection_name() { +inline std::string* InsertParam::release_collection_name() { // @@protoc_insertion_point(field_release:milvus.grpc.InsertParam.collection_name) - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void InsertParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { +inline void InsertParam::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { } else { } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.InsertParam.collection_name) } -// optional .milvus.grpc.Schema schema = 2; +// .milvus.grpc.Schema schema = 2; inline bool InsertParam::has_schema() const { - return !_is_default_instance_ && schema_ != NULL; + return this != internal_default_instance() && schema_ != nullptr; } inline void InsertParam::clear_schema() { - if (GetArenaNoVirtual() == NULL && schema_ != NULL) delete schema_; - schema_ = NULL; + if (GetArenaNoVirtual() == nullptr && schema_ != nullptr) { + delete schema_; + } + schema_ = nullptr; } inline const ::milvus::grpc::Schema& InsertParam::schema() const { + const ::milvus::grpc::Schema* p = schema_; // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.schema) - return schema_ != NULL ? *schema_ : *default_instance_->schema_; -} -inline ::milvus::grpc::Schema* InsertParam::mutable_schema() { - - if (schema_ == NULL) { - schema_ = new ::milvus::grpc::Schema; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertParam.schema) - return schema_; + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::grpc::_Schema_default_instance_); } inline ::milvus::grpc::Schema* InsertParam::release_schema() { // @@protoc_insertion_point(field_release:milvus.grpc.InsertParam.schema) ::milvus::grpc::Schema* temp = schema_; - schema_ = NULL; + schema_ = nullptr; return temp; } +inline ::milvus::grpc::Schema* InsertParam::mutable_schema() { + + if (schema_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::grpc::Schema>(GetArenaNoVirtual()); + schema_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertParam.schema) + return schema_; +} inline void InsertParam::set_allocated_schema(::milvus::grpc::Schema* schema) { - delete schema_; - schema_ = schema; + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete schema_; + } if (schema) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + schema = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, schema, submessage_arena); + } } else { } + schema_ = schema; // @@protoc_insertion_point(field_set_allocated:milvus.grpc.InsertParam.schema) } @@ -6740,24 +9239,24 @@ inline int InsertParam::rows_data_size() const { inline void InsertParam::clear_rows_data() { rows_data_.Clear(); } -inline const ::milvus::grpc::RowData& InsertParam::rows_data(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.rows_data) - return rows_data_.Get(index); -} inline ::milvus::grpc::RowData* InsertParam::mutable_rows_data(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertParam.rows_data) return rows_data_.Mutable(index); } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowData >* +InsertParam::mutable_rows_data() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.InsertParam.rows_data) + return &rows_data_; +} +inline const ::milvus::grpc::RowData& InsertParam::rows_data(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.rows_data) + return rows_data_.Get(index); +} inline ::milvus::grpc::RowData* InsertParam::add_rows_data() { // @@protoc_insertion_point(field_add:milvus.grpc.InsertParam.rows_data) return rows_data_.Add(); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowData >* -InsertParam::mutable_rows_data() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.InsertParam.rows_data) - return &rows_data_; -} -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowData >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowData >& InsertParam::rows_data() const { // @@protoc_insertion_point(field_list:milvus.grpc.InsertParam.rows_data) return rows_data_; @@ -6770,70 +9269,77 @@ inline int InsertParam::entity_id_array_size() const { inline void InsertParam::clear_entity_id_array() { entity_id_array_.Clear(); } -inline ::google::protobuf::int64 InsertParam::entity_id_array(int index) const { +inline ::PROTOBUF_NAMESPACE_ID::int64 InsertParam::entity_id_array(int index) const { // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.entity_id_array) return entity_id_array_.Get(index); } -inline void InsertParam::set_entity_id_array(int index, ::google::protobuf::int64 value) { +inline void InsertParam::set_entity_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { entity_id_array_.Set(index, value); // @@protoc_insertion_point(field_set:milvus.grpc.InsertParam.entity_id_array) } -inline void InsertParam::add_entity_id_array(::google::protobuf::int64 value) { +inline void InsertParam::add_entity_id_array(::PROTOBUF_NAMESPACE_ID::int64 value) { entity_id_array_.Add(value); // @@protoc_insertion_point(field_add:milvus.grpc.InsertParam.entity_id_array) } -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& InsertParam::entity_id_array() const { // @@protoc_insertion_point(field_list:milvus.grpc.InsertParam.entity_id_array) return entity_id_array_; } -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* InsertParam::mutable_entity_id_array() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.InsertParam.entity_id_array) return &entity_id_array_; } -// optional string partition_tag = 5; +// string partition_tag = 5; inline void InsertParam::clear_partition_tag() { - partition_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + partition_tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& InsertParam::partition_tag() const { +inline const std::string& InsertParam::partition_tag() const { // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.partition_tag) - return partition_tag_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return partition_tag_.GetNoArena(); } -inline void InsertParam::set_partition_tag(const ::std::string& value) { +inline void InsertParam::set_partition_tag(const std::string& value) { - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.InsertParam.partition_tag) } -inline void InsertParam::set_partition_tag(const char* value) { +inline void InsertParam::set_partition_tag(std::string&& value) { - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + partition_tag_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.InsertParam.partition_tag) +} +inline void InsertParam::set_partition_tag(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.InsertParam.partition_tag) } inline void InsertParam::set_partition_tag(const char* value, size_t size) { - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.InsertParam.partition_tag) } -inline ::std::string* InsertParam::mutable_partition_tag() { +inline std::string* InsertParam::mutable_partition_tag() { // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertParam.partition_tag) - return partition_tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return partition_tag_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* InsertParam::release_partition_tag() { +inline std::string* InsertParam::release_partition_tag() { // @@protoc_insertion_point(field_release:milvus.grpc.InsertParam.partition_tag) - return partition_tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return partition_tag_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void InsertParam::set_allocated_partition_tag(::std::string* partition_tag) { - if (partition_tag != NULL) { +inline void InsertParam::set_allocated_partition_tag(std::string* partition_tag) { + if (partition_tag != nullptr) { } else { } - partition_tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), partition_tag); + partition_tag_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), partition_tag); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.InsertParam.partition_tag) } @@ -6844,24 +9350,24 @@ inline int InsertParam::extra_params_size() const { inline void InsertParam::clear_extra_params() { extra_params_.Clear(); } -inline const ::milvus::grpc::KeyValuePair& InsertParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.extra_params) - return extra_params_.Get(index); -} inline ::milvus::grpc::KeyValuePair* InsertParam::mutable_extra_params(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertParam.extra_params) return extra_params_.Mutable(index); } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* +InsertParam::mutable_extra_params() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.InsertParam.extra_params) + return &extra_params_; +} +inline const ::milvus::grpc::KeyValuePair& InsertParam::extra_params(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.extra_params) + return extra_params_.Get(index); +} inline ::milvus::grpc::KeyValuePair* InsertParam::add_extra_params() { // @@protoc_insertion_point(field_add:milvus.grpc.InsertParam.extra_params) return extra_params_.Add(); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -InsertParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.InsertParam.extra_params) - return &extra_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& InsertParam::extra_params() const { // @@protoc_insertion_point(field_list:milvus.grpc.InsertParam.extra_params) return extra_params_; @@ -6871,47 +9377,54 @@ InsertParam::extra_params() const { // SearchParam -// optional string collection_name = 1; +// string collection_name = 1; inline void SearchParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& SearchParam::collection_name() const { +inline const std::string& SearchParam::collection_name() const { // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.GetNoArena(); } -inline void SearchParam::set_collection_name(const ::std::string& value) { +inline void SearchParam::set_collection_name(const std::string& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.SearchParam.collection_name) } -inline void SearchParam::set_collection_name(const char* value) { +inline void SearchParam::set_collection_name(std::string&& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.SearchParam.collection_name) +} +inline void SearchParam::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchParam.collection_name) } inline void SearchParam::set_collection_name(const char* value, size_t size) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchParam.collection_name) } -inline ::std::string* SearchParam::mutable_collection_name() { +inline std::string* SearchParam::mutable_collection_name() { // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* SearchParam::release_collection_name() { +inline std::string* SearchParam::release_collection_name() { // @@protoc_insertion_point(field_release:milvus.grpc.SearchParam.collection_name) - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void SearchParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { +inline void SearchParam::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { } else { } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchParam.collection_name) } @@ -6922,70 +9435,77 @@ inline int SearchParam::vector_param_size() const { inline void SearchParam::clear_vector_param() { vector_param_.Clear(); } -inline const ::milvus::grpc::VectorParam& SearchParam::vector_param(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.vector_param) - return vector_param_.Get(index); -} inline ::milvus::grpc::VectorParam* SearchParam::mutable_vector_param(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParam.vector_param) return vector_param_.Mutable(index); } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorParam >* +SearchParam::mutable_vector_param() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchParam.vector_param) + return &vector_param_; +} +inline const ::milvus::grpc::VectorParam& SearchParam::vector_param(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.vector_param) + return vector_param_.Get(index); +} inline ::milvus::grpc::VectorParam* SearchParam::add_vector_param() { // @@protoc_insertion_point(field_add:milvus.grpc.SearchParam.vector_param) return vector_param_.Add(); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorParam >* -SearchParam::mutable_vector_param() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchParam.vector_param) - return &vector_param_; -} -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorParam >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorParam >& SearchParam::vector_param() const { // @@protoc_insertion_point(field_list:milvus.grpc.SearchParam.vector_param) return vector_param_; } -// optional string dsl = 3; +// string dsl = 3; inline void SearchParam::clear_dsl() { - dsl_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + dsl_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& SearchParam::dsl() const { +inline const std::string& SearchParam::dsl() const { // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.dsl) - return dsl_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return dsl_.GetNoArena(); } -inline void SearchParam::set_dsl(const ::std::string& value) { +inline void SearchParam::set_dsl(const std::string& value) { - dsl_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + dsl_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.SearchParam.dsl) } -inline void SearchParam::set_dsl(const char* value) { +inline void SearchParam::set_dsl(std::string&& value) { - dsl_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + dsl_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.SearchParam.dsl) +} +inline void SearchParam::set_dsl(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + dsl_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchParam.dsl) } inline void SearchParam::set_dsl(const char* value, size_t size) { - dsl_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + dsl_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchParam.dsl) } -inline ::std::string* SearchParam::mutable_dsl() { +inline std::string* SearchParam::mutable_dsl() { // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParam.dsl) - return dsl_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return dsl_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* SearchParam::release_dsl() { +inline std::string* SearchParam::release_dsl() { // @@protoc_insertion_point(field_release:milvus.grpc.SearchParam.dsl) - return dsl_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return dsl_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void SearchParam::set_allocated_dsl(::std::string* dsl) { - if (dsl != NULL) { +inline void SearchParam::set_allocated_dsl(std::string* dsl) { + if (dsl != nullptr) { } else { } - dsl_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), dsl); + dsl_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), dsl); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchParam.dsl) } @@ -6996,19 +9516,24 @@ inline int SearchParam::partition_tag_size() const { inline void SearchParam::clear_partition_tag() { partition_tag_.Clear(); } -inline const ::std::string& SearchParam::partition_tag(int index) const { +inline const std::string& SearchParam::partition_tag(int index) const { // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.partition_tag) return partition_tag_.Get(index); } -inline ::std::string* SearchParam::mutable_partition_tag(int index) { +inline std::string* SearchParam::mutable_partition_tag(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParam.partition_tag) return partition_tag_.Mutable(index); } -inline void SearchParam::set_partition_tag(int index, const ::std::string& value) { +inline void SearchParam::set_partition_tag(int index, const std::string& value) { // @@protoc_insertion_point(field_set:milvus.grpc.SearchParam.partition_tag) partition_tag_.Mutable(index)->assign(value); } +inline void SearchParam::set_partition_tag(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.grpc.SearchParam.partition_tag) + partition_tag_.Mutable(index)->assign(std::move(value)); +} inline void SearchParam::set_partition_tag(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); partition_tag_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchParam.partition_tag) } @@ -7017,15 +9542,20 @@ inline void SearchParam::set_partition_tag(int index, const char* value, size_t reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchParam.partition_tag) } -inline ::std::string* SearchParam::add_partition_tag() { +inline std::string* SearchParam::add_partition_tag() { // @@protoc_insertion_point(field_add_mutable:milvus.grpc.SearchParam.partition_tag) return partition_tag_.Add(); } -inline void SearchParam::add_partition_tag(const ::std::string& value) { +inline void SearchParam::add_partition_tag(const std::string& value) { partition_tag_.Add()->assign(value); // @@protoc_insertion_point(field_add:milvus.grpc.SearchParam.partition_tag) } +inline void SearchParam::add_partition_tag(std::string&& value) { + partition_tag_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:milvus.grpc.SearchParam.partition_tag) +} inline void SearchParam::add_partition_tag(const char* value) { + GOOGLE_DCHECK(value != nullptr); partition_tag_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:milvus.grpc.SearchParam.partition_tag) } @@ -7033,12 +9563,12 @@ inline void SearchParam::add_partition_tag(const char* value, size_t size) { partition_tag_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:milvus.grpc.SearchParam.partition_tag) } -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& SearchParam::partition_tag() const { // @@protoc_insertion_point(field_list:milvus.grpc.SearchParam.partition_tag) return partition_tag_; } -inline ::google::protobuf::RepeatedPtrField< ::std::string>* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* SearchParam::mutable_partition_tag() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchParam.partition_tag) return &partition_tag_; @@ -7051,24 +9581,24 @@ inline int SearchParam::extra_params_size() const { inline void SearchParam::clear_extra_params() { extra_params_.Clear(); } -inline const ::milvus::grpc::KeyValuePair& SearchParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.extra_params) - return extra_params_.Get(index); -} inline ::milvus::grpc::KeyValuePair* SearchParam::mutable_extra_params(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParam.extra_params) return extra_params_.Mutable(index); } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* +SearchParam::mutable_extra_params() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchParam.extra_params) + return &extra_params_; +} +inline const ::milvus::grpc::KeyValuePair& SearchParam::extra_params(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.extra_params) + return extra_params_.Get(index); +} inline ::milvus::grpc::KeyValuePair* SearchParam::add_extra_params() { // @@protoc_insertion_point(field_add:milvus.grpc.SearchParam.extra_params) return extra_params_.Add(); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -SearchParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchParam.extra_params) - return &extra_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& SearchParam::extra_params() const { // @@protoc_insertion_point(field_list:milvus.grpc.SearchParam.extra_params) return extra_params_; @@ -7085,19 +9615,24 @@ inline int SearchInSegmentParam::file_id_array_size() const { inline void SearchInSegmentParam::clear_file_id_array() { file_id_array_.Clear(); } -inline const ::std::string& SearchInSegmentParam::file_id_array(int index) const { +inline const std::string& SearchInSegmentParam::file_id_array(int index) const { // @@protoc_insertion_point(field_get:milvus.grpc.SearchInSegmentParam.file_id_array) return file_id_array_.Get(index); } -inline ::std::string* SearchInSegmentParam::mutable_file_id_array(int index) { +inline std::string* SearchInSegmentParam::mutable_file_id_array(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchInSegmentParam.file_id_array) return file_id_array_.Mutable(index); } -inline void SearchInSegmentParam::set_file_id_array(int index, const ::std::string& value) { +inline void SearchInSegmentParam::set_file_id_array(int index, const std::string& value) { // @@protoc_insertion_point(field_set:milvus.grpc.SearchInSegmentParam.file_id_array) file_id_array_.Mutable(index)->assign(value); } +inline void SearchInSegmentParam::set_file_id_array(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.grpc.SearchInSegmentParam.file_id_array) + file_id_array_.Mutable(index)->assign(std::move(value)); +} inline void SearchInSegmentParam::set_file_id_array(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); file_id_array_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchInSegmentParam.file_id_array) } @@ -7106,15 +9641,20 @@ inline void SearchInSegmentParam::set_file_id_array(int index, const char* value reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchInSegmentParam.file_id_array) } -inline ::std::string* SearchInSegmentParam::add_file_id_array() { +inline std::string* SearchInSegmentParam::add_file_id_array() { // @@protoc_insertion_point(field_add_mutable:milvus.grpc.SearchInSegmentParam.file_id_array) return file_id_array_.Add(); } -inline void SearchInSegmentParam::add_file_id_array(const ::std::string& value) { +inline void SearchInSegmentParam::add_file_id_array(const std::string& value) { file_id_array_.Add()->assign(value); // @@protoc_insertion_point(field_add:milvus.grpc.SearchInSegmentParam.file_id_array) } +inline void SearchInSegmentParam::add_file_id_array(std::string&& value) { + file_id_array_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:milvus.grpc.SearchInSegmentParam.file_id_array) +} inline void SearchInSegmentParam::add_file_id_array(const char* value) { + GOOGLE_DCHECK(value != nullptr); file_id_array_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:milvus.grpc.SearchInSegmentParam.file_id_array) } @@ -7122,52 +9662,65 @@ inline void SearchInSegmentParam::add_file_id_array(const char* value, size_t si file_id_array_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:milvus.grpc.SearchInSegmentParam.file_id_array) } -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& SearchInSegmentParam::file_id_array() const { // @@protoc_insertion_point(field_list:milvus.grpc.SearchInSegmentParam.file_id_array) return file_id_array_; } -inline ::google::protobuf::RepeatedPtrField< ::std::string>* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* SearchInSegmentParam::mutable_file_id_array() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchInSegmentParam.file_id_array) return &file_id_array_; } -// optional .milvus.grpc.SearchParam search_param = 2; +// .milvus.grpc.SearchParam search_param = 2; inline bool SearchInSegmentParam::has_search_param() const { - return !_is_default_instance_ && search_param_ != NULL; + return this != internal_default_instance() && search_param_ != nullptr; } inline void SearchInSegmentParam::clear_search_param() { - if (GetArenaNoVirtual() == NULL && search_param_ != NULL) delete search_param_; - search_param_ = NULL; + if (GetArenaNoVirtual() == nullptr && search_param_ != nullptr) { + delete search_param_; + } + search_param_ = nullptr; } inline const ::milvus::grpc::SearchParam& SearchInSegmentParam::search_param() const { + const ::milvus::grpc::SearchParam* p = search_param_; // @@protoc_insertion_point(field_get:milvus.grpc.SearchInSegmentParam.search_param) - return search_param_ != NULL ? *search_param_ : *default_instance_->search_param_; -} -inline ::milvus::grpc::SearchParam* SearchInSegmentParam::mutable_search_param() { - - if (search_param_ == NULL) { - search_param_ = new ::milvus::grpc::SearchParam; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchInSegmentParam.search_param) - return search_param_; + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::grpc::_SearchParam_default_instance_); } inline ::milvus::grpc::SearchParam* SearchInSegmentParam::release_search_param() { // @@protoc_insertion_point(field_release:milvus.grpc.SearchInSegmentParam.search_param) ::milvus::grpc::SearchParam* temp = search_param_; - search_param_ = NULL; + search_param_ = nullptr; return temp; } +inline ::milvus::grpc::SearchParam* SearchInSegmentParam::mutable_search_param() { + + if (search_param_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::grpc::SearchParam>(GetArenaNoVirtual()); + search_param_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchInSegmentParam.search_param) + return search_param_; +} inline void SearchInSegmentParam::set_allocated_search_param(::milvus::grpc::SearchParam* search_param) { - delete search_param_; - search_param_ = search_param; + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete search_param_; + } if (search_param) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + search_param = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, search_param, submessage_arena); + } } else { } + search_param_ = search_param; // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchInSegmentParam.search_param) } @@ -7175,41 +9728,48 @@ inline void SearchInSegmentParam::set_allocated_search_param(::milvus::grpc::Sea // Entities -// optional .milvus.grpc.Status status = 1; +// .milvus.grpc.Status status = 1; inline bool Entities::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -inline void Entities::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; + return this != internal_default_instance() && status_ != nullptr; } inline const ::milvus::grpc::Status& Entities::status() const { + const ::milvus::grpc::Status* p = status_; // @@protoc_insertion_point(field_get:milvus.grpc.Entities.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::milvus::grpc::Status* Entities::mutable_status() { - - if (status_ == NULL) { - status_ = new ::milvus::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.Entities.status) - return status_; + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::grpc::_Status_default_instance_); } inline ::milvus::grpc::Status* Entities::release_status() { // @@protoc_insertion_point(field_release:milvus.grpc.Entities.status) ::milvus::grpc::Status* temp = status_; - status_ = NULL; + status_ = nullptr; return temp; } +inline ::milvus::grpc::Status* Entities::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.grpc.Entities.status) + return status_; +} inline void Entities::set_allocated_status(::milvus::grpc::Status* status) { - delete status_; - status_ = status; + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } } else { } + status_ = status; // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Entities.status) } @@ -7220,24 +9780,24 @@ inline int Entities::ids_size() const { inline void Entities::clear_ids() { ids_.Clear(); } -inline ::google::protobuf::int64 Entities::ids(int index) const { +inline ::PROTOBUF_NAMESPACE_ID::int64 Entities::ids(int index) const { // @@protoc_insertion_point(field_get:milvus.grpc.Entities.ids) return ids_.Get(index); } -inline void Entities::set_ids(int index, ::google::protobuf::int64 value) { +inline void Entities::set_ids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { ids_.Set(index, value); // @@protoc_insertion_point(field_set:milvus.grpc.Entities.ids) } -inline void Entities::add_ids(::google::protobuf::int64 value) { +inline void Entities::add_ids(::PROTOBUF_NAMESPACE_ID::int64 value) { ids_.Add(value); // @@protoc_insertion_point(field_add:milvus.grpc.Entities.ids) } -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& Entities::ids() const { // @@protoc_insertion_point(field_list:milvus.grpc.Entities.ids) return ids_; } -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* Entities::mutable_ids() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Entities.ids) return &ids_; @@ -7262,12 +9822,12 @@ inline void Entities::add_valid_row(bool value) { valid_row_.Add(value); // @@protoc_insertion_point(field_add:milvus.grpc.Entities.valid_row) } -inline const ::google::protobuf::RepeatedField< bool >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >& Entities::valid_row() const { // @@protoc_insertion_point(field_list:milvus.grpc.Entities.valid_row) return valid_row_; } -inline ::google::protobuf::RepeatedField< bool >* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >* Entities::mutable_valid_row() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Entities.valid_row) return &valid_row_; @@ -7280,24 +9840,24 @@ inline int Entities::rows_data_size() const { inline void Entities::clear_rows_data() { rows_data_.Clear(); } -inline const ::milvus::grpc::RowData& Entities::rows_data(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.Entities.rows_data) - return rows_data_.Get(index); -} inline ::milvus::grpc::RowData* Entities::mutable_rows_data(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.Entities.rows_data) return rows_data_.Mutable(index); } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowData >* +Entities::mutable_rows_data() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Entities.rows_data) + return &rows_data_; +} +inline const ::milvus::grpc::RowData& Entities::rows_data(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.Entities.rows_data) + return rows_data_.Get(index); +} inline ::milvus::grpc::RowData* Entities::add_rows_data() { // @@protoc_insertion_point(field_add:milvus.grpc.Entities.rows_data) return rows_data_.Add(); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowData >* -Entities::mutable_rows_data() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Entities.rows_data) - return &rows_data_; -} -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowData >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowData >& Entities::rows_data() const { // @@protoc_insertion_point(field_list:milvus.grpc.Entities.rows_data) return rows_data_; @@ -7307,91 +9867,111 @@ Entities::rows_data() const { // QueryResult -// optional .milvus.grpc.Status status = 1; +// .milvus.grpc.Status status = 1; inline bool QueryResult::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -inline void QueryResult::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; + return this != internal_default_instance() && status_ != nullptr; } inline const ::milvus::grpc::Status& QueryResult::status() const { + const ::milvus::grpc::Status* p = status_; // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::milvus::grpc::Status* QueryResult::mutable_status() { - - if (status_ == NULL) { - status_ = new ::milvus::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.QueryResult.status) - return status_; + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::grpc::_Status_default_instance_); } inline ::milvus::grpc::Status* QueryResult::release_status() { // @@protoc_insertion_point(field_release:milvus.grpc.QueryResult.status) ::milvus::grpc::Status* temp = status_; - status_ = NULL; + status_ = nullptr; return temp; } +inline ::milvus::grpc::Status* QueryResult::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.grpc.QueryResult.status) + return status_; +} inline void QueryResult::set_allocated_status(::milvus::grpc::Status* status) { - delete status_; - status_ = status; + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } } else { } + status_ = status; // @@protoc_insertion_point(field_set_allocated:milvus.grpc.QueryResult.status) } -// optional .milvus.grpc.Entities entities = 2; +// .milvus.grpc.Entities entities = 2; inline bool QueryResult::has_entities() const { - return !_is_default_instance_ && entities_ != NULL; + return this != internal_default_instance() && entities_ != nullptr; } inline void QueryResult::clear_entities() { - if (GetArenaNoVirtual() == NULL && entities_ != NULL) delete entities_; - entities_ = NULL; + if (GetArenaNoVirtual() == nullptr && entities_ != nullptr) { + delete entities_; + } + entities_ = nullptr; } inline const ::milvus::grpc::Entities& QueryResult::entities() const { + const ::milvus::grpc::Entities* p = entities_; // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.entities) - return entities_ != NULL ? *entities_ : *default_instance_->entities_; -} -inline ::milvus::grpc::Entities* QueryResult::mutable_entities() { - - if (entities_ == NULL) { - entities_ = new ::milvus::grpc::Entities; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.QueryResult.entities) - return entities_; + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::grpc::_Entities_default_instance_); } inline ::milvus::grpc::Entities* QueryResult::release_entities() { // @@protoc_insertion_point(field_release:milvus.grpc.QueryResult.entities) ::milvus::grpc::Entities* temp = entities_; - entities_ = NULL; + entities_ = nullptr; return temp; } +inline ::milvus::grpc::Entities* QueryResult::mutable_entities() { + + if (entities_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::grpc::Entities>(GetArenaNoVirtual()); + entities_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.grpc.QueryResult.entities) + return entities_; +} inline void QueryResult::set_allocated_entities(::milvus::grpc::Entities* entities) { - delete entities_; - entities_ = entities; + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete entities_; + } if (entities) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + entities = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, entities, submessage_arena); + } } else { } + entities_ = entities; // @@protoc_insertion_point(field_set_allocated:milvus.grpc.QueryResult.entities) } -// optional int64 row_num = 3; +// int64 row_num = 3; inline void QueryResult::clear_row_num() { - row_num_ = GOOGLE_LONGLONG(0); + row_num_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 QueryResult::row_num() const { +inline ::PROTOBUF_NAMESPACE_ID::int64 QueryResult::row_num() const { // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.row_num) return row_num_; } -inline void QueryResult::set_row_num(::google::protobuf::int64 value) { +inline void QueryResult::set_row_num(::PROTOBUF_NAMESPACE_ID::int64 value) { row_num_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.QueryResult.row_num) @@ -7416,12 +9996,12 @@ inline void QueryResult::add_scores(float value) { scores_.Add(value); // @@protoc_insertion_point(field_add:milvus.grpc.QueryResult.scores) } -inline const ::google::protobuf::RepeatedField< float >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& QueryResult::scores() const { // @@protoc_insertion_point(field_list:milvus.grpc.QueryResult.scores) return scores_; } -inline ::google::protobuf::RepeatedField< float >* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* QueryResult::mutable_scores() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.QueryResult.scores) return &scores_; @@ -7446,12 +10026,12 @@ inline void QueryResult::add_distances(float value) { distances_.Add(value); // @@protoc_insertion_point(field_add:milvus.grpc.QueryResult.distances) } -inline const ::google::protobuf::RepeatedField< float >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& QueryResult::distances() const { // @@protoc_insertion_point(field_list:milvus.grpc.QueryResult.distances) return distances_; } -inline ::google::protobuf::RepeatedField< float >* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* QueryResult::mutable_distances() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.QueryResult.distances) return &distances_; @@ -7464,24 +10044,24 @@ inline int QueryResult::extra_params_size() const { inline void QueryResult::clear_extra_params() { extra_params_.Clear(); } -inline const ::milvus::grpc::KeyValuePair& QueryResult::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.extra_params) - return extra_params_.Get(index); -} inline ::milvus::grpc::KeyValuePair* QueryResult::mutable_extra_params(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.QueryResult.extra_params) return extra_params_.Mutable(index); } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* +QueryResult::mutable_extra_params() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.QueryResult.extra_params) + return &extra_params_; +} +inline const ::milvus::grpc::KeyValuePair& QueryResult::extra_params(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.extra_params) + return extra_params_.Get(index); +} inline ::milvus::grpc::KeyValuePair* QueryResult::add_extra_params() { // @@protoc_insertion_point(field_add:milvus.grpc.QueryResult.extra_params) return extra_params_.Add(); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -QueryResult::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.QueryResult.extra_params) - return &extra_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& QueryResult::extra_params() const { // @@protoc_insertion_point(field_list:milvus.grpc.QueryResult.extra_params) return extra_params_; @@ -7491,85 +10071,99 @@ QueryResult::extra_params() const { // StringReply -// optional .milvus.grpc.Status status = 1; +// .milvus.grpc.Status status = 1; inline bool StringReply::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -inline void StringReply::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; + return this != internal_default_instance() && status_ != nullptr; } inline const ::milvus::grpc::Status& StringReply::status() const { + const ::milvus::grpc::Status* p = status_; // @@protoc_insertion_point(field_get:milvus.grpc.StringReply.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::milvus::grpc::Status* StringReply::mutable_status() { - - if (status_ == NULL) { - status_ = new ::milvus::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.StringReply.status) - return status_; + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::grpc::_Status_default_instance_); } inline ::milvus::grpc::Status* StringReply::release_status() { // @@protoc_insertion_point(field_release:milvus.grpc.StringReply.status) ::milvus::grpc::Status* temp = status_; - status_ = NULL; + status_ = nullptr; return temp; } +inline ::milvus::grpc::Status* StringReply::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.grpc.StringReply.status) + return status_; +} inline void StringReply::set_allocated_status(::milvus::grpc::Status* status) { - delete status_; - status_ = status; + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } } else { } + status_ = status; // @@protoc_insertion_point(field_set_allocated:milvus.grpc.StringReply.status) } -// optional string string_reply = 2; +// string string_reply = 2; inline void StringReply::clear_string_reply() { - string_reply_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + string_reply_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& StringReply::string_reply() const { +inline const std::string& StringReply::string_reply() const { // @@protoc_insertion_point(field_get:milvus.grpc.StringReply.string_reply) - return string_reply_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return string_reply_.GetNoArena(); } -inline void StringReply::set_string_reply(const ::std::string& value) { +inline void StringReply::set_string_reply(const std::string& value) { - string_reply_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + string_reply_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.StringReply.string_reply) } -inline void StringReply::set_string_reply(const char* value) { +inline void StringReply::set_string_reply(std::string&& value) { - string_reply_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + string_reply_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.StringReply.string_reply) +} +inline void StringReply::set_string_reply(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + string_reply_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.StringReply.string_reply) } inline void StringReply::set_string_reply(const char* value, size_t size) { - string_reply_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + string_reply_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.StringReply.string_reply) } -inline ::std::string* StringReply::mutable_string_reply() { +inline std::string* StringReply::mutable_string_reply() { // @@protoc_insertion_point(field_mutable:milvus.grpc.StringReply.string_reply) - return string_reply_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return string_reply_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* StringReply::release_string_reply() { +inline std::string* StringReply::release_string_reply() { // @@protoc_insertion_point(field_release:milvus.grpc.StringReply.string_reply) - return string_reply_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return string_reply_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void StringReply::set_allocated_string_reply(::std::string* string_reply) { - if (string_reply != NULL) { +inline void StringReply::set_allocated_string_reply(std::string* string_reply) { + if (string_reply != nullptr) { } else { } - string_reply_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), string_reply); + string_reply_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), string_reply); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.StringReply.string_reply) } @@ -7577,45 +10171,52 @@ inline void StringReply::set_allocated_string_reply(::std::string* string_reply) // BoolReply -// optional .milvus.grpc.Status status = 1; +// .milvus.grpc.Status status = 1; inline bool BoolReply::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -inline void BoolReply::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; + return this != internal_default_instance() && status_ != nullptr; } inline const ::milvus::grpc::Status& BoolReply::status() const { + const ::milvus::grpc::Status* p = status_; // @@protoc_insertion_point(field_get:milvus.grpc.BoolReply.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::milvus::grpc::Status* BoolReply::mutable_status() { - - if (status_ == NULL) { - status_ = new ::milvus::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.BoolReply.status) - return status_; + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::grpc::_Status_default_instance_); } inline ::milvus::grpc::Status* BoolReply::release_status() { // @@protoc_insertion_point(field_release:milvus.grpc.BoolReply.status) ::milvus::grpc::Status* temp = status_; - status_ = NULL; + status_ = nullptr; return temp; } +inline ::milvus::grpc::Status* BoolReply::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.grpc.BoolReply.status) + return status_; +} inline void BoolReply::set_allocated_status(::milvus::grpc::Status* status) { - delete status_; - status_ = status; + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } } else { } + status_ = status; // @@protoc_insertion_point(field_set_allocated:milvus.grpc.BoolReply.status) } -// optional bool bool_reply = 2; +// bool bool_reply = 2; inline void BoolReply::clear_bool_reply() { bool_reply_ = false; } @@ -7633,53 +10234,60 @@ inline void BoolReply::set_bool_reply(bool value) { // CollectionRowCount -// optional .milvus.grpc.Status status = 1; +// .milvus.grpc.Status status = 1; inline bool CollectionRowCount::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -inline void CollectionRowCount::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; + return this != internal_default_instance() && status_ != nullptr; } inline const ::milvus::grpc::Status& CollectionRowCount::status() const { + const ::milvus::grpc::Status* p = status_; // @@protoc_insertion_point(field_get:milvus.grpc.CollectionRowCount.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::milvus::grpc::Status* CollectionRowCount::mutable_status() { - - if (status_ == NULL) { - status_ = new ::milvus::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionRowCount.status) - return status_; + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::grpc::_Status_default_instance_); } inline ::milvus::grpc::Status* CollectionRowCount::release_status() { // @@protoc_insertion_point(field_release:milvus.grpc.CollectionRowCount.status) ::milvus::grpc::Status* temp = status_; - status_ = NULL; + status_ = nullptr; return temp; } +inline ::milvus::grpc::Status* CollectionRowCount::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionRowCount.status) + return status_; +} inline void CollectionRowCount::set_allocated_status(::milvus::grpc::Status* status) { - delete status_; - status_ = status; + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } } else { } + status_ = status; // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CollectionRowCount.status) } -// optional int64 collection_row_count = 2; +// int64 collection_row_count = 2; inline void CollectionRowCount::clear_collection_row_count() { - collection_row_count_ = GOOGLE_LONGLONG(0); + collection_row_count_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 CollectionRowCount::collection_row_count() const { +inline ::PROTOBUF_NAMESPACE_ID::int64 CollectionRowCount::collection_row_count() const { // @@protoc_insertion_point(field_get:milvus.grpc.CollectionRowCount.collection_row_count) return collection_row_count_; } -inline void CollectionRowCount::set_collection_row_count(::google::protobuf::int64 value) { +inline void CollectionRowCount::set_collection_row_count(::PROTOBUF_NAMESPACE_ID::int64 value) { collection_row_count_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.CollectionRowCount.collection_row_count) @@ -7689,47 +10297,54 @@ inline void CollectionRowCount::set_collection_row_count(::google::protobuf::int // Command -// optional string cmd = 1; +// string cmd = 1; inline void Command::clear_cmd() { - cmd_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + cmd_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& Command::cmd() const { +inline const std::string& Command::cmd() const { // @@protoc_insertion_point(field_get:milvus.grpc.Command.cmd) - return cmd_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return cmd_.GetNoArena(); } -inline void Command::set_cmd(const ::std::string& value) { +inline void Command::set_cmd(const std::string& value) { - cmd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + cmd_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.Command.cmd) } -inline void Command::set_cmd(const char* value) { +inline void Command::set_cmd(std::string&& value) { - cmd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + cmd_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.Command.cmd) +} +inline void Command::set_cmd(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + cmd_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.Command.cmd) } inline void Command::set_cmd(const char* value, size_t size) { - cmd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + cmd_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.Command.cmd) } -inline ::std::string* Command::mutable_cmd() { +inline std::string* Command::mutable_cmd() { // @@protoc_insertion_point(field_mutable:milvus.grpc.Command.cmd) - return cmd_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return cmd_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* Command::release_cmd() { +inline std::string* Command::release_cmd() { // @@protoc_insertion_point(field_release:milvus.grpc.Command.cmd) - return cmd_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return cmd_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void Command::set_allocated_cmd(::std::string* cmd) { - if (cmd != NULL) { +inline void Command::set_allocated_cmd(std::string* cmd) { + if (cmd != nullptr) { } else { } - cmd_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cmd); + cmd_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), cmd); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Command.cmd) } @@ -7737,173 +10352,201 @@ inline void Command::set_allocated_cmd(::std::string* cmd) { // IndexParam -// optional .milvus.grpc.Status status = 1; +// .milvus.grpc.Status status = 1; inline bool IndexParam::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -inline void IndexParam::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; + return this != internal_default_instance() && status_ != nullptr; } inline const ::milvus::grpc::Status& IndexParam::status() const { + const ::milvus::grpc::Status* p = status_; // @@protoc_insertion_point(field_get:milvus.grpc.IndexParam.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::milvus::grpc::Status* IndexParam::mutable_status() { - - if (status_ == NULL) { - status_ = new ::milvus::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.IndexParam.status) - return status_; + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::grpc::_Status_default_instance_); } inline ::milvus::grpc::Status* IndexParam::release_status() { // @@protoc_insertion_point(field_release:milvus.grpc.IndexParam.status) ::milvus::grpc::Status* temp = status_; - status_ = NULL; + status_ = nullptr; return temp; } +inline ::milvus::grpc::Status* IndexParam::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.grpc.IndexParam.status) + return status_; +} inline void IndexParam::set_allocated_status(::milvus::grpc::Status* status) { - delete status_; - status_ = status; + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } } else { } + status_ = status; // @@protoc_insertion_point(field_set_allocated:milvus.grpc.IndexParam.status) } -// optional string collection_name = 2; +// string collection_name = 2; inline void IndexParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& IndexParam::collection_name() const { +inline const std::string& IndexParam::collection_name() const { // @@protoc_insertion_point(field_get:milvus.grpc.IndexParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.GetNoArena(); } -inline void IndexParam::set_collection_name(const ::std::string& value) { +inline void IndexParam::set_collection_name(const std::string& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.IndexParam.collection_name) } -inline void IndexParam::set_collection_name(const char* value) { +inline void IndexParam::set_collection_name(std::string&& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.IndexParam.collection_name) +} +inline void IndexParam::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.IndexParam.collection_name) } inline void IndexParam::set_collection_name(const char* value, size_t size) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.IndexParam.collection_name) } -inline ::std::string* IndexParam::mutable_collection_name() { +inline std::string* IndexParam::mutable_collection_name() { // @@protoc_insertion_point(field_mutable:milvus.grpc.IndexParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* IndexParam::release_collection_name() { +inline std::string* IndexParam::release_collection_name() { // @@protoc_insertion_point(field_release:milvus.grpc.IndexParam.collection_name) - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void IndexParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { +inline void IndexParam::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { } else { } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.IndexParam.collection_name) } -// optional string field_name = 3; +// string field_name = 3; inline void IndexParam::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& IndexParam::field_name() const { +inline const std::string& IndexParam::field_name() const { // @@protoc_insertion_point(field_get:milvus.grpc.IndexParam.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return field_name_.GetNoArena(); } -inline void IndexParam::set_field_name(const ::std::string& value) { +inline void IndexParam::set_field_name(const std::string& value) { - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.IndexParam.field_name) } -inline void IndexParam::set_field_name(const char* value) { +inline void IndexParam::set_field_name(std::string&& value) { - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + field_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.IndexParam.field_name) +} +inline void IndexParam::set_field_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.IndexParam.field_name) } inline void IndexParam::set_field_name(const char* value, size_t size) { - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.IndexParam.field_name) } -inline ::std::string* IndexParam::mutable_field_name() { +inline std::string* IndexParam::mutable_field_name() { // @@protoc_insertion_point(field_mutable:milvus.grpc.IndexParam.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* IndexParam::release_field_name() { +inline std::string* IndexParam::release_field_name() { // @@protoc_insertion_point(field_release:milvus.grpc.IndexParam.field_name) - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void IndexParam::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { +inline void IndexParam::set_allocated_field_name(std::string* field_name) { + if (field_name != nullptr) { } else { } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); + field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.IndexParam.field_name) } -// optional string index_name = 4; +// string index_name = 4; inline void IndexParam::clear_index_name() { - index_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + index_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& IndexParam::index_name() const { +inline const std::string& IndexParam::index_name() const { // @@protoc_insertion_point(field_get:milvus.grpc.IndexParam.index_name) - return index_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return index_name_.GetNoArena(); } -inline void IndexParam::set_index_name(const ::std::string& value) { +inline void IndexParam::set_index_name(const std::string& value) { - index_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + index_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.IndexParam.index_name) } -inline void IndexParam::set_index_name(const char* value) { +inline void IndexParam::set_index_name(std::string&& value) { - index_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + index_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.IndexParam.index_name) +} +inline void IndexParam::set_index_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + index_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.IndexParam.index_name) } inline void IndexParam::set_index_name(const char* value, size_t size) { - index_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + index_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.IndexParam.index_name) } -inline ::std::string* IndexParam::mutable_index_name() { +inline std::string* IndexParam::mutable_index_name() { // @@protoc_insertion_point(field_mutable:milvus.grpc.IndexParam.index_name) - return index_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return index_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* IndexParam::release_index_name() { +inline std::string* IndexParam::release_index_name() { // @@protoc_insertion_point(field_release:milvus.grpc.IndexParam.index_name) - return index_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return index_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void IndexParam::set_allocated_index_name(::std::string* index_name) { - if (index_name != NULL) { +inline void IndexParam::set_allocated_index_name(std::string* index_name) { + if (index_name != nullptr) { } else { } - index_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), index_name); + index_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), index_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.IndexParam.index_name) } @@ -7914,24 +10557,24 @@ inline int IndexParam::extra_params_size() const { inline void IndexParam::clear_extra_params() { extra_params_.Clear(); } -inline const ::milvus::grpc::KeyValuePair& IndexParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.IndexParam.extra_params) - return extra_params_.Get(index); -} inline ::milvus::grpc::KeyValuePair* IndexParam::mutable_extra_params(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.IndexParam.extra_params) return extra_params_.Mutable(index); } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* +IndexParam::mutable_extra_params() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.IndexParam.extra_params) + return &extra_params_; +} +inline const ::milvus::grpc::KeyValuePair& IndexParam::extra_params(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.IndexParam.extra_params) + return extra_params_.Get(index); +} inline ::milvus::grpc::KeyValuePair* IndexParam::add_extra_params() { // @@protoc_insertion_point(field_add:milvus.grpc.IndexParam.extra_params) return extra_params_.Add(); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -IndexParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.IndexParam.extra_params) - return &extra_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& IndexParam::extra_params() const { // @@protoc_insertion_point(field_list:milvus.grpc.IndexParam.extra_params) return extra_params_; @@ -7948,19 +10591,24 @@ inline int FlushParam::collection_name_array_size() const { inline void FlushParam::clear_collection_name_array() { collection_name_array_.Clear(); } -inline const ::std::string& FlushParam::collection_name_array(int index) const { +inline const std::string& FlushParam::collection_name_array(int index) const { // @@protoc_insertion_point(field_get:milvus.grpc.FlushParam.collection_name_array) return collection_name_array_.Get(index); } -inline ::std::string* FlushParam::mutable_collection_name_array(int index) { +inline std::string* FlushParam::mutable_collection_name_array(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.FlushParam.collection_name_array) return collection_name_array_.Mutable(index); } -inline void FlushParam::set_collection_name_array(int index, const ::std::string& value) { +inline void FlushParam::set_collection_name_array(int index, const std::string& value) { // @@protoc_insertion_point(field_set:milvus.grpc.FlushParam.collection_name_array) collection_name_array_.Mutable(index)->assign(value); } +inline void FlushParam::set_collection_name_array(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.grpc.FlushParam.collection_name_array) + collection_name_array_.Mutable(index)->assign(std::move(value)); +} inline void FlushParam::set_collection_name_array(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); collection_name_array_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:milvus.grpc.FlushParam.collection_name_array) } @@ -7969,15 +10617,20 @@ inline void FlushParam::set_collection_name_array(int index, const char* value, reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.FlushParam.collection_name_array) } -inline ::std::string* FlushParam::add_collection_name_array() { +inline std::string* FlushParam::add_collection_name_array() { // @@protoc_insertion_point(field_add_mutable:milvus.grpc.FlushParam.collection_name_array) return collection_name_array_.Add(); } -inline void FlushParam::add_collection_name_array(const ::std::string& value) { +inline void FlushParam::add_collection_name_array(const std::string& value) { collection_name_array_.Add()->assign(value); // @@protoc_insertion_point(field_add:milvus.grpc.FlushParam.collection_name_array) } +inline void FlushParam::add_collection_name_array(std::string&& value) { + collection_name_array_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:milvus.grpc.FlushParam.collection_name_array) +} inline void FlushParam::add_collection_name_array(const char* value) { + GOOGLE_DCHECK(value != nullptr); collection_name_array_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:milvus.grpc.FlushParam.collection_name_array) } @@ -7985,12 +10638,12 @@ inline void FlushParam::add_collection_name_array(const char* value, size_t size collection_name_array_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:milvus.grpc.FlushParam.collection_name_array) } -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& FlushParam::collection_name_array() const { // @@protoc_insertion_point(field_list:milvus.grpc.FlushParam.collection_name_array) return collection_name_array_; } -inline ::google::protobuf::RepeatedPtrField< ::std::string>* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* FlushParam::mutable_collection_name_array() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.FlushParam.collection_name_array) return &collection_name_array_; @@ -8000,51 +10653,58 @@ FlushParam::mutable_collection_name_array() { // CompactParam -// optional string collection_name = 1; +// string collection_name = 1; inline void CompactParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& CompactParam::collection_name() const { +inline const std::string& CompactParam::collection_name() const { // @@protoc_insertion_point(field_get:milvus.grpc.CompactParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.GetNoArena(); } -inline void CompactParam::set_collection_name(const ::std::string& value) { +inline void CompactParam::set_collection_name(const std::string& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.CompactParam.collection_name) } -inline void CompactParam::set_collection_name(const char* value) { +inline void CompactParam::set_collection_name(std::string&& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.CompactParam.collection_name) +} +inline void CompactParam::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.CompactParam.collection_name) } inline void CompactParam::set_collection_name(const char* value, size_t size) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.CompactParam.collection_name) } -inline ::std::string* CompactParam::mutable_collection_name() { +inline std::string* CompactParam::mutable_collection_name() { // @@protoc_insertion_point(field_mutable:milvus.grpc.CompactParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* CompactParam::release_collection_name() { +inline std::string* CompactParam::release_collection_name() { // @@protoc_insertion_point(field_release:milvus.grpc.CompactParam.collection_name) - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void CompactParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { +inline void CompactParam::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { } else { } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CompactParam.collection_name) } -// optional double threshold = 2; +// double threshold = 2; inline void CompactParam::clear_threshold() { threshold_ = 0; } @@ -8062,47 +10722,54 @@ inline void CompactParam::set_threshold(double value) { // DeleteByIDParam -// optional string collection_name = 1; +// string collection_name = 1; inline void DeleteByIDParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& DeleteByIDParam::collection_name() const { +inline const std::string& DeleteByIDParam::collection_name() const { // @@protoc_insertion_point(field_get:milvus.grpc.DeleteByIDParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.GetNoArena(); } -inline void DeleteByIDParam::set_collection_name(const ::std::string& value) { +inline void DeleteByIDParam::set_collection_name(const std::string& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.DeleteByIDParam.collection_name) } -inline void DeleteByIDParam::set_collection_name(const char* value) { +inline void DeleteByIDParam::set_collection_name(std::string&& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.DeleteByIDParam.collection_name) +} +inline void DeleteByIDParam::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.DeleteByIDParam.collection_name) } inline void DeleteByIDParam::set_collection_name(const char* value, size_t size) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.DeleteByIDParam.collection_name) } -inline ::std::string* DeleteByIDParam::mutable_collection_name() { +inline std::string* DeleteByIDParam::mutable_collection_name() { // @@protoc_insertion_point(field_mutable:milvus.grpc.DeleteByIDParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* DeleteByIDParam::release_collection_name() { +inline std::string* DeleteByIDParam::release_collection_name() { // @@protoc_insertion_point(field_release:milvus.grpc.DeleteByIDParam.collection_name) - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void DeleteByIDParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { +inline void DeleteByIDParam::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { } else { } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.DeleteByIDParam.collection_name) } @@ -8113,24 +10780,24 @@ inline int DeleteByIDParam::id_array_size() const { inline void DeleteByIDParam::clear_id_array() { id_array_.Clear(); } -inline ::google::protobuf::int64 DeleteByIDParam::id_array(int index) const { +inline ::PROTOBUF_NAMESPACE_ID::int64 DeleteByIDParam::id_array(int index) const { // @@protoc_insertion_point(field_get:milvus.grpc.DeleteByIDParam.id_array) return id_array_.Get(index); } -inline void DeleteByIDParam::set_id_array(int index, ::google::protobuf::int64 value) { +inline void DeleteByIDParam::set_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { id_array_.Set(index, value); // @@protoc_insertion_point(field_set:milvus.grpc.DeleteByIDParam.id_array) } -inline void DeleteByIDParam::add_id_array(::google::protobuf::int64 value) { +inline void DeleteByIDParam::add_id_array(::PROTOBUF_NAMESPACE_ID::int64 value) { id_array_.Add(value); // @@protoc_insertion_point(field_add:milvus.grpc.DeleteByIDParam.id_array) } -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& DeleteByIDParam::id_array() const { // @@protoc_insertion_point(field_list:milvus.grpc.DeleteByIDParam.id_array) return id_array_; } -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* DeleteByIDParam::mutable_id_array() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.DeleteByIDParam.id_array) return &id_array_; @@ -8140,85 +10807,99 @@ DeleteByIDParam::mutable_id_array() { // CollectionInfo -// optional .milvus.grpc.Status status = 1; +// .milvus.grpc.Status status = 1; inline bool CollectionInfo::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -inline void CollectionInfo::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; + return this != internal_default_instance() && status_ != nullptr; } inline const ::milvus::grpc::Status& CollectionInfo::status() const { + const ::milvus::grpc::Status* p = status_; // @@protoc_insertion_point(field_get:milvus.grpc.CollectionInfo.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::milvus::grpc::Status* CollectionInfo::mutable_status() { - - if (status_ == NULL) { - status_ = new ::milvus::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionInfo.status) - return status_; + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::grpc::_Status_default_instance_); } inline ::milvus::grpc::Status* CollectionInfo::release_status() { // @@protoc_insertion_point(field_release:milvus.grpc.CollectionInfo.status) ::milvus::grpc::Status* temp = status_; - status_ = NULL; + status_ = nullptr; return temp; } +inline ::milvus::grpc::Status* CollectionInfo::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionInfo.status) + return status_; +} inline void CollectionInfo::set_allocated_status(::milvus::grpc::Status* status) { - delete status_; - status_ = status; + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } } else { } + status_ = status; // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CollectionInfo.status) } -// optional string json_info = 2; +// string json_info = 2; inline void CollectionInfo::clear_json_info() { - json_info_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + json_info_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& CollectionInfo::json_info() const { +inline const std::string& CollectionInfo::json_info() const { // @@protoc_insertion_point(field_get:milvus.grpc.CollectionInfo.json_info) - return json_info_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return json_info_.GetNoArena(); } -inline void CollectionInfo::set_json_info(const ::std::string& value) { +inline void CollectionInfo::set_json_info(const std::string& value) { - json_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + json_info_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.CollectionInfo.json_info) } -inline void CollectionInfo::set_json_info(const char* value) { +inline void CollectionInfo::set_json_info(std::string&& value) { - json_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + json_info_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.CollectionInfo.json_info) +} +inline void CollectionInfo::set_json_info(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + json_info_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.CollectionInfo.json_info) } inline void CollectionInfo::set_json_info(const char* value, size_t size) { - json_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + json_info_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.CollectionInfo.json_info) } -inline ::std::string* CollectionInfo::mutable_json_info() { +inline std::string* CollectionInfo::mutable_json_info() { // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionInfo.json_info) - return json_info_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return json_info_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* CollectionInfo::release_json_info() { +inline std::string* CollectionInfo::release_json_info() { // @@protoc_insertion_point(field_release:milvus.grpc.CollectionInfo.json_info) - return json_info_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return json_info_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void CollectionInfo::set_allocated_json_info(::std::string* json_info) { - if (json_info != NULL) { +inline void CollectionInfo::set_allocated_json_info(std::string* json_info) { + if (json_info != nullptr) { } else { } - json_info_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json_info); + json_info_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), json_info); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CollectionInfo.json_info) } @@ -8226,59 +10907,66 @@ inline void CollectionInfo::set_allocated_json_info(::std::string* json_info) { // GetEntityIDsParam -// optional string collection_name = 1; +// string collection_name = 1; inline void GetEntityIDsParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& GetEntityIDsParam::collection_name() const { +inline const std::string& GetEntityIDsParam::collection_name() const { // @@protoc_insertion_point(field_get:milvus.grpc.GetEntityIDsParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.GetNoArena(); } -inline void GetEntityIDsParam::set_collection_name(const ::std::string& value) { +inline void GetEntityIDsParam::set_collection_name(const std::string& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.GetEntityIDsParam.collection_name) } -inline void GetEntityIDsParam::set_collection_name(const char* value) { +inline void GetEntityIDsParam::set_collection_name(std::string&& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.GetEntityIDsParam.collection_name) +} +inline void GetEntityIDsParam::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.GetEntityIDsParam.collection_name) } inline void GetEntityIDsParam::set_collection_name(const char* value, size_t size) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.GetEntityIDsParam.collection_name) } -inline ::std::string* GetEntityIDsParam::mutable_collection_name() { +inline std::string* GetEntityIDsParam::mutable_collection_name() { // @@protoc_insertion_point(field_mutable:milvus.grpc.GetEntityIDsParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* GetEntityIDsParam::release_collection_name() { +inline std::string* GetEntityIDsParam::release_collection_name() { // @@protoc_insertion_point(field_release:milvus.grpc.GetEntityIDsParam.collection_name) - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void GetEntityIDsParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { +inline void GetEntityIDsParam::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { } else { } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GetEntityIDsParam.collection_name) } -// optional int64 segment_id = 2; +// int64 segment_id = 2; inline void GetEntityIDsParam::clear_segment_id() { - segment_id_ = GOOGLE_LONGLONG(0); + segment_id_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 GetEntityIDsParam::segment_id() const { +inline ::PROTOBUF_NAMESPACE_ID::int64 GetEntityIDsParam::segment_id() const { // @@protoc_insertion_point(field_get:milvus.grpc.GetEntityIDsParam.segment_id) return segment_id_; } -inline void GetEntityIDsParam::set_segment_id(::google::protobuf::int64 value) { +inline void GetEntityIDsParam::set_segment_id(::PROTOBUF_NAMESPACE_ID::int64 value) { segment_id_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.GetEntityIDsParam.segment_id) @@ -8288,47 +10976,54 @@ inline void GetEntityIDsParam::set_segment_id(::google::protobuf::int64 value) { // EntityIdentity -// optional string collection_name = 1; +// string collection_name = 1; inline void EntityIdentity::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& EntityIdentity::collection_name() const { +inline const std::string& EntityIdentity::collection_name() const { // @@protoc_insertion_point(field_get:milvus.grpc.EntityIdentity.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.GetNoArena(); } -inline void EntityIdentity::set_collection_name(const ::std::string& value) { +inline void EntityIdentity::set_collection_name(const std::string& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.EntityIdentity.collection_name) } -inline void EntityIdentity::set_collection_name(const char* value) { +inline void EntityIdentity::set_collection_name(std::string&& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.EntityIdentity.collection_name) +} +inline void EntityIdentity::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.EntityIdentity.collection_name) } inline void EntityIdentity::set_collection_name(const char* value, size_t size) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.EntityIdentity.collection_name) } -inline ::std::string* EntityIdentity::mutable_collection_name() { +inline std::string* EntityIdentity::mutable_collection_name() { // @@protoc_insertion_point(field_mutable:milvus.grpc.EntityIdentity.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* EntityIdentity::release_collection_name() { +inline std::string* EntityIdentity::release_collection_name() { // @@protoc_insertion_point(field_release:milvus.grpc.EntityIdentity.collection_name) - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void EntityIdentity::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { +inline void EntityIdentity::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { } else { } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.EntityIdentity.collection_name) } @@ -8339,24 +11034,24 @@ inline int EntityIdentity::id_array_size() const { inline void EntityIdentity::clear_id_array() { id_array_.Clear(); } -inline ::google::protobuf::int64 EntityIdentity::id_array(int index) const { +inline ::PROTOBUF_NAMESPACE_ID::int64 EntityIdentity::id_array(int index) const { // @@protoc_insertion_point(field_get:milvus.grpc.EntityIdentity.id_array) return id_array_.Get(index); } -inline void EntityIdentity::set_id_array(int index, ::google::protobuf::int64 value) { +inline void EntityIdentity::set_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { id_array_.Set(index, value); // @@protoc_insertion_point(field_set:milvus.grpc.EntityIdentity.id_array) } -inline void EntityIdentity::add_id_array(::google::protobuf::int64 value) { +inline void EntityIdentity::add_id_array(::PROTOBUF_NAMESPACE_ID::int64 value) { id_array_.Add(value); // @@protoc_insertion_point(field_add:milvus.grpc.EntityIdentity.id_array) } -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& EntityIdentity::id_array() const { // @@protoc_insertion_point(field_list:milvus.grpc.EntityIdentity.id_array) return id_array_; } -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* EntityIdentity::mutable_id_array() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.EntityIdentity.id_array) return &id_array_; @@ -8369,19 +11064,24 @@ inline int EntityIdentity::field_names_size() const { inline void EntityIdentity::clear_field_names() { field_names_.Clear(); } -inline const ::std::string& EntityIdentity::field_names(int index) const { +inline const std::string& EntityIdentity::field_names(int index) const { // @@protoc_insertion_point(field_get:milvus.grpc.EntityIdentity.field_names) return field_names_.Get(index); } -inline ::std::string* EntityIdentity::mutable_field_names(int index) { +inline std::string* EntityIdentity::mutable_field_names(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.EntityIdentity.field_names) return field_names_.Mutable(index); } -inline void EntityIdentity::set_field_names(int index, const ::std::string& value) { +inline void EntityIdentity::set_field_names(int index, const std::string& value) { // @@protoc_insertion_point(field_set:milvus.grpc.EntityIdentity.field_names) field_names_.Mutable(index)->assign(value); } +inline void EntityIdentity::set_field_names(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.grpc.EntityIdentity.field_names) + field_names_.Mutable(index)->assign(std::move(value)); +} inline void EntityIdentity::set_field_names(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); field_names_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:milvus.grpc.EntityIdentity.field_names) } @@ -8390,15 +11090,20 @@ inline void EntityIdentity::set_field_names(int index, const char* value, size_t reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.EntityIdentity.field_names) } -inline ::std::string* EntityIdentity::add_field_names() { +inline std::string* EntityIdentity::add_field_names() { // @@protoc_insertion_point(field_add_mutable:milvus.grpc.EntityIdentity.field_names) return field_names_.Add(); } -inline void EntityIdentity::add_field_names(const ::std::string& value) { +inline void EntityIdentity::add_field_names(const std::string& value) { field_names_.Add()->assign(value); // @@protoc_insertion_point(field_add:milvus.grpc.EntityIdentity.field_names) } +inline void EntityIdentity::add_field_names(std::string&& value) { + field_names_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:milvus.grpc.EntityIdentity.field_names) +} inline void EntityIdentity::add_field_names(const char* value) { + GOOGLE_DCHECK(value != nullptr); field_names_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:milvus.grpc.EntityIdentity.field_names) } @@ -8406,12 +11111,12 @@ inline void EntityIdentity::add_field_names(const char* value, size_t size) { field_names_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:milvus.grpc.EntityIdentity.field_names) } -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& EntityIdentity::field_names() const { // @@protoc_insertion_point(field_list:milvus.grpc.EntityIdentity.field_names) return field_names_; } -inline ::google::protobuf::RepeatedPtrField< ::std::string>* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* EntityIdentity::mutable_field_names() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.EntityIdentity.field_names) return &field_names_; @@ -8421,15 +11126,15 @@ EntityIdentity::mutable_field_names() { // VectorFieldParam -// optional int64 dimension = 1; +// int64 dimension = 1; inline void VectorFieldParam::clear_dimension() { - dimension_ = GOOGLE_LONGLONG(0); + dimension_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 VectorFieldParam::dimension() const { +inline ::PROTOBUF_NAMESPACE_ID::int64 VectorFieldParam::dimension() const { // @@protoc_insertion_point(field_get:milvus.grpc.VectorFieldParam.dimension) return dimension_; } -inline void VectorFieldParam::set_dimension(::google::protobuf::int64 value) { +inline void VectorFieldParam::set_dimension(::PROTOBUF_NAMESPACE_ID::int64 value) { dimension_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.VectorFieldParam.dimension) @@ -8439,7 +11144,7 @@ inline void VectorFieldParam::set_dimension(::google::protobuf::int64 value) { // FieldType -// optional .milvus.grpc.DataType data_type = 1; +// .milvus.grpc.DataType data_type = 1; inline bool FieldType::has_data_type() const { return value_case() == kDataType; } @@ -8468,7 +11173,7 @@ inline void FieldType::set_data_type(::milvus::grpc::DataType value) { // @@protoc_insertion_point(field_set:milvus.grpc.FieldType.data_type) } -// optional .milvus.grpc.VectorFieldParam vector_param = 2; +// .milvus.grpc.VectorFieldParam vector_param = 2; inline bool FieldType::has_vector_param() const { return value_case() == kVectorParam; } @@ -8481,40 +11186,33 @@ inline void FieldType::clear_vector_param() { clear_has_value(); } } -inline const ::milvus::grpc::VectorFieldParam& FieldType::vector_param() const { +inline ::milvus::grpc::VectorFieldParam* FieldType::release_vector_param() { + // @@protoc_insertion_point(field_release:milvus.grpc.FieldType.vector_param) + if (has_vector_param()) { + clear_has_value(); + ::milvus::grpc::VectorFieldParam* temp = value_.vector_param_; + value_.vector_param_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::milvus::grpc::VectorFieldParam& FieldType::vector_param() const { // @@protoc_insertion_point(field_get:milvus.grpc.FieldType.vector_param) return has_vector_param() ? *value_.vector_param_ - : ::milvus::grpc::VectorFieldParam::default_instance(); + : *reinterpret_cast< ::milvus::grpc::VectorFieldParam*>(&::milvus::grpc::_VectorFieldParam_default_instance_); } inline ::milvus::grpc::VectorFieldParam* FieldType::mutable_vector_param() { if (!has_vector_param()) { clear_value(); set_has_vector_param(); - value_.vector_param_ = new ::milvus::grpc::VectorFieldParam; + value_.vector_param_ = CreateMaybeMessage< ::milvus::grpc::VectorFieldParam >( + GetArenaNoVirtual()); } // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldType.vector_param) return value_.vector_param_; } -inline ::milvus::grpc::VectorFieldParam* FieldType::release_vector_param() { - // @@protoc_insertion_point(field_release:milvus.grpc.FieldType.vector_param) - if (has_vector_param()) { - clear_has_value(); - ::milvus::grpc::VectorFieldParam* temp = value_.vector_param_; - value_.vector_param_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void FieldType::set_allocated_vector_param(::milvus::grpc::VectorFieldParam* vector_param) { - clear_value(); - if (vector_param) { - set_has_vector_param(); - value_.vector_param_ = vector_param; - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.FieldType.vector_param) -} inline bool FieldType::has_value() const { return value_case() != VALUE_NOT_SET; @@ -8529,65 +11227,72 @@ inline FieldType::ValueCase FieldType::value_case() const { // FieldParam -// optional uint64 id = 1; +// uint64 id = 1; inline void FieldParam::clear_id() { - id_ = GOOGLE_ULONGLONG(0); + id_ = PROTOBUF_ULONGLONG(0); } -inline ::google::protobuf::uint64 FieldParam::id() const { +inline ::PROTOBUF_NAMESPACE_ID::uint64 FieldParam::id() const { // @@protoc_insertion_point(field_get:milvus.grpc.FieldParam.id) return id_; } -inline void FieldParam::set_id(::google::protobuf::uint64 value) { +inline void FieldParam::set_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { id_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.FieldParam.id) } -// optional string name = 2; +// string name = 2; inline void FieldParam::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& FieldParam::name() const { +inline const std::string& FieldParam::name() const { // @@protoc_insertion_point(field_get:milvus.grpc.FieldParam.name) - return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return name_.GetNoArena(); } -inline void FieldParam::set_name(const ::std::string& value) { +inline void FieldParam::set_name(const std::string& value) { - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.FieldParam.name) } -inline void FieldParam::set_name(const char* value) { +inline void FieldParam::set_name(std::string&& value) { - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.FieldParam.name) +} +inline void FieldParam::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.FieldParam.name) } inline void FieldParam::set_name(const char* value, size_t size) { - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.FieldParam.name) } -inline ::std::string* FieldParam::mutable_name() { +inline std::string* FieldParam::mutable_name() { // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldParam.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* FieldParam::release_name() { +inline std::string* FieldParam::release_name() { // @@protoc_insertion_point(field_release:milvus.grpc.FieldParam.name) - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void FieldParam::set_allocated_name(::std::string* name) { - if (name != NULL) { +inline void FieldParam::set_allocated_name(std::string* name) { + if (name != nullptr) { } else { } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.FieldParam.name) } -// optional .milvus.grpc.DataType type = 3; +// .milvus.grpc.DataType type = 3; inline void FieldParam::clear_type() { type_ = 0; } @@ -8608,24 +11313,24 @@ inline int FieldParam::index_params_size() const { inline void FieldParam::clear_index_params() { index_params_.Clear(); } -inline const ::milvus::grpc::KeyValuePair& FieldParam::index_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldParam.index_params) - return index_params_.Get(index); -} inline ::milvus::grpc::KeyValuePair* FieldParam::mutable_index_params(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldParam.index_params) return index_params_.Mutable(index); } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* +FieldParam::mutable_index_params() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.FieldParam.index_params) + return &index_params_; +} +inline const ::milvus::grpc::KeyValuePair& FieldParam::index_params(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.FieldParam.index_params) + return index_params_.Get(index); +} inline ::milvus::grpc::KeyValuePair* FieldParam::add_index_params() { // @@protoc_insertion_point(field_add:milvus.grpc.FieldParam.index_params) return index_params_.Add(); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -FieldParam::mutable_index_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.FieldParam.index_params) - return &index_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& FieldParam::index_params() const { // @@protoc_insertion_point(field_list:milvus.grpc.FieldParam.index_params) return index_params_; @@ -8638,24 +11343,24 @@ inline int FieldParam::extra_params_size() const { inline void FieldParam::clear_extra_params() { extra_params_.Clear(); } -inline const ::milvus::grpc::KeyValuePair& FieldParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldParam.extra_params) - return extra_params_.Get(index); -} inline ::milvus::grpc::KeyValuePair* FieldParam::mutable_extra_params(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldParam.extra_params) return extra_params_.Mutable(index); } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* +FieldParam::mutable_extra_params() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.FieldParam.extra_params) + return &extra_params_; +} +inline const ::milvus::grpc::KeyValuePair& FieldParam::extra_params(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.FieldParam.extra_params) + return extra_params_.Get(index); +} inline ::milvus::grpc::KeyValuePair* FieldParam::add_extra_params() { // @@protoc_insertion_point(field_add:milvus.grpc.FieldParam.extra_params) return extra_params_.Add(); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -FieldParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.FieldParam.extra_params) - return &extra_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& FieldParam::extra_params() const { // @@protoc_insertion_point(field_list:milvus.grpc.FieldParam.extra_params) return extra_params_; @@ -8672,24 +11377,24 @@ inline int VectorFieldRecord::value_size() const { inline void VectorFieldRecord::clear_value() { value_.Clear(); } -inline const ::milvus::grpc::VectorRowRecord& VectorFieldRecord::value(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorFieldRecord.value) - return value_.Get(index); -} inline ::milvus::grpc::VectorRowRecord* VectorFieldRecord::mutable_value(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorFieldRecord.value) return value_.Mutable(index); } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* +VectorFieldRecord::mutable_value() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorFieldRecord.value) + return &value_; +} +inline const ::milvus::grpc::VectorRowRecord& VectorFieldRecord::value(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.VectorFieldRecord.value) + return value_.Get(index); +} inline ::milvus::grpc::VectorRowRecord* VectorFieldRecord::add_value() { // @@protoc_insertion_point(field_add:milvus.grpc.VectorFieldRecord.value) return value_.Add(); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* -VectorFieldRecord::mutable_value() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorFieldRecord.value) - return &value_; -} -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& VectorFieldRecord::value() const { // @@protoc_insertion_point(field_list:milvus.grpc.VectorFieldRecord.value) return value_; @@ -8699,47 +11404,54 @@ VectorFieldRecord::value() const { // TermQuery -// optional string field_name = 1; +// string field_name = 1; inline void TermQuery::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& TermQuery::field_name() const { +inline const std::string& TermQuery::field_name() const { // @@protoc_insertion_point(field_get:milvus.grpc.TermQuery.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return field_name_.GetNoArena(); } -inline void TermQuery::set_field_name(const ::std::string& value) { +inline void TermQuery::set_field_name(const std::string& value) { - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.TermQuery.field_name) } -inline void TermQuery::set_field_name(const char* value) { +inline void TermQuery::set_field_name(std::string&& value) { - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + field_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.TermQuery.field_name) +} +inline void TermQuery::set_field_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.TermQuery.field_name) } inline void TermQuery::set_field_name(const char* value, size_t size) { - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.TermQuery.field_name) } -inline ::std::string* TermQuery::mutable_field_name() { +inline std::string* TermQuery::mutable_field_name() { // @@protoc_insertion_point(field_mutable:milvus.grpc.TermQuery.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* TermQuery::release_field_name() { +inline std::string* TermQuery::release_field_name() { // @@protoc_insertion_point(field_release:milvus.grpc.TermQuery.field_name) - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void TermQuery::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { +inline void TermQuery::set_allocated_field_name(std::string* field_name) { + if (field_name != nullptr) { } else { } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); + field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.TermQuery.field_name) } @@ -8750,24 +11462,24 @@ inline int TermQuery::int_value_size() const { inline void TermQuery::clear_int_value() { int_value_.Clear(); } -inline ::google::protobuf::int64 TermQuery::int_value(int index) const { +inline ::PROTOBUF_NAMESPACE_ID::int64 TermQuery::int_value(int index) const { // @@protoc_insertion_point(field_get:milvus.grpc.TermQuery.int_value) return int_value_.Get(index); } -inline void TermQuery::set_int_value(int index, ::google::protobuf::int64 value) { +inline void TermQuery::set_int_value(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { int_value_.Set(index, value); // @@protoc_insertion_point(field_set:milvus.grpc.TermQuery.int_value) } -inline void TermQuery::add_int_value(::google::protobuf::int64 value) { +inline void TermQuery::add_int_value(::PROTOBUF_NAMESPACE_ID::int64 value) { int_value_.Add(value); // @@protoc_insertion_point(field_add:milvus.grpc.TermQuery.int_value) } -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& TermQuery::int_value() const { // @@protoc_insertion_point(field_list:milvus.grpc.TermQuery.int_value) return int_value_; } -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* TermQuery::mutable_int_value() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.TermQuery.int_value) return &int_value_; @@ -8792,32 +11504,32 @@ inline void TermQuery::add_double_value(double value) { double_value_.Add(value); // @@protoc_insertion_point(field_add:milvus.grpc.TermQuery.double_value) } -inline const ::google::protobuf::RepeatedField< double >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& TermQuery::double_value() const { // @@protoc_insertion_point(field_list:milvus.grpc.TermQuery.double_value) return double_value_; } -inline ::google::protobuf::RepeatedField< double >* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* TermQuery::mutable_double_value() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.TermQuery.double_value) return &double_value_; } -// optional int64 value_num = 4; +// int64 value_num = 4; inline void TermQuery::clear_value_num() { - value_num_ = GOOGLE_LONGLONG(0); + value_num_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 TermQuery::value_num() const { +inline ::PROTOBUF_NAMESPACE_ID::int64 TermQuery::value_num() const { // @@protoc_insertion_point(field_get:milvus.grpc.TermQuery.value_num) return value_num_; } -inline void TermQuery::set_value_num(::google::protobuf::int64 value) { +inline void TermQuery::set_value_num(::PROTOBUF_NAMESPACE_ID::int64 value) { value_num_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.TermQuery.value_num) } -// optional float boost = 5; +// float boost = 5; inline void TermQuery::clear_boost() { boost_ = 0; } @@ -8838,24 +11550,24 @@ inline int TermQuery::extra_params_size() const { inline void TermQuery::clear_extra_params() { extra_params_.Clear(); } -inline const ::milvus::grpc::KeyValuePair& TermQuery::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.TermQuery.extra_params) - return extra_params_.Get(index); -} inline ::milvus::grpc::KeyValuePair* TermQuery::mutable_extra_params(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.TermQuery.extra_params) return extra_params_.Mutable(index); } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* +TermQuery::mutable_extra_params() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.TermQuery.extra_params) + return &extra_params_; +} +inline const ::milvus::grpc::KeyValuePair& TermQuery::extra_params(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.TermQuery.extra_params) + return extra_params_.Get(index); +} inline ::milvus::grpc::KeyValuePair* TermQuery::add_extra_params() { // @@protoc_insertion_point(field_add:milvus.grpc.TermQuery.extra_params) return extra_params_.Add(); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -TermQuery::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.TermQuery.extra_params) - return &extra_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& TermQuery::extra_params() const { // @@protoc_insertion_point(field_list:milvus.grpc.TermQuery.extra_params) return extra_params_; @@ -8865,7 +11577,7 @@ TermQuery::extra_params() const { // CompareExpr -// optional .milvus.grpc.CompareOperator operator = 1; +// .milvus.grpc.CompareOperator operator = 1; inline void CompareExpr::clear_operator_() { operator__ = 0; } @@ -8879,47 +11591,54 @@ inline void CompareExpr::set_operator_(::milvus::grpc::CompareOperator value) { // @@protoc_insertion_point(field_set:milvus.grpc.CompareExpr.operator) } -// optional string operand = 2; +// string operand = 2; inline void CompareExpr::clear_operand() { - operand_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + operand_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& CompareExpr::operand() const { +inline const std::string& CompareExpr::operand() const { // @@protoc_insertion_point(field_get:milvus.grpc.CompareExpr.operand) - return operand_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return operand_.GetNoArena(); } -inline void CompareExpr::set_operand(const ::std::string& value) { +inline void CompareExpr::set_operand(const std::string& value) { - operand_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + operand_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.CompareExpr.operand) } -inline void CompareExpr::set_operand(const char* value) { +inline void CompareExpr::set_operand(std::string&& value) { - operand_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + operand_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.CompareExpr.operand) +} +inline void CompareExpr::set_operand(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + operand_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.CompareExpr.operand) } inline void CompareExpr::set_operand(const char* value, size_t size) { - operand_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + operand_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.CompareExpr.operand) } -inline ::std::string* CompareExpr::mutable_operand() { +inline std::string* CompareExpr::mutable_operand() { // @@protoc_insertion_point(field_mutable:milvus.grpc.CompareExpr.operand) - return operand_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return operand_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* CompareExpr::release_operand() { +inline std::string* CompareExpr::release_operand() { // @@protoc_insertion_point(field_release:milvus.grpc.CompareExpr.operand) - return operand_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return operand_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void CompareExpr::set_allocated_operand(::std::string* operand) { - if (operand != NULL) { +inline void CompareExpr::set_allocated_operand(std::string* operand) { + if (operand != nullptr) { } else { } - operand_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), operand); + operand_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), operand); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CompareExpr.operand) } @@ -8927,47 +11646,54 @@ inline void CompareExpr::set_allocated_operand(::std::string* operand) { // RangeQuery -// optional string field_name = 1; +// string field_name = 1; inline void RangeQuery::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& RangeQuery::field_name() const { +inline const std::string& RangeQuery::field_name() const { // @@protoc_insertion_point(field_get:milvus.grpc.RangeQuery.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return field_name_.GetNoArena(); } -inline void RangeQuery::set_field_name(const ::std::string& value) { +inline void RangeQuery::set_field_name(const std::string& value) { - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.RangeQuery.field_name) } -inline void RangeQuery::set_field_name(const char* value) { +inline void RangeQuery::set_field_name(std::string&& value) { - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + field_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.RangeQuery.field_name) +} +inline void RangeQuery::set_field_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.RangeQuery.field_name) } inline void RangeQuery::set_field_name(const char* value, size_t size) { - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.RangeQuery.field_name) } -inline ::std::string* RangeQuery::mutable_field_name() { +inline std::string* RangeQuery::mutable_field_name() { // @@protoc_insertion_point(field_mutable:milvus.grpc.RangeQuery.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* RangeQuery::release_field_name() { +inline std::string* RangeQuery::release_field_name() { // @@protoc_insertion_point(field_release:milvus.grpc.RangeQuery.field_name) - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void RangeQuery::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { +inline void RangeQuery::set_allocated_field_name(std::string* field_name) { + if (field_name != nullptr) { } else { } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); + field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.RangeQuery.field_name) } @@ -8978,30 +11704,30 @@ inline int RangeQuery::operand_size() const { inline void RangeQuery::clear_operand() { operand_.Clear(); } -inline const ::milvus::grpc::CompareExpr& RangeQuery::operand(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.RangeQuery.operand) - return operand_.Get(index); -} inline ::milvus::grpc::CompareExpr* RangeQuery::mutable_operand(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.RangeQuery.operand) return operand_.Mutable(index); } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::CompareExpr >* +RangeQuery::mutable_operand() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.RangeQuery.operand) + return &operand_; +} +inline const ::milvus::grpc::CompareExpr& RangeQuery::operand(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.RangeQuery.operand) + return operand_.Get(index); +} inline ::milvus::grpc::CompareExpr* RangeQuery::add_operand() { // @@protoc_insertion_point(field_add:milvus.grpc.RangeQuery.operand) return operand_.Add(); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::CompareExpr >* -RangeQuery::mutable_operand() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.RangeQuery.operand) - return &operand_; -} -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::CompareExpr >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::CompareExpr >& RangeQuery::operand() const { // @@protoc_insertion_point(field_list:milvus.grpc.RangeQuery.operand) return operand_; } -// optional float boost = 3; +// float boost = 3; inline void RangeQuery::clear_boost() { boost_ = 0; } @@ -9022,24 +11748,24 @@ inline int RangeQuery::extra_params_size() const { inline void RangeQuery::clear_extra_params() { extra_params_.Clear(); } -inline const ::milvus::grpc::KeyValuePair& RangeQuery::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.RangeQuery.extra_params) - return extra_params_.Get(index); -} inline ::milvus::grpc::KeyValuePair* RangeQuery::mutable_extra_params(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.RangeQuery.extra_params) return extra_params_.Mutable(index); } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* +RangeQuery::mutable_extra_params() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.RangeQuery.extra_params) + return &extra_params_; +} +inline const ::milvus::grpc::KeyValuePair& RangeQuery::extra_params(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.RangeQuery.extra_params) + return extra_params_.Get(index); +} inline ::milvus::grpc::KeyValuePair* RangeQuery::add_extra_params() { // @@protoc_insertion_point(field_add:milvus.grpc.RangeQuery.extra_params) return extra_params_.Add(); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -RangeQuery::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.RangeQuery.extra_params) - return &extra_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& RangeQuery::extra_params() const { // @@protoc_insertion_point(field_list:milvus.grpc.RangeQuery.extra_params) return extra_params_; @@ -9049,51 +11775,58 @@ RangeQuery::extra_params() const { // VectorQuery -// optional string field_name = 1; +// string field_name = 1; inline void VectorQuery::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& VectorQuery::field_name() const { +inline const std::string& VectorQuery::field_name() const { // @@protoc_insertion_point(field_get:milvus.grpc.VectorQuery.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return field_name_.GetNoArena(); } -inline void VectorQuery::set_field_name(const ::std::string& value) { +inline void VectorQuery::set_field_name(const std::string& value) { - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.VectorQuery.field_name) } -inline void VectorQuery::set_field_name(const char* value) { +inline void VectorQuery::set_field_name(std::string&& value) { - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + field_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.VectorQuery.field_name) +} +inline void VectorQuery::set_field_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.VectorQuery.field_name) } inline void VectorQuery::set_field_name(const char* value, size_t size) { - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.VectorQuery.field_name) } -inline ::std::string* VectorQuery::mutable_field_name() { +inline std::string* VectorQuery::mutable_field_name() { // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorQuery.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* VectorQuery::release_field_name() { +inline std::string* VectorQuery::release_field_name() { // @@protoc_insertion_point(field_release:milvus.grpc.VectorQuery.field_name) - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void VectorQuery::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { +inline void VectorQuery::set_allocated_field_name(std::string* field_name) { + if (field_name != nullptr) { } else { } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); + field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.VectorQuery.field_name) } -// optional float query_boost = 2; +// float query_boost = 2; inline void VectorQuery::clear_query_boost() { query_boost_ = 0; } @@ -9114,38 +11847,38 @@ inline int VectorQuery::records_size() const { inline void VectorQuery::clear_records() { records_.Clear(); } -inline const ::milvus::grpc::VectorRowRecord& VectorQuery::records(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorQuery.records) - return records_.Get(index); -} inline ::milvus::grpc::VectorRowRecord* VectorQuery::mutable_records(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorQuery.records) return records_.Mutable(index); } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* +VectorQuery::mutable_records() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorQuery.records) + return &records_; +} +inline const ::milvus::grpc::VectorRowRecord& VectorQuery::records(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.VectorQuery.records) + return records_.Get(index); +} inline ::milvus::grpc::VectorRowRecord* VectorQuery::add_records() { // @@protoc_insertion_point(field_add:milvus.grpc.VectorQuery.records) return records_.Add(); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* -VectorQuery::mutable_records() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorQuery.records) - return &records_; -} -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& VectorQuery::records() const { // @@protoc_insertion_point(field_list:milvus.grpc.VectorQuery.records) return records_; } -// optional int64 topk = 4; +// int64 topk = 4; inline void VectorQuery::clear_topk() { - topk_ = GOOGLE_LONGLONG(0); + topk_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 VectorQuery::topk() const { +inline ::PROTOBUF_NAMESPACE_ID::int64 VectorQuery::topk() const { // @@protoc_insertion_point(field_get:milvus.grpc.VectorQuery.topk) return topk_; } -inline void VectorQuery::set_topk(::google::protobuf::int64 value) { +inline void VectorQuery::set_topk(::PROTOBUF_NAMESPACE_ID::int64 value) { topk_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.VectorQuery.topk) @@ -9158,24 +11891,24 @@ inline int VectorQuery::extra_params_size() const { inline void VectorQuery::clear_extra_params() { extra_params_.Clear(); } -inline const ::milvus::grpc::KeyValuePair& VectorQuery::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorQuery.extra_params) - return extra_params_.Get(index); -} inline ::milvus::grpc::KeyValuePair* VectorQuery::mutable_extra_params(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorQuery.extra_params) return extra_params_.Mutable(index); } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* +VectorQuery::mutable_extra_params() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorQuery.extra_params) + return &extra_params_; +} +inline const ::milvus::grpc::KeyValuePair& VectorQuery::extra_params(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.VectorQuery.extra_params) + return extra_params_.Get(index); +} inline ::milvus::grpc::KeyValuePair* VectorQuery::add_extra_params() { // @@protoc_insertion_point(field_add:milvus.grpc.VectorQuery.extra_params) return extra_params_.Add(); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -VectorQuery::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorQuery.extra_params) - return &extra_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& VectorQuery::extra_params() const { // @@protoc_insertion_point(field_list:milvus.grpc.VectorQuery.extra_params) return extra_params_; @@ -9185,7 +11918,7 @@ VectorQuery::extra_params() const { // BooleanQuery -// optional .milvus.grpc.Occur occur = 1; +// .milvus.grpc.Occur occur = 1; inline void BooleanQuery::clear_occur() { occur_ = 0; } @@ -9206,24 +11939,24 @@ inline int BooleanQuery::general_query_size() const { inline void BooleanQuery::clear_general_query() { general_query_.Clear(); } -inline const ::milvus::grpc::GeneralQuery& BooleanQuery::general_query(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.BooleanQuery.general_query) - return general_query_.Get(index); -} inline ::milvus::grpc::GeneralQuery* BooleanQuery::mutable_general_query(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.BooleanQuery.general_query) return general_query_.Mutable(index); } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::GeneralQuery >* +BooleanQuery::mutable_general_query() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.BooleanQuery.general_query) + return &general_query_; +} +inline const ::milvus::grpc::GeneralQuery& BooleanQuery::general_query(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.BooleanQuery.general_query) + return general_query_.Get(index); +} inline ::milvus::grpc::GeneralQuery* BooleanQuery::add_general_query() { // @@protoc_insertion_point(field_add:milvus.grpc.BooleanQuery.general_query) return general_query_.Add(); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::GeneralQuery >* -BooleanQuery::mutable_general_query() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.BooleanQuery.general_query) - return &general_query_; -} -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::GeneralQuery >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::GeneralQuery >& BooleanQuery::general_query() const { // @@protoc_insertion_point(field_list:milvus.grpc.BooleanQuery.general_query) return general_query_; @@ -9233,7 +11966,7 @@ BooleanQuery::general_query() const { // GeneralQuery -// optional .milvus.grpc.BooleanQuery boolean_query = 1; +// .milvus.grpc.BooleanQuery boolean_query = 1; inline bool GeneralQuery::has_boolean_query() const { return query_case() == kBooleanQuery; } @@ -9246,42 +11979,35 @@ inline void GeneralQuery::clear_boolean_query() { clear_has_query(); } } -inline const ::milvus::grpc::BooleanQuery& GeneralQuery::boolean_query() const { +inline ::milvus::grpc::BooleanQuery* GeneralQuery::release_boolean_query() { + // @@protoc_insertion_point(field_release:milvus.grpc.GeneralQuery.boolean_query) + if (has_boolean_query()) { + clear_has_query(); + ::milvus::grpc::BooleanQuery* temp = query_.boolean_query_; + query_.boolean_query_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::milvus::grpc::BooleanQuery& GeneralQuery::boolean_query() const { // @@protoc_insertion_point(field_get:milvus.grpc.GeneralQuery.boolean_query) return has_boolean_query() ? *query_.boolean_query_ - : ::milvus::grpc::BooleanQuery::default_instance(); + : *reinterpret_cast< ::milvus::grpc::BooleanQuery*>(&::milvus::grpc::_BooleanQuery_default_instance_); } inline ::milvus::grpc::BooleanQuery* GeneralQuery::mutable_boolean_query() { if (!has_boolean_query()) { clear_query(); set_has_boolean_query(); - query_.boolean_query_ = new ::milvus::grpc::BooleanQuery; + query_.boolean_query_ = CreateMaybeMessage< ::milvus::grpc::BooleanQuery >( + GetArenaNoVirtual()); } // @@protoc_insertion_point(field_mutable:milvus.grpc.GeneralQuery.boolean_query) return query_.boolean_query_; } -inline ::milvus::grpc::BooleanQuery* GeneralQuery::release_boolean_query() { - // @@protoc_insertion_point(field_release:milvus.grpc.GeneralQuery.boolean_query) - if (has_boolean_query()) { - clear_has_query(); - ::milvus::grpc::BooleanQuery* temp = query_.boolean_query_; - query_.boolean_query_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void GeneralQuery::set_allocated_boolean_query(::milvus::grpc::BooleanQuery* boolean_query) { - clear_query(); - if (boolean_query) { - set_has_boolean_query(); - query_.boolean_query_ = boolean_query; - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GeneralQuery.boolean_query) -} -// optional .milvus.grpc.TermQuery term_query = 2; +// .milvus.grpc.TermQuery term_query = 2; inline bool GeneralQuery::has_term_query() const { return query_case() == kTermQuery; } @@ -9294,42 +12020,35 @@ inline void GeneralQuery::clear_term_query() { clear_has_query(); } } -inline const ::milvus::grpc::TermQuery& GeneralQuery::term_query() const { +inline ::milvus::grpc::TermQuery* GeneralQuery::release_term_query() { + // @@protoc_insertion_point(field_release:milvus.grpc.GeneralQuery.term_query) + if (has_term_query()) { + clear_has_query(); + ::milvus::grpc::TermQuery* temp = query_.term_query_; + query_.term_query_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::milvus::grpc::TermQuery& GeneralQuery::term_query() const { // @@protoc_insertion_point(field_get:milvus.grpc.GeneralQuery.term_query) return has_term_query() ? *query_.term_query_ - : ::milvus::grpc::TermQuery::default_instance(); + : *reinterpret_cast< ::milvus::grpc::TermQuery*>(&::milvus::grpc::_TermQuery_default_instance_); } inline ::milvus::grpc::TermQuery* GeneralQuery::mutable_term_query() { if (!has_term_query()) { clear_query(); set_has_term_query(); - query_.term_query_ = new ::milvus::grpc::TermQuery; + query_.term_query_ = CreateMaybeMessage< ::milvus::grpc::TermQuery >( + GetArenaNoVirtual()); } // @@protoc_insertion_point(field_mutable:milvus.grpc.GeneralQuery.term_query) return query_.term_query_; } -inline ::milvus::grpc::TermQuery* GeneralQuery::release_term_query() { - // @@protoc_insertion_point(field_release:milvus.grpc.GeneralQuery.term_query) - if (has_term_query()) { - clear_has_query(); - ::milvus::grpc::TermQuery* temp = query_.term_query_; - query_.term_query_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void GeneralQuery::set_allocated_term_query(::milvus::grpc::TermQuery* term_query) { - clear_query(); - if (term_query) { - set_has_term_query(); - query_.term_query_ = term_query; - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GeneralQuery.term_query) -} -// optional .milvus.grpc.RangeQuery range_query = 3; +// .milvus.grpc.RangeQuery range_query = 3; inline bool GeneralQuery::has_range_query() const { return query_case() == kRangeQuery; } @@ -9342,42 +12061,35 @@ inline void GeneralQuery::clear_range_query() { clear_has_query(); } } -inline const ::milvus::grpc::RangeQuery& GeneralQuery::range_query() const { +inline ::milvus::grpc::RangeQuery* GeneralQuery::release_range_query() { + // @@protoc_insertion_point(field_release:milvus.grpc.GeneralQuery.range_query) + if (has_range_query()) { + clear_has_query(); + ::milvus::grpc::RangeQuery* temp = query_.range_query_; + query_.range_query_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::milvus::grpc::RangeQuery& GeneralQuery::range_query() const { // @@protoc_insertion_point(field_get:milvus.grpc.GeneralQuery.range_query) return has_range_query() ? *query_.range_query_ - : ::milvus::grpc::RangeQuery::default_instance(); + : *reinterpret_cast< ::milvus::grpc::RangeQuery*>(&::milvus::grpc::_RangeQuery_default_instance_); } inline ::milvus::grpc::RangeQuery* GeneralQuery::mutable_range_query() { if (!has_range_query()) { clear_query(); set_has_range_query(); - query_.range_query_ = new ::milvus::grpc::RangeQuery; + query_.range_query_ = CreateMaybeMessage< ::milvus::grpc::RangeQuery >( + GetArenaNoVirtual()); } // @@protoc_insertion_point(field_mutable:milvus.grpc.GeneralQuery.range_query) return query_.range_query_; } -inline ::milvus::grpc::RangeQuery* GeneralQuery::release_range_query() { - // @@protoc_insertion_point(field_release:milvus.grpc.GeneralQuery.range_query) - if (has_range_query()) { - clear_has_query(); - ::milvus::grpc::RangeQuery* temp = query_.range_query_; - query_.range_query_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void GeneralQuery::set_allocated_range_query(::milvus::grpc::RangeQuery* range_query) { - clear_query(); - if (range_query) { - set_has_range_query(); - query_.range_query_ = range_query; - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GeneralQuery.range_query) -} -// optional .milvus.grpc.VectorQuery vector_query = 4; +// .milvus.grpc.VectorQuery vector_query = 4; inline bool GeneralQuery::has_vector_query() const { return query_case() == kVectorQuery; } @@ -9390,40 +12102,33 @@ inline void GeneralQuery::clear_vector_query() { clear_has_query(); } } -inline const ::milvus::grpc::VectorQuery& GeneralQuery::vector_query() const { +inline ::milvus::grpc::VectorQuery* GeneralQuery::release_vector_query() { + // @@protoc_insertion_point(field_release:milvus.grpc.GeneralQuery.vector_query) + if (has_vector_query()) { + clear_has_query(); + ::milvus::grpc::VectorQuery* temp = query_.vector_query_; + query_.vector_query_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::milvus::grpc::VectorQuery& GeneralQuery::vector_query() const { // @@protoc_insertion_point(field_get:milvus.grpc.GeneralQuery.vector_query) return has_vector_query() ? *query_.vector_query_ - : ::milvus::grpc::VectorQuery::default_instance(); + : *reinterpret_cast< ::milvus::grpc::VectorQuery*>(&::milvus::grpc::_VectorQuery_default_instance_); } inline ::milvus::grpc::VectorQuery* GeneralQuery::mutable_vector_query() { if (!has_vector_query()) { clear_query(); set_has_vector_query(); - query_.vector_query_ = new ::milvus::grpc::VectorQuery; + query_.vector_query_ = CreateMaybeMessage< ::milvus::grpc::VectorQuery >( + GetArenaNoVirtual()); } // @@protoc_insertion_point(field_mutable:milvus.grpc.GeneralQuery.vector_query) return query_.vector_query_; } -inline ::milvus::grpc::VectorQuery* GeneralQuery::release_vector_query() { - // @@protoc_insertion_point(field_release:milvus.grpc.GeneralQuery.vector_query) - if (has_vector_query()) { - clear_has_query(); - ::milvus::grpc::VectorQuery* temp = query_.vector_query_; - query_.vector_query_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void GeneralQuery::set_allocated_vector_query(::milvus::grpc::VectorQuery* vector_query) { - clear_query(); - if (vector_query) { - set_has_vector_query(); - query_.vector_query_ = vector_query; - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GeneralQuery.vector_query) -} inline bool GeneralQuery::has_query() const { return query_case() != QUERY_NOT_SET; @@ -9438,47 +12143,54 @@ inline GeneralQuery::QueryCase GeneralQuery::query_case() const { // SearchParamPB -// optional string collection_name = 1; +// string collection_name = 1; inline void SearchParamPB::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& SearchParamPB::collection_name() const { +inline const std::string& SearchParamPB::collection_name() const { // @@protoc_insertion_point(field_get:milvus.grpc.SearchParamPB.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.GetNoArena(); } -inline void SearchParamPB::set_collection_name(const ::std::string& value) { +inline void SearchParamPB::set_collection_name(const std::string& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.SearchParamPB.collection_name) } -inline void SearchParamPB::set_collection_name(const char* value) { +inline void SearchParamPB::set_collection_name(std::string&& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.SearchParamPB.collection_name) +} +inline void SearchParamPB::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchParamPB.collection_name) } inline void SearchParamPB::set_collection_name(const char* value, size_t size) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchParamPB.collection_name) } -inline ::std::string* SearchParamPB::mutable_collection_name() { +inline std::string* SearchParamPB::mutable_collection_name() { // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParamPB.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* SearchParamPB::release_collection_name() { +inline std::string* SearchParamPB::release_collection_name() { // @@protoc_insertion_point(field_release:milvus.grpc.SearchParamPB.collection_name) - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void SearchParamPB::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { +inline void SearchParamPB::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { } else { } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchParamPB.collection_name) } @@ -9489,19 +12201,24 @@ inline int SearchParamPB::partition_tag_array_size() const { inline void SearchParamPB::clear_partition_tag_array() { partition_tag_array_.Clear(); } -inline const ::std::string& SearchParamPB::partition_tag_array(int index) const { +inline const std::string& SearchParamPB::partition_tag_array(int index) const { // @@protoc_insertion_point(field_get:milvus.grpc.SearchParamPB.partition_tag_array) return partition_tag_array_.Get(index); } -inline ::std::string* SearchParamPB::mutable_partition_tag_array(int index) { +inline std::string* SearchParamPB::mutable_partition_tag_array(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParamPB.partition_tag_array) return partition_tag_array_.Mutable(index); } -inline void SearchParamPB::set_partition_tag_array(int index, const ::std::string& value) { +inline void SearchParamPB::set_partition_tag_array(int index, const std::string& value) { // @@protoc_insertion_point(field_set:milvus.grpc.SearchParamPB.partition_tag_array) partition_tag_array_.Mutable(index)->assign(value); } +inline void SearchParamPB::set_partition_tag_array(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.grpc.SearchParamPB.partition_tag_array) + partition_tag_array_.Mutable(index)->assign(std::move(value)); +} inline void SearchParamPB::set_partition_tag_array(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); partition_tag_array_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchParamPB.partition_tag_array) } @@ -9510,15 +12227,20 @@ inline void SearchParamPB::set_partition_tag_array(int index, const char* value, reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchParamPB.partition_tag_array) } -inline ::std::string* SearchParamPB::add_partition_tag_array() { +inline std::string* SearchParamPB::add_partition_tag_array() { // @@protoc_insertion_point(field_add_mutable:milvus.grpc.SearchParamPB.partition_tag_array) return partition_tag_array_.Add(); } -inline void SearchParamPB::add_partition_tag_array(const ::std::string& value) { +inline void SearchParamPB::add_partition_tag_array(const std::string& value) { partition_tag_array_.Add()->assign(value); // @@protoc_insertion_point(field_add:milvus.grpc.SearchParamPB.partition_tag_array) } +inline void SearchParamPB::add_partition_tag_array(std::string&& value) { + partition_tag_array_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:milvus.grpc.SearchParamPB.partition_tag_array) +} inline void SearchParamPB::add_partition_tag_array(const char* value) { + GOOGLE_DCHECK(value != nullptr); partition_tag_array_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:milvus.grpc.SearchParamPB.partition_tag_array) } @@ -9526,52 +12248,65 @@ inline void SearchParamPB::add_partition_tag_array(const char* value, size_t siz partition_tag_array_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:milvus.grpc.SearchParamPB.partition_tag_array) } -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& SearchParamPB::partition_tag_array() const { // @@protoc_insertion_point(field_list:milvus.grpc.SearchParamPB.partition_tag_array) return partition_tag_array_; } -inline ::google::protobuf::RepeatedPtrField< ::std::string>* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* SearchParamPB::mutable_partition_tag_array() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchParamPB.partition_tag_array) return &partition_tag_array_; } -// optional .milvus.grpc.GeneralQuery general_query = 3; +// .milvus.grpc.GeneralQuery general_query = 3; inline bool SearchParamPB::has_general_query() const { - return !_is_default_instance_ && general_query_ != NULL; + return this != internal_default_instance() && general_query_ != nullptr; } inline void SearchParamPB::clear_general_query() { - if (GetArenaNoVirtual() == NULL && general_query_ != NULL) delete general_query_; - general_query_ = NULL; + if (GetArenaNoVirtual() == nullptr && general_query_ != nullptr) { + delete general_query_; + } + general_query_ = nullptr; } inline const ::milvus::grpc::GeneralQuery& SearchParamPB::general_query() const { + const ::milvus::grpc::GeneralQuery* p = general_query_; // @@protoc_insertion_point(field_get:milvus.grpc.SearchParamPB.general_query) - return general_query_ != NULL ? *general_query_ : *default_instance_->general_query_; -} -inline ::milvus::grpc::GeneralQuery* SearchParamPB::mutable_general_query() { - - if (general_query_ == NULL) { - general_query_ = new ::milvus::grpc::GeneralQuery; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParamPB.general_query) - return general_query_; + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::grpc::_GeneralQuery_default_instance_); } inline ::milvus::grpc::GeneralQuery* SearchParamPB::release_general_query() { // @@protoc_insertion_point(field_release:milvus.grpc.SearchParamPB.general_query) ::milvus::grpc::GeneralQuery* temp = general_query_; - general_query_ = NULL; + general_query_ = nullptr; return temp; } +inline ::milvus::grpc::GeneralQuery* SearchParamPB::mutable_general_query() { + + if (general_query_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::grpc::GeneralQuery>(GetArenaNoVirtual()); + general_query_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParamPB.general_query) + return general_query_; +} inline void SearchParamPB::set_allocated_general_query(::milvus::grpc::GeneralQuery* general_query) { - delete general_query_; - general_query_ = general_query; + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete general_query_; + } if (general_query) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + general_query = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, general_query, submessage_arena); + } } else { } + general_query_ = general_query; // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchParamPB.general_query) } @@ -9582,24 +12317,24 @@ inline int SearchParamPB::extra_params_size() const { inline void SearchParamPB::clear_extra_params() { extra_params_.Clear(); } -inline const ::milvus::grpc::KeyValuePair& SearchParamPB::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParamPB.extra_params) - return extra_params_.Get(index); -} inline ::milvus::grpc::KeyValuePair* SearchParamPB::mutable_extra_params(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParamPB.extra_params) return extra_params_.Mutable(index); } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* +SearchParamPB::mutable_extra_params() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchParamPB.extra_params) + return &extra_params_; +} +inline const ::milvus::grpc::KeyValuePair& SearchParamPB::extra_params(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.SearchParamPB.extra_params) + return extra_params_.Get(index); +} inline ::milvus::grpc::KeyValuePair* SearchParamPB::add_extra_params() { // @@protoc_insertion_point(field_add:milvus.grpc.SearchParamPB.extra_params) return extra_params_.Add(); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -SearchParamPB::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchParamPB.extra_params) - return &extra_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& SearchParamPB::extra_params() const { // @@protoc_insertion_point(field_list:milvus.grpc.SearchParamPB.extra_params) return extra_params_; @@ -9609,189 +12344,216 @@ SearchParamPB::extra_params() const { // InsertOrDeleteMsg -// optional string collection_name = 1; +// string collection_name = 1; inline void InsertOrDeleteMsg::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& InsertOrDeleteMsg::collection_name() const { +inline const std::string& InsertOrDeleteMsg::collection_name() const { // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.GetNoArena(); } -inline void InsertOrDeleteMsg::set_collection_name(const ::std::string& value) { +inline void InsertOrDeleteMsg::set_collection_name(const std::string& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.InsertOrDeleteMsg.collection_name) } -inline void InsertOrDeleteMsg::set_collection_name(const char* value) { +inline void InsertOrDeleteMsg::set_collection_name(std::string&& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.InsertOrDeleteMsg.collection_name) +} +inline void InsertOrDeleteMsg::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.InsertOrDeleteMsg.collection_name) } inline void InsertOrDeleteMsg::set_collection_name(const char* value, size_t size) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.InsertOrDeleteMsg.collection_name) } -inline ::std::string* InsertOrDeleteMsg::mutable_collection_name() { +inline std::string* InsertOrDeleteMsg::mutable_collection_name() { // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertOrDeleteMsg.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* InsertOrDeleteMsg::release_collection_name() { +inline std::string* InsertOrDeleteMsg::release_collection_name() { // @@protoc_insertion_point(field_release:milvus.grpc.InsertOrDeleteMsg.collection_name) - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void InsertOrDeleteMsg::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { +inline void InsertOrDeleteMsg::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { } else { } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.InsertOrDeleteMsg.collection_name) } -// optional .milvus.grpc.RowData rows_data = 2; +// .milvus.grpc.RowData rows_data = 2; inline bool InsertOrDeleteMsg::has_rows_data() const { - return !_is_default_instance_ && rows_data_ != NULL; + return this != internal_default_instance() && rows_data_ != nullptr; } inline void InsertOrDeleteMsg::clear_rows_data() { - if (GetArenaNoVirtual() == NULL && rows_data_ != NULL) delete rows_data_; - rows_data_ = NULL; + if (GetArenaNoVirtual() == nullptr && rows_data_ != nullptr) { + delete rows_data_; + } + rows_data_ = nullptr; } inline const ::milvus::grpc::RowData& InsertOrDeleteMsg::rows_data() const { + const ::milvus::grpc::RowData* p = rows_data_; // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.rows_data) - return rows_data_ != NULL ? *rows_data_ : *default_instance_->rows_data_; -} -inline ::milvus::grpc::RowData* InsertOrDeleteMsg::mutable_rows_data() { - - if (rows_data_ == NULL) { - rows_data_ = new ::milvus::grpc::RowData; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertOrDeleteMsg.rows_data) - return rows_data_; + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::grpc::_RowData_default_instance_); } inline ::milvus::grpc::RowData* InsertOrDeleteMsg::release_rows_data() { // @@protoc_insertion_point(field_release:milvus.grpc.InsertOrDeleteMsg.rows_data) ::milvus::grpc::RowData* temp = rows_data_; - rows_data_ = NULL; + rows_data_ = nullptr; return temp; } +inline ::milvus::grpc::RowData* InsertOrDeleteMsg::mutable_rows_data() { + + if (rows_data_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::grpc::RowData>(GetArenaNoVirtual()); + rows_data_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertOrDeleteMsg.rows_data) + return rows_data_; +} inline void InsertOrDeleteMsg::set_allocated_rows_data(::milvus::grpc::RowData* rows_data) { - delete rows_data_; - rows_data_ = rows_data; + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete rows_data_; + } if (rows_data) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + rows_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, rows_data, submessage_arena); + } } else { } + rows_data_ = rows_data; // @@protoc_insertion_point(field_set_allocated:milvus.grpc.InsertOrDeleteMsg.rows_data) } -// optional int64 uid = 3; +// int64 uid = 3; inline void InsertOrDeleteMsg::clear_uid() { - uid_ = GOOGLE_LONGLONG(0); + uid_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 InsertOrDeleteMsg::uid() const { +inline ::PROTOBUF_NAMESPACE_ID::int64 InsertOrDeleteMsg::uid() const { // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.uid) return uid_; } -inline void InsertOrDeleteMsg::set_uid(::google::protobuf::int64 value) { +inline void InsertOrDeleteMsg::set_uid(::PROTOBUF_NAMESPACE_ID::int64 value) { uid_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.InsertOrDeleteMsg.uid) } -// optional string partition_tag = 4; +// string partition_tag = 4; inline void InsertOrDeleteMsg::clear_partition_tag() { - partition_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + partition_tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& InsertOrDeleteMsg::partition_tag() const { +inline const std::string& InsertOrDeleteMsg::partition_tag() const { // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.partition_tag) - return partition_tag_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return partition_tag_.GetNoArena(); } -inline void InsertOrDeleteMsg::set_partition_tag(const ::std::string& value) { +inline void InsertOrDeleteMsg::set_partition_tag(const std::string& value) { - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.InsertOrDeleteMsg.partition_tag) } -inline void InsertOrDeleteMsg::set_partition_tag(const char* value) { +inline void InsertOrDeleteMsg::set_partition_tag(std::string&& value) { - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + partition_tag_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.InsertOrDeleteMsg.partition_tag) +} +inline void InsertOrDeleteMsg::set_partition_tag(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.InsertOrDeleteMsg.partition_tag) } inline void InsertOrDeleteMsg::set_partition_tag(const char* value, size_t size) { - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.InsertOrDeleteMsg.partition_tag) } -inline ::std::string* InsertOrDeleteMsg::mutable_partition_tag() { +inline std::string* InsertOrDeleteMsg::mutable_partition_tag() { // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertOrDeleteMsg.partition_tag) - return partition_tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return partition_tag_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* InsertOrDeleteMsg::release_partition_tag() { +inline std::string* InsertOrDeleteMsg::release_partition_tag() { // @@protoc_insertion_point(field_release:milvus.grpc.InsertOrDeleteMsg.partition_tag) - return partition_tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return partition_tag_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void InsertOrDeleteMsg::set_allocated_partition_tag(::std::string* partition_tag) { - if (partition_tag != NULL) { +inline void InsertOrDeleteMsg::set_allocated_partition_tag(std::string* partition_tag) { + if (partition_tag != nullptr) { } else { } - partition_tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), partition_tag); + partition_tag_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), partition_tag); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.InsertOrDeleteMsg.partition_tag) } -// optional int64 timestamp = 5; +// int64 timestamp = 5; inline void InsertOrDeleteMsg::clear_timestamp() { - timestamp_ = GOOGLE_LONGLONG(0); + timestamp_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 InsertOrDeleteMsg::timestamp() const { +inline ::PROTOBUF_NAMESPACE_ID::int64 InsertOrDeleteMsg::timestamp() const { // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.timestamp) return timestamp_; } -inline void InsertOrDeleteMsg::set_timestamp(::google::protobuf::int64 value) { +inline void InsertOrDeleteMsg::set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { timestamp_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.InsertOrDeleteMsg.timestamp) } -// optional int64 segment_id = 6; +// int64 segment_id = 6; inline void InsertOrDeleteMsg::clear_segment_id() { - segment_id_ = GOOGLE_LONGLONG(0); + segment_id_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 InsertOrDeleteMsg::segment_id() const { +inline ::PROTOBUF_NAMESPACE_ID::int64 InsertOrDeleteMsg::segment_id() const { // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.segment_id) return segment_id_; } -inline void InsertOrDeleteMsg::set_segment_id(::google::protobuf::int64 value) { +inline void InsertOrDeleteMsg::set_segment_id(::PROTOBUF_NAMESPACE_ID::int64 value) { segment_id_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.InsertOrDeleteMsg.segment_id) } -// optional int64 channel_id = 7; +// int64 channel_id = 7; inline void InsertOrDeleteMsg::clear_channel_id() { - channel_id_ = GOOGLE_LONGLONG(0); + channel_id_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 InsertOrDeleteMsg::channel_id() const { +inline ::PROTOBUF_NAMESPACE_ID::int64 InsertOrDeleteMsg::channel_id() const { // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.channel_id) return channel_id_; } -inline void InsertOrDeleteMsg::set_channel_id(::google::protobuf::int64 value) { +inline void InsertOrDeleteMsg::set_channel_id(::PROTOBUF_NAMESPACE_ID::int64 value) { channel_id_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.InsertOrDeleteMsg.channel_id) } -// optional .milvus.grpc.OpType op = 8; +// .milvus.grpc.OpType op = 8; inline void InsertOrDeleteMsg::clear_op() { op_ = 0; } @@ -9805,15 +12567,15 @@ inline void InsertOrDeleteMsg::set_op(::milvus::grpc::OpType value) { // @@protoc_insertion_point(field_set:milvus.grpc.InsertOrDeleteMsg.op) } -// optional int64 client_id = 9; +// int64 client_id = 9; inline void InsertOrDeleteMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); + client_id_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 InsertOrDeleteMsg::client_id() const { +inline ::PROTOBUF_NAMESPACE_ID::int64 InsertOrDeleteMsg::client_id() const { // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.client_id) return client_id_; } -inline void InsertOrDeleteMsg::set_client_id(::google::protobuf::int64 value) { +inline void InsertOrDeleteMsg::set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value) { client_id_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.InsertOrDeleteMsg.client_id) @@ -9826,24 +12588,24 @@ inline int InsertOrDeleteMsg::extra_params_size() const { inline void InsertOrDeleteMsg::clear_extra_params() { extra_params_.Clear(); } -inline const ::milvus::grpc::KeyValuePair& InsertOrDeleteMsg::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.extra_params) - return extra_params_.Get(index); -} inline ::milvus::grpc::KeyValuePair* InsertOrDeleteMsg::mutable_extra_params(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertOrDeleteMsg.extra_params) return extra_params_.Mutable(index); } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* +InsertOrDeleteMsg::mutable_extra_params() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.InsertOrDeleteMsg.extra_params) + return &extra_params_; +} +inline const ::milvus::grpc::KeyValuePair& InsertOrDeleteMsg::extra_params(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.extra_params) + return extra_params_.Get(index); +} inline ::milvus::grpc::KeyValuePair* InsertOrDeleteMsg::add_extra_params() { // @@protoc_insertion_point(field_add:milvus.grpc.InsertOrDeleteMsg.extra_params) return extra_params_.Add(); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -InsertOrDeleteMsg::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.InsertOrDeleteMsg.extra_params) - return &extra_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& InsertOrDeleteMsg::extra_params() const { // @@protoc_insertion_point(field_list:milvus.grpc.InsertOrDeleteMsg.extra_params) return extra_params_; @@ -9853,169 +12615,196 @@ InsertOrDeleteMsg::extra_params() const { // SearchMsg -// optional string collection_name = 1; +// string collection_name = 1; inline void SearchMsg::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& SearchMsg::collection_name() const { +inline const std::string& SearchMsg::collection_name() const { // @@protoc_insertion_point(field_get:milvus.grpc.SearchMsg.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.GetNoArena(); } -inline void SearchMsg::set_collection_name(const ::std::string& value) { +inline void SearchMsg::set_collection_name(const std::string& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.SearchMsg.collection_name) } -inline void SearchMsg::set_collection_name(const char* value) { +inline void SearchMsg::set_collection_name(std::string&& value) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.SearchMsg.collection_name) +} +inline void SearchMsg::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchMsg.collection_name) } inline void SearchMsg::set_collection_name(const char* value, size_t size) { - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchMsg.collection_name) } -inline ::std::string* SearchMsg::mutable_collection_name() { +inline std::string* SearchMsg::mutable_collection_name() { // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchMsg.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* SearchMsg::release_collection_name() { +inline std::string* SearchMsg::release_collection_name() { // @@protoc_insertion_point(field_release:milvus.grpc.SearchMsg.collection_name) - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void SearchMsg::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { +inline void SearchMsg::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { } else { } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchMsg.collection_name) } -// optional .milvus.grpc.VectorRowRecord records = 2; +// .milvus.grpc.VectorRowRecord records = 2; inline bool SearchMsg::has_records() const { - return !_is_default_instance_ && records_ != NULL; + return this != internal_default_instance() && records_ != nullptr; } inline void SearchMsg::clear_records() { - if (GetArenaNoVirtual() == NULL && records_ != NULL) delete records_; - records_ = NULL; + if (GetArenaNoVirtual() == nullptr && records_ != nullptr) { + delete records_; + } + records_ = nullptr; } inline const ::milvus::grpc::VectorRowRecord& SearchMsg::records() const { + const ::milvus::grpc::VectorRowRecord* p = records_; // @@protoc_insertion_point(field_get:milvus.grpc.SearchMsg.records) - return records_ != NULL ? *records_ : *default_instance_->records_; -} -inline ::milvus::grpc::VectorRowRecord* SearchMsg::mutable_records() { - - if (records_ == NULL) { - records_ = new ::milvus::grpc::VectorRowRecord; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchMsg.records) - return records_; + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::grpc::_VectorRowRecord_default_instance_); } inline ::milvus::grpc::VectorRowRecord* SearchMsg::release_records() { // @@protoc_insertion_point(field_release:milvus.grpc.SearchMsg.records) ::milvus::grpc::VectorRowRecord* temp = records_; - records_ = NULL; + records_ = nullptr; return temp; } +inline ::milvus::grpc::VectorRowRecord* SearchMsg::mutable_records() { + + if (records_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::grpc::VectorRowRecord>(GetArenaNoVirtual()); + records_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchMsg.records) + return records_; +} inline void SearchMsg::set_allocated_records(::milvus::grpc::VectorRowRecord* records) { - delete records_; - records_ = records; + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete records_; + } if (records) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + records = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, records, submessage_arena); + } } else { } + records_ = records; // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchMsg.records) } -// optional string partition_tag = 3; +// string partition_tag = 3; inline void SearchMsg::clear_partition_tag() { - partition_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + partition_tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& SearchMsg::partition_tag() const { +inline const std::string& SearchMsg::partition_tag() const { // @@protoc_insertion_point(field_get:milvus.grpc.SearchMsg.partition_tag) - return partition_tag_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return partition_tag_.GetNoArena(); } -inline void SearchMsg::set_partition_tag(const ::std::string& value) { +inline void SearchMsg::set_partition_tag(const std::string& value) { - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.SearchMsg.partition_tag) } -inline void SearchMsg::set_partition_tag(const char* value) { +inline void SearchMsg::set_partition_tag(std::string&& value) { - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + partition_tag_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.SearchMsg.partition_tag) +} +inline void SearchMsg::set_partition_tag(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchMsg.partition_tag) } inline void SearchMsg::set_partition_tag(const char* value, size_t size) { - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchMsg.partition_tag) } -inline ::std::string* SearchMsg::mutable_partition_tag() { +inline std::string* SearchMsg::mutable_partition_tag() { // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchMsg.partition_tag) - return partition_tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return partition_tag_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* SearchMsg::release_partition_tag() { +inline std::string* SearchMsg::release_partition_tag() { // @@protoc_insertion_point(field_release:milvus.grpc.SearchMsg.partition_tag) - return partition_tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return partition_tag_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void SearchMsg::set_allocated_partition_tag(::std::string* partition_tag) { - if (partition_tag != NULL) { +inline void SearchMsg::set_allocated_partition_tag(std::string* partition_tag) { + if (partition_tag != nullptr) { } else { } - partition_tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), partition_tag); + partition_tag_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), partition_tag); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchMsg.partition_tag) } -// optional int64 uid = 4; +// int64 uid = 4; inline void SearchMsg::clear_uid() { - uid_ = GOOGLE_LONGLONG(0); + uid_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 SearchMsg::uid() const { +inline ::PROTOBUF_NAMESPACE_ID::int64 SearchMsg::uid() const { // @@protoc_insertion_point(field_get:milvus.grpc.SearchMsg.uid) return uid_; } -inline void SearchMsg::set_uid(::google::protobuf::int64 value) { +inline void SearchMsg::set_uid(::PROTOBUF_NAMESPACE_ID::int64 value) { uid_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.SearchMsg.uid) } -// optional int64 timestamp = 5; +// int64 timestamp = 5; inline void SearchMsg::clear_timestamp() { - timestamp_ = GOOGLE_LONGLONG(0); + timestamp_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 SearchMsg::timestamp() const { +inline ::PROTOBUF_NAMESPACE_ID::int64 SearchMsg::timestamp() const { // @@protoc_insertion_point(field_get:milvus.grpc.SearchMsg.timestamp) return timestamp_; } -inline void SearchMsg::set_timestamp(::google::protobuf::int64 value) { +inline void SearchMsg::set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { timestamp_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.SearchMsg.timestamp) } -// optional int64 client_id = 6; +// int64 client_id = 6; inline void SearchMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); + client_id_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 SearchMsg::client_id() const { +inline ::PROTOBUF_NAMESPACE_ID::int64 SearchMsg::client_id() const { // @@protoc_insertion_point(field_get:milvus.grpc.SearchMsg.client_id) return client_id_; } -inline void SearchMsg::set_client_id(::google::protobuf::int64 value) { +inline void SearchMsg::set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value) { client_id_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.SearchMsg.client_id) @@ -10028,24 +12817,24 @@ inline int SearchMsg::extra_params_size() const { inline void SearchMsg::clear_extra_params() { extra_params_.Clear(); } -inline const ::milvus::grpc::KeyValuePair& SearchMsg::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchMsg.extra_params) - return extra_params_.Get(index); -} inline ::milvus::grpc::KeyValuePair* SearchMsg::mutable_extra_params(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchMsg.extra_params) return extra_params_.Mutable(index); } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* +SearchMsg::mutable_extra_params() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchMsg.extra_params) + return &extra_params_; +} +inline const ::milvus::grpc::KeyValuePair& SearchMsg::extra_params(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.SearchMsg.extra_params) + return extra_params_.Get(index); +} inline ::milvus::grpc::KeyValuePair* SearchMsg::add_extra_params() { // @@protoc_insertion_point(field_add:milvus.grpc.SearchMsg.extra_params) return extra_params_.Add(); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -SearchMsg::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchMsg.extra_params) - return &extra_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& SearchMsg::extra_params() const { // @@protoc_insertion_point(field_list:milvus.grpc.SearchMsg.extra_params) return extra_params_; @@ -10055,61 +12844,61 @@ SearchMsg::extra_params() const { // TimeSyncMsg -// optional int64 peer_Id = 1; -inline void TimeSyncMsg::clear_peer_id() { - peer_id_ = GOOGLE_LONGLONG(0); +// int64 ClientId = 1; +inline void TimeSyncMsg::clear_clientid() { + clientid_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 TimeSyncMsg::peer_id() const { - // @@protoc_insertion_point(field_get:milvus.grpc.TimeSyncMsg.peer_Id) - return peer_id_; +inline ::PROTOBUF_NAMESPACE_ID::int64 TimeSyncMsg::clientid() const { + // @@protoc_insertion_point(field_get:milvus.grpc.TimeSyncMsg.ClientId) + return clientid_; } -inline void TimeSyncMsg::set_peer_id(::google::protobuf::int64 value) { +inline void TimeSyncMsg::set_clientid(::PROTOBUF_NAMESPACE_ID::int64 value) { - peer_id_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.TimeSyncMsg.peer_Id) + clientid_ = value; + // @@protoc_insertion_point(field_set:milvus.grpc.TimeSyncMsg.ClientId) } -// optional int64 Timestamp = 2; +// int64 Timestamp = 2; inline void TimeSyncMsg::clear_timestamp() { - timestamp_ = GOOGLE_LONGLONG(0); + timestamp_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 TimeSyncMsg::timestamp() const { +inline ::PROTOBUF_NAMESPACE_ID::int64 TimeSyncMsg::timestamp() const { // @@protoc_insertion_point(field_get:milvus.grpc.TimeSyncMsg.Timestamp) return timestamp_; } -inline void TimeSyncMsg::set_timestamp(::google::protobuf::int64 value) { +inline void TimeSyncMsg::set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { timestamp_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.TimeSyncMsg.Timestamp) } -// optional .milvus.grpc.SyncType sync_type = 3; -inline void TimeSyncMsg::clear_sync_type() { - sync_type_ = 0; +// .milvus.grpc.OpType MsgType = 3; +inline void TimeSyncMsg::clear_msgtype() { + msgtype_ = 0; } -inline ::milvus::grpc::SyncType TimeSyncMsg::sync_type() const { - // @@protoc_insertion_point(field_get:milvus.grpc.TimeSyncMsg.sync_type) - return static_cast< ::milvus::grpc::SyncType >(sync_type_); +inline ::milvus::grpc::OpType TimeSyncMsg::msgtype() const { + // @@protoc_insertion_point(field_get:milvus.grpc.TimeSyncMsg.MsgType) + return static_cast< ::milvus::grpc::OpType >(msgtype_); } -inline void TimeSyncMsg::set_sync_type(::milvus::grpc::SyncType value) { +inline void TimeSyncMsg::set_msgtype(::milvus::grpc::OpType value) { - sync_type_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.TimeSyncMsg.sync_type) + msgtype_ = value; + // @@protoc_insertion_point(field_set:milvus.grpc.TimeSyncMsg.MsgType) } // ------------------------------------------------------------------- // SegmentRecord -// optional int64 uid = 1; +// int64 uid = 1; inline void SegmentRecord::clear_uid() { - uid_ = GOOGLE_LONGLONG(0); + uid_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 SegmentRecord::uid() const { +inline ::PROTOBUF_NAMESPACE_ID::int64 SegmentRecord::uid() const { // @@protoc_insertion_point(field_get:milvus.grpc.SegmentRecord.uid) return uid_; } -inline void SegmentRecord::set_uid(::google::protobuf::int64 value) { +inline void SegmentRecord::set_uid(::PROTOBUF_NAMESPACE_ID::int64 value) { uid_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.SegmentRecord.uid) @@ -10122,24 +12911,24 @@ inline int SegmentRecord::segment_id_size() const { inline void SegmentRecord::clear_segment_id() { segment_id_.Clear(); } -inline ::google::protobuf::int64 SegmentRecord::segment_id(int index) const { +inline ::PROTOBUF_NAMESPACE_ID::int64 SegmentRecord::segment_id(int index) const { // @@protoc_insertion_point(field_get:milvus.grpc.SegmentRecord.segment_id) return segment_id_.Get(index); } -inline void SegmentRecord::set_segment_id(int index, ::google::protobuf::int64 value) { +inline void SegmentRecord::set_segment_id(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { segment_id_.Set(index, value); // @@protoc_insertion_point(field_set:milvus.grpc.SegmentRecord.segment_id) } -inline void SegmentRecord::add_segment_id(::google::protobuf::int64 value) { +inline void SegmentRecord::add_segment_id(::PROTOBUF_NAMESPACE_ID::int64 value) { segment_id_.Add(value); // @@protoc_insertion_point(field_add:milvus.grpc.SegmentRecord.segment_id) } -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& SegmentRecord::segment_id() const { // @@protoc_insertion_point(field_list:milvus.grpc.SegmentRecord.segment_id) return segment_id_; } -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* SegmentRecord::mutable_segment_id() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SegmentRecord.segment_id) return &segment_id_; @@ -10149,61 +12938,88 @@ SegmentRecord::mutable_segment_id() { // Key2SegMsg -// optional int64 client_id = 1; +// int64 client_id = 1; inline void Key2SegMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); + client_id_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 Key2SegMsg::client_id() const { +inline ::PROTOBUF_NAMESPACE_ID::int64 Key2SegMsg::client_id() const { // @@protoc_insertion_point(field_get:milvus.grpc.Key2SegMsg.client_id) return client_id_; } -inline void Key2SegMsg::set_client_id(::google::protobuf::int64 value) { +inline void Key2SegMsg::set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value) { client_id_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.Key2SegMsg.client_id) } -// optional .milvus.grpc.SegmentRecord records = 2; +// .milvus.grpc.SegmentRecord records = 2; inline bool Key2SegMsg::has_records() const { - return !_is_default_instance_ && records_ != NULL; + return this != internal_default_instance() && records_ != nullptr; } inline void Key2SegMsg::clear_records() { - if (GetArenaNoVirtual() == NULL && records_ != NULL) delete records_; - records_ = NULL; + if (GetArenaNoVirtual() == nullptr && records_ != nullptr) { + delete records_; + } + records_ = nullptr; } inline const ::milvus::grpc::SegmentRecord& Key2SegMsg::records() const { + const ::milvus::grpc::SegmentRecord* p = records_; // @@protoc_insertion_point(field_get:milvus.grpc.Key2SegMsg.records) - return records_ != NULL ? *records_ : *default_instance_->records_; -} -inline ::milvus::grpc::SegmentRecord* Key2SegMsg::mutable_records() { - - if (records_ == NULL) { - records_ = new ::milvus::grpc::SegmentRecord; - } - // @@protoc_insertion_point(field_mutable:milvus.grpc.Key2SegMsg.records) - return records_; + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::grpc::_SegmentRecord_default_instance_); } inline ::milvus::grpc::SegmentRecord* Key2SegMsg::release_records() { // @@protoc_insertion_point(field_release:milvus.grpc.Key2SegMsg.records) ::milvus::grpc::SegmentRecord* temp = records_; - records_ = NULL; + records_ = nullptr; return temp; } +inline ::milvus::grpc::SegmentRecord* Key2SegMsg::mutable_records() { + + if (records_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::grpc::SegmentRecord>(GetArenaNoVirtual()); + records_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.grpc.Key2SegMsg.records) + return records_; +} inline void Key2SegMsg::set_allocated_records(::milvus::grpc::SegmentRecord* records) { - delete records_; - records_ = records; + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete records_; + } if (records) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + records = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, records, submessage_arena); + } } else { } + records_ = records; // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Key2SegMsg.records) } -#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS -// ------------------------------------------------------------------- +// .milvus.grpc.OpType msg_type = 3; +inline void Key2SegMsg::clear_msg_type() { + msg_type_ = 0; +} +inline ::milvus::grpc::OpType Key2SegMsg::msg_type() const { + // @@protoc_insertion_point(field_get:milvus.grpc.Key2SegMsg.msg_type) + return static_cast< ::milvus::grpc::OpType >(msg_type_); +} +inline void Key2SegMsg::set_msg_type(::milvus::grpc::OpType value) { + + msg_type_ = value; + // @@protoc_insertion_point(field_set:milvus.grpc.Key2SegMsg.msg_type) +} +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ // ------------------------------------------------------------------- // ------------------------------------------------------------------- @@ -10302,45 +13118,32 @@ inline void Key2SegMsg::set_allocated_records(::milvus::grpc::SegmentRecord* rec } // namespace grpc } // namespace milvus -#ifndef SWIG -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::milvus::grpc::ErrorCode> : ::google::protobuf::internal::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::milvus::grpc::ErrorCode>() { - return ::milvus::grpc::ErrorCode_descriptor(); -} -template <> struct is_proto_enum< ::milvus::grpc::DataType> : ::google::protobuf::internal::true_type {}; +template <> struct is_proto_enum< ::milvus::grpc::DataType> : ::std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::milvus::grpc::DataType>() { return ::milvus::grpc::DataType_descriptor(); } -template <> struct is_proto_enum< ::milvus::grpc::CompareOperator> : ::google::protobuf::internal::true_type {}; +template <> struct is_proto_enum< ::milvus::grpc::CompareOperator> : ::std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::milvus::grpc::CompareOperator>() { return ::milvus::grpc::CompareOperator_descriptor(); } -template <> struct is_proto_enum< ::milvus::grpc::Occur> : ::google::protobuf::internal::true_type {}; +template <> struct is_proto_enum< ::milvus::grpc::Occur> : ::std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::milvus::grpc::Occur>() { return ::milvus::grpc::Occur_descriptor(); } -template <> struct is_proto_enum< ::milvus::grpc::OpType> : ::google::protobuf::internal::true_type {}; +template <> struct is_proto_enum< ::milvus::grpc::OpType> : ::std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::milvus::grpc::OpType>() { return ::milvus::grpc::OpType_descriptor(); } -template <> struct is_proto_enum< ::milvus::grpc::SyncType> : ::google::protobuf::internal::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::milvus::grpc::SyncType>() { - return ::milvus::grpc::SyncType_descriptor(); -} -} // namespace protobuf -} // namespace google -#endif // SWIG +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#endif // PROTOBUF_suvlim_2eproto__INCLUDED +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_suvlim_2eproto diff --git a/proxy/src/grpc/milvus.proto b/proxy/src/grpc/milvus.proto index 289dd217cd..89be055556 100644 --- a/proxy/src/grpc/milvus.proto +++ b/proxy/src/grpc/milvus.proto @@ -1,3 +1,5 @@ +// Not used now, please using suvlim.proto + syntax = "proto3"; import "status.proto"; diff --git a/proxy/src/grpc/suvlim.proto b/proxy/src/grpc/suvlim.proto index 5557c5631b..58ef6818c5 100644 --- a/proxy/src/grpc/suvlim.proto +++ b/proxy/src/grpc/suvlim.proto @@ -1,38 +1,40 @@ syntax = "proto3"; +import "status.proto"; package milvus.grpc; -enum ErrorCode { - 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; -} - -message Status { - ErrorCode error_code = 1; - string reason = 2; -} +// +//enum ErrorCode { +// 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; +//} +// +//message Status { +// ErrorCode error_code = 1; +// string reason = 2; +//} /** * @brief Field data type @@ -670,6 +672,8 @@ service MilvusService { enum OpType { INSERT = 0; DELETE = 1; + SEARCH = 2; + SEARCH_RESULT = 3; } message InsertOrDeleteMsg { @@ -695,14 +699,10 @@ message SearchMsg { repeated KeyValuePair extra_params = 7; } -enum SyncType { - READ = 0; - WRITE = 1; -} message TimeSyncMsg{ - int64 peer_Id = 1; - int64 Timestamp = 2; - SyncType sync_type = 3; + int64 ClientId = 1; + int64 Timestamp = 2; + OpType MsgType = 3; } message SegmentRecord { @@ -711,6 +711,7 @@ message SegmentRecord { } message Key2SegMsg { - int64 client_id = 1; - SegmentRecord records = 2; + int64 client_id = 1; + SegmentRecord records = 2; + OpType msg_type = 3; } diff --git a/proxy/src/pulsar/message_client/CMakeLists.txt b/proxy/src/pulsar/message_client/CMakeLists.txt index 50997b48c1..7b27ef03f2 100644 --- a/proxy/src/pulsar/message_client/CMakeLists.txt +++ b/proxy/src/pulsar/message_client/CMakeLists.txt @@ -1,8 +1,10 @@ set(src-cpp Client.cpp + ClientV2.cpp Consumer.cpp Producer.cpp - pb/suvlim.pb.cc) + ${PROJECT_SOURCE_DIR}/src/grpc/gen-milvus/suvlim.pb.cc + ) add_library(message_client_cpp SHARED ${src-cpp} diff --git a/proxy/src/pulsar/message_client/Client.cpp b/proxy/src/pulsar/message_client/Client.cpp index 5aec7bba1c..d220599c5a 100644 --- a/proxy/src/pulsar/message_client/Client.cpp +++ b/proxy/src/pulsar/message_client/Client.cpp @@ -1,6 +1,7 @@ #include "Client.h" +namespace milvus { namespace message_client { MsgClient::MsgClient(const std::string &serviceUrl) : pulsar::Client(serviceUrl) {} @@ -8,4 +9,5 @@ MsgClient::MsgClient(const std::string &serviceUrl) : pulsar::Client(serviceUrl) MsgClient::MsgClient(const std::string &serviceUrl, const pulsar::ClientConfiguration& clientConfiguration) : pulsar::Client(serviceUrl, clientConfiguration) {} +} } \ No newline at end of file diff --git a/proxy/src/pulsar/message_client/Client.h b/proxy/src/pulsar/message_client/Client.h index ef51dbf4c4..e5f945ca32 100644 --- a/proxy/src/pulsar/message_client/Client.h +++ b/proxy/src/pulsar/message_client/Client.h @@ -3,6 +3,7 @@ #include "pulsar/Client.h" #include "pulsar/ClientConfiguration.h" +namespace milvus { namespace message_client { using Result = pulsar::Result; @@ -22,3 +23,4 @@ private: }; } +} \ No newline at end of file diff --git a/proxy/src/pulsar/message_client/ClientV2.cpp b/proxy/src/pulsar/message_client/ClientV2.cpp new file mode 100644 index 0000000000..59190cac83 --- /dev/null +++ b/proxy/src/pulsar/message_client/ClientV2.cpp @@ -0,0 +1,87 @@ +#include "ClientV2.h" +#include "pulsar/Result.h" + +namespace milvus { + namespace { + int64_t gen_channe_id(int64_t uid) { + // TODO: murmur3 hash from pulsar source code + return 0; + } + } +} + +namespace milvus::message_client { + + MsgClientV2::MsgClientV2(int64_t client_id, std::string &service_url, const pulsar::ClientConfiguration &config) + : client_id_(client_id), service_url_(service_url) {} + + Status MsgClientV2::Init(const std::string &mut_topic, const std::string &query_topic, + const std::string &result_topic) { + auto pulsar_client = std::make_shared(service_url_); + mut_producer_ = std::make_shared(pulsar_client, mut_topic); + query_producer_ = std::make_shared(pulsar_client, mut_topic); + consumer_ = std::make_shared(pulsar_client, "default"); + + auto result = consumer_->subscribe(result_topic); + if (result != pulsar::Result::ResultOk) { + return Status(SERVER_UNEXPECTED_ERROR, pulsar::strResult(result)); + } + return Status::OK(); + } + + + void MsgClientV2::GetQueryResult(int64_t query_id) { + throw std::exception(); + } + + Status MsgClientV2::SendMutMessage(const milvus::grpc::InsertParam &request) { + // may have retry policy? + auto row_count = request.rows_data_size(); + // TODO: Get the segment from master + int64_t segment = 0; + milvus::grpc::InsertOrDeleteMsg mut_msg; + for (auto i = 0; i < row_count; i++) { + mut_msg.set_op(milvus::grpc::OpType::INSERT); + mut_msg.set_uid(GetUniqueQId()); + mut_msg.set_client_id(client_id_); + auto channel_id = gen_channe_id(request.entity_id_array(i)); + mut_msg.set_channel_id(channel_id); + mut_msg.set_collection_name(request.collection_name()); + mut_msg.set_partition_tag(request.partition_tag()); + mut_msg.set_segment_id(segment); + mut_msg.mutable_rows_data()->CopyFrom(request.rows_data(i)); + mut_msg.mutable_extra_params()->CopyFrom(request.extra_params()); + + auto result = mut_producer_->send(mut_msg.SerializeAsString()); + if (result != pulsar::ResultOk) { + // TODO: error code + return Status(DB_ERROR, pulsar::strResult(result)); + } + } + return Status::OK(); + } + + Status MsgClientV2::SendMutMessage(const milvus::grpc::DeleteByIDParam &request) { + milvus::grpc::InsertOrDeleteMsg mut_msg; + for (auto id: request.id_array()) { + mut_msg.set_op(milvus::grpc::OpType::DELETE); + mut_msg.set_uid(GetUniqueQId()); + mut_msg.set_client_id(client_id_); + mut_msg.set_uid(id); + mut_msg.set_collection_name(request.collection_name()); + + auto result = mut_producer_->send(mut_msg.SerializeAsString()); + if (result != pulsar::ResultOk) { + // TODO: error code + return Status(DB_ERROR, pulsar::strResult(result)); + } + } + return Status::OK(); + } + + MsgClientV2::~MsgClientV2() { + mut_producer_->close(); + query_producer_->close(); + consumer_->close(); + } +} \ No newline at end of file diff --git a/proxy/src/pulsar/message_client/ClientV2.h b/proxy/src/pulsar/message_client/ClientV2.h new file mode 100644 index 0000000000..f8e5db541b --- /dev/null +++ b/proxy/src/pulsar/message_client/ClientV2.h @@ -0,0 +1,42 @@ +#pragma once + +#include "src/utils/Status.h" +#include "Producer.h" +#include "Consumer.h" +#include "grpc/gen-milvus/suvlim.pb.h" + +namespace milvus::message_client { + class MsgClientV2 { + public: + MsgClientV2(int64_t client_id, std::string &service_url, const pulsar::ClientConfiguration& config = pulsar::ClientConfiguration()); + + ~MsgClientV2(); + + // When using MsgClient, make sure it init successfully + Status Init(const std::string &mut_topic, + const std::string &query_topic, const std::string &result_topic); + + // unpackage batch insert or delete request, and delivery message to pulsar per row + Status SendMutMessage(const milvus::grpc::InsertParam &request); + + Status SendMutMessage(const milvus::grpc::DeleteByIDParam &request); + + // + Status SendQueryMessage(const milvus::grpc::SearchParam &request); + + void GetQueryResult(int64_t query_id); + + private: + int64_t GetUniqueQId() { + return q_id_.fetch_add(1); + } + + private: + std::atomic q_id_ = 0; + int64_t client_id_; + std::string service_url_; + std::shared_ptr consumer_; + std::shared_ptr mut_producer_; + std::shared_ptr query_producer_; + }; +} \ No newline at end of file diff --git a/proxy/src/pulsar/message_client/Consumer.cpp b/proxy/src/pulsar/message_client/Consumer.cpp index 651a816423..8c9ea720a3 100644 --- a/proxy/src/pulsar/message_client/Consumer.cpp +++ b/proxy/src/pulsar/message_client/Consumer.cpp @@ -1,10 +1,11 @@ #include "Consumer.h" -#include "pb/pulsar.pb.h" +#include "src/grpc/gen-milvus/suvlim.pb.h" +namespace milvus { namespace message_client { -MsgConsumer::MsgConsumer(std::shared_ptr &client, std::string subscription_name, const ConsumerConfiguration conf) +MsgConsumer::MsgConsumer(std::shared_ptr &client, std::string subscription_name, const ConsumerConfiguration conf) :client_(client), config_(conf), subscription_name_(subscription_name){} Result MsgConsumer::subscribe(const std::string &topic) { @@ -24,35 +25,36 @@ Result MsgConsumer::receive(Message &msg) { } std::shared_ptr MsgConsumer::receive_proto(ConsumerType consumer_type) { - Message msg; - receive(msg); - acknowledge(msg); - switch (consumer_type) { - case INSERT: { - pb::InsertMsg insert_msg; - insert_msg.ParseFromString(msg.getDataAsString()); - auto message = std::make_shared(insert_msg); - return std::shared_ptr(message); - } - case DELETE: { - pb::DeleteMsg delete_msg; - delete_msg.ParseFromString(msg.getDataAsString()); - auto message = std::make_shared(delete_msg); - return std::shared_ptr(message); - } - case SEARCH_RESULT: { - pb::SearchResultMsg search_res_msg; - search_res_msg.ParseFromString(msg.getDataAsString()); - auto message = std::make_shared(search_res_msg); - return std::shared_ptr(message); - } - case TEST: - pb::TestData test_msg; - test_msg.ParseFromString(msg.getDataAsString()); - auto message = std::make_shared(test_msg); - return std::shared_ptr(message); - } - return nullptr; + throw std::exception(); +// Message msg; +// receive(msg); +// acknowledge(msg); +// switch (consumer_type) { +// case INSERT: { +// pb::InsertMsg insert_msg; +// insert_msg.ParseFromString(msg.getDataAsString()); +// auto message = std::make_shared(insert_msg); +// return std::shared_ptr(message); +// } +// case DELETE: { +// pb::DeleteMsg delete_msg; +// delete_msg.ParseFromString(msg.getDataAsString()); +// auto message = std::make_shared(delete_msg); +// return std::shared_ptr(message); +// } +// case SEARCH_RESULT: { +// pb::SearchResultMsg search_res_msg; +// search_res_msg.ParseFromString(msg.getDataAsString()); +// auto message = std::make_shared(search_res_msg); +// return std::shared_ptr(message); +// } +// case TEST: +// pb::TestData test_msg; +// test_msg.ParseFromString(msg.getDataAsString()); +// auto message = std::make_shared(test_msg); +// return std::shared_ptr(message); +// } +// return nullptr; } Result MsgConsumer::close() { @@ -64,3 +66,4 @@ Result MsgConsumer::acknowledge(const Message &message) { } } +} diff --git a/proxy/src/pulsar/message_client/Consumer.h b/proxy/src/pulsar/message_client/Consumer.h index 0c1ecbf477..36aa886fde 100644 --- a/proxy/src/pulsar/message_client/Consumer.h +++ b/proxy/src/pulsar/message_client/Consumer.h @@ -3,6 +3,7 @@ #include "pulsar/Consumer.h" #include "Client.h" +namespace milvus { namespace message_client { enum ConsumerType { @@ -17,7 +18,7 @@ using ConsumerConfiguration = pulsar::ConsumerConfiguration; class MsgConsumer{ public: - MsgConsumer(std::shared_ptr &client, std::string consumer_name, + MsgConsumer(std::shared_ptr &client, std::string consumer_name, const pulsar::ConsumerConfiguration conf = ConsumerConfiguration()); Result subscribe(const std::string& topic); @@ -33,9 +34,10 @@ public: private: Consumer consumer_; - std::shared_ptr client_; + std::shared_ptr client_; ConsumerConfiguration config_; std::string subscription_name_; }; +} } \ No newline at end of file diff --git a/proxy/src/pulsar/message_client/Producer.cpp b/proxy/src/pulsar/message_client/Producer.cpp index a4c6275bfc..c8bdba79c9 100644 --- a/proxy/src/pulsar/message_client/Producer.cpp +++ b/proxy/src/pulsar/message_client/Producer.cpp @@ -1,27 +1,30 @@ #include "Producer.h" +namespace milvus { namespace message_client { -MsgProducer::MsgProducer(std::shared_ptr &client, const std::string &topic, const ProducerConfiguration conf) : client_(client), config_(conf){ - createProducer(topic); -} + MsgProducer::MsgProducer(std::shared_ptr &client, const std::string &topic, + const ProducerConfiguration& conf) : client_(client), config_(conf) { + createProducer(topic); + } -Result MsgProducer::createProducer(const std::string &topic) { - return client_->createProducer(topic, producer_); -} + Result MsgProducer::createProducer(const std::string &topic) { + return client_->createProducer(topic, producer_); + } -Result MsgProducer::send(const Message &msg) { - return producer_.send(msg); -} + Result MsgProducer::send(const Message &msg) { + return producer_.send(msg); + } -Result MsgProducer::send(const std::string &msg) { - auto pulsar_msg = pulsar::MessageBuilder().setContent(msg).build(); - return send(pulsar_msg); -} + Result MsgProducer::send(const std::string &msg) { + auto pulsar_msg = pulsar::MessageBuilder().setContent(msg).build(); + return send(pulsar_msg); + } -Result MsgProducer::close() { - return producer_.close(); -} + Result MsgProducer::close() { + return producer_.close(); + } +} } \ No newline at end of file diff --git a/proxy/src/pulsar/message_client/Producer.h b/proxy/src/pulsar/message_client/Producer.h index f3b192fe68..1c7a323c3f 100644 --- a/proxy/src/pulsar/message_client/Producer.h +++ b/proxy/src/pulsar/message_client/Producer.h @@ -2,32 +2,35 @@ #include "pulsar/Producer.h" #include "Client.h" -#include "pb/suvlim.pb.h" +#include "src/grpc/gen-milvus/suvlim.pb.h" +namespace milvus { namespace message_client { using Producer = pulsar::Producer; using ProducerConfiguration = pulsar::ProducerConfiguration; -class MsgProducer{ -public: - MsgProducer(std::shared_ptr &client, const std::string &topic, const ProducerConfiguration conf = ProducerConfiguration()); +class MsgProducer { + public: + MsgProducer(std::shared_ptr &client, const std::string &topic, + const ProducerConfiguration &conf = ProducerConfiguration()); - Result createProducer(const std::string& topic); - Result send(const Message& msg); - Result send(const std::string& msg); - Result send(const suvlim::grpc::InsertOrDeleteMsg& msg); - Result send(const suvlim::grpc::SearchMsg& msg); - Result Send(const suvlim::grpc::GetEntityIDsParam) + Result createProducer(const std::string &topic); + Result send(const Message &msg); + Result send(const std::string &msg); + Result send(const milvus::grpc::InsertOrDeleteMsg &msg); + Result send(const milvus::grpc::SearchMsg &msg); + Result Send(const milvus::grpc::GetEntityIDsParam); Result close(); - const Producer& + const Producer & producer() const { return producer_; } -private: + private: Producer producer_; - std::shared_ptr client_; + std::shared_ptr client_; ProducerConfiguration config_; }; +} } \ No newline at end of file diff --git a/proxy/src/pulsar/message_client/pb/build.sh b/proxy/src/pulsar/message_client/pb/build.sh deleted file mode 100755 index 05ccdadf88..0000000000 --- a/proxy/src/pulsar/message_client/pb/build.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -#../../../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I=./ --cpp_out=./ pulsar.proto -protoc -I=./ --cpp_out=./ suvlim.proto \ No newline at end of file diff --git a/proxy/src/pulsar/message_client/pb/milvus.proto b/proxy/src/pulsar/message_client/pb/milvus.proto deleted file mode 100644 index 6f58ae1fae..0000000000 --- a/proxy/src/pulsar/message_client/pb/milvus.proto +++ /dev/null @@ -1,744 +0,0 @@ -syntax = "proto3"; - -package pb; - -enum ErrorCode { - 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; -} - -message Status { - ErrorCode error_code = 1; - string reason = 2; -} - -/** - * @brief Field data type - */ -enum DataType { - NONE = 0; - BOOL = 1; - INT8 = 2; - INT16 = 3; - INT32 = 4; - INT64 = 5; - - FLOAT = 10; - DOUBLE = 11; - - STRING = 20; - - VECTOR_BINARY = 100; - VECTOR_FLOAT = 101; -} - -/** - * @brief General usage - */ -message KeyValuePair { - string key = 1; - string value = 2; -} - -/** - * @brief Collection name - */ -message CollectionName { - string collection_name = 1; -} - -/** - * @brief Collection name list - */ -message CollectionNameList { - Status status = 1; - repeated string collection_names = 2; -} - -/** - * @brief Field name - */ -message FieldName { - string collection_name = 1; - string field_name = 2; -} - -/** - * @brief Collection mapping - * @extra_params: key-value pair for extra parameters of the collection - * typically usage: - * extra_params["params"] = {segment_row_count: 1000000, auto_id: true} - * Note: - * the segment_row_count specify segment row count limit for merging - * the auto_id = true means entity id is auto-generated by milvus - */ -message Mapping { - Status status = 1; - string collection_name = 2; - repeated FieldParam fields = 3; - repeated KeyValuePair extra_params = 4; -} - -/** - * @brief Collection mapping list - */ -message MappingList { - Status status = 1; - repeated Mapping mapping_list = 2; -} - -/** - * @brief Parameters of partition - */ -message PartitionParam { - string collection_name = 1; - string tag = 2; -} - -/** - * @brief Partition list - */ -message PartitionList { - Status status = 1; - repeated string partition_tag_array = 2; -} - -/** - * @brief Vector row record - */ -message VectorRowRecord { - repeated float float_data = 1; //float vector data - bytes binary_data = 2; //binary vector data -} - -/** - * @brief Attribute record - */ -message AttrRecord { - repeated int32 int32_value = 1; - repeated int64 int64_value = 2; - repeated float float_value = 3; - repeated double double_value = 4; -} - -/** - * @brief Vector records - */ -message VectorRecord { - repeated VectorRowRecord records = 1; -} - -/** - * @brief Field values - */ -message FieldValue { - string field_name = 1; - DataType type = 2; - AttrRecord attr_record = 3; - VectorRecord vector_record = 4; -} - -/** - * @brief Parameters for insert action - */ -message InsertParam { - string collection_name = 1; - repeated FieldValue fields = 2; - repeated int64 entity_id_array = 3; //optional - string partition_tag = 4; - repeated KeyValuePair extra_params = 5; -} - -/** - * @brief Entity ids - */ -message EntityIds { - Status status = 1; - repeated int64 entity_id_array = 2; -} - -/** - * @brief Search vector parameters - */ -message VectorParam { - string json = 1; - VectorRecord row_record = 2; -} - -/** - * @brief Parameters for search action - * @dsl example: - * { - * "query": { - * "bool": { - * "must": [ - * { - * "must":[ - * { - * "should": [ - * { - * "term": { - * "gender": ["male"] - * } - * }, - * { - * "range": { - * "height": {"gte": "170.0", "lte": "180.0"} - * } - * } - * ] - * }, - * { - * "must_not": [ - * { - * "term": { - * "age": [20, 21, 22, 23, 24, 25] - * } - * }, - * { - * "Range": { - * "weight": {"lte": "100"} - * } - * } - * ] - * } - * ] - * }, - * { - * "must": [ - * { - * "vector": { - * "face_img": { - * "topk": 10, - * "metric_type": "L2", - * "query": [], - * "params": { - * "nprobe": 10 - * } - * } - * } - * } - * ] - * } - * ] - * } - * }, - * "fields": ["age", "face_img"] - * } - */ -message SearchParam { - string collection_name = 1; - repeated string partition_tag_array = 2; - repeated VectorParam vector_param = 3; - string dsl = 4; - repeated KeyValuePair extra_params = 5; -} - -/** - * @brief Parameters for searching in segments - */ -message SearchInSegmentParam { - repeated string file_id_array = 1; - SearchParam search_param = 2; -} - -/** - * @brief Entities - */ -message Entities { - Status status = 1; - repeated int64 ids = 2; - repeated bool valid_row = 3; - repeated FieldValue fields = 4; -} - -/** - * @brief Query result - */ -message QueryResult { - Status status = 1; - Entities entities = 2; - int64 row_num = 3; - repeated float scores = 4; - repeated float distances = 5; - repeated KeyValuePair extra_params = 6; -} - -/** - * @brief Server string Reply - */ -message StringReply { - Status status = 1; - string string_reply = 2; -} - -/** - * @brief Server bool Reply - */ -message BoolReply { - Status status = 1; - bool bool_reply = 2; -} - -/** - * @brief Return collection row count - */ -message CollectionRowCount { - Status status = 1; - int64 collection_row_count = 2; -} - -/** - * @brief Server command parameters - */ -message Command { - string cmd = 1; -} - -/** - * @brief Index params - * @collection_name: target collection - * @field_name: target field - * @index_name: a name for index provided by user, unique within this field - * @extra_params: index parameters in json format - * for vector field: - * extra_params["index_type"] = one of the values: FLAT, IVF_LAT, IVF_SQ8, NSGMIX, IVFSQ8H, - * PQ, HNSW, HNSW_SQ8NM, ANNOY - * extra_params["metric_type"] = one of the values: L2, IP, HAMMING, JACCARD, TANIMOTO - * SUBSTRUCTURE, SUPERSTRUCTURE - * extra_params["params"] = extra parameters for index, for example ivflat: {nlist: 2048} - * for structured field: - * extra_params["index_type"] = one of the values: SORTED - */ -message IndexParam { - Status status = 1; - string collection_name = 2; - string field_name = 3; - string index_name = 4; - repeated KeyValuePair extra_params = 5; -} - -/** - * @brief Parameters for flush action - */ -message FlushParam { - repeated string collection_name_array = 1; -} - -/** - * @brief Parameters for flush action - */ -message CompactParam { - string collection_name = 1; - double threshold = 2; -} - -/** - * @brief Parameters for deleting entities by id - */ -message DeleteByIDParam { - string collection_name = 1; - repeated int64 id_array = 2; -} - -/** - * @brief Return collection stats - * @json_info: collection stats in json format, typically, the format is like: - * { - * row_count: xxx, - * data_size: xxx, - * partitions: [ - * { - * tag: xxx, - * id: xxx, - * row_count: xxx, - * data_size: xxx, - * segments: [ - * { - * id: xxx, - * row_count: xxx, - * data_size: xxx, - * files: [ - * { - * field: xxx, - * name: xxx, - * index_type: xxx, - * path: xxx, - * data_size: xxx, - * } - * ] - * } - * ] - * } - * ] - * } - */ -message CollectionInfo { - Status status = 1; - string json_info = 2; -} - -/** - * @brief Parameters for returning entities id of a segment - */ -message GetEntityIDsParam { - string collection_name = 1; - int64 segment_id = 2; -} - -/** - * @brief Entities identity - */ -message EntityIdentity { - string collection_name = 1; - repeated int64 id_array = 2; - repeated string field_names = 3; -} - -/********************************************SearchPB interface***************************************************/ -/** - * @brief Vector field parameters - */ -message VectorFieldParam { - int64 dimension = 1; -} - -/** - * @brief Field type - */ -message FieldType { - oneof value { - DataType data_type = 1; - VectorFieldParam vector_param = 2; - } -} - -/** - * @brief Field parameters - */ -message FieldParam { - uint64 id = 1; - string name = 2; - DataType type = 3; - repeated KeyValuePair index_params = 4; - repeated KeyValuePair extra_params = 5; -} - -/** - * @brief Vector field record - */ -message VectorFieldRecord { - repeated VectorRowRecord value = 1; -} - -/////////////////////////////////////////////////////////////////// - -message TermQuery { - string field_name = 1; - repeated int64 int_value = 2; - repeated double double_value = 3; - int64 value_num = 4; - float boost = 5; - repeated KeyValuePair extra_params = 6; -} - -enum CompareOperator { - LT = 0; - LTE = 1; - EQ = 2; - GT = 3; - GTE = 4; - NE = 5; -} - -message CompareExpr { - CompareOperator operator = 1; - string operand = 2; -} - -message RangeQuery { - string field_name = 1; - repeated CompareExpr operand = 2; - float boost = 3; - repeated KeyValuePair extra_params = 4; -} - -message VectorQuery { - string field_name = 1; - float query_boost = 2; - repeated VectorRowRecord records = 3; - int64 topk = 4; - repeated KeyValuePair extra_params = 5; -} - -enum Occur { - INVALID = 0; - MUST = 1; - SHOULD = 2; - MUST_NOT = 3; -} - -message BooleanQuery { - Occur occur = 1; - repeated GeneralQuery general_query = 2; -} - -message GeneralQuery { - oneof query { - BooleanQuery boolean_query = 1; - TermQuery term_query = 2; - RangeQuery range_query = 3; - VectorQuery vector_query = 4; - } -} - -message SearchParamPB { - string collection_name = 1; - repeated string partition_tag_array = 2; - GeneralQuery general_query = 3; - repeated KeyValuePair extra_params = 4; -} - -service MilvusService { - /** - * @brief This method is used to create collection - * - * @param CollectionSchema, use to provide collection information to be created. - * - * @return Status - */ - rpc CreateCollection(Mapping) returns (Status){} - - /** - * @brief This method is used to test collection existence. - * - * @param CollectionName, collection name is going to be tested. - * - * @return BoolReply - */ - rpc HasCollection(CollectionName) returns (BoolReply) {} - - /** - * @brief This method is used to get collection schema. - * - * @param CollectionName, target collection name. - * - * @return CollectionSchema - */ - rpc DescribeCollection(CollectionName) returns (Mapping) {} - - /** - * @brief This method is used to get collection schema. - * - * @param CollectionName, target collection name. - * - * @return CollectionRowCount - */ - rpc CountCollection(CollectionName) returns (CollectionRowCount) {} - - /** - * @brief This method is used to list all collections. - * - * @param Command, dummy parameter. - * - * @return CollectionNameList - */ - rpc ShowCollections(Command) returns (CollectionNameList) {} - - /** - * @brief This method is used to get collection detail information. - * - * @param CollectionName, target collection name. - * - * @return CollectionInfo - */ - rpc ShowCollectionInfo(CollectionName) returns (CollectionInfo) {} - - /** - * @brief This method is used to delete collection. - * - * @param CollectionName, collection name is going to be deleted. - * - * @return Status - */ - rpc DropCollection(CollectionName) returns (Status) {} - - /** - * @brief This method is used to build index by collection in sync mode. - * - * @param IndexParam, index paramters. - * - * @return Status - */ - rpc CreateIndex(IndexParam) returns (Status) {} - - /** - * @brief This method is used to describe index - * - * @param IndexParam, target index. - * - * @return IndexParam - */ - rpc DescribeIndex(IndexParam) returns (IndexParam) {} - - /** - * @brief This method is used to drop index - * - * @param IndexParam, target field. if the IndexParam.field_name is empty, will drop all index of the collection - * - * @return Status - */ - rpc DropIndex(IndexParam) returns (Status) {} - - /** - * @brief This method is used to create partition - * - * @param PartitionParam, partition parameters. - * - * @return Status - */ - rpc CreatePartition(PartitionParam) returns (Status) {} - - /** - * @brief This method is used to test partition existence. - * - * @param PartitionParam, target partition. - * - * @return BoolReply - */ - rpc HasPartition(PartitionParam) returns (BoolReply) {} - - /** - * @brief This method is used to show partition information - * - * @param CollectionName, target collection name. - * - * @return PartitionList - */ - rpc ShowPartitions(CollectionName) returns (PartitionList) {} - - /** - * @brief This method is used to drop partition - * - * @param PartitionParam, target partition. - * - * @return Status - */ - rpc DropPartition(PartitionParam) returns (Status) {} - - /** - * @brief This method is used to add vector array to collection. - * - * @param InsertParam, insert parameters. - * - * @return VectorIds - */ - rpc Insert(InsertParam) returns (EntityIds) {} - - /** - * @brief This method is used to get entities data by id array. - * - * @param EntitiesIdentity, target entity id array. - * - * @return EntitiesData - */ - rpc GetEntityByID(EntityIdentity) returns (Entities) {} - - /** - * @brief This method is used to get vector ids from a segment - * - * @param GetVectorIDsParam, target collection and segment - * - * @return VectorIds - */ - rpc GetEntityIDs(GetEntityIDsParam) returns (EntityIds) {} - - /** - * @brief This method is used to query vector in collection. - * - * @param SearchParam, search parameters. - * - * @return KQueryResult - */ - rpc Search(SearchParam) returns (QueryResult) {} - - /** - * @brief This method is used to query vector in specified files. - * - * @param SearchInSegmentParam, target segments to search. - * - * @return TopKQueryResult - */ - rpc SearchInSegment(SearchInSegmentParam) returns (QueryResult) {} - - /** - * @brief This method is used to give the server status. - * - * @param Command, command string - * - * @return StringReply - */ - rpc Cmd(Command) returns (StringReply) {} - - /** - * @brief This method is used to delete vector by id - * - * @param DeleteByIDParam, delete parameters. - * - * @return status - */ - rpc DeleteByID(DeleteByIDParam) returns (Status) {} - - /** - * @brief This method is used to preload collection - * - * @param CollectionName, target collection name. - * - * @return Status - */ - rpc PreloadCollection(CollectionName) returns (Status) {} - - /** - * @brief This method is used to flush buffer into storage. - * - * @param FlushParam, flush parameters - * - * @return Status - */ - rpc Flush(FlushParam) returns (Status) {} - - /** - * @brief This method is used to compact collection - * - * @param CompactParam, compact parameters - * - * @return Status - */ - rpc Compact(CompactParam) returns (Status) {} - - /********************************New Interface********************************************/ - - rpc SearchPB(SearchParamPB) returns (QueryResult) {} -} diff --git a/proxy/src/pulsar/message_client/pb/pulsar.pb.cc b/proxy/src/pulsar/message_client/pb/pulsar.pb.cc deleted file mode 100644 index 9016039faf..0000000000 --- a/proxy/src/pulsar/message_client/pb/pulsar.pb.cc +++ /dev/null @@ -1,6462 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: pulsar.proto - -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION -#include "pulsar.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) - -namespace pb { - -namespace { - -const ::google::protobuf::Descriptor* Status_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - Status_reflection_ = NULL; -const ::google::protobuf::Descriptor* SegmentRecord_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SegmentRecord_reflection_ = NULL; -const ::google::protobuf::Descriptor* VectorRowRecord_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - VectorRowRecord_reflection_ = NULL; -const ::google::protobuf::Descriptor* AttrRecord_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AttrRecord_reflection_ = NULL; -const ::google::protobuf::Descriptor* VectorRecord_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - VectorRecord_reflection_ = NULL; -const ::google::protobuf::Descriptor* VectorParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - VectorParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* FieldValue_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - FieldValue_reflection_ = NULL; -const ::google::protobuf::Descriptor* Cell_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - Cell_reflection_ = NULL; -struct CellOneofInstance { - ::google::protobuf::int32 int32_value_; - ::google::protobuf::int64 int64_value_; - float float_value_; - double double_value_; - const ::pb::VectorRowRecord* vec_; -}* Cell_default_oneof_instance_ = NULL; -const ::google::protobuf::Descriptor* RowValue_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - RowValue_reflection_ = NULL; -const ::google::protobuf::Descriptor* PulsarMessage_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - PulsarMessage_reflection_ = NULL; -const ::google::protobuf::Descriptor* TestData_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - TestData_reflection_ = NULL; -const ::google::protobuf::Descriptor* InsertMsg_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - InsertMsg_reflection_ = NULL; -const ::google::protobuf::Descriptor* DeleteMsg_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - DeleteMsg_reflection_ = NULL; -const ::google::protobuf::Descriptor* SearchMsg_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SearchMsg_reflection_ = NULL; -const ::google::protobuf::Descriptor* SearchResultMsg_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SearchResultMsg_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* ErrorCode_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* DataType_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* OpType_descriptor_ = NULL; - -} // namespace - - -void protobuf_AssignDesc_pulsar_2eproto() GOOGLE_ATTRIBUTE_COLD; -void protobuf_AssignDesc_pulsar_2eproto() { - protobuf_AddDesc_pulsar_2eproto(); - const ::google::protobuf::FileDescriptor* file = - ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( - "pulsar.proto"); - GOOGLE_CHECK(file != NULL); - Status_descriptor_ = file->message_type(0); - static const int Status_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Status, error_code_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Status, reason_), - }; - Status_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - Status_descriptor_, - Status::default_instance_, - Status_offsets_, - -1, - -1, - -1, - sizeof(Status), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Status, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Status, _is_default_instance_)); - SegmentRecord_descriptor_ = file->message_type(1); - static const int SegmentRecord_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SegmentRecord, seg_info_), - }; - SegmentRecord_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - SegmentRecord_descriptor_, - SegmentRecord::default_instance_, - SegmentRecord_offsets_, - -1, - -1, - -1, - sizeof(SegmentRecord), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SegmentRecord, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SegmentRecord, _is_default_instance_)); - VectorRowRecord_descriptor_ = file->message_type(2); - static const int VectorRowRecord_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRowRecord, float_data_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRowRecord, binary_data_), - }; - VectorRowRecord_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - VectorRowRecord_descriptor_, - VectorRowRecord::default_instance_, - VectorRowRecord_offsets_, - -1, - -1, - -1, - sizeof(VectorRowRecord), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRowRecord, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRowRecord, _is_default_instance_)); - AttrRecord_descriptor_ = file->message_type(3); - static const int AttrRecord_offsets_[4] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttrRecord, int32_value_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttrRecord, int64_value_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttrRecord, float_value_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttrRecord, double_value_), - }; - AttrRecord_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - AttrRecord_descriptor_, - AttrRecord::default_instance_, - AttrRecord_offsets_, - -1, - -1, - -1, - sizeof(AttrRecord), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttrRecord, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttrRecord, _is_default_instance_)); - VectorRecord_descriptor_ = file->message_type(4); - static const int VectorRecord_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRecord, records_), - }; - VectorRecord_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - VectorRecord_descriptor_, - VectorRecord::default_instance_, - VectorRecord_offsets_, - -1, - -1, - -1, - sizeof(VectorRecord), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRecord, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRecord, _is_default_instance_)); - VectorParam_descriptor_ = file->message_type(5); - static const int VectorParam_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorParam, json_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorParam, row_record_), - }; - VectorParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - VectorParam_descriptor_, - VectorParam::default_instance_, - VectorParam_offsets_, - -1, - -1, - -1, - sizeof(VectorParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorParam, _is_default_instance_)); - FieldValue_descriptor_ = file->message_type(6); - static const int FieldValue_offsets_[4] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldValue, field_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldValue, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldValue, attr_record_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldValue, vector_record_), - }; - FieldValue_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - FieldValue_descriptor_, - FieldValue::default_instance_, - FieldValue_offsets_, - -1, - -1, - -1, - sizeof(FieldValue), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldValue, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldValue, _is_default_instance_)); - Cell_descriptor_ = file->message_type(7); - static const int Cell_offsets_[6] = { - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(Cell_default_oneof_instance_, int32_value_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(Cell_default_oneof_instance_, int64_value_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(Cell_default_oneof_instance_, float_value_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(Cell_default_oneof_instance_, double_value_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(Cell_default_oneof_instance_, vec_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, value_), - }; - Cell_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - Cell_descriptor_, - Cell::default_instance_, - Cell_offsets_, - -1, - -1, - -1, - Cell_default_oneof_instance_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, _oneof_case_[0]), - sizeof(Cell), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, _is_default_instance_)); - RowValue_descriptor_ = file->message_type(8); - static const int RowValue_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RowValue, cell_), - }; - RowValue_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - RowValue_descriptor_, - RowValue::default_instance_, - RowValue_offsets_, - -1, - -1, - -1, - sizeof(RowValue), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RowValue, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RowValue, _is_default_instance_)); - PulsarMessage_descriptor_ = file->message_type(9); - static const int PulsarMessage_offsets_[11] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, fields_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, entity_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, partition_tag_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, vector_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, segments_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, timestamp_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, client_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, msg_type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, topic_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, partition_id_), - }; - PulsarMessage_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - PulsarMessage_descriptor_, - PulsarMessage::default_instance_, - PulsarMessage_offsets_, - -1, - -1, - -1, - sizeof(PulsarMessage), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, _is_default_instance_)); - TestData_descriptor_ = file->message_type(10); - static const int TestData_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TestData, id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TestData, name_), - }; - TestData_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - TestData_descriptor_, - TestData::default_instance_, - TestData_offsets_, - -1, - -1, - -1, - sizeof(TestData), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TestData, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TestData, _is_default_instance_)); - InsertMsg_descriptor_ = file->message_type(11); - static const int InsertMsg_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertMsg, client_id_), - }; - InsertMsg_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - InsertMsg_descriptor_, - InsertMsg::default_instance_, - InsertMsg_offsets_, - -1, - -1, - -1, - sizeof(InsertMsg), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertMsg, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertMsg, _is_default_instance_)); - DeleteMsg_descriptor_ = file->message_type(12); - static const int DeleteMsg_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteMsg, client_id_), - }; - DeleteMsg_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - DeleteMsg_descriptor_, - DeleteMsg::default_instance_, - DeleteMsg_offsets_, - -1, - -1, - -1, - sizeof(DeleteMsg), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteMsg, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteMsg, _is_default_instance_)); - SearchMsg_descriptor_ = file->message_type(13); - static const int SearchMsg_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchMsg, client_id_), - }; - SearchMsg_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - SearchMsg_descriptor_, - SearchMsg::default_instance_, - SearchMsg_offsets_, - -1, - -1, - -1, - sizeof(SearchMsg), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchMsg, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchMsg, _is_default_instance_)); - SearchResultMsg_descriptor_ = file->message_type(14); - static const int SearchResultMsg_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchResultMsg, client_id_), - }; - SearchResultMsg_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - SearchResultMsg_descriptor_, - SearchResultMsg::default_instance_, - SearchResultMsg_offsets_, - -1, - -1, - -1, - sizeof(SearchResultMsg), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchResultMsg, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchResultMsg, _is_default_instance_)); - ErrorCode_descriptor_ = file->enum_type(0); - DataType_descriptor_ = file->enum_type(1); - OpType_descriptor_ = file->enum_type(2); -} - -namespace { - -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); -inline void protobuf_AssignDescriptorsOnce() { - ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, - &protobuf_AssignDesc_pulsar_2eproto); -} - -void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; -void protobuf_RegisterTypes(const ::std::string&) { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - Status_descriptor_, &Status::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SegmentRecord_descriptor_, &SegmentRecord::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - VectorRowRecord_descriptor_, &VectorRowRecord::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AttrRecord_descriptor_, &AttrRecord::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - VectorRecord_descriptor_, &VectorRecord::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - VectorParam_descriptor_, &VectorParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - FieldValue_descriptor_, &FieldValue::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - Cell_descriptor_, &Cell::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - RowValue_descriptor_, &RowValue::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - PulsarMessage_descriptor_, &PulsarMessage::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - TestData_descriptor_, &TestData::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - InsertMsg_descriptor_, &InsertMsg::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - DeleteMsg_descriptor_, &DeleteMsg::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SearchMsg_descriptor_, &SearchMsg::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SearchResultMsg_descriptor_, &SearchResultMsg::default_instance()); -} - -} // namespace - -void protobuf_ShutdownFile_pulsar_2eproto() { - delete Status::default_instance_; - delete Status_reflection_; - delete SegmentRecord::default_instance_; - delete SegmentRecord_reflection_; - delete VectorRowRecord::default_instance_; - delete VectorRowRecord_reflection_; - delete AttrRecord::default_instance_; - delete AttrRecord_reflection_; - delete VectorRecord::default_instance_; - delete VectorRecord_reflection_; - delete VectorParam::default_instance_; - delete VectorParam_reflection_; - delete FieldValue::default_instance_; - delete FieldValue_reflection_; - delete Cell::default_instance_; - delete Cell_default_oneof_instance_; - delete Cell_reflection_; - delete RowValue::default_instance_; - delete RowValue_reflection_; - delete PulsarMessage::default_instance_; - delete PulsarMessage_reflection_; - delete TestData::default_instance_; - delete TestData_reflection_; - delete InsertMsg::default_instance_; - delete InsertMsg_reflection_; - delete DeleteMsg::default_instance_; - delete DeleteMsg_reflection_; - delete SearchMsg::default_instance_; - delete SearchMsg_reflection_; - delete SearchResultMsg::default_instance_; - delete SearchResultMsg_reflection_; -} - -void protobuf_AddDesc_pulsar_2eproto() GOOGLE_ATTRIBUTE_COLD; -void protobuf_AddDesc_pulsar_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; - GOOGLE_PROTOBUF_VERIFY_VERSION; - - ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\014pulsar.proto\022\002pb\";\n\006Status\022!\n\nerror_co" - "de\030\001 \001(\0162\r.pb.ErrorCode\022\016\n\006reason\030\002 \001(\t\"" - "!\n\rSegmentRecord\022\020\n\010seg_info\030\001 \003(\t\":\n\017Ve" - "ctorRowRecord\022\022\n\nfloat_data\030\001 \003(\002\022\023\n\013bin" - "ary_data\030\002 \001(\014\"a\n\nAttrRecord\022\023\n\013int32_va" - "lue\030\001 \003(\005\022\023\n\013int64_value\030\002 \003(\003\022\023\n\013float_" - "value\030\003 \003(\002\022\024\n\014double_value\030\004 \003(\001\"4\n\014Vec" - "torRecord\022$\n\007records\030\001 \003(\0132\023.pb.VectorRo" - "wRecord\"A\n\013VectorParam\022\014\n\004json\030\001 \001(\t\022$\n\n" - "row_record\030\002 \001(\0132\020.pb.VectorRecord\"\212\001\n\nF" - "ieldValue\022\022\n\nfield_name\030\001 \001(\t\022\032\n\004type\030\002 " - "\001(\0162\014.pb.DataType\022#\n\013attr_record\030\003 \001(\0132\016" - ".pb.AttrRecord\022\'\n\rvector_record\030\004 \001(\0132\020." - "pb.VectorRecord\"\220\001\n\004Cell\022\025\n\013int32_value\030" - "\001 \001(\005H\000\022\025\n\013int64_value\030\002 \001(\003H\000\022\025\n\013float_" - "value\030\003 \001(\002H\000\022\026\n\014double_value\030\004 \001(\001H\000\022\"\n" - "\003vec\030\005 \001(\0132\023.pb.VectorRowRecordH\000B\007\n\005val" - "ue\"\"\n\010RowValue\022\026\n\004cell\030\002 \003(\0132\010.pb.Cell\"\254" - "\002\n\rPulsarMessage\022\027\n\017collection_name\030\001 \001(" - "\t\022\036\n\006fields\030\002 \003(\0132\016.pb.FieldValue\022\021\n\tent" - "ity_id\030\003 \001(\003\022\025\n\rpartition_tag\030\004 \001(\t\022%\n\014v" - "ector_param\030\005 \001(\0132\017.pb.VectorParam\022#\n\010se" - "gments\030\006 \001(\0132\021.pb.SegmentRecord\022\021\n\ttimes" - "tamp\030\007 \001(\003\022\021\n\tclient_id\030\010 \001(\003\022\034\n\010msg_typ" - "e\030\t \001(\0162\n.pb.OpType\022\022\n\ntopic_name\030\n \001(\t\022" - "\024\n\014partition_id\030\013 \001(\003\"$\n\010TestData\022\n\n\002id\030" - "\001 \001(\t\022\014\n\004name\030\002 \001(\t\"\036\n\tInsertMsg\022\021\n\tclie" - "nt_id\030\001 \001(\003\"\036\n\tDeleteMsg\022\021\n\tclient_id\030\001 " - "\001(\003\"\036\n\tSearchMsg\022\021\n\tclient_id\030\001 \001(\003\"$\n\017S" - "earchResultMsg\022\021\n\tclient_id\030\001 \001(\003*\242\004\n\tEr" - "rorCode\022\013\n\007SUCCESS\020\000\022\024\n\020UNEXPECTED_ERROR" - "\020\001\022\022\n\016CONNECT_FAILED\020\002\022\025\n\021PERMISSION_DEN" - "IED\020\003\022\031\n\025COLLECTION_NOT_EXISTS\020\004\022\024\n\020ILLE" - "GAL_ARGUMENT\020\005\022\025\n\021ILLEGAL_DIMENSION\020\007\022\026\n" - "\022ILLEGAL_INDEX_TYPE\020\010\022\033\n\027ILLEGAL_COLLECT" - "ION_NAME\020\t\022\020\n\014ILLEGAL_TOPK\020\n\022\025\n\021ILLEGAL_" - "ROWRECORD\020\013\022\025\n\021ILLEGAL_VECTOR_ID\020\014\022\031\n\025IL" - "LEGAL_SEARCH_RESULT\020\r\022\022\n\016FILE_NOT_FOUND\020" - "\016\022\017\n\013META_FAILED\020\017\022\020\n\014CACHE_FAILED\020\020\022\030\n\024" - "CANNOT_CREATE_FOLDER\020\021\022\026\n\022CANNOT_CREATE_" - "FILE\020\022\022\030\n\024CANNOT_DELETE_FOLDER\020\023\022\026\n\022CANN" - "OT_DELETE_FILE\020\024\022\025\n\021BUILD_INDEX_ERROR\020\025\022" - "\021\n\rILLEGAL_NLIST\020\026\022\027\n\023ILLEGAL_METRIC_TYP" - "E\020\027\022\021\n\rOUT_OF_MEMORY\020\030*\221\001\n\010DataType\022\010\n\004N" - "ONE\020\000\022\010\n\004BOOL\020\001\022\010\n\004INT8\020\002\022\t\n\005INT16\020\003\022\t\n\005" - "INT32\020\004\022\t\n\005INT64\020\005\022\t\n\005FLOAT\020\n\022\n\n\006DOUBLE\020" - "\013\022\n\n\006STRING\020\024\022\021\n\rVECTOR_BINARY\020d\022\020\n\014VECT" - "OR_FLOAT\020e*W\n\006OpType\022\n\n\006Insert\020\000\022\n\n\006Dele" - "te\020\001\022\n\n\006Search\020\002\022\014\n\010TimeSync\020\003\022\013\n\007Key2Se" - "g\020\004\022\016\n\nStatistics\020\005b\006proto3", 1987); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( - "pulsar.proto", &protobuf_RegisterTypes); - Status::default_instance_ = new Status(); - SegmentRecord::default_instance_ = new SegmentRecord(); - VectorRowRecord::default_instance_ = new VectorRowRecord(); - AttrRecord::default_instance_ = new AttrRecord(); - VectorRecord::default_instance_ = new VectorRecord(); - VectorParam::default_instance_ = new VectorParam(); - FieldValue::default_instance_ = new FieldValue(); - Cell::default_instance_ = new Cell(); - Cell_default_oneof_instance_ = new CellOneofInstance(); - RowValue::default_instance_ = new RowValue(); - PulsarMessage::default_instance_ = new PulsarMessage(); - TestData::default_instance_ = new TestData(); - InsertMsg::default_instance_ = new InsertMsg(); - DeleteMsg::default_instance_ = new DeleteMsg(); - SearchMsg::default_instance_ = new SearchMsg(); - SearchResultMsg::default_instance_ = new SearchResultMsg(); - Status::default_instance_->InitAsDefaultInstance(); - SegmentRecord::default_instance_->InitAsDefaultInstance(); - VectorRowRecord::default_instance_->InitAsDefaultInstance(); - AttrRecord::default_instance_->InitAsDefaultInstance(); - VectorRecord::default_instance_->InitAsDefaultInstance(); - VectorParam::default_instance_->InitAsDefaultInstance(); - FieldValue::default_instance_->InitAsDefaultInstance(); - Cell::default_instance_->InitAsDefaultInstance(); - RowValue::default_instance_->InitAsDefaultInstance(); - PulsarMessage::default_instance_->InitAsDefaultInstance(); - TestData::default_instance_->InitAsDefaultInstance(); - InsertMsg::default_instance_->InitAsDefaultInstance(); - DeleteMsg::default_instance_->InitAsDefaultInstance(); - SearchMsg::default_instance_->InitAsDefaultInstance(); - SearchResultMsg::default_instance_->InitAsDefaultInstance(); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_pulsar_2eproto); -} - -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_pulsar_2eproto { - StaticDescriptorInitializer_pulsar_2eproto() { - protobuf_AddDesc_pulsar_2eproto(); - } -} static_descriptor_initializer_pulsar_2eproto_; -const ::google::protobuf::EnumDescriptor* ErrorCode_descriptor() { - protobuf_AssignDescriptorsOnce(); - return ErrorCode_descriptor_; -} -bool ErrorCode_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 23: - case 24: - return true; - default: - return false; - } -} - -const ::google::protobuf::EnumDescriptor* DataType_descriptor() { - protobuf_AssignDescriptorsOnce(); - return DataType_descriptor_; -} -bool DataType_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 10: - case 11: - case 20: - case 100: - case 101: - return true; - default: - return false; - } -} - -const ::google::protobuf::EnumDescriptor* OpType_descriptor() { - protobuf_AssignDescriptorsOnce(); - return OpType_descriptor_; -} -bool OpType_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - return true; - default: - return false; - } -} - - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Status::kErrorCodeFieldNumber; -const int Status::kReasonFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Status::Status() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.Status) -} - -void Status::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -Status::Status(const Status& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.Status) -} - -void Status::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - error_code_ = 0; - reason_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -Status::~Status() { - // @@protoc_insertion_point(destructor:pb.Status) - SharedDtor(); -} - -void Status::SharedDtor() { - reason_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void Status::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* Status::descriptor() { - protobuf_AssignDescriptorsOnce(); - return Status_descriptor_; -} - -const Status& Status::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -Status* Status::default_instance_ = NULL; - -Status* Status::New(::google::protobuf::Arena* arena) const { - Status* n = new Status; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void Status::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.Status) - error_code_ = 0; - reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -bool Status::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.Status) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .pb.ErrorCode error_code = 1; - case 1: { - if (tag == 8) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_error_code(static_cast< ::pb::ErrorCode >(value)); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_reason; - break; - } - - // optional string reason = 2; - case 2: { - if (tag == 18) { - parse_reason: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_reason())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), this->reason().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.Status.reason")); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.Status) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.Status) - return false; -#undef DO_ -} - -void Status::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.Status) - // optional .pb.ErrorCode error_code = 1; - if (this->error_code() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->error_code(), output); - } - - // optional string reason = 2; - if (this->reason().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), this->reason().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.Status.reason"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->reason(), output); - } - - // @@protoc_insertion_point(serialize_end:pb.Status) -} - -::google::protobuf::uint8* Status::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.Status) - // optional .pb.ErrorCode error_code = 1; - if (this->error_code() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->error_code(), target); - } - - // optional string reason = 2; - if (this->reason().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), this->reason().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.Status.reason"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->reason(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.Status) - return target; -} - -int Status::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.Status) - int total_size = 0; - - // optional .pb.ErrorCode error_code = 1; - if (this->error_code() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->error_code()); - } - - // optional string reason = 2; - if (this->reason().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->reason()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void Status::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.Status) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const Status* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Status) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Status) - MergeFrom(*source); - } -} - -void Status::MergeFrom(const Status& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.Status) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.error_code() != 0) { - set_error_code(from.error_code()); - } - if (from.reason().size() > 0) { - - reason_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_); - } -} - -void Status::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.Status) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Status::CopyFrom(const Status& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.Status) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Status::IsInitialized() const { - - return true; -} - -void Status::Swap(Status* other) { - if (other == this) return; - InternalSwap(other); -} -void Status::InternalSwap(Status* other) { - std::swap(error_code_, other->error_code_); - reason_.Swap(&other->reason_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata Status::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = Status_descriptor_; - metadata.reflection = Status_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// Status - -// optional .pb.ErrorCode error_code = 1; -void Status::clear_error_code() { - error_code_ = 0; -} - ::pb::ErrorCode Status::error_code() const { - // @@protoc_insertion_point(field_get:pb.Status.error_code) - return static_cast< ::pb::ErrorCode >(error_code_); -} - void Status::set_error_code(::pb::ErrorCode value) { - - error_code_ = value; - // @@protoc_insertion_point(field_set:pb.Status.error_code) -} - -// optional string reason = 2; -void Status::clear_reason() { - reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& Status::reason() const { - // @@protoc_insertion_point(field_get:pb.Status.reason) - return reason_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void Status::set_reason(const ::std::string& value) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.Status.reason) -} - void Status::set_reason(const char* value) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.Status.reason) -} - void Status::set_reason(const char* value, size_t size) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.Status.reason) -} - ::std::string* Status::mutable_reason() { - - // @@protoc_insertion_point(field_mutable:pb.Status.reason) - return reason_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* Status::release_reason() { - // @@protoc_insertion_point(field_release:pb.Status.reason) - - return reason_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void Status::set_allocated_reason(::std::string* reason) { - if (reason != NULL) { - - } else { - - } - reason_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reason); - // @@protoc_insertion_point(field_set_allocated:pb.Status.reason) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SegmentRecord::kSegInfoFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SegmentRecord::SegmentRecord() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.SegmentRecord) -} - -void SegmentRecord::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -SegmentRecord::SegmentRecord(const SegmentRecord& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.SegmentRecord) -} - -void SegmentRecord::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; -} - -SegmentRecord::~SegmentRecord() { - // @@protoc_insertion_point(destructor:pb.SegmentRecord) - SharedDtor(); -} - -void SegmentRecord::SharedDtor() { - if (this != default_instance_) { - } -} - -void SegmentRecord::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* SegmentRecord::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SegmentRecord_descriptor_; -} - -const SegmentRecord& SegmentRecord::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -SegmentRecord* SegmentRecord::default_instance_ = NULL; - -SegmentRecord* SegmentRecord::New(::google::protobuf::Arena* arena) const { - SegmentRecord* n = new SegmentRecord; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void SegmentRecord::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.SegmentRecord) - seg_info_.Clear(); -} - -bool SegmentRecord::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.SegmentRecord) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated string seg_info = 1; - case 1: { - if (tag == 10) { - parse_seg_info: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_seg_info())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->seg_info(this->seg_info_size() - 1).data(), - this->seg_info(this->seg_info_size() - 1).length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.SegmentRecord.seg_info")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_seg_info; - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.SegmentRecord) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.SegmentRecord) - return false; -#undef DO_ -} - -void SegmentRecord::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.SegmentRecord) - // repeated string seg_info = 1; - for (int i = 0; i < this->seg_info_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->seg_info(i).data(), this->seg_info(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.SegmentRecord.seg_info"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->seg_info(i), output); - } - - // @@protoc_insertion_point(serialize_end:pb.SegmentRecord) -} - -::google::protobuf::uint8* SegmentRecord::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.SegmentRecord) - // repeated string seg_info = 1; - for (int i = 0; i < this->seg_info_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->seg_info(i).data(), this->seg_info(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.SegmentRecord.seg_info"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(1, this->seg_info(i), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.SegmentRecord) - return target; -} - -int SegmentRecord::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.SegmentRecord) - int total_size = 0; - - // repeated string seg_info = 1; - total_size += 1 * this->seg_info_size(); - for (int i = 0; i < this->seg_info_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->seg_info(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SegmentRecord::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.SegmentRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const SegmentRecord* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.SegmentRecord) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.SegmentRecord) - MergeFrom(*source); - } -} - -void SegmentRecord::MergeFrom(const SegmentRecord& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.SegmentRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - seg_info_.MergeFrom(from.seg_info_); -} - -void SegmentRecord::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.SegmentRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SegmentRecord::CopyFrom(const SegmentRecord& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.SegmentRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SegmentRecord::IsInitialized() const { - - return true; -} - -void SegmentRecord::Swap(SegmentRecord* other) { - if (other == this) return; - InternalSwap(other); -} -void SegmentRecord::InternalSwap(SegmentRecord* other) { - seg_info_.UnsafeArenaSwap(&other->seg_info_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata SegmentRecord::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SegmentRecord_descriptor_; - metadata.reflection = SegmentRecord_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SegmentRecord - -// repeated string seg_info = 1; -int SegmentRecord::seg_info_size() const { - return seg_info_.size(); -} -void SegmentRecord::clear_seg_info() { - seg_info_.Clear(); -} - const ::std::string& SegmentRecord::seg_info(int index) const { - // @@protoc_insertion_point(field_get:pb.SegmentRecord.seg_info) - return seg_info_.Get(index); -} - ::std::string* SegmentRecord::mutable_seg_info(int index) { - // @@protoc_insertion_point(field_mutable:pb.SegmentRecord.seg_info) - return seg_info_.Mutable(index); -} - void SegmentRecord::set_seg_info(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:pb.SegmentRecord.seg_info) - seg_info_.Mutable(index)->assign(value); -} - void SegmentRecord::set_seg_info(int index, const char* value) { - seg_info_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:pb.SegmentRecord.seg_info) -} - void SegmentRecord::set_seg_info(int index, const char* value, size_t size) { - seg_info_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:pb.SegmentRecord.seg_info) -} - ::std::string* SegmentRecord::add_seg_info() { - // @@protoc_insertion_point(field_add_mutable:pb.SegmentRecord.seg_info) - return seg_info_.Add(); -} - void SegmentRecord::add_seg_info(const ::std::string& value) { - seg_info_.Add()->assign(value); - // @@protoc_insertion_point(field_add:pb.SegmentRecord.seg_info) -} - void SegmentRecord::add_seg_info(const char* value) { - seg_info_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:pb.SegmentRecord.seg_info) -} - void SegmentRecord::add_seg_info(const char* value, size_t size) { - seg_info_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:pb.SegmentRecord.seg_info) -} - const ::google::protobuf::RepeatedPtrField< ::std::string>& -SegmentRecord::seg_info() const { - // @@protoc_insertion_point(field_list:pb.SegmentRecord.seg_info) - return seg_info_; -} - ::google::protobuf::RepeatedPtrField< ::std::string>* -SegmentRecord::mutable_seg_info() { - // @@protoc_insertion_point(field_mutable_list:pb.SegmentRecord.seg_info) - return &seg_info_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VectorRowRecord::kFloatDataFieldNumber; -const int VectorRowRecord::kBinaryDataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -VectorRowRecord::VectorRowRecord() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.VectorRowRecord) -} - -void VectorRowRecord::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -VectorRowRecord::VectorRowRecord(const VectorRowRecord& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.VectorRowRecord) -} - -void VectorRowRecord::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - binary_data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -VectorRowRecord::~VectorRowRecord() { - // @@protoc_insertion_point(destructor:pb.VectorRowRecord) - SharedDtor(); -} - -void VectorRowRecord::SharedDtor() { - binary_data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void VectorRowRecord::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* VectorRowRecord::descriptor() { - protobuf_AssignDescriptorsOnce(); - return VectorRowRecord_descriptor_; -} - -const VectorRowRecord& VectorRowRecord::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -VectorRowRecord* VectorRowRecord::default_instance_ = NULL; - -VectorRowRecord* VectorRowRecord::New(::google::protobuf::Arena* arena) const { - VectorRowRecord* n = new VectorRowRecord; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void VectorRowRecord::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.VectorRowRecord) - binary_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - float_data_.Clear(); -} - -bool VectorRowRecord::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.VectorRowRecord) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated float float_data = 1; - case 1: { - if (tag == 10) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_float_data()))); - } else if (tag == 13) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 10, input, this->mutable_float_data()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_binary_data; - break; - } - - // optional bytes binary_data = 2; - case 2: { - if (tag == 18) { - parse_binary_data: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_binary_data())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.VectorRowRecord) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.VectorRowRecord) - return false; -#undef DO_ -} - -void VectorRowRecord::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.VectorRowRecord) - // repeated float float_data = 1; - if (this->float_data_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_float_data_cached_byte_size_); - } - for (int i = 0; i < this->float_data_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloatNoTag( - this->float_data(i), output); - } - - // optional bytes binary_data = 2; - if (this->binary_data().size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 2, this->binary_data(), output); - } - - // @@protoc_insertion_point(serialize_end:pb.VectorRowRecord) -} - -::google::protobuf::uint8* VectorRowRecord::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.VectorRowRecord) - // repeated float float_data = 1; - if (this->float_data_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 1, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _float_data_cached_byte_size_, target); - } - for (int i = 0; i < this->float_data_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatNoTagToArray(this->float_data(i), target); - } - - // optional bytes binary_data = 2; - if (this->binary_data().size() > 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 2, this->binary_data(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.VectorRowRecord) - return target; -} - -int VectorRowRecord::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.VectorRowRecord) - int total_size = 0; - - // optional bytes binary_data = 2; - if (this->binary_data().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->binary_data()); - } - - // repeated float float_data = 1; - { - int data_size = 0; - data_size = 4 * this->float_data_size(); - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _float_data_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void VectorRowRecord::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.VectorRowRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const VectorRowRecord* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.VectorRowRecord) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.VectorRowRecord) - MergeFrom(*source); - } -} - -void VectorRowRecord::MergeFrom(const VectorRowRecord& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.VectorRowRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - float_data_.MergeFrom(from.float_data_); - if (from.binary_data().size() > 0) { - - binary_data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.binary_data_); - } -} - -void VectorRowRecord::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.VectorRowRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VectorRowRecord::CopyFrom(const VectorRowRecord& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.VectorRowRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VectorRowRecord::IsInitialized() const { - - return true; -} - -void VectorRowRecord::Swap(VectorRowRecord* other) { - if (other == this) return; - InternalSwap(other); -} -void VectorRowRecord::InternalSwap(VectorRowRecord* other) { - float_data_.UnsafeArenaSwap(&other->float_data_); - binary_data_.Swap(&other->binary_data_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata VectorRowRecord::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = VectorRowRecord_descriptor_; - metadata.reflection = VectorRowRecord_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// VectorRowRecord - -// repeated float float_data = 1; -int VectorRowRecord::float_data_size() const { - return float_data_.size(); -} -void VectorRowRecord::clear_float_data() { - float_data_.Clear(); -} - float VectorRowRecord::float_data(int index) const { - // @@protoc_insertion_point(field_get:pb.VectorRowRecord.float_data) - return float_data_.Get(index); -} - void VectorRowRecord::set_float_data(int index, float value) { - float_data_.Set(index, value); - // @@protoc_insertion_point(field_set:pb.VectorRowRecord.float_data) -} - void VectorRowRecord::add_float_data(float value) { - float_data_.Add(value); - // @@protoc_insertion_point(field_add:pb.VectorRowRecord.float_data) -} - const ::google::protobuf::RepeatedField< float >& -VectorRowRecord::float_data() const { - // @@protoc_insertion_point(field_list:pb.VectorRowRecord.float_data) - return float_data_; -} - ::google::protobuf::RepeatedField< float >* -VectorRowRecord::mutable_float_data() { - // @@protoc_insertion_point(field_mutable_list:pb.VectorRowRecord.float_data) - return &float_data_; -} - -// optional bytes binary_data = 2; -void VectorRowRecord::clear_binary_data() { - binary_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& VectorRowRecord::binary_data() const { - // @@protoc_insertion_point(field_get:pb.VectorRowRecord.binary_data) - return binary_data_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void VectorRowRecord::set_binary_data(const ::std::string& value) { - - binary_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.VectorRowRecord.binary_data) -} - void VectorRowRecord::set_binary_data(const char* value) { - - binary_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.VectorRowRecord.binary_data) -} - void VectorRowRecord::set_binary_data(const void* value, size_t size) { - - binary_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.VectorRowRecord.binary_data) -} - ::std::string* VectorRowRecord::mutable_binary_data() { - - // @@protoc_insertion_point(field_mutable:pb.VectorRowRecord.binary_data) - return binary_data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* VectorRowRecord::release_binary_data() { - // @@protoc_insertion_point(field_release:pb.VectorRowRecord.binary_data) - - return binary_data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void VectorRowRecord::set_allocated_binary_data(::std::string* binary_data) { - if (binary_data != NULL) { - - } else { - - } - binary_data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), binary_data); - // @@protoc_insertion_point(field_set_allocated:pb.VectorRowRecord.binary_data) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AttrRecord::kInt32ValueFieldNumber; -const int AttrRecord::kInt64ValueFieldNumber; -const int AttrRecord::kFloatValueFieldNumber; -const int AttrRecord::kDoubleValueFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AttrRecord::AttrRecord() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.AttrRecord) -} - -void AttrRecord::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -AttrRecord::AttrRecord(const AttrRecord& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.AttrRecord) -} - -void AttrRecord::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; -} - -AttrRecord::~AttrRecord() { - // @@protoc_insertion_point(destructor:pb.AttrRecord) - SharedDtor(); -} - -void AttrRecord::SharedDtor() { - if (this != default_instance_) { - } -} - -void AttrRecord::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AttrRecord::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AttrRecord_descriptor_; -} - -const AttrRecord& AttrRecord::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -AttrRecord* AttrRecord::default_instance_ = NULL; - -AttrRecord* AttrRecord::New(::google::protobuf::Arena* arena) const { - AttrRecord* n = new AttrRecord; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void AttrRecord::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.AttrRecord) - int32_value_.Clear(); - int64_value_.Clear(); - float_value_.Clear(); - double_value_.Clear(); -} - -bool AttrRecord::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.AttrRecord) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated int32 int32_value = 1; - case 1: { - if (tag == 10) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, this->mutable_int32_value()))); - } else if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - 1, 10, input, this->mutable_int32_value()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_int64_value; - break; - } - - // repeated int64 int64_value = 2; - case 2: { - if (tag == 18) { - parse_int64_value: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, this->mutable_int64_value()))); - } else if (tag == 16) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - 1, 18, input, this->mutable_int64_value()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_float_value; - break; - } - - // repeated float float_value = 3; - case 3: { - if (tag == 26) { - parse_float_value: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_float_value()))); - } else if (tag == 29) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 26, input, this->mutable_float_value()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_double_value; - break; - } - - // repeated double double_value = 4; - case 4: { - if (tag == 34) { - parse_double_value: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, this->mutable_double_value()))); - } else if (tag == 33) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - 1, 34, input, this->mutable_double_value()))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.AttrRecord) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.AttrRecord) - return false; -#undef DO_ -} - -void AttrRecord::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.AttrRecord) - // repeated int32 int32_value = 1; - if (this->int32_value_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_int32_value_cached_byte_size_); - } - for (int i = 0; i < this->int32_value_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( - this->int32_value(i), output); - } - - // repeated int64 int64_value = 2; - if (this->int64_value_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_int64_value_cached_byte_size_); - } - for (int i = 0; i < this->int64_value_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag( - this->int64_value(i), output); - } - - // repeated float float_value = 3; - if (this->float_value_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_float_value_cached_byte_size_); - } - for (int i = 0; i < this->float_value_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloatNoTag( - this->float_value(i), output); - } - - // repeated double double_value = 4; - if (this->double_value_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_double_value_cached_byte_size_); - } - for (int i = 0; i < this->double_value_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteDoubleNoTag( - this->double_value(i), output); - } - - // @@protoc_insertion_point(serialize_end:pb.AttrRecord) -} - -::google::protobuf::uint8* AttrRecord::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.AttrRecord) - // repeated int32 int32_value = 1; - if (this->int32_value_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 1, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _int32_value_cached_byte_size_, target); - } - for (int i = 0; i < this->int32_value_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32NoTagToArray(this->int32_value(i), target); - } - - // repeated int64 int64_value = 2; - if (this->int64_value_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 2, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _int64_value_cached_byte_size_, target); - } - for (int i = 0; i < this->int64_value_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->int64_value(i), target); - } - - // repeated float float_value = 3; - if (this->float_value_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 3, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _float_value_cached_byte_size_, target); - } - for (int i = 0; i < this->float_value_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatNoTagToArray(this->float_value(i), target); - } - - // repeated double double_value = 4; - if (this->double_value_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 4, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _double_value_cached_byte_size_, target); - } - for (int i = 0; i < this->double_value_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->double_value(i), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.AttrRecord) - return target; -} - -int AttrRecord::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.AttrRecord) - int total_size = 0; - - // repeated int32 int32_value = 1; - { - int data_size = 0; - for (int i = 0; i < this->int32_value_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int32Size(this->int32_value(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _int32_value_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated int64 int64_value = 2; - { - int data_size = 0; - for (int i = 0; i < this->int64_value_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int64Size(this->int64_value(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _int64_value_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated float float_value = 3; - { - int data_size = 0; - data_size = 4 * this->float_value_size(); - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _float_value_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated double double_value = 4; - { - int data_size = 0; - data_size = 8 * this->double_value_size(); - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _double_value_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AttrRecord::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.AttrRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const AttrRecord* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.AttrRecord) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.AttrRecord) - MergeFrom(*source); - } -} - -void AttrRecord::MergeFrom(const AttrRecord& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.AttrRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - int32_value_.MergeFrom(from.int32_value_); - int64_value_.MergeFrom(from.int64_value_); - float_value_.MergeFrom(from.float_value_); - double_value_.MergeFrom(from.double_value_); -} - -void AttrRecord::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.AttrRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AttrRecord::CopyFrom(const AttrRecord& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.AttrRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AttrRecord::IsInitialized() const { - - return true; -} - -void AttrRecord::Swap(AttrRecord* other) { - if (other == this) return; - InternalSwap(other); -} -void AttrRecord::InternalSwap(AttrRecord* other) { - int32_value_.UnsafeArenaSwap(&other->int32_value_); - int64_value_.UnsafeArenaSwap(&other->int64_value_); - float_value_.UnsafeArenaSwap(&other->float_value_); - double_value_.UnsafeArenaSwap(&other->double_value_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata AttrRecord::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AttrRecord_descriptor_; - metadata.reflection = AttrRecord_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// AttrRecord - -// repeated int32 int32_value = 1; -int AttrRecord::int32_value_size() const { - return int32_value_.size(); -} -void AttrRecord::clear_int32_value() { - int32_value_.Clear(); -} - ::google::protobuf::int32 AttrRecord::int32_value(int index) const { - // @@protoc_insertion_point(field_get:pb.AttrRecord.int32_value) - return int32_value_.Get(index); -} - void AttrRecord::set_int32_value(int index, ::google::protobuf::int32 value) { - int32_value_.Set(index, value); - // @@protoc_insertion_point(field_set:pb.AttrRecord.int32_value) -} - void AttrRecord::add_int32_value(::google::protobuf::int32 value) { - int32_value_.Add(value); - // @@protoc_insertion_point(field_add:pb.AttrRecord.int32_value) -} - const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -AttrRecord::int32_value() const { - // @@protoc_insertion_point(field_list:pb.AttrRecord.int32_value) - return int32_value_; -} - ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -AttrRecord::mutable_int32_value() { - // @@protoc_insertion_point(field_mutable_list:pb.AttrRecord.int32_value) - return &int32_value_; -} - -// repeated int64 int64_value = 2; -int AttrRecord::int64_value_size() const { - return int64_value_.size(); -} -void AttrRecord::clear_int64_value() { - int64_value_.Clear(); -} - ::google::protobuf::int64 AttrRecord::int64_value(int index) const { - // @@protoc_insertion_point(field_get:pb.AttrRecord.int64_value) - return int64_value_.Get(index); -} - void AttrRecord::set_int64_value(int index, ::google::protobuf::int64 value) { - int64_value_.Set(index, value); - // @@protoc_insertion_point(field_set:pb.AttrRecord.int64_value) -} - void AttrRecord::add_int64_value(::google::protobuf::int64 value) { - int64_value_.Add(value); - // @@protoc_insertion_point(field_add:pb.AttrRecord.int64_value) -} - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -AttrRecord::int64_value() const { - // @@protoc_insertion_point(field_list:pb.AttrRecord.int64_value) - return int64_value_; -} - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -AttrRecord::mutable_int64_value() { - // @@protoc_insertion_point(field_mutable_list:pb.AttrRecord.int64_value) - return &int64_value_; -} - -// repeated float float_value = 3; -int AttrRecord::float_value_size() const { - return float_value_.size(); -} -void AttrRecord::clear_float_value() { - float_value_.Clear(); -} - float AttrRecord::float_value(int index) const { - // @@protoc_insertion_point(field_get:pb.AttrRecord.float_value) - return float_value_.Get(index); -} - void AttrRecord::set_float_value(int index, float value) { - float_value_.Set(index, value); - // @@protoc_insertion_point(field_set:pb.AttrRecord.float_value) -} - void AttrRecord::add_float_value(float value) { - float_value_.Add(value); - // @@protoc_insertion_point(field_add:pb.AttrRecord.float_value) -} - const ::google::protobuf::RepeatedField< float >& -AttrRecord::float_value() const { - // @@protoc_insertion_point(field_list:pb.AttrRecord.float_value) - return float_value_; -} - ::google::protobuf::RepeatedField< float >* -AttrRecord::mutable_float_value() { - // @@protoc_insertion_point(field_mutable_list:pb.AttrRecord.float_value) - return &float_value_; -} - -// repeated double double_value = 4; -int AttrRecord::double_value_size() const { - return double_value_.size(); -} -void AttrRecord::clear_double_value() { - double_value_.Clear(); -} - double AttrRecord::double_value(int index) const { - // @@protoc_insertion_point(field_get:pb.AttrRecord.double_value) - return double_value_.Get(index); -} - void AttrRecord::set_double_value(int index, double value) { - double_value_.Set(index, value); - // @@protoc_insertion_point(field_set:pb.AttrRecord.double_value) -} - void AttrRecord::add_double_value(double value) { - double_value_.Add(value); - // @@protoc_insertion_point(field_add:pb.AttrRecord.double_value) -} - const ::google::protobuf::RepeatedField< double >& -AttrRecord::double_value() const { - // @@protoc_insertion_point(field_list:pb.AttrRecord.double_value) - return double_value_; -} - ::google::protobuf::RepeatedField< double >* -AttrRecord::mutable_double_value() { - // @@protoc_insertion_point(field_mutable_list:pb.AttrRecord.double_value) - return &double_value_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VectorRecord::kRecordsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -VectorRecord::VectorRecord() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.VectorRecord) -} - -void VectorRecord::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -VectorRecord::VectorRecord(const VectorRecord& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.VectorRecord) -} - -void VectorRecord::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; -} - -VectorRecord::~VectorRecord() { - // @@protoc_insertion_point(destructor:pb.VectorRecord) - SharedDtor(); -} - -void VectorRecord::SharedDtor() { - if (this != default_instance_) { - } -} - -void VectorRecord::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* VectorRecord::descriptor() { - protobuf_AssignDescriptorsOnce(); - return VectorRecord_descriptor_; -} - -const VectorRecord& VectorRecord::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -VectorRecord* VectorRecord::default_instance_ = NULL; - -VectorRecord* VectorRecord::New(::google::protobuf::Arena* arena) const { - VectorRecord* n = new VectorRecord; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void VectorRecord::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.VectorRecord) - records_.Clear(); -} - -bool VectorRecord::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.VectorRecord) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .pb.VectorRowRecord records = 1; - case 1: { - if (tag == 10) { - DO_(input->IncrementRecursionDepth()); - parse_loop_records: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_records())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_loop_records; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.VectorRecord) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.VectorRecord) - return false; -#undef DO_ -} - -void VectorRecord::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.VectorRecord) - // repeated .pb.VectorRowRecord records = 1; - for (unsigned int i = 0, n = this->records_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->records(i), output); - } - - // @@protoc_insertion_point(serialize_end:pb.VectorRecord) -} - -::google::protobuf::uint8* VectorRecord::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.VectorRecord) - // repeated .pb.VectorRowRecord records = 1; - for (unsigned int i = 0, n = this->records_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, this->records(i), false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.VectorRecord) - return target; -} - -int VectorRecord::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.VectorRecord) - int total_size = 0; - - // repeated .pb.VectorRowRecord records = 1; - total_size += 1 * this->records_size(); - for (int i = 0; i < this->records_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->records(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void VectorRecord::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.VectorRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const VectorRecord* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.VectorRecord) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.VectorRecord) - MergeFrom(*source); - } -} - -void VectorRecord::MergeFrom(const VectorRecord& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.VectorRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - records_.MergeFrom(from.records_); -} - -void VectorRecord::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.VectorRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VectorRecord::CopyFrom(const VectorRecord& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.VectorRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VectorRecord::IsInitialized() const { - - return true; -} - -void VectorRecord::Swap(VectorRecord* other) { - if (other == this) return; - InternalSwap(other); -} -void VectorRecord::InternalSwap(VectorRecord* other) { - records_.UnsafeArenaSwap(&other->records_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata VectorRecord::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = VectorRecord_descriptor_; - metadata.reflection = VectorRecord_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// VectorRecord - -// repeated .pb.VectorRowRecord records = 1; -int VectorRecord::records_size() const { - return records_.size(); -} -void VectorRecord::clear_records() { - records_.Clear(); -} -const ::pb::VectorRowRecord& VectorRecord::records(int index) const { - // @@protoc_insertion_point(field_get:pb.VectorRecord.records) - return records_.Get(index); -} -::pb::VectorRowRecord* VectorRecord::mutable_records(int index) { - // @@protoc_insertion_point(field_mutable:pb.VectorRecord.records) - return records_.Mutable(index); -} -::pb::VectorRowRecord* VectorRecord::add_records() { - // @@protoc_insertion_point(field_add:pb.VectorRecord.records) - return records_.Add(); -} -::google::protobuf::RepeatedPtrField< ::pb::VectorRowRecord >* -VectorRecord::mutable_records() { - // @@protoc_insertion_point(field_mutable_list:pb.VectorRecord.records) - return &records_; -} -const ::google::protobuf::RepeatedPtrField< ::pb::VectorRowRecord >& -VectorRecord::records() const { - // @@protoc_insertion_point(field_list:pb.VectorRecord.records) - return records_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VectorParam::kJsonFieldNumber; -const int VectorParam::kRowRecordFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -VectorParam::VectorParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.VectorParam) -} - -void VectorParam::InitAsDefaultInstance() { - _is_default_instance_ = true; - row_record_ = const_cast< ::pb::VectorRecord*>(&::pb::VectorRecord::default_instance()); -} - -VectorParam::VectorParam(const VectorParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.VectorParam) -} - -void VectorParam::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - json_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - row_record_ = NULL; -} - -VectorParam::~VectorParam() { - // @@protoc_insertion_point(destructor:pb.VectorParam) - SharedDtor(); -} - -void VectorParam::SharedDtor() { - json_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - delete row_record_; - } -} - -void VectorParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* VectorParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return VectorParam_descriptor_; -} - -const VectorParam& VectorParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -VectorParam* VectorParam::default_instance_ = NULL; - -VectorParam* VectorParam::New(::google::protobuf::Arena* arena) const { - VectorParam* n = new VectorParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void VectorParam::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.VectorParam) - json_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && row_record_ != NULL) delete row_record_; - row_record_ = NULL; -} - -bool VectorParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.VectorParam) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string json = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_json())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->json().data(), this->json().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.VectorParam.json")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_row_record; - break; - } - - // optional .pb.VectorRecord row_record = 2; - case 2: { - if (tag == 18) { - parse_row_record: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_row_record())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.VectorParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.VectorParam) - return false; -#undef DO_ -} - -void VectorParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.VectorParam) - // optional string json = 1; - if (this->json().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->json().data(), this->json().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.VectorParam.json"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->json(), output); - } - - // optional .pb.VectorRecord row_record = 2; - if (this->has_row_record()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *this->row_record_, output); - } - - // @@protoc_insertion_point(serialize_end:pb.VectorParam) -} - -::google::protobuf::uint8* VectorParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.VectorParam) - // optional string json = 1; - if (this->json().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->json().data(), this->json().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.VectorParam.json"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->json(), target); - } - - // optional .pb.VectorRecord row_record = 2; - if (this->has_row_record()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *this->row_record_, false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.VectorParam) - return target; -} - -int VectorParam::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.VectorParam) - int total_size = 0; - - // optional string json = 1; - if (this->json().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->json()); - } - - // optional .pb.VectorRecord row_record = 2; - if (this->has_row_record()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->row_record_); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void VectorParam::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.VectorParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const VectorParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.VectorParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.VectorParam) - MergeFrom(*source); - } -} - -void VectorParam::MergeFrom(const VectorParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.VectorParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.json().size() > 0) { - - json_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.json_); - } - if (from.has_row_record()) { - mutable_row_record()->::pb::VectorRecord::MergeFrom(from.row_record()); - } -} - -void VectorParam::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.VectorParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VectorParam::CopyFrom(const VectorParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.VectorParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VectorParam::IsInitialized() const { - - return true; -} - -void VectorParam::Swap(VectorParam* other) { - if (other == this) return; - InternalSwap(other); -} -void VectorParam::InternalSwap(VectorParam* other) { - json_.Swap(&other->json_); - std::swap(row_record_, other->row_record_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata VectorParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = VectorParam_descriptor_; - metadata.reflection = VectorParam_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// VectorParam - -// optional string json = 1; -void VectorParam::clear_json() { - json_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& VectorParam::json() const { - // @@protoc_insertion_point(field_get:pb.VectorParam.json) - return json_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void VectorParam::set_json(const ::std::string& value) { - - json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.VectorParam.json) -} - void VectorParam::set_json(const char* value) { - - json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.VectorParam.json) -} - void VectorParam::set_json(const char* value, size_t size) { - - json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.VectorParam.json) -} - ::std::string* VectorParam::mutable_json() { - - // @@protoc_insertion_point(field_mutable:pb.VectorParam.json) - return json_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* VectorParam::release_json() { - // @@protoc_insertion_point(field_release:pb.VectorParam.json) - - return json_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void VectorParam::set_allocated_json(::std::string* json) { - if (json != NULL) { - - } else { - - } - json_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json); - // @@protoc_insertion_point(field_set_allocated:pb.VectorParam.json) -} - -// optional .pb.VectorRecord row_record = 2; -bool VectorParam::has_row_record() const { - return !_is_default_instance_ && row_record_ != NULL; -} -void VectorParam::clear_row_record() { - if (GetArenaNoVirtual() == NULL && row_record_ != NULL) delete row_record_; - row_record_ = NULL; -} -const ::pb::VectorRecord& VectorParam::row_record() const { - // @@protoc_insertion_point(field_get:pb.VectorParam.row_record) - return row_record_ != NULL ? *row_record_ : *default_instance_->row_record_; -} -::pb::VectorRecord* VectorParam::mutable_row_record() { - - if (row_record_ == NULL) { - row_record_ = new ::pb::VectorRecord; - } - // @@protoc_insertion_point(field_mutable:pb.VectorParam.row_record) - return row_record_; -} -::pb::VectorRecord* VectorParam::release_row_record() { - // @@protoc_insertion_point(field_release:pb.VectorParam.row_record) - - ::pb::VectorRecord* temp = row_record_; - row_record_ = NULL; - return temp; -} -void VectorParam::set_allocated_row_record(::pb::VectorRecord* row_record) { - delete row_record_; - row_record_ = row_record; - if (row_record) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pb.VectorParam.row_record) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int FieldValue::kFieldNameFieldNumber; -const int FieldValue::kTypeFieldNumber; -const int FieldValue::kAttrRecordFieldNumber; -const int FieldValue::kVectorRecordFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -FieldValue::FieldValue() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.FieldValue) -} - -void FieldValue::InitAsDefaultInstance() { - _is_default_instance_ = true; - attr_record_ = const_cast< ::pb::AttrRecord*>(&::pb::AttrRecord::default_instance()); - vector_record_ = const_cast< ::pb::VectorRecord*>(&::pb::VectorRecord::default_instance()); -} - -FieldValue::FieldValue(const FieldValue& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.FieldValue) -} - -void FieldValue::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - field_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_ = 0; - attr_record_ = NULL; - vector_record_ = NULL; -} - -FieldValue::~FieldValue() { - // @@protoc_insertion_point(destructor:pb.FieldValue) - SharedDtor(); -} - -void FieldValue::SharedDtor() { - field_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - delete attr_record_; - delete vector_record_; - } -} - -void FieldValue::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* FieldValue::descriptor() { - protobuf_AssignDescriptorsOnce(); - return FieldValue_descriptor_; -} - -const FieldValue& FieldValue::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -FieldValue* FieldValue::default_instance_ = NULL; - -FieldValue* FieldValue::New(::google::protobuf::Arena* arena) const { - FieldValue* n = new FieldValue; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void FieldValue::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.FieldValue) - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_ = 0; - if (GetArenaNoVirtual() == NULL && attr_record_ != NULL) delete attr_record_; - attr_record_ = NULL; - if (GetArenaNoVirtual() == NULL && vector_record_ != NULL) delete vector_record_; - vector_record_ = NULL; -} - -bool FieldValue::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.FieldValue) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string field_name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_field_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.FieldValue.field_name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_type; - break; - } - - // optional .pb.DataType type = 2; - case 2: { - if (tag == 16) { - parse_type: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_type(static_cast< ::pb::DataType >(value)); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_attr_record; - break; - } - - // optional .pb.AttrRecord attr_record = 3; - case 3: { - if (tag == 26) { - parse_attr_record: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_attr_record())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_vector_record; - break; - } - - // optional .pb.VectorRecord vector_record = 4; - case 4: { - if (tag == 34) { - parse_vector_record: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_vector_record())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.FieldValue) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.FieldValue) - return false; -#undef DO_ -} - -void FieldValue::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.FieldValue) - // optional string field_name = 1; - if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.FieldValue.field_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->field_name(), output); - } - - // optional .pb.DataType type = 2; - if (this->type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->type(), output); - } - - // optional .pb.AttrRecord attr_record = 3; - if (this->has_attr_record()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, *this->attr_record_, output); - } - - // optional .pb.VectorRecord vector_record = 4; - if (this->has_vector_record()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, *this->vector_record_, output); - } - - // @@protoc_insertion_point(serialize_end:pb.FieldValue) -} - -::google::protobuf::uint8* FieldValue::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.FieldValue) - // optional string field_name = 1; - if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.FieldValue.field_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->field_name(), target); - } - - // optional .pb.DataType type = 2; - if (this->type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->type(), target); - } - - // optional .pb.AttrRecord attr_record = 3; - if (this->has_attr_record()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, *this->attr_record_, false, target); - } - - // optional .pb.VectorRecord vector_record = 4; - if (this->has_vector_record()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, *this->vector_record_, false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.FieldValue) - return target; -} - -int FieldValue::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.FieldValue) - int total_size = 0; - - // optional string field_name = 1; - if (this->field_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->field_name()); - } - - // optional .pb.DataType type = 2; - if (this->type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - // optional .pb.AttrRecord attr_record = 3; - if (this->has_attr_record()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->attr_record_); - } - - // optional .pb.VectorRecord vector_record = 4; - if (this->has_vector_record()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->vector_record_); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void FieldValue::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.FieldValue) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const FieldValue* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.FieldValue) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.FieldValue) - MergeFrom(*source); - } -} - -void FieldValue::MergeFrom(const FieldValue& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.FieldValue) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.field_name().size() > 0) { - - field_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - if (from.type() != 0) { - set_type(from.type()); - } - if (from.has_attr_record()) { - mutable_attr_record()->::pb::AttrRecord::MergeFrom(from.attr_record()); - } - if (from.has_vector_record()) { - mutable_vector_record()->::pb::VectorRecord::MergeFrom(from.vector_record()); - } -} - -void FieldValue::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.FieldValue) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FieldValue::CopyFrom(const FieldValue& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.FieldValue) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FieldValue::IsInitialized() const { - - return true; -} - -void FieldValue::Swap(FieldValue* other) { - if (other == this) return; - InternalSwap(other); -} -void FieldValue::InternalSwap(FieldValue* other) { - field_name_.Swap(&other->field_name_); - std::swap(type_, other->type_); - std::swap(attr_record_, other->attr_record_); - std::swap(vector_record_, other->vector_record_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata FieldValue::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = FieldValue_descriptor_; - metadata.reflection = FieldValue_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// FieldValue - -// optional string field_name = 1; -void FieldValue::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& FieldValue::field_name() const { - // @@protoc_insertion_point(field_get:pb.FieldValue.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void FieldValue::set_field_name(const ::std::string& value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.FieldValue.field_name) -} - void FieldValue::set_field_name(const char* value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.FieldValue.field_name) -} - void FieldValue::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.FieldValue.field_name) -} - ::std::string* FieldValue::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:pb.FieldValue.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* FieldValue::release_field_name() { - // @@protoc_insertion_point(field_release:pb.FieldValue.field_name) - - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void FieldValue::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:pb.FieldValue.field_name) -} - -// optional .pb.DataType type = 2; -void FieldValue::clear_type() { - type_ = 0; -} - ::pb::DataType FieldValue::type() const { - // @@protoc_insertion_point(field_get:pb.FieldValue.type) - return static_cast< ::pb::DataType >(type_); -} - void FieldValue::set_type(::pb::DataType value) { - - type_ = value; - // @@protoc_insertion_point(field_set:pb.FieldValue.type) -} - -// optional .pb.AttrRecord attr_record = 3; -bool FieldValue::has_attr_record() const { - return !_is_default_instance_ && attr_record_ != NULL; -} -void FieldValue::clear_attr_record() { - if (GetArenaNoVirtual() == NULL && attr_record_ != NULL) delete attr_record_; - attr_record_ = NULL; -} -const ::pb::AttrRecord& FieldValue::attr_record() const { - // @@protoc_insertion_point(field_get:pb.FieldValue.attr_record) - return attr_record_ != NULL ? *attr_record_ : *default_instance_->attr_record_; -} -::pb::AttrRecord* FieldValue::mutable_attr_record() { - - if (attr_record_ == NULL) { - attr_record_ = new ::pb::AttrRecord; - } - // @@protoc_insertion_point(field_mutable:pb.FieldValue.attr_record) - return attr_record_; -} -::pb::AttrRecord* FieldValue::release_attr_record() { - // @@protoc_insertion_point(field_release:pb.FieldValue.attr_record) - - ::pb::AttrRecord* temp = attr_record_; - attr_record_ = NULL; - return temp; -} -void FieldValue::set_allocated_attr_record(::pb::AttrRecord* attr_record) { - delete attr_record_; - attr_record_ = attr_record; - if (attr_record) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pb.FieldValue.attr_record) -} - -// optional .pb.VectorRecord vector_record = 4; -bool FieldValue::has_vector_record() const { - return !_is_default_instance_ && vector_record_ != NULL; -} -void FieldValue::clear_vector_record() { - if (GetArenaNoVirtual() == NULL && vector_record_ != NULL) delete vector_record_; - vector_record_ = NULL; -} -const ::pb::VectorRecord& FieldValue::vector_record() const { - // @@protoc_insertion_point(field_get:pb.FieldValue.vector_record) - return vector_record_ != NULL ? *vector_record_ : *default_instance_->vector_record_; -} -::pb::VectorRecord* FieldValue::mutable_vector_record() { - - if (vector_record_ == NULL) { - vector_record_ = new ::pb::VectorRecord; - } - // @@protoc_insertion_point(field_mutable:pb.FieldValue.vector_record) - return vector_record_; -} -::pb::VectorRecord* FieldValue::release_vector_record() { - // @@protoc_insertion_point(field_release:pb.FieldValue.vector_record) - - ::pb::VectorRecord* temp = vector_record_; - vector_record_ = NULL; - return temp; -} -void FieldValue::set_allocated_vector_record(::pb::VectorRecord* vector_record) { - delete vector_record_; - vector_record_ = vector_record; - if (vector_record) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pb.FieldValue.vector_record) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Cell::kInt32ValueFieldNumber; -const int Cell::kInt64ValueFieldNumber; -const int Cell::kFloatValueFieldNumber; -const int Cell::kDoubleValueFieldNumber; -const int Cell::kVecFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Cell::Cell() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.Cell) -} - -void Cell::InitAsDefaultInstance() { - _is_default_instance_ = true; - Cell_default_oneof_instance_->int32_value_ = 0; - Cell_default_oneof_instance_->int64_value_ = GOOGLE_LONGLONG(0); - Cell_default_oneof_instance_->float_value_ = 0; - Cell_default_oneof_instance_->double_value_ = 0; - Cell_default_oneof_instance_->vec_ = const_cast< ::pb::VectorRowRecord*>(&::pb::VectorRowRecord::default_instance()); -} - -Cell::Cell(const Cell& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.Cell) -} - -void Cell::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - clear_has_value(); -} - -Cell::~Cell() { - // @@protoc_insertion_point(destructor:pb.Cell) - SharedDtor(); -} - -void Cell::SharedDtor() { - if (has_value()) { - clear_value(); - } - if (this != default_instance_) { - } -} - -void Cell::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* Cell::descriptor() { - protobuf_AssignDescriptorsOnce(); - return Cell_descriptor_; -} - -const Cell& Cell::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -Cell* Cell::default_instance_ = NULL; - -Cell* Cell::New(::google::protobuf::Arena* arena) const { - Cell* n = new Cell; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void Cell::clear_value() { -// @@protoc_insertion_point(one_of_clear_start:pb.Cell) - switch(value_case()) { - case kInt32Value: { - // No need to clear - break; - } - case kInt64Value: { - // No need to clear - break; - } - case kFloatValue: { - // No need to clear - break; - } - case kDoubleValue: { - // No need to clear - break; - } - case kVec: { - delete value_.vec_; - break; - } - case VALUE_NOT_SET: { - break; - } - } - _oneof_case_[0] = VALUE_NOT_SET; -} - - -void Cell::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.Cell) - clear_value(); -} - -bool Cell::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.Cell) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int32 int32_value = 1; - case 1: { - if (tag == 8) { - clear_value(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &value_.int32_value_))); - set_has_int32_value(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_int64_value; - break; - } - - // optional int64 int64_value = 2; - case 2: { - if (tag == 16) { - parse_int64_value: - clear_value(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &value_.int64_value_))); - set_has_int64_value(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(29)) goto parse_float_value; - break; - } - - // optional float float_value = 3; - case 3: { - if (tag == 29) { - parse_float_value: - clear_value(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &value_.float_value_))); - set_has_float_value(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(33)) goto parse_double_value; - break; - } - - // optional double double_value = 4; - case 4: { - if (tag == 33) { - parse_double_value: - clear_value(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &value_.double_value_))); - set_has_double_value(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_vec; - break; - } - - // optional .pb.VectorRowRecord vec = 5; - case 5: { - if (tag == 42) { - parse_vec: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_vec())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.Cell) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.Cell) - return false; -#undef DO_ -} - -void Cell::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.Cell) - // optional int32 int32_value = 1; - if (has_int32_value()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->int32_value(), output); - } - - // optional int64 int64_value = 2; - if (has_int64_value()) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->int64_value(), output); - } - - // optional float float_value = 3; - if (has_float_value()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->float_value(), output); - } - - // optional double double_value = 4; - if (has_double_value()) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->double_value(), output); - } - - // optional .pb.VectorRowRecord vec = 5; - if (has_vec()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, *value_.vec_, output); - } - - // @@protoc_insertion_point(serialize_end:pb.Cell) -} - -::google::protobuf::uint8* Cell::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.Cell) - // optional int32 int32_value = 1; - if (has_int32_value()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->int32_value(), target); - } - - // optional int64 int64_value = 2; - if (has_int64_value()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->int64_value(), target); - } - - // optional float float_value = 3; - if (has_float_value()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->float_value(), target); - } - - // optional double double_value = 4; - if (has_double_value()) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->double_value(), target); - } - - // optional .pb.VectorRowRecord vec = 5; - if (has_vec()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 5, *value_.vec_, false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.Cell) - return target; -} - -int Cell::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.Cell) - int total_size = 0; - - switch (value_case()) { - // optional int32 int32_value = 1; - case kInt32Value: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->int32_value()); - break; - } - // optional int64 int64_value = 2; - case kInt64Value: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->int64_value()); - break; - } - // optional float float_value = 3; - case kFloatValue: { - total_size += 1 + 4; - break; - } - // optional double double_value = 4; - case kDoubleValue: { - total_size += 1 + 8; - break; - } - // optional .pb.VectorRowRecord vec = 5; - case kVec: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *value_.vec_); - break; - } - case VALUE_NOT_SET: { - break; - } - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void Cell::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.Cell) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const Cell* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Cell) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Cell) - MergeFrom(*source); - } -} - -void Cell::MergeFrom(const Cell& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.Cell) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - switch (from.value_case()) { - case kInt32Value: { - set_int32_value(from.int32_value()); - break; - } - case kInt64Value: { - set_int64_value(from.int64_value()); - break; - } - case kFloatValue: { - set_float_value(from.float_value()); - break; - } - case kDoubleValue: { - set_double_value(from.double_value()); - break; - } - case kVec: { - mutable_vec()->::pb::VectorRowRecord::MergeFrom(from.vec()); - break; - } - case VALUE_NOT_SET: { - break; - } - } -} - -void Cell::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.Cell) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Cell::CopyFrom(const Cell& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.Cell) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Cell::IsInitialized() const { - - return true; -} - -void Cell::Swap(Cell* other) { - if (other == this) return; - InternalSwap(other); -} -void Cell::InternalSwap(Cell* other) { - std::swap(value_, other->value_); - std::swap(_oneof_case_[0], other->_oneof_case_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata Cell::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = Cell_descriptor_; - metadata.reflection = Cell_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// Cell - -// optional int32 int32_value = 1; -bool Cell::has_int32_value() const { - return value_case() == kInt32Value; -} -void Cell::set_has_int32_value() { - _oneof_case_[0] = kInt32Value; -} -void Cell::clear_int32_value() { - if (has_int32_value()) { - value_.int32_value_ = 0; - clear_has_value(); - } -} - ::google::protobuf::int32 Cell::int32_value() const { - // @@protoc_insertion_point(field_get:pb.Cell.int32_value) - if (has_int32_value()) { - return value_.int32_value_; - } - return 0; -} - void Cell::set_int32_value(::google::protobuf::int32 value) { - if (!has_int32_value()) { - clear_value(); - set_has_int32_value(); - } - value_.int32_value_ = value; - // @@protoc_insertion_point(field_set:pb.Cell.int32_value) -} - -// optional int64 int64_value = 2; -bool Cell::has_int64_value() const { - return value_case() == kInt64Value; -} -void Cell::set_has_int64_value() { - _oneof_case_[0] = kInt64Value; -} -void Cell::clear_int64_value() { - if (has_int64_value()) { - value_.int64_value_ = GOOGLE_LONGLONG(0); - clear_has_value(); - } -} - ::google::protobuf::int64 Cell::int64_value() const { - // @@protoc_insertion_point(field_get:pb.Cell.int64_value) - if (has_int64_value()) { - return value_.int64_value_; - } - return GOOGLE_LONGLONG(0); -} - void Cell::set_int64_value(::google::protobuf::int64 value) { - if (!has_int64_value()) { - clear_value(); - set_has_int64_value(); - } - value_.int64_value_ = value; - // @@protoc_insertion_point(field_set:pb.Cell.int64_value) -} - -// optional float float_value = 3; -bool Cell::has_float_value() const { - return value_case() == kFloatValue; -} -void Cell::set_has_float_value() { - _oneof_case_[0] = kFloatValue; -} -void Cell::clear_float_value() { - if (has_float_value()) { - value_.float_value_ = 0; - clear_has_value(); - } -} - float Cell::float_value() const { - // @@protoc_insertion_point(field_get:pb.Cell.float_value) - if (has_float_value()) { - return value_.float_value_; - } - return 0; -} - void Cell::set_float_value(float value) { - if (!has_float_value()) { - clear_value(); - set_has_float_value(); - } - value_.float_value_ = value; - // @@protoc_insertion_point(field_set:pb.Cell.float_value) -} - -// optional double double_value = 4; -bool Cell::has_double_value() const { - return value_case() == kDoubleValue; -} -void Cell::set_has_double_value() { - _oneof_case_[0] = kDoubleValue; -} -void Cell::clear_double_value() { - if (has_double_value()) { - value_.double_value_ = 0; - clear_has_value(); - } -} - double Cell::double_value() const { - // @@protoc_insertion_point(field_get:pb.Cell.double_value) - if (has_double_value()) { - return value_.double_value_; - } - return 0; -} - void Cell::set_double_value(double value) { - if (!has_double_value()) { - clear_value(); - set_has_double_value(); - } - value_.double_value_ = value; - // @@protoc_insertion_point(field_set:pb.Cell.double_value) -} - -// optional .pb.VectorRowRecord vec = 5; -bool Cell::has_vec() const { - return value_case() == kVec; -} -void Cell::set_has_vec() { - _oneof_case_[0] = kVec; -} -void Cell::clear_vec() { - if (has_vec()) { - delete value_.vec_; - clear_has_value(); - } -} - const ::pb::VectorRowRecord& Cell::vec() const { - // @@protoc_insertion_point(field_get:pb.Cell.vec) - return has_vec() - ? *value_.vec_ - : ::pb::VectorRowRecord::default_instance(); -} -::pb::VectorRowRecord* Cell::mutable_vec() { - if (!has_vec()) { - clear_value(); - set_has_vec(); - value_.vec_ = new ::pb::VectorRowRecord; - } - // @@protoc_insertion_point(field_mutable:pb.Cell.vec) - return value_.vec_; -} -::pb::VectorRowRecord* Cell::release_vec() { - // @@protoc_insertion_point(field_release:pb.Cell.vec) - if (has_vec()) { - clear_has_value(); - ::pb::VectorRowRecord* temp = value_.vec_; - value_.vec_ = NULL; - return temp; - } else { - return NULL; - } -} -void Cell::set_allocated_vec(::pb::VectorRowRecord* vec) { - clear_value(); - if (vec) { - set_has_vec(); - value_.vec_ = vec; - } - // @@protoc_insertion_point(field_set_allocated:pb.Cell.vec) -} - -bool Cell::has_value() const { - return value_case() != VALUE_NOT_SET; -} -void Cell::clear_has_value() { - _oneof_case_[0] = VALUE_NOT_SET; -} -Cell::ValueCase Cell::value_case() const { - return Cell::ValueCase(_oneof_case_[0]); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int RowValue::kCellFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -RowValue::RowValue() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.RowValue) -} - -void RowValue::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -RowValue::RowValue(const RowValue& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.RowValue) -} - -void RowValue::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; -} - -RowValue::~RowValue() { - // @@protoc_insertion_point(destructor:pb.RowValue) - SharedDtor(); -} - -void RowValue::SharedDtor() { - if (this != default_instance_) { - } -} - -void RowValue::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* RowValue::descriptor() { - protobuf_AssignDescriptorsOnce(); - return RowValue_descriptor_; -} - -const RowValue& RowValue::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -RowValue* RowValue::default_instance_ = NULL; - -RowValue* RowValue::New(::google::protobuf::Arena* arena) const { - RowValue* n = new RowValue; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void RowValue::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.RowValue) - cell_.Clear(); -} - -bool RowValue::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.RowValue) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .pb.Cell cell = 2; - case 2: { - if (tag == 18) { - DO_(input->IncrementRecursionDepth()); - parse_loop_cell: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_cell())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_loop_cell; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.RowValue) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.RowValue) - return false; -#undef DO_ -} - -void RowValue::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.RowValue) - // repeated .pb.Cell cell = 2; - for (unsigned int i = 0, n = this->cell_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->cell(i), output); - } - - // @@protoc_insertion_point(serialize_end:pb.RowValue) -} - -::google::protobuf::uint8* RowValue::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.RowValue) - // repeated .pb.Cell cell = 2; - for (unsigned int i = 0, n = this->cell_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, this->cell(i), false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.RowValue) - return target; -} - -int RowValue::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.RowValue) - int total_size = 0; - - // repeated .pb.Cell cell = 2; - total_size += 1 * this->cell_size(); - for (int i = 0; i < this->cell_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->cell(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void RowValue::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.RowValue) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const RowValue* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.RowValue) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.RowValue) - MergeFrom(*source); - } -} - -void RowValue::MergeFrom(const RowValue& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.RowValue) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - cell_.MergeFrom(from.cell_); -} - -void RowValue::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.RowValue) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RowValue::CopyFrom(const RowValue& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.RowValue) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RowValue::IsInitialized() const { - - return true; -} - -void RowValue::Swap(RowValue* other) { - if (other == this) return; - InternalSwap(other); -} -void RowValue::InternalSwap(RowValue* other) { - cell_.UnsafeArenaSwap(&other->cell_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata RowValue::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = RowValue_descriptor_; - metadata.reflection = RowValue_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// RowValue - -// repeated .pb.Cell cell = 2; -int RowValue::cell_size() const { - return cell_.size(); -} -void RowValue::clear_cell() { - cell_.Clear(); -} -const ::pb::Cell& RowValue::cell(int index) const { - // @@protoc_insertion_point(field_get:pb.RowValue.cell) - return cell_.Get(index); -} -::pb::Cell* RowValue::mutable_cell(int index) { - // @@protoc_insertion_point(field_mutable:pb.RowValue.cell) - return cell_.Mutable(index); -} -::pb::Cell* RowValue::add_cell() { - // @@protoc_insertion_point(field_add:pb.RowValue.cell) - return cell_.Add(); -} -::google::protobuf::RepeatedPtrField< ::pb::Cell >* -RowValue::mutable_cell() { - // @@protoc_insertion_point(field_mutable_list:pb.RowValue.cell) - return &cell_; -} -const ::google::protobuf::RepeatedPtrField< ::pb::Cell >& -RowValue::cell() const { - // @@protoc_insertion_point(field_list:pb.RowValue.cell) - return cell_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PulsarMessage::kCollectionNameFieldNumber; -const int PulsarMessage::kFieldsFieldNumber; -const int PulsarMessage::kEntityIdFieldNumber; -const int PulsarMessage::kPartitionTagFieldNumber; -const int PulsarMessage::kVectorParamFieldNumber; -const int PulsarMessage::kSegmentsFieldNumber; -const int PulsarMessage::kTimestampFieldNumber; -const int PulsarMessage::kClientIdFieldNumber; -const int PulsarMessage::kMsgTypeFieldNumber; -const int PulsarMessage::kTopicNameFieldNumber; -const int PulsarMessage::kPartitionIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PulsarMessage::PulsarMessage() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.PulsarMessage) -} - -void PulsarMessage::InitAsDefaultInstance() { - _is_default_instance_ = true; - vector_param_ = const_cast< ::pb::VectorParam*>(&::pb::VectorParam::default_instance()); - segments_ = const_cast< ::pb::SegmentRecord*>(&::pb::SegmentRecord::default_instance()); -} - -PulsarMessage::PulsarMessage(const PulsarMessage& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.PulsarMessage) -} - -void PulsarMessage::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - entity_id_ = GOOGLE_LONGLONG(0); - partition_tag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - vector_param_ = NULL; - segments_ = NULL; - timestamp_ = GOOGLE_LONGLONG(0); - client_id_ = GOOGLE_LONGLONG(0); - msg_type_ = 0; - topic_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - partition_id_ = GOOGLE_LONGLONG(0); -} - -PulsarMessage::~PulsarMessage() { - // @@protoc_insertion_point(destructor:pb.PulsarMessage) - SharedDtor(); -} - -void PulsarMessage::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - partition_tag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - topic_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - delete vector_param_; - delete segments_; - } -} - -void PulsarMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* PulsarMessage::descriptor() { - protobuf_AssignDescriptorsOnce(); - return PulsarMessage_descriptor_; -} - -const PulsarMessage& PulsarMessage::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -PulsarMessage* PulsarMessage::default_instance_ = NULL; - -PulsarMessage* PulsarMessage::New(::google::protobuf::Arena* arena) const { - PulsarMessage* n = new PulsarMessage; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void PulsarMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.PulsarMessage) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(PulsarMessage, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&first, 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - ZR_(timestamp_, client_id_); - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - entity_id_ = GOOGLE_LONGLONG(0); - partition_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && vector_param_ != NULL) delete vector_param_; - vector_param_ = NULL; - if (GetArenaNoVirtual() == NULL && segments_ != NULL) delete segments_; - segments_ = NULL; - ZR_(partition_id_, msg_type_); - topic_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - -#undef ZR_HELPER_ -#undef ZR_ - - fields_.Clear(); -} - -bool PulsarMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.PulsarMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.PulsarMessage.collection_name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_fields; - break; - } - - // repeated .pb.FieldValue fields = 2; - case 2: { - if (tag == 18) { - parse_fields: - DO_(input->IncrementRecursionDepth()); - parse_loop_fields: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_fields())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_loop_fields; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectTag(24)) goto parse_entity_id; - break; - } - - // optional int64 entity_id = 3; - case 3: { - if (tag == 24) { - parse_entity_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &entity_id_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_partition_tag; - break; - } - - // optional string partition_tag = 4; - case 4: { - if (tag == 34) { - parse_partition_tag: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_partition_tag())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), this->partition_tag().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.PulsarMessage.partition_tag")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_vector_param; - break; - } - - // optional .pb.VectorParam vector_param = 5; - case 5: { - if (tag == 42) { - parse_vector_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_vector_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_segments; - break; - } - - // optional .pb.SegmentRecord segments = 6; - case 6: { - if (tag == 50) { - parse_segments: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_segments())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_timestamp; - break; - } - - // optional int64 timestamp = 7; - case 7: { - if (tag == 56) { - parse_timestamp: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, ×tamp_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(64)) goto parse_client_id; - break; - } - - // optional int64 client_id = 8; - case 8: { - if (tag == 64) { - parse_client_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &client_id_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(72)) goto parse_msg_type; - break; - } - - // optional .pb.OpType msg_type = 9; - case 9: { - if (tag == 72) { - parse_msg_type: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_msg_type(static_cast< ::pb::OpType >(value)); - } else { - goto handle_unusual; - } - if (input->ExpectTag(82)) goto parse_topic_name; - break; - } - - // optional string topic_name = 10; - case 10: { - if (tag == 82) { - parse_topic_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_topic_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->topic_name().data(), this->topic_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.PulsarMessage.topic_name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(88)) goto parse_partition_id; - break; - } - - // optional int64 partition_id = 11; - case 11: { - if (tag == 88) { - parse_partition_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &partition_id_))); - - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.PulsarMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.PulsarMessage) - return false; -#undef DO_ -} - -void PulsarMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.PulsarMessage) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.PulsarMessage.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // repeated .pb.FieldValue fields = 2; - for (unsigned int i = 0, n = this->fields_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->fields(i), output); - } - - // optional int64 entity_id = 3; - if (this->entity_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->entity_id(), output); - } - - // optional string partition_tag = 4; - if (this->partition_tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), this->partition_tag().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.PulsarMessage.partition_tag"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->partition_tag(), output); - } - - // optional .pb.VectorParam vector_param = 5; - if (this->has_vector_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, *this->vector_param_, output); - } - - // optional .pb.SegmentRecord segments = 6; - if (this->has_segments()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, *this->segments_, output); - } - - // optional int64 timestamp = 7; - if (this->timestamp() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(7, this->timestamp(), output); - } - - // optional int64 client_id = 8; - if (this->client_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(8, this->client_id(), output); - } - - // optional .pb.OpType msg_type = 9; - if (this->msg_type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 9, this->msg_type(), output); - } - - // optional string topic_name = 10; - if (this->topic_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->topic_name().data(), this->topic_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.PulsarMessage.topic_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 10, this->topic_name(), output); - } - - // optional int64 partition_id = 11; - if (this->partition_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(11, this->partition_id(), output); - } - - // @@protoc_insertion_point(serialize_end:pb.PulsarMessage) -} - -::google::protobuf::uint8* PulsarMessage::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.PulsarMessage) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.PulsarMessage.collection_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // repeated .pb.FieldValue fields = 2; - for (unsigned int i = 0, n = this->fields_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, this->fields(i), false, target); - } - - // optional int64 entity_id = 3; - if (this->entity_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->entity_id(), target); - } - - // optional string partition_tag = 4; - if (this->partition_tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), this->partition_tag().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.PulsarMessage.partition_tag"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->partition_tag(), target); - } - - // optional .pb.VectorParam vector_param = 5; - if (this->has_vector_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 5, *this->vector_param_, false, target); - } - - // optional .pb.SegmentRecord segments = 6; - if (this->has_segments()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 6, *this->segments_, false, target); - } - - // optional int64 timestamp = 7; - if (this->timestamp() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(7, this->timestamp(), target); - } - - // optional int64 client_id = 8; - if (this->client_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(8, this->client_id(), target); - } - - // optional .pb.OpType msg_type = 9; - if (this->msg_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 9, this->msg_type(), target); - } - - // optional string topic_name = 10; - if (this->topic_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->topic_name().data(), this->topic_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.PulsarMessage.topic_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 10, this->topic_name(), target); - } - - // optional int64 partition_id = 11; - if (this->partition_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(11, this->partition_id(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.PulsarMessage) - return target; -} - -int PulsarMessage::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.PulsarMessage) - int total_size = 0; - - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // optional int64 entity_id = 3; - if (this->entity_id() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->entity_id()); - } - - // optional string partition_tag = 4; - if (this->partition_tag().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->partition_tag()); - } - - // optional .pb.VectorParam vector_param = 5; - if (this->has_vector_param()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->vector_param_); - } - - // optional .pb.SegmentRecord segments = 6; - if (this->has_segments()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->segments_); - } - - // optional int64 timestamp = 7; - if (this->timestamp() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->timestamp()); - } - - // optional int64 client_id = 8; - if (this->client_id() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->client_id()); - } - - // optional .pb.OpType msg_type = 9; - if (this->msg_type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->msg_type()); - } - - // optional string topic_name = 10; - if (this->topic_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->topic_name()); - } - - // optional int64 partition_id = 11; - if (this->partition_id() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->partition_id()); - } - - // repeated .pb.FieldValue fields = 2; - total_size += 1 * this->fields_size(); - for (int i = 0; i < this->fields_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->fields(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void PulsarMessage::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.PulsarMessage) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const PulsarMessage* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.PulsarMessage) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.PulsarMessage) - MergeFrom(*source); - } -} - -void PulsarMessage::MergeFrom(const PulsarMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.PulsarMessage) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - fields_.MergeFrom(from.fields_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.entity_id() != 0) { - set_entity_id(from.entity_id()); - } - if (from.partition_tag().size() > 0) { - - partition_tag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); - } - if (from.has_vector_param()) { - mutable_vector_param()->::pb::VectorParam::MergeFrom(from.vector_param()); - } - if (from.has_segments()) { - mutable_segments()->::pb::SegmentRecord::MergeFrom(from.segments()); - } - if (from.timestamp() != 0) { - set_timestamp(from.timestamp()); - } - if (from.client_id() != 0) { - set_client_id(from.client_id()); - } - if (from.msg_type() != 0) { - set_msg_type(from.msg_type()); - } - if (from.topic_name().size() > 0) { - - topic_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.topic_name_); - } - if (from.partition_id() != 0) { - set_partition_id(from.partition_id()); - } -} - -void PulsarMessage::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.PulsarMessage) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PulsarMessage::CopyFrom(const PulsarMessage& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.PulsarMessage) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PulsarMessage::IsInitialized() const { - - return true; -} - -void PulsarMessage::Swap(PulsarMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void PulsarMessage::InternalSwap(PulsarMessage* other) { - collection_name_.Swap(&other->collection_name_); - fields_.UnsafeArenaSwap(&other->fields_); - std::swap(entity_id_, other->entity_id_); - partition_tag_.Swap(&other->partition_tag_); - std::swap(vector_param_, other->vector_param_); - std::swap(segments_, other->segments_); - std::swap(timestamp_, other->timestamp_); - std::swap(client_id_, other->client_id_); - std::swap(msg_type_, other->msg_type_); - topic_name_.Swap(&other->topic_name_); - std::swap(partition_id_, other->partition_id_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata PulsarMessage::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = PulsarMessage_descriptor_; - metadata.reflection = PulsarMessage_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// PulsarMessage - -// optional string collection_name = 1; -void PulsarMessage::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& PulsarMessage::collection_name() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void PulsarMessage::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.PulsarMessage.collection_name) -} - void PulsarMessage::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.PulsarMessage.collection_name) -} - void PulsarMessage::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.PulsarMessage.collection_name) -} - ::std::string* PulsarMessage::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* PulsarMessage::release_collection_name() { - // @@protoc_insertion_point(field_release:pb.PulsarMessage.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void PulsarMessage::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:pb.PulsarMessage.collection_name) -} - -// repeated .pb.FieldValue fields = 2; -int PulsarMessage::fields_size() const { - return fields_.size(); -} -void PulsarMessage::clear_fields() { - fields_.Clear(); -} -const ::pb::FieldValue& PulsarMessage::fields(int index) const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.fields) - return fields_.Get(index); -} -::pb::FieldValue* PulsarMessage::mutable_fields(int index) { - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.fields) - return fields_.Mutable(index); -} -::pb::FieldValue* PulsarMessage::add_fields() { - // @@protoc_insertion_point(field_add:pb.PulsarMessage.fields) - return fields_.Add(); -} -::google::protobuf::RepeatedPtrField< ::pb::FieldValue >* -PulsarMessage::mutable_fields() { - // @@protoc_insertion_point(field_mutable_list:pb.PulsarMessage.fields) - return &fields_; -} -const ::google::protobuf::RepeatedPtrField< ::pb::FieldValue >& -PulsarMessage::fields() const { - // @@protoc_insertion_point(field_list:pb.PulsarMessage.fields) - return fields_; -} - -// optional int64 entity_id = 3; -void PulsarMessage::clear_entity_id() { - entity_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 PulsarMessage::entity_id() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.entity_id) - return entity_id_; -} - void PulsarMessage::set_entity_id(::google::protobuf::int64 value) { - - entity_id_ = value; - // @@protoc_insertion_point(field_set:pb.PulsarMessage.entity_id) -} - -// optional string partition_tag = 4; -void PulsarMessage::clear_partition_tag() { - partition_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& PulsarMessage::partition_tag() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.partition_tag) - return partition_tag_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void PulsarMessage::set_partition_tag(const ::std::string& value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.PulsarMessage.partition_tag) -} - void PulsarMessage::set_partition_tag(const char* value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.PulsarMessage.partition_tag) -} - void PulsarMessage::set_partition_tag(const char* value, size_t size) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.PulsarMessage.partition_tag) -} - ::std::string* PulsarMessage::mutable_partition_tag() { - - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.partition_tag) - return partition_tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* PulsarMessage::release_partition_tag() { - // @@protoc_insertion_point(field_release:pb.PulsarMessage.partition_tag) - - return partition_tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void PulsarMessage::set_allocated_partition_tag(::std::string* partition_tag) { - if (partition_tag != NULL) { - - } else { - - } - partition_tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), partition_tag); - // @@protoc_insertion_point(field_set_allocated:pb.PulsarMessage.partition_tag) -} - -// optional .pb.VectorParam vector_param = 5; -bool PulsarMessage::has_vector_param() const { - return !_is_default_instance_ && vector_param_ != NULL; -} -void PulsarMessage::clear_vector_param() { - if (GetArenaNoVirtual() == NULL && vector_param_ != NULL) delete vector_param_; - vector_param_ = NULL; -} -const ::pb::VectorParam& PulsarMessage::vector_param() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.vector_param) - return vector_param_ != NULL ? *vector_param_ : *default_instance_->vector_param_; -} -::pb::VectorParam* PulsarMessage::mutable_vector_param() { - - if (vector_param_ == NULL) { - vector_param_ = new ::pb::VectorParam; - } - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.vector_param) - return vector_param_; -} -::pb::VectorParam* PulsarMessage::release_vector_param() { - // @@protoc_insertion_point(field_release:pb.PulsarMessage.vector_param) - - ::pb::VectorParam* temp = vector_param_; - vector_param_ = NULL; - return temp; -} -void PulsarMessage::set_allocated_vector_param(::pb::VectorParam* vector_param) { - delete vector_param_; - vector_param_ = vector_param; - if (vector_param) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pb.PulsarMessage.vector_param) -} - -// optional .pb.SegmentRecord segments = 6; -bool PulsarMessage::has_segments() const { - return !_is_default_instance_ && segments_ != NULL; -} -void PulsarMessage::clear_segments() { - if (GetArenaNoVirtual() == NULL && segments_ != NULL) delete segments_; - segments_ = NULL; -} -const ::pb::SegmentRecord& PulsarMessage::segments() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.segments) - return segments_ != NULL ? *segments_ : *default_instance_->segments_; -} -::pb::SegmentRecord* PulsarMessage::mutable_segments() { - - if (segments_ == NULL) { - segments_ = new ::pb::SegmentRecord; - } - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.segments) - return segments_; -} -::pb::SegmentRecord* PulsarMessage::release_segments() { - // @@protoc_insertion_point(field_release:pb.PulsarMessage.segments) - - ::pb::SegmentRecord* temp = segments_; - segments_ = NULL; - return temp; -} -void PulsarMessage::set_allocated_segments(::pb::SegmentRecord* segments) { - delete segments_; - segments_ = segments; - if (segments) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pb.PulsarMessage.segments) -} - -// optional int64 timestamp = 7; -void PulsarMessage::clear_timestamp() { - timestamp_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 PulsarMessage::timestamp() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.timestamp) - return timestamp_; -} - void PulsarMessage::set_timestamp(::google::protobuf::int64 value) { - - timestamp_ = value; - // @@protoc_insertion_point(field_set:pb.PulsarMessage.timestamp) -} - -// optional int64 client_id = 8; -void PulsarMessage::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 PulsarMessage::client_id() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.client_id) - return client_id_; -} - void PulsarMessage::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:pb.PulsarMessage.client_id) -} - -// optional .pb.OpType msg_type = 9; -void PulsarMessage::clear_msg_type() { - msg_type_ = 0; -} - ::pb::OpType PulsarMessage::msg_type() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.msg_type) - return static_cast< ::pb::OpType >(msg_type_); -} - void PulsarMessage::set_msg_type(::pb::OpType value) { - - msg_type_ = value; - // @@protoc_insertion_point(field_set:pb.PulsarMessage.msg_type) -} - -// optional string topic_name = 10; -void PulsarMessage::clear_topic_name() { - topic_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& PulsarMessage::topic_name() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.topic_name) - return topic_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void PulsarMessage::set_topic_name(const ::std::string& value) { - - topic_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.PulsarMessage.topic_name) -} - void PulsarMessage::set_topic_name(const char* value) { - - topic_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.PulsarMessage.topic_name) -} - void PulsarMessage::set_topic_name(const char* value, size_t size) { - - topic_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.PulsarMessage.topic_name) -} - ::std::string* PulsarMessage::mutable_topic_name() { - - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.topic_name) - return topic_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* PulsarMessage::release_topic_name() { - // @@protoc_insertion_point(field_release:pb.PulsarMessage.topic_name) - - return topic_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void PulsarMessage::set_allocated_topic_name(::std::string* topic_name) { - if (topic_name != NULL) { - - } else { - - } - topic_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), topic_name); - // @@protoc_insertion_point(field_set_allocated:pb.PulsarMessage.topic_name) -} - -// optional int64 partition_id = 11; -void PulsarMessage::clear_partition_id() { - partition_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 PulsarMessage::partition_id() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.partition_id) - return partition_id_; -} - void PulsarMessage::set_partition_id(::google::protobuf::int64 value) { - - partition_id_ = value; - // @@protoc_insertion_point(field_set:pb.PulsarMessage.partition_id) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TestData::kIdFieldNumber; -const int TestData::kNameFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TestData::TestData() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.TestData) -} - -void TestData::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -TestData::TestData(const TestData& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.TestData) -} - -void TestData::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -TestData::~TestData() { - // @@protoc_insertion_point(destructor:pb.TestData) - SharedDtor(); -} - -void TestData::SharedDtor() { - id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void TestData::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* TestData::descriptor() { - protobuf_AssignDescriptorsOnce(); - return TestData_descriptor_; -} - -const TestData& TestData::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -TestData* TestData::default_instance_ = NULL; - -TestData* TestData::New(::google::protobuf::Arena* arena) const { - TestData* n = new TestData; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void TestData::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.TestData) - id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -bool TestData::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.TestData) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), this->id().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.TestData.id")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_name; - break; - } - - // optional string name = 2; - case 2: { - if (tag == 18) { - parse_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.TestData.name")); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.TestData) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.TestData) - return false; -#undef DO_ -} - -void TestData::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.TestData) - // optional string id = 1; - if (this->id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), this->id().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.TestData.id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->id(), output); - } - - // optional string name = 2; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.TestData.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->name(), output); - } - - // @@protoc_insertion_point(serialize_end:pb.TestData) -} - -::google::protobuf::uint8* TestData::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.TestData) - // optional string id = 1; - if (this->id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), this->id().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.TestData.id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->id(), target); - } - - // optional string name = 2; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.TestData.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->name(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.TestData) - return target; -} - -int TestData::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.TestData) - int total_size = 0; - - // optional string id = 1; - if (this->id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->id()); - } - - // optional string name = 2; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void TestData::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.TestData) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const TestData* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.TestData) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.TestData) - MergeFrom(*source); - } -} - -void TestData::MergeFrom(const TestData& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.TestData) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.id().size() > 0) { - - id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); - } - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } -} - -void TestData::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.TestData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TestData::CopyFrom(const TestData& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.TestData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TestData::IsInitialized() const { - - return true; -} - -void TestData::Swap(TestData* other) { - if (other == this) return; - InternalSwap(other); -} -void TestData::InternalSwap(TestData* other) { - id_.Swap(&other->id_); - name_.Swap(&other->name_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata TestData::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = TestData_descriptor_; - metadata.reflection = TestData_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// TestData - -// optional string id = 1; -void TestData::clear_id() { - id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& TestData::id() const { - // @@protoc_insertion_point(field_get:pb.TestData.id) - return id_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void TestData::set_id(const ::std::string& value) { - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.TestData.id) -} - void TestData::set_id(const char* value) { - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.TestData.id) -} - void TestData::set_id(const char* value, size_t size) { - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.TestData.id) -} - ::std::string* TestData::mutable_id() { - - // @@protoc_insertion_point(field_mutable:pb.TestData.id) - return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* TestData::release_id() { - // @@protoc_insertion_point(field_release:pb.TestData.id) - - return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void TestData::set_allocated_id(::std::string* id) { - if (id != NULL) { - - } else { - - } - id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); - // @@protoc_insertion_point(field_set_allocated:pb.TestData.id) -} - -// optional string name = 2; -void TestData::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& TestData::name() const { - // @@protoc_insertion_point(field_get:pb.TestData.name) - return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void TestData::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.TestData.name) -} - void TestData::set_name(const char* value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.TestData.name) -} - void TestData::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.TestData.name) -} - ::std::string* TestData::mutable_name() { - - // @@protoc_insertion_point(field_mutable:pb.TestData.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* TestData::release_name() { - // @@protoc_insertion_point(field_release:pb.TestData.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void TestData::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:pb.TestData.name) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int InsertMsg::kClientIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -InsertMsg::InsertMsg() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.InsertMsg) -} - -void InsertMsg::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -InsertMsg::InsertMsg(const InsertMsg& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.InsertMsg) -} - -void InsertMsg::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - client_id_ = GOOGLE_LONGLONG(0); -} - -InsertMsg::~InsertMsg() { - // @@protoc_insertion_point(destructor:pb.InsertMsg) - SharedDtor(); -} - -void InsertMsg::SharedDtor() { - if (this != default_instance_) { - } -} - -void InsertMsg::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* InsertMsg::descriptor() { - protobuf_AssignDescriptorsOnce(); - return InsertMsg_descriptor_; -} - -const InsertMsg& InsertMsg::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -InsertMsg* InsertMsg::default_instance_ = NULL; - -InsertMsg* InsertMsg::New(::google::protobuf::Arena* arena) const { - InsertMsg* n = new InsertMsg; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void InsertMsg::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.InsertMsg) - client_id_ = GOOGLE_LONGLONG(0); -} - -bool InsertMsg::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.InsertMsg) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int64 client_id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &client_id_))); - - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.InsertMsg) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.InsertMsg) - return false; -#undef DO_ -} - -void InsertMsg::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.InsertMsg) - // optional int64 client_id = 1; - if (this->client_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->client_id(), output); - } - - // @@protoc_insertion_point(serialize_end:pb.InsertMsg) -} - -::google::protobuf::uint8* InsertMsg::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.InsertMsg) - // optional int64 client_id = 1; - if (this->client_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->client_id(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.InsertMsg) - return target; -} - -int InsertMsg::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.InsertMsg) - int total_size = 0; - - // optional int64 client_id = 1; - if (this->client_id() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->client_id()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void InsertMsg::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.InsertMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const InsertMsg* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.InsertMsg) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.InsertMsg) - MergeFrom(*source); - } -} - -void InsertMsg::MergeFrom(const InsertMsg& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.InsertMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.client_id() != 0) { - set_client_id(from.client_id()); - } -} - -void InsertMsg::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.InsertMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void InsertMsg::CopyFrom(const InsertMsg& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.InsertMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool InsertMsg::IsInitialized() const { - - return true; -} - -void InsertMsg::Swap(InsertMsg* other) { - if (other == this) return; - InternalSwap(other); -} -void InsertMsg::InternalSwap(InsertMsg* other) { - std::swap(client_id_, other->client_id_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata InsertMsg::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = InsertMsg_descriptor_; - metadata.reflection = InsertMsg_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// InsertMsg - -// optional int64 client_id = 1; -void InsertMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 InsertMsg::client_id() const { - // @@protoc_insertion_point(field_get:pb.InsertMsg.client_id) - return client_id_; -} - void InsertMsg::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:pb.InsertMsg.client_id) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DeleteMsg::kClientIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DeleteMsg::DeleteMsg() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.DeleteMsg) -} - -void DeleteMsg::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -DeleteMsg::DeleteMsg(const DeleteMsg& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.DeleteMsg) -} - -void DeleteMsg::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - client_id_ = GOOGLE_LONGLONG(0); -} - -DeleteMsg::~DeleteMsg() { - // @@protoc_insertion_point(destructor:pb.DeleteMsg) - SharedDtor(); -} - -void DeleteMsg::SharedDtor() { - if (this != default_instance_) { - } -} - -void DeleteMsg::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* DeleteMsg::descriptor() { - protobuf_AssignDescriptorsOnce(); - return DeleteMsg_descriptor_; -} - -const DeleteMsg& DeleteMsg::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -DeleteMsg* DeleteMsg::default_instance_ = NULL; - -DeleteMsg* DeleteMsg::New(::google::protobuf::Arena* arena) const { - DeleteMsg* n = new DeleteMsg; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void DeleteMsg::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.DeleteMsg) - client_id_ = GOOGLE_LONGLONG(0); -} - -bool DeleteMsg::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.DeleteMsg) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int64 client_id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &client_id_))); - - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.DeleteMsg) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.DeleteMsg) - return false; -#undef DO_ -} - -void DeleteMsg::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.DeleteMsg) - // optional int64 client_id = 1; - if (this->client_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->client_id(), output); - } - - // @@protoc_insertion_point(serialize_end:pb.DeleteMsg) -} - -::google::protobuf::uint8* DeleteMsg::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.DeleteMsg) - // optional int64 client_id = 1; - if (this->client_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->client_id(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.DeleteMsg) - return target; -} - -int DeleteMsg::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.DeleteMsg) - int total_size = 0; - - // optional int64 client_id = 1; - if (this->client_id() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->client_id()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void DeleteMsg::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.DeleteMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const DeleteMsg* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.DeleteMsg) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.DeleteMsg) - MergeFrom(*source); - } -} - -void DeleteMsg::MergeFrom(const DeleteMsg& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.DeleteMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.client_id() != 0) { - set_client_id(from.client_id()); - } -} - -void DeleteMsg::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.DeleteMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DeleteMsg::CopyFrom(const DeleteMsg& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.DeleteMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DeleteMsg::IsInitialized() const { - - return true; -} - -void DeleteMsg::Swap(DeleteMsg* other) { - if (other == this) return; - InternalSwap(other); -} -void DeleteMsg::InternalSwap(DeleteMsg* other) { - std::swap(client_id_, other->client_id_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata DeleteMsg::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = DeleteMsg_descriptor_; - metadata.reflection = DeleteMsg_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// DeleteMsg - -// optional int64 client_id = 1; -void DeleteMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 DeleteMsg::client_id() const { - // @@protoc_insertion_point(field_get:pb.DeleteMsg.client_id) - return client_id_; -} - void DeleteMsg::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:pb.DeleteMsg.client_id) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SearchMsg::kClientIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SearchMsg::SearchMsg() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.SearchMsg) -} - -void SearchMsg::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -SearchMsg::SearchMsg(const SearchMsg& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.SearchMsg) -} - -void SearchMsg::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - client_id_ = GOOGLE_LONGLONG(0); -} - -SearchMsg::~SearchMsg() { - // @@protoc_insertion_point(destructor:pb.SearchMsg) - SharedDtor(); -} - -void SearchMsg::SharedDtor() { - if (this != default_instance_) { - } -} - -void SearchMsg::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* SearchMsg::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SearchMsg_descriptor_; -} - -const SearchMsg& SearchMsg::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -SearchMsg* SearchMsg::default_instance_ = NULL; - -SearchMsg* SearchMsg::New(::google::protobuf::Arena* arena) const { - SearchMsg* n = new SearchMsg; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void SearchMsg::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.SearchMsg) - client_id_ = GOOGLE_LONGLONG(0); -} - -bool SearchMsg::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.SearchMsg) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int64 client_id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &client_id_))); - - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.SearchMsg) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.SearchMsg) - return false; -#undef DO_ -} - -void SearchMsg::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.SearchMsg) - // optional int64 client_id = 1; - if (this->client_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->client_id(), output); - } - - // @@protoc_insertion_point(serialize_end:pb.SearchMsg) -} - -::google::protobuf::uint8* SearchMsg::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.SearchMsg) - // optional int64 client_id = 1; - if (this->client_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->client_id(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.SearchMsg) - return target; -} - -int SearchMsg::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.SearchMsg) - int total_size = 0; - - // optional int64 client_id = 1; - if (this->client_id() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->client_id()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SearchMsg::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.SearchMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const SearchMsg* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.SearchMsg) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.SearchMsg) - MergeFrom(*source); - } -} - -void SearchMsg::MergeFrom(const SearchMsg& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.SearchMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.client_id() != 0) { - set_client_id(from.client_id()); - } -} - -void SearchMsg::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.SearchMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SearchMsg::CopyFrom(const SearchMsg& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.SearchMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SearchMsg::IsInitialized() const { - - return true; -} - -void SearchMsg::Swap(SearchMsg* other) { - if (other == this) return; - InternalSwap(other); -} -void SearchMsg::InternalSwap(SearchMsg* other) { - std::swap(client_id_, other->client_id_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata SearchMsg::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SearchMsg_descriptor_; - metadata.reflection = SearchMsg_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SearchMsg - -// optional int64 client_id = 1; -void SearchMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 SearchMsg::client_id() const { - // @@protoc_insertion_point(field_get:pb.SearchMsg.client_id) - return client_id_; -} - void SearchMsg::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:pb.SearchMsg.client_id) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SearchResultMsg::kClientIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SearchResultMsg::SearchResultMsg() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.SearchResultMsg) -} - -void SearchResultMsg::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -SearchResultMsg::SearchResultMsg(const SearchResultMsg& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.SearchResultMsg) -} - -void SearchResultMsg::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - client_id_ = GOOGLE_LONGLONG(0); -} - -SearchResultMsg::~SearchResultMsg() { - // @@protoc_insertion_point(destructor:pb.SearchResultMsg) - SharedDtor(); -} - -void SearchResultMsg::SharedDtor() { - if (this != default_instance_) { - } -} - -void SearchResultMsg::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* SearchResultMsg::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SearchResultMsg_descriptor_; -} - -const SearchResultMsg& SearchResultMsg::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -SearchResultMsg* SearchResultMsg::default_instance_ = NULL; - -SearchResultMsg* SearchResultMsg::New(::google::protobuf::Arena* arena) const { - SearchResultMsg* n = new SearchResultMsg; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void SearchResultMsg::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.SearchResultMsg) - client_id_ = GOOGLE_LONGLONG(0); -} - -bool SearchResultMsg::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.SearchResultMsg) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int64 client_id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &client_id_))); - - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.SearchResultMsg) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.SearchResultMsg) - return false; -#undef DO_ -} - -void SearchResultMsg::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.SearchResultMsg) - // optional int64 client_id = 1; - if (this->client_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->client_id(), output); - } - - // @@protoc_insertion_point(serialize_end:pb.SearchResultMsg) -} - -::google::protobuf::uint8* SearchResultMsg::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.SearchResultMsg) - // optional int64 client_id = 1; - if (this->client_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->client_id(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.SearchResultMsg) - return target; -} - -int SearchResultMsg::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.SearchResultMsg) - int total_size = 0; - - // optional int64 client_id = 1; - if (this->client_id() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->client_id()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SearchResultMsg::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.SearchResultMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const SearchResultMsg* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.SearchResultMsg) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.SearchResultMsg) - MergeFrom(*source); - } -} - -void SearchResultMsg::MergeFrom(const SearchResultMsg& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.SearchResultMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.client_id() != 0) { - set_client_id(from.client_id()); - } -} - -void SearchResultMsg::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.SearchResultMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SearchResultMsg::CopyFrom(const SearchResultMsg& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.SearchResultMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SearchResultMsg::IsInitialized() const { - - return true; -} - -void SearchResultMsg::Swap(SearchResultMsg* other) { - if (other == this) return; - InternalSwap(other); -} -void SearchResultMsg::InternalSwap(SearchResultMsg* other) { - std::swap(client_id_, other->client_id_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata SearchResultMsg::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SearchResultMsg_descriptor_; - metadata.reflection = SearchResultMsg_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SearchResultMsg - -// optional int64 client_id = 1; -void SearchResultMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 SearchResultMsg::client_id() const { - // @@protoc_insertion_point(field_get:pb.SearchResultMsg.client_id) - return client_id_; -} - void SearchResultMsg::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:pb.SearchResultMsg.client_id) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// @@protoc_insertion_point(namespace_scope) - -} // namespace pb - -// @@protoc_insertion_point(global_scope) diff --git a/proxy/src/pulsar/message_client/pb/pulsar.pb.h b/proxy/src/pulsar/message_client/pb/pulsar.pb.h deleted file mode 100644 index 19d8811c89..0000000000 --- a/proxy/src/pulsar/message_client/pb/pulsar.pb.h +++ /dev/null @@ -1,3046 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: pulsar.proto - -#ifndef PROTOBUF_pulsar_2eproto__INCLUDED -#define PROTOBUF_pulsar_2eproto__INCLUDED - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3000000 -#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 3000000 < GOOGLE_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 -// @@protoc_insertion_point(includes) - -namespace pb { - -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_pulsar_2eproto(); -void protobuf_AssignDesc_pulsar_2eproto(); -void protobuf_ShutdownFile_pulsar_2eproto(); - -class AttrRecord; -class Cell; -class DeleteMsg; -class FieldValue; -class InsertMsg; -class PulsarMessage; -class RowValue; -class SearchMsg; -class SearchResultMsg; -class SegmentRecord; -class Status; -class TestData; -class VectorParam; -class VectorRecord; -class VectorRowRecord; - -enum ErrorCode { - 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_ = ::google::protobuf::kint32min, - ErrorCode_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool ErrorCode_IsValid(int value); -const ErrorCode ErrorCode_MIN = SUCCESS; -const ErrorCode ErrorCode_MAX = OUT_OF_MEMORY; -const int ErrorCode_ARRAYSIZE = ErrorCode_MAX + 1; - -const ::google::protobuf::EnumDescriptor* ErrorCode_descriptor(); -inline const ::std::string& ErrorCode_Name(ErrorCode value) { - return ::google::protobuf::internal::NameOfEnum( - ErrorCode_descriptor(), value); -} -inline bool ErrorCode_Parse( - const ::std::string& name, ErrorCode* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ErrorCode_descriptor(), name, value); -} -enum DataType { - NONE = 0, - BOOL = 1, - INT8 = 2, - INT16 = 3, - INT32 = 4, - INT64 = 5, - FLOAT = 10, - DOUBLE = 11, - STRING = 20, - VECTOR_BINARY = 100, - VECTOR_FLOAT = 101, - DataType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - DataType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool DataType_IsValid(int value); -const DataType DataType_MIN = NONE; -const DataType DataType_MAX = VECTOR_FLOAT; -const int DataType_ARRAYSIZE = DataType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* DataType_descriptor(); -inline const ::std::string& DataType_Name(DataType value) { - return ::google::protobuf::internal::NameOfEnum( - DataType_descriptor(), value); -} -inline bool DataType_Parse( - const ::std::string& name, DataType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - DataType_descriptor(), name, value); -} -enum OpType { - Insert = 0, - Delete = 1, - Search = 2, - TimeSync = 3, - Key2Seg = 4, - Statistics = 5, - OpType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - OpType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool OpType_IsValid(int value); -const OpType OpType_MIN = Insert; -const OpType OpType_MAX = Statistics; -const int OpType_ARRAYSIZE = OpType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* OpType_descriptor(); -inline const ::std::string& OpType_Name(OpType value) { - return ::google::protobuf::internal::NameOfEnum( - OpType_descriptor(), value); -} -inline bool OpType_Parse( - const ::std::string& name, OpType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - OpType_descriptor(), name, value); -} -// =================================================================== - -class Status : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.Status) */ { - public: - Status(); - virtual ~Status(); - - Status(const Status& from); - - inline Status& operator=(const Status& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const Status& default_instance(); - - void Swap(Status* other); - - // implements Message ---------------------------------------------- - - inline Status* New() const { return New(NULL); } - - Status* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Status& from); - void MergeFrom(const Status& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Status* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .pb.ErrorCode error_code = 1; - void clear_error_code(); - static const int kErrorCodeFieldNumber = 1; - ::pb::ErrorCode error_code() const; - void set_error_code(::pb::ErrorCode value); - - // optional string reason = 2; - void clear_reason(); - static const int kReasonFieldNumber = 2; - const ::std::string& reason() const; - void set_reason(const ::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); - - // @@protoc_insertion_point(class_scope:pb.Status) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr reason_; - int error_code_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static Status* default_instance_; -}; -// ------------------------------------------------------------------- - -class SegmentRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.SegmentRecord) */ { - public: - SegmentRecord(); - virtual ~SegmentRecord(); - - SegmentRecord(const SegmentRecord& from); - - inline SegmentRecord& operator=(const SegmentRecord& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const SegmentRecord& default_instance(); - - void Swap(SegmentRecord* other); - - // implements Message ---------------------------------------------- - - inline SegmentRecord* New() const { return New(NULL); } - - SegmentRecord* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SegmentRecord& from); - void MergeFrom(const SegmentRecord& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SegmentRecord* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated string seg_info = 1; - int seg_info_size() const; - void clear_seg_info(); - static const int kSegInfoFieldNumber = 1; - const ::std::string& seg_info(int index) const; - ::std::string* mutable_seg_info(int index); - void set_seg_info(int index, const ::std::string& value); - void set_seg_info(int index, const char* value); - void set_seg_info(int index, const char* value, size_t size); - ::std::string* add_seg_info(); - void add_seg_info(const ::std::string& value); - void add_seg_info(const char* value); - void add_seg_info(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& seg_info() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_seg_info(); - - // @@protoc_insertion_point(class_scope:pb.SegmentRecord) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::RepeatedPtrField< ::std::string> seg_info_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static SegmentRecord* default_instance_; -}; -// ------------------------------------------------------------------- - -class VectorRowRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.VectorRowRecord) */ { - public: - VectorRowRecord(); - virtual ~VectorRowRecord(); - - VectorRowRecord(const VectorRowRecord& from); - - inline VectorRowRecord& operator=(const VectorRowRecord& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const VectorRowRecord& default_instance(); - - void Swap(VectorRowRecord* other); - - // implements Message ---------------------------------------------- - - inline VectorRowRecord* New() const { return New(NULL); } - - VectorRowRecord* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const VectorRowRecord& from); - void MergeFrom(const VectorRowRecord& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(VectorRowRecord* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated float float_data = 1; - int float_data_size() const; - void clear_float_data(); - static const int kFloatDataFieldNumber = 1; - float float_data(int index) const; - void set_float_data(int index, float value); - void add_float_data(float value); - const ::google::protobuf::RepeatedField< float >& - float_data() const; - ::google::protobuf::RepeatedField< float >* - mutable_float_data(); - - // optional bytes binary_data = 2; - void clear_binary_data(); - static const int kBinaryDataFieldNumber = 2; - const ::std::string& binary_data() const; - void set_binary_data(const ::std::string& value); - void set_binary_data(const char* value); - void set_binary_data(const void* value, size_t size); - ::std::string* mutable_binary_data(); - ::std::string* release_binary_data(); - void set_allocated_binary_data(::std::string* binary_data); - - // @@protoc_insertion_point(class_scope:pb.VectorRowRecord) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::RepeatedField< float > float_data_; - mutable int _float_data_cached_byte_size_; - ::google::protobuf::internal::ArenaStringPtr binary_data_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static VectorRowRecord* default_instance_; -}; -// ------------------------------------------------------------------- - -class AttrRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.AttrRecord) */ { - public: - AttrRecord(); - virtual ~AttrRecord(); - - AttrRecord(const AttrRecord& from); - - inline AttrRecord& operator=(const AttrRecord& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const AttrRecord& default_instance(); - - void Swap(AttrRecord* other); - - // implements Message ---------------------------------------------- - - inline AttrRecord* New() const { return New(NULL); } - - AttrRecord* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AttrRecord& from); - void MergeFrom(const AttrRecord& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(AttrRecord* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated int32 int32_value = 1; - int int32_value_size() const; - void clear_int32_value(); - static const int kInt32ValueFieldNumber = 1; - ::google::protobuf::int32 int32_value(int index) const; - void set_int32_value(int index, ::google::protobuf::int32 value); - void add_int32_value(::google::protobuf::int32 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& - int32_value() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* - mutable_int32_value(); - - // repeated int64 int64_value = 2; - int int64_value_size() const; - void clear_int64_value(); - static const int kInt64ValueFieldNumber = 2; - ::google::protobuf::int64 int64_value(int index) const; - void set_int64_value(int index, ::google::protobuf::int64 value); - void add_int64_value(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - int64_value() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_int64_value(); - - // repeated float float_value = 3; - int float_value_size() const; - void clear_float_value(); - static const int kFloatValueFieldNumber = 3; - float float_value(int index) const; - void set_float_value(int index, float value); - void add_float_value(float value); - const ::google::protobuf::RepeatedField< float >& - float_value() const; - ::google::protobuf::RepeatedField< float >* - mutable_float_value(); - - // repeated double double_value = 4; - int double_value_size() const; - void clear_double_value(); - static const int kDoubleValueFieldNumber = 4; - double double_value(int index) const; - void set_double_value(int index, double value); - void add_double_value(double value); - const ::google::protobuf::RepeatedField< double >& - double_value() const; - ::google::protobuf::RepeatedField< double >* - mutable_double_value(); - - // @@protoc_insertion_point(class_scope:pb.AttrRecord) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 > int32_value_; - mutable int _int32_value_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > int64_value_; - mutable int _int64_value_cached_byte_size_; - ::google::protobuf::RepeatedField< float > float_value_; - mutable int _float_value_cached_byte_size_; - ::google::protobuf::RepeatedField< double > double_value_; - mutable int _double_value_cached_byte_size_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static AttrRecord* default_instance_; -}; -// ------------------------------------------------------------------- - -class VectorRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.VectorRecord) */ { - public: - VectorRecord(); - virtual ~VectorRecord(); - - VectorRecord(const VectorRecord& from); - - inline VectorRecord& operator=(const VectorRecord& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const VectorRecord& default_instance(); - - void Swap(VectorRecord* other); - - // implements Message ---------------------------------------------- - - inline VectorRecord* New() const { return New(NULL); } - - VectorRecord* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const VectorRecord& from); - void MergeFrom(const VectorRecord& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(VectorRecord* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .pb.VectorRowRecord records = 1; - int records_size() const; - void clear_records(); - static const int kRecordsFieldNumber = 1; - const ::pb::VectorRowRecord& records(int index) const; - ::pb::VectorRowRecord* mutable_records(int index); - ::pb::VectorRowRecord* add_records(); - ::google::protobuf::RepeatedPtrField< ::pb::VectorRowRecord >* - mutable_records(); - const ::google::protobuf::RepeatedPtrField< ::pb::VectorRowRecord >& - records() const; - - // @@protoc_insertion_point(class_scope:pb.VectorRecord) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::RepeatedPtrField< ::pb::VectorRowRecord > records_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static VectorRecord* default_instance_; -}; -// ------------------------------------------------------------------- - -class VectorParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.VectorParam) */ { - public: - VectorParam(); - virtual ~VectorParam(); - - VectorParam(const VectorParam& from); - - inline VectorParam& operator=(const VectorParam& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const VectorParam& default_instance(); - - void Swap(VectorParam* other); - - // implements Message ---------------------------------------------- - - inline VectorParam* New() const { return New(NULL); } - - VectorParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const VectorParam& from); - void MergeFrom(const VectorParam& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(VectorParam* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string json = 1; - void clear_json(); - static const int kJsonFieldNumber = 1; - const ::std::string& json() const; - void set_json(const ::std::string& value); - void set_json(const char* value); - void set_json(const char* value, size_t size); - ::std::string* mutable_json(); - ::std::string* release_json(); - void set_allocated_json(::std::string* json); - - // optional .pb.VectorRecord row_record = 2; - bool has_row_record() const; - void clear_row_record(); - static const int kRowRecordFieldNumber = 2; - const ::pb::VectorRecord& row_record() const; - ::pb::VectorRecord* mutable_row_record(); - ::pb::VectorRecord* release_row_record(); - void set_allocated_row_record(::pb::VectorRecord* row_record); - - // @@protoc_insertion_point(class_scope:pb.VectorParam) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr json_; - ::pb::VectorRecord* row_record_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static VectorParam* default_instance_; -}; -// ------------------------------------------------------------------- - -class FieldValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.FieldValue) */ { - public: - FieldValue(); - virtual ~FieldValue(); - - FieldValue(const FieldValue& from); - - inline FieldValue& operator=(const FieldValue& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const FieldValue& default_instance(); - - void Swap(FieldValue* other); - - // implements Message ---------------------------------------------- - - inline FieldValue* New() const { return New(NULL); } - - FieldValue* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const FieldValue& from); - void MergeFrom(const FieldValue& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(FieldValue* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string field_name = 1; - void clear_field_name(); - static const int kFieldNameFieldNumber = 1; - const ::std::string& field_name() const; - void set_field_name(const ::std::string& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - ::std::string* mutable_field_name(); - ::std::string* release_field_name(); - void set_allocated_field_name(::std::string* field_name); - - // optional .pb.DataType type = 2; - void clear_type(); - static const int kTypeFieldNumber = 2; - ::pb::DataType type() const; - void set_type(::pb::DataType value); - - // optional .pb.AttrRecord attr_record = 3; - bool has_attr_record() const; - void clear_attr_record(); - static const int kAttrRecordFieldNumber = 3; - const ::pb::AttrRecord& attr_record() const; - ::pb::AttrRecord* mutable_attr_record(); - ::pb::AttrRecord* release_attr_record(); - void set_allocated_attr_record(::pb::AttrRecord* attr_record); - - // optional .pb.VectorRecord vector_record = 4; - bool has_vector_record() const; - void clear_vector_record(); - static const int kVectorRecordFieldNumber = 4; - const ::pb::VectorRecord& vector_record() const; - ::pb::VectorRecord* mutable_vector_record(); - ::pb::VectorRecord* release_vector_record(); - void set_allocated_vector_record(::pb::VectorRecord* vector_record); - - // @@protoc_insertion_point(class_scope:pb.FieldValue) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr field_name_; - ::pb::AttrRecord* attr_record_; - ::pb::VectorRecord* vector_record_; - int type_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static FieldValue* default_instance_; -}; -// ------------------------------------------------------------------- - -class Cell : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.Cell) */ { - public: - Cell(); - virtual ~Cell(); - - Cell(const Cell& from); - - inline Cell& operator=(const Cell& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const Cell& default_instance(); - - enum ValueCase { - kInt32Value = 1, - kInt64Value = 2, - kFloatValue = 3, - kDoubleValue = 4, - kVec = 5, - VALUE_NOT_SET = 0, - }; - - void Swap(Cell* other); - - // implements Message ---------------------------------------------- - - inline Cell* New() const { return New(NULL); } - - Cell* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Cell& from); - void MergeFrom(const Cell& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Cell* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional int32 int32_value = 1; - private: - bool has_int32_value() const; - public: - void clear_int32_value(); - static const int kInt32ValueFieldNumber = 1; - ::google::protobuf::int32 int32_value() const; - void set_int32_value(::google::protobuf::int32 value); - - // optional int64 int64_value = 2; - private: - bool has_int64_value() const; - public: - void clear_int64_value(); - static const int kInt64ValueFieldNumber = 2; - ::google::protobuf::int64 int64_value() const; - void set_int64_value(::google::protobuf::int64 value); - - // optional float float_value = 3; - private: - bool has_float_value() const; - public: - void clear_float_value(); - static const int kFloatValueFieldNumber = 3; - float float_value() const; - void set_float_value(float value); - - // optional double double_value = 4; - private: - bool has_double_value() const; - public: - void clear_double_value(); - static const int kDoubleValueFieldNumber = 4; - double double_value() const; - void set_double_value(double value); - - // optional .pb.VectorRowRecord vec = 5; - bool has_vec() const; - void clear_vec(); - static const int kVecFieldNumber = 5; - const ::pb::VectorRowRecord& vec() const; - ::pb::VectorRowRecord* mutable_vec(); - ::pb::VectorRowRecord* release_vec(); - void set_allocated_vec(::pb::VectorRowRecord* vec); - - ValueCase value_case() const; - // @@protoc_insertion_point(class_scope:pb.Cell) - private: - inline void set_has_int32_value(); - inline void set_has_int64_value(); - inline void set_has_float_value(); - inline void set_has_double_value(); - inline void set_has_vec(); - - inline bool has_value() const; - void clear_value(); - inline void clear_has_value(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - union ValueUnion { - ValueUnion() {} - ::google::protobuf::int32 int32_value_; - ::google::protobuf::int64 int64_value_; - float float_value_; - double double_value_; - ::pb::VectorRowRecord* vec_; - } value_; - mutable int _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static Cell* default_instance_; -}; -// ------------------------------------------------------------------- - -class RowValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.RowValue) */ { - public: - RowValue(); - virtual ~RowValue(); - - RowValue(const RowValue& from); - - inline RowValue& operator=(const RowValue& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const RowValue& default_instance(); - - void Swap(RowValue* other); - - // implements Message ---------------------------------------------- - - inline RowValue* New() const { return New(NULL); } - - RowValue* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RowValue& from); - void MergeFrom(const RowValue& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(RowValue* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .pb.Cell cell = 2; - int cell_size() const; - void clear_cell(); - static const int kCellFieldNumber = 2; - const ::pb::Cell& cell(int index) const; - ::pb::Cell* mutable_cell(int index); - ::pb::Cell* add_cell(); - ::google::protobuf::RepeatedPtrField< ::pb::Cell >* - mutable_cell(); - const ::google::protobuf::RepeatedPtrField< ::pb::Cell >& - cell() const; - - // @@protoc_insertion_point(class_scope:pb.RowValue) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::RepeatedPtrField< ::pb::Cell > cell_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static RowValue* default_instance_; -}; -// ------------------------------------------------------------------- - -class PulsarMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.PulsarMessage) */ { - public: - PulsarMessage(); - virtual ~PulsarMessage(); - - PulsarMessage(const PulsarMessage& from); - - inline PulsarMessage& operator=(const PulsarMessage& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const PulsarMessage& default_instance(); - - void Swap(PulsarMessage* other); - - // implements Message ---------------------------------------------- - - inline PulsarMessage* New() const { return New(NULL); } - - PulsarMessage* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const PulsarMessage& from); - void MergeFrom(const PulsarMessage& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(PulsarMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string collection_name = 1; - void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); - - // repeated .pb.FieldValue fields = 2; - int fields_size() const; - void clear_fields(); - static const int kFieldsFieldNumber = 2; - const ::pb::FieldValue& fields(int index) const; - ::pb::FieldValue* mutable_fields(int index); - ::pb::FieldValue* add_fields(); - ::google::protobuf::RepeatedPtrField< ::pb::FieldValue >* - mutable_fields(); - const ::google::protobuf::RepeatedPtrField< ::pb::FieldValue >& - fields() const; - - // optional int64 entity_id = 3; - void clear_entity_id(); - static const int kEntityIdFieldNumber = 3; - ::google::protobuf::int64 entity_id() const; - void set_entity_id(::google::protobuf::int64 value); - - // optional string partition_tag = 4; - void clear_partition_tag(); - static const int kPartitionTagFieldNumber = 4; - const ::std::string& partition_tag() const; - void set_partition_tag(const ::std::string& value); - void set_partition_tag(const char* value); - void set_partition_tag(const char* value, size_t size); - ::std::string* mutable_partition_tag(); - ::std::string* release_partition_tag(); - void set_allocated_partition_tag(::std::string* partition_tag); - - // optional .pb.VectorParam vector_param = 5; - bool has_vector_param() const; - void clear_vector_param(); - static const int kVectorParamFieldNumber = 5; - const ::pb::VectorParam& vector_param() const; - ::pb::VectorParam* mutable_vector_param(); - ::pb::VectorParam* release_vector_param(); - void set_allocated_vector_param(::pb::VectorParam* vector_param); - - // optional .pb.SegmentRecord segments = 6; - bool has_segments() const; - void clear_segments(); - static const int kSegmentsFieldNumber = 6; - const ::pb::SegmentRecord& segments() const; - ::pb::SegmentRecord* mutable_segments(); - ::pb::SegmentRecord* release_segments(); - void set_allocated_segments(::pb::SegmentRecord* segments); - - // optional int64 timestamp = 7; - void clear_timestamp(); - static const int kTimestampFieldNumber = 7; - ::google::protobuf::int64 timestamp() const; - void set_timestamp(::google::protobuf::int64 value); - - // optional int64 client_id = 8; - void clear_client_id(); - static const int kClientIdFieldNumber = 8; - ::google::protobuf::int64 client_id() const; - void set_client_id(::google::protobuf::int64 value); - - // optional .pb.OpType msg_type = 9; - void clear_msg_type(); - static const int kMsgTypeFieldNumber = 9; - ::pb::OpType msg_type() const; - void set_msg_type(::pb::OpType value); - - // optional string topic_name = 10; - void clear_topic_name(); - static const int kTopicNameFieldNumber = 10; - const ::std::string& topic_name() const; - void set_topic_name(const ::std::string& value); - void set_topic_name(const char* value); - void set_topic_name(const char* value, size_t size); - ::std::string* mutable_topic_name(); - ::std::string* release_topic_name(); - void set_allocated_topic_name(::std::string* topic_name); - - // optional int64 partition_id = 11; - void clear_partition_id(); - static const int kPartitionIdFieldNumber = 11; - ::google::protobuf::int64 partition_id() const; - void set_partition_id(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:pb.PulsarMessage) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - ::google::protobuf::RepeatedPtrField< ::pb::FieldValue > fields_; - ::google::protobuf::int64 entity_id_; - ::google::protobuf::internal::ArenaStringPtr partition_tag_; - ::pb::VectorParam* vector_param_; - ::pb::SegmentRecord* segments_; - ::google::protobuf::int64 timestamp_; - ::google::protobuf::int64 client_id_; - ::google::protobuf::internal::ArenaStringPtr topic_name_; - ::google::protobuf::int64 partition_id_; - int msg_type_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static PulsarMessage* default_instance_; -}; -// ------------------------------------------------------------------- - -class TestData : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.TestData) */ { - public: - TestData(); - virtual ~TestData(); - - TestData(const TestData& from); - - inline TestData& operator=(const TestData& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const TestData& default_instance(); - - void Swap(TestData* other); - - // implements Message ---------------------------------------------- - - inline TestData* New() const { return New(NULL); } - - TestData* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const TestData& from); - void MergeFrom(const TestData& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(TestData* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string id = 1; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::std::string& id() const; - void set_id(const ::std::string& value); - void set_id(const char* value); - void set_id(const char* value, size_t size); - ::std::string* mutable_id(); - ::std::string* release_id(); - void set_allocated_id(::std::string* id); - - // optional string name = 2; - void clear_name(); - static const int kNameFieldNumber = 2; - const ::std::string& name() const; - void set_name(const ::std::string& value); - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // @@protoc_insertion_point(class_scope:pb.TestData) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr name_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static TestData* default_instance_; -}; -// ------------------------------------------------------------------- - -class InsertMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.InsertMsg) */ { - public: - InsertMsg(); - virtual ~InsertMsg(); - - InsertMsg(const InsertMsg& from); - - inline InsertMsg& operator=(const InsertMsg& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const InsertMsg& default_instance(); - - void Swap(InsertMsg* other); - - // implements Message ---------------------------------------------- - - inline InsertMsg* New() const { return New(NULL); } - - InsertMsg* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const InsertMsg& from); - void MergeFrom(const InsertMsg& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(InsertMsg* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional int64 client_id = 1; - void clear_client_id(); - static const int kClientIdFieldNumber = 1; - ::google::protobuf::int64 client_id() const; - void set_client_id(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:pb.InsertMsg) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::int64 client_id_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static InsertMsg* default_instance_; -}; -// ------------------------------------------------------------------- - -class DeleteMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.DeleteMsg) */ { - public: - DeleteMsg(); - virtual ~DeleteMsg(); - - DeleteMsg(const DeleteMsg& from); - - inline DeleteMsg& operator=(const DeleteMsg& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const DeleteMsg& default_instance(); - - void Swap(DeleteMsg* other); - - // implements Message ---------------------------------------------- - - inline DeleteMsg* New() const { return New(NULL); } - - DeleteMsg* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const DeleteMsg& from); - void MergeFrom(const DeleteMsg& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(DeleteMsg* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional int64 client_id = 1; - void clear_client_id(); - static const int kClientIdFieldNumber = 1; - ::google::protobuf::int64 client_id() const; - void set_client_id(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:pb.DeleteMsg) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::int64 client_id_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static DeleteMsg* default_instance_; -}; -// ------------------------------------------------------------------- - -class SearchMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.SearchMsg) */ { - public: - SearchMsg(); - virtual ~SearchMsg(); - - SearchMsg(const SearchMsg& from); - - inline SearchMsg& operator=(const SearchMsg& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const SearchMsg& default_instance(); - - void Swap(SearchMsg* other); - - // implements Message ---------------------------------------------- - - inline SearchMsg* New() const { return New(NULL); } - - SearchMsg* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SearchMsg& from); - void MergeFrom(const SearchMsg& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SearchMsg* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional int64 client_id = 1; - void clear_client_id(); - static const int kClientIdFieldNumber = 1; - ::google::protobuf::int64 client_id() const; - void set_client_id(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:pb.SearchMsg) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::int64 client_id_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static SearchMsg* default_instance_; -}; -// ------------------------------------------------------------------- - -class SearchResultMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.SearchResultMsg) */ { - public: - SearchResultMsg(); - virtual ~SearchResultMsg(); - - SearchResultMsg(const SearchResultMsg& from); - - inline SearchResultMsg& operator=(const SearchResultMsg& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const SearchResultMsg& default_instance(); - - void Swap(SearchResultMsg* other); - - // implements Message ---------------------------------------------- - - inline SearchResultMsg* New() const { return New(NULL); } - - SearchResultMsg* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SearchResultMsg& from); - void MergeFrom(const SearchResultMsg& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SearchResultMsg* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional int64 client_id = 1; - void clear_client_id(); - static const int kClientIdFieldNumber = 1; - ::google::protobuf::int64 client_id() const; - void set_client_id(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:pb.SearchResultMsg) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::int64 client_id_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static SearchResultMsg* default_instance_; -}; -// =================================================================== - - -// =================================================================== - -#if !PROTOBUF_INLINE_NOT_IN_HEADERS -// Status - -// optional .pb.ErrorCode error_code = 1; -inline void Status::clear_error_code() { - error_code_ = 0; -} -inline ::pb::ErrorCode Status::error_code() const { - // @@protoc_insertion_point(field_get:pb.Status.error_code) - return static_cast< ::pb::ErrorCode >(error_code_); -} -inline void Status::set_error_code(::pb::ErrorCode value) { - - error_code_ = value; - // @@protoc_insertion_point(field_set:pb.Status.error_code) -} - -// optional string reason = 2; -inline void Status::clear_reason() { - reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Status::reason() const { - // @@protoc_insertion_point(field_get:pb.Status.reason) - return reason_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Status::set_reason(const ::std::string& value) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.Status.reason) -} -inline void Status::set_reason(const char* value) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.Status.reason) -} -inline void Status::set_reason(const char* value, size_t size) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.Status.reason) -} -inline ::std::string* Status::mutable_reason() { - - // @@protoc_insertion_point(field_mutable:pb.Status.reason) - return reason_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Status::release_reason() { - // @@protoc_insertion_point(field_release:pb.Status.reason) - - return reason_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Status::set_allocated_reason(::std::string* reason) { - if (reason != NULL) { - - } else { - - } - reason_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reason); - // @@protoc_insertion_point(field_set_allocated:pb.Status.reason) -} - -// ------------------------------------------------------------------- - -// SegmentRecord - -// repeated string seg_info = 1; -inline int SegmentRecord::seg_info_size() const { - return seg_info_.size(); -} -inline void SegmentRecord::clear_seg_info() { - seg_info_.Clear(); -} -inline const ::std::string& SegmentRecord::seg_info(int index) const { - // @@protoc_insertion_point(field_get:pb.SegmentRecord.seg_info) - return seg_info_.Get(index); -} -inline ::std::string* SegmentRecord::mutable_seg_info(int index) { - // @@protoc_insertion_point(field_mutable:pb.SegmentRecord.seg_info) - return seg_info_.Mutable(index); -} -inline void SegmentRecord::set_seg_info(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:pb.SegmentRecord.seg_info) - seg_info_.Mutable(index)->assign(value); -} -inline void SegmentRecord::set_seg_info(int index, const char* value) { - seg_info_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:pb.SegmentRecord.seg_info) -} -inline void SegmentRecord::set_seg_info(int index, const char* value, size_t size) { - seg_info_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:pb.SegmentRecord.seg_info) -} -inline ::std::string* SegmentRecord::add_seg_info() { - // @@protoc_insertion_point(field_add_mutable:pb.SegmentRecord.seg_info) - return seg_info_.Add(); -} -inline void SegmentRecord::add_seg_info(const ::std::string& value) { - seg_info_.Add()->assign(value); - // @@protoc_insertion_point(field_add:pb.SegmentRecord.seg_info) -} -inline void SegmentRecord::add_seg_info(const char* value) { - seg_info_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:pb.SegmentRecord.seg_info) -} -inline void SegmentRecord::add_seg_info(const char* value, size_t size) { - seg_info_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:pb.SegmentRecord.seg_info) -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -SegmentRecord::seg_info() const { - // @@protoc_insertion_point(field_list:pb.SegmentRecord.seg_info) - return seg_info_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -SegmentRecord::mutable_seg_info() { - // @@protoc_insertion_point(field_mutable_list:pb.SegmentRecord.seg_info) - return &seg_info_; -} - -// ------------------------------------------------------------------- - -// VectorRowRecord - -// repeated float float_data = 1; -inline int VectorRowRecord::float_data_size() const { - return float_data_.size(); -} -inline void VectorRowRecord::clear_float_data() { - float_data_.Clear(); -} -inline float VectorRowRecord::float_data(int index) const { - // @@protoc_insertion_point(field_get:pb.VectorRowRecord.float_data) - return float_data_.Get(index); -} -inline void VectorRowRecord::set_float_data(int index, float value) { - float_data_.Set(index, value); - // @@protoc_insertion_point(field_set:pb.VectorRowRecord.float_data) -} -inline void VectorRowRecord::add_float_data(float value) { - float_data_.Add(value); - // @@protoc_insertion_point(field_add:pb.VectorRowRecord.float_data) -} -inline const ::google::protobuf::RepeatedField< float >& -VectorRowRecord::float_data() const { - // @@protoc_insertion_point(field_list:pb.VectorRowRecord.float_data) - return float_data_; -} -inline ::google::protobuf::RepeatedField< float >* -VectorRowRecord::mutable_float_data() { - // @@protoc_insertion_point(field_mutable_list:pb.VectorRowRecord.float_data) - return &float_data_; -} - -// optional bytes binary_data = 2; -inline void VectorRowRecord::clear_binary_data() { - binary_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& VectorRowRecord::binary_data() const { - // @@protoc_insertion_point(field_get:pb.VectorRowRecord.binary_data) - return binary_data_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void VectorRowRecord::set_binary_data(const ::std::string& value) { - - binary_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.VectorRowRecord.binary_data) -} -inline void VectorRowRecord::set_binary_data(const char* value) { - - binary_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.VectorRowRecord.binary_data) -} -inline void VectorRowRecord::set_binary_data(const void* value, size_t size) { - - binary_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.VectorRowRecord.binary_data) -} -inline ::std::string* VectorRowRecord::mutable_binary_data() { - - // @@protoc_insertion_point(field_mutable:pb.VectorRowRecord.binary_data) - return binary_data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* VectorRowRecord::release_binary_data() { - // @@protoc_insertion_point(field_release:pb.VectorRowRecord.binary_data) - - return binary_data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void VectorRowRecord::set_allocated_binary_data(::std::string* binary_data) { - if (binary_data != NULL) { - - } else { - - } - binary_data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), binary_data); - // @@protoc_insertion_point(field_set_allocated:pb.VectorRowRecord.binary_data) -} - -// ------------------------------------------------------------------- - -// AttrRecord - -// repeated int32 int32_value = 1; -inline int AttrRecord::int32_value_size() const { - return int32_value_.size(); -} -inline void AttrRecord::clear_int32_value() { - int32_value_.Clear(); -} -inline ::google::protobuf::int32 AttrRecord::int32_value(int index) const { - // @@protoc_insertion_point(field_get:pb.AttrRecord.int32_value) - return int32_value_.Get(index); -} -inline void AttrRecord::set_int32_value(int index, ::google::protobuf::int32 value) { - int32_value_.Set(index, value); - // @@protoc_insertion_point(field_set:pb.AttrRecord.int32_value) -} -inline void AttrRecord::add_int32_value(::google::protobuf::int32 value) { - int32_value_.Add(value); - // @@protoc_insertion_point(field_add:pb.AttrRecord.int32_value) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -AttrRecord::int32_value() const { - // @@protoc_insertion_point(field_list:pb.AttrRecord.int32_value) - return int32_value_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -AttrRecord::mutable_int32_value() { - // @@protoc_insertion_point(field_mutable_list:pb.AttrRecord.int32_value) - return &int32_value_; -} - -// repeated int64 int64_value = 2; -inline int AttrRecord::int64_value_size() const { - return int64_value_.size(); -} -inline void AttrRecord::clear_int64_value() { - int64_value_.Clear(); -} -inline ::google::protobuf::int64 AttrRecord::int64_value(int index) const { - // @@protoc_insertion_point(field_get:pb.AttrRecord.int64_value) - return int64_value_.Get(index); -} -inline void AttrRecord::set_int64_value(int index, ::google::protobuf::int64 value) { - int64_value_.Set(index, value); - // @@protoc_insertion_point(field_set:pb.AttrRecord.int64_value) -} -inline void AttrRecord::add_int64_value(::google::protobuf::int64 value) { - int64_value_.Add(value); - // @@protoc_insertion_point(field_add:pb.AttrRecord.int64_value) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -AttrRecord::int64_value() const { - // @@protoc_insertion_point(field_list:pb.AttrRecord.int64_value) - return int64_value_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -AttrRecord::mutable_int64_value() { - // @@protoc_insertion_point(field_mutable_list:pb.AttrRecord.int64_value) - return &int64_value_; -} - -// repeated float float_value = 3; -inline int AttrRecord::float_value_size() const { - return float_value_.size(); -} -inline void AttrRecord::clear_float_value() { - float_value_.Clear(); -} -inline float AttrRecord::float_value(int index) const { - // @@protoc_insertion_point(field_get:pb.AttrRecord.float_value) - return float_value_.Get(index); -} -inline void AttrRecord::set_float_value(int index, float value) { - float_value_.Set(index, value); - // @@protoc_insertion_point(field_set:pb.AttrRecord.float_value) -} -inline void AttrRecord::add_float_value(float value) { - float_value_.Add(value); - // @@protoc_insertion_point(field_add:pb.AttrRecord.float_value) -} -inline const ::google::protobuf::RepeatedField< float >& -AttrRecord::float_value() const { - // @@protoc_insertion_point(field_list:pb.AttrRecord.float_value) - return float_value_; -} -inline ::google::protobuf::RepeatedField< float >* -AttrRecord::mutable_float_value() { - // @@protoc_insertion_point(field_mutable_list:pb.AttrRecord.float_value) - return &float_value_; -} - -// repeated double double_value = 4; -inline int AttrRecord::double_value_size() const { - return double_value_.size(); -} -inline void AttrRecord::clear_double_value() { - double_value_.Clear(); -} -inline double AttrRecord::double_value(int index) const { - // @@protoc_insertion_point(field_get:pb.AttrRecord.double_value) - return double_value_.Get(index); -} -inline void AttrRecord::set_double_value(int index, double value) { - double_value_.Set(index, value); - // @@protoc_insertion_point(field_set:pb.AttrRecord.double_value) -} -inline void AttrRecord::add_double_value(double value) { - double_value_.Add(value); - // @@protoc_insertion_point(field_add:pb.AttrRecord.double_value) -} -inline const ::google::protobuf::RepeatedField< double >& -AttrRecord::double_value() const { - // @@protoc_insertion_point(field_list:pb.AttrRecord.double_value) - return double_value_; -} -inline ::google::protobuf::RepeatedField< double >* -AttrRecord::mutable_double_value() { - // @@protoc_insertion_point(field_mutable_list:pb.AttrRecord.double_value) - return &double_value_; -} - -// ------------------------------------------------------------------- - -// VectorRecord - -// repeated .pb.VectorRowRecord records = 1; -inline int VectorRecord::records_size() const { - return records_.size(); -} -inline void VectorRecord::clear_records() { - records_.Clear(); -} -inline const ::pb::VectorRowRecord& VectorRecord::records(int index) const { - // @@protoc_insertion_point(field_get:pb.VectorRecord.records) - return records_.Get(index); -} -inline ::pb::VectorRowRecord* VectorRecord::mutable_records(int index) { - // @@protoc_insertion_point(field_mutable:pb.VectorRecord.records) - return records_.Mutable(index); -} -inline ::pb::VectorRowRecord* VectorRecord::add_records() { - // @@protoc_insertion_point(field_add:pb.VectorRecord.records) - return records_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::pb::VectorRowRecord >* -VectorRecord::mutable_records() { - // @@protoc_insertion_point(field_mutable_list:pb.VectorRecord.records) - return &records_; -} -inline const ::google::protobuf::RepeatedPtrField< ::pb::VectorRowRecord >& -VectorRecord::records() const { - // @@protoc_insertion_point(field_list:pb.VectorRecord.records) - return records_; -} - -// ------------------------------------------------------------------- - -// VectorParam - -// optional string json = 1; -inline void VectorParam::clear_json() { - json_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& VectorParam::json() const { - // @@protoc_insertion_point(field_get:pb.VectorParam.json) - return json_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void VectorParam::set_json(const ::std::string& value) { - - json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.VectorParam.json) -} -inline void VectorParam::set_json(const char* value) { - - json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.VectorParam.json) -} -inline void VectorParam::set_json(const char* value, size_t size) { - - json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.VectorParam.json) -} -inline ::std::string* VectorParam::mutable_json() { - - // @@protoc_insertion_point(field_mutable:pb.VectorParam.json) - return json_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* VectorParam::release_json() { - // @@protoc_insertion_point(field_release:pb.VectorParam.json) - - return json_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void VectorParam::set_allocated_json(::std::string* json) { - if (json != NULL) { - - } else { - - } - json_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json); - // @@protoc_insertion_point(field_set_allocated:pb.VectorParam.json) -} - -// optional .pb.VectorRecord row_record = 2; -inline bool VectorParam::has_row_record() const { - return !_is_default_instance_ && row_record_ != NULL; -} -inline void VectorParam::clear_row_record() { - if (GetArenaNoVirtual() == NULL && row_record_ != NULL) delete row_record_; - row_record_ = NULL; -} -inline const ::pb::VectorRecord& VectorParam::row_record() const { - // @@protoc_insertion_point(field_get:pb.VectorParam.row_record) - return row_record_ != NULL ? *row_record_ : *default_instance_->row_record_; -} -inline ::pb::VectorRecord* VectorParam::mutable_row_record() { - - if (row_record_ == NULL) { - row_record_ = new ::pb::VectorRecord; - } - // @@protoc_insertion_point(field_mutable:pb.VectorParam.row_record) - return row_record_; -} -inline ::pb::VectorRecord* VectorParam::release_row_record() { - // @@protoc_insertion_point(field_release:pb.VectorParam.row_record) - - ::pb::VectorRecord* temp = row_record_; - row_record_ = NULL; - return temp; -} -inline void VectorParam::set_allocated_row_record(::pb::VectorRecord* row_record) { - delete row_record_; - row_record_ = row_record; - if (row_record) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pb.VectorParam.row_record) -} - -// ------------------------------------------------------------------- - -// FieldValue - -// optional string field_name = 1; -inline void FieldValue::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& FieldValue::field_name() const { - // @@protoc_insertion_point(field_get:pb.FieldValue.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void FieldValue::set_field_name(const ::std::string& value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.FieldValue.field_name) -} -inline void FieldValue::set_field_name(const char* value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.FieldValue.field_name) -} -inline void FieldValue::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.FieldValue.field_name) -} -inline ::std::string* FieldValue::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:pb.FieldValue.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* FieldValue::release_field_name() { - // @@protoc_insertion_point(field_release:pb.FieldValue.field_name) - - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void FieldValue::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:pb.FieldValue.field_name) -} - -// optional .pb.DataType type = 2; -inline void FieldValue::clear_type() { - type_ = 0; -} -inline ::pb::DataType FieldValue::type() const { - // @@protoc_insertion_point(field_get:pb.FieldValue.type) - return static_cast< ::pb::DataType >(type_); -} -inline void FieldValue::set_type(::pb::DataType value) { - - type_ = value; - // @@protoc_insertion_point(field_set:pb.FieldValue.type) -} - -// optional .pb.AttrRecord attr_record = 3; -inline bool FieldValue::has_attr_record() const { - return !_is_default_instance_ && attr_record_ != NULL; -} -inline void FieldValue::clear_attr_record() { - if (GetArenaNoVirtual() == NULL && attr_record_ != NULL) delete attr_record_; - attr_record_ = NULL; -} -inline const ::pb::AttrRecord& FieldValue::attr_record() const { - // @@protoc_insertion_point(field_get:pb.FieldValue.attr_record) - return attr_record_ != NULL ? *attr_record_ : *default_instance_->attr_record_; -} -inline ::pb::AttrRecord* FieldValue::mutable_attr_record() { - - if (attr_record_ == NULL) { - attr_record_ = new ::pb::AttrRecord; - } - // @@protoc_insertion_point(field_mutable:pb.FieldValue.attr_record) - return attr_record_; -} -inline ::pb::AttrRecord* FieldValue::release_attr_record() { - // @@protoc_insertion_point(field_release:pb.FieldValue.attr_record) - - ::pb::AttrRecord* temp = attr_record_; - attr_record_ = NULL; - return temp; -} -inline void FieldValue::set_allocated_attr_record(::pb::AttrRecord* attr_record) { - delete attr_record_; - attr_record_ = attr_record; - if (attr_record) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pb.FieldValue.attr_record) -} - -// optional .pb.VectorRecord vector_record = 4; -inline bool FieldValue::has_vector_record() const { - return !_is_default_instance_ && vector_record_ != NULL; -} -inline void FieldValue::clear_vector_record() { - if (GetArenaNoVirtual() == NULL && vector_record_ != NULL) delete vector_record_; - vector_record_ = NULL; -} -inline const ::pb::VectorRecord& FieldValue::vector_record() const { - // @@protoc_insertion_point(field_get:pb.FieldValue.vector_record) - return vector_record_ != NULL ? *vector_record_ : *default_instance_->vector_record_; -} -inline ::pb::VectorRecord* FieldValue::mutable_vector_record() { - - if (vector_record_ == NULL) { - vector_record_ = new ::pb::VectorRecord; - } - // @@protoc_insertion_point(field_mutable:pb.FieldValue.vector_record) - return vector_record_; -} -inline ::pb::VectorRecord* FieldValue::release_vector_record() { - // @@protoc_insertion_point(field_release:pb.FieldValue.vector_record) - - ::pb::VectorRecord* temp = vector_record_; - vector_record_ = NULL; - return temp; -} -inline void FieldValue::set_allocated_vector_record(::pb::VectorRecord* vector_record) { - delete vector_record_; - vector_record_ = vector_record; - if (vector_record) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pb.FieldValue.vector_record) -} - -// ------------------------------------------------------------------- - -// Cell - -// optional int32 int32_value = 1; -inline bool Cell::has_int32_value() const { - return value_case() == kInt32Value; -} -inline void Cell::set_has_int32_value() { - _oneof_case_[0] = kInt32Value; -} -inline void Cell::clear_int32_value() { - if (has_int32_value()) { - value_.int32_value_ = 0; - clear_has_value(); - } -} -inline ::google::protobuf::int32 Cell::int32_value() const { - // @@protoc_insertion_point(field_get:pb.Cell.int32_value) - if (has_int32_value()) { - return value_.int32_value_; - } - return 0; -} -inline void Cell::set_int32_value(::google::protobuf::int32 value) { - if (!has_int32_value()) { - clear_value(); - set_has_int32_value(); - } - value_.int32_value_ = value; - // @@protoc_insertion_point(field_set:pb.Cell.int32_value) -} - -// optional int64 int64_value = 2; -inline bool Cell::has_int64_value() const { - return value_case() == kInt64Value; -} -inline void Cell::set_has_int64_value() { - _oneof_case_[0] = kInt64Value; -} -inline void Cell::clear_int64_value() { - if (has_int64_value()) { - value_.int64_value_ = GOOGLE_LONGLONG(0); - clear_has_value(); - } -} -inline ::google::protobuf::int64 Cell::int64_value() const { - // @@protoc_insertion_point(field_get:pb.Cell.int64_value) - if (has_int64_value()) { - return value_.int64_value_; - } - return GOOGLE_LONGLONG(0); -} -inline void Cell::set_int64_value(::google::protobuf::int64 value) { - if (!has_int64_value()) { - clear_value(); - set_has_int64_value(); - } - value_.int64_value_ = value; - // @@protoc_insertion_point(field_set:pb.Cell.int64_value) -} - -// optional float float_value = 3; -inline bool Cell::has_float_value() const { - return value_case() == kFloatValue; -} -inline void Cell::set_has_float_value() { - _oneof_case_[0] = kFloatValue; -} -inline void Cell::clear_float_value() { - if (has_float_value()) { - value_.float_value_ = 0; - clear_has_value(); - } -} -inline float Cell::float_value() const { - // @@protoc_insertion_point(field_get:pb.Cell.float_value) - if (has_float_value()) { - return value_.float_value_; - } - return 0; -} -inline void Cell::set_float_value(float value) { - if (!has_float_value()) { - clear_value(); - set_has_float_value(); - } - value_.float_value_ = value; - // @@protoc_insertion_point(field_set:pb.Cell.float_value) -} - -// optional double double_value = 4; -inline bool Cell::has_double_value() const { - return value_case() == kDoubleValue; -} -inline void Cell::set_has_double_value() { - _oneof_case_[0] = kDoubleValue; -} -inline void Cell::clear_double_value() { - if (has_double_value()) { - value_.double_value_ = 0; - clear_has_value(); - } -} -inline double Cell::double_value() const { - // @@protoc_insertion_point(field_get:pb.Cell.double_value) - if (has_double_value()) { - return value_.double_value_; - } - return 0; -} -inline void Cell::set_double_value(double value) { - if (!has_double_value()) { - clear_value(); - set_has_double_value(); - } - value_.double_value_ = value; - // @@protoc_insertion_point(field_set:pb.Cell.double_value) -} - -// optional .pb.VectorRowRecord vec = 5; -inline bool Cell::has_vec() const { - return value_case() == kVec; -} -inline void Cell::set_has_vec() { - _oneof_case_[0] = kVec; -} -inline void Cell::clear_vec() { - if (has_vec()) { - delete value_.vec_; - clear_has_value(); - } -} -inline const ::pb::VectorRowRecord& Cell::vec() const { - // @@protoc_insertion_point(field_get:pb.Cell.vec) - return has_vec() - ? *value_.vec_ - : ::pb::VectorRowRecord::default_instance(); -} -inline ::pb::VectorRowRecord* Cell::mutable_vec() { - if (!has_vec()) { - clear_value(); - set_has_vec(); - value_.vec_ = new ::pb::VectorRowRecord; - } - // @@protoc_insertion_point(field_mutable:pb.Cell.vec) - return value_.vec_; -} -inline ::pb::VectorRowRecord* Cell::release_vec() { - // @@protoc_insertion_point(field_release:pb.Cell.vec) - if (has_vec()) { - clear_has_value(); - ::pb::VectorRowRecord* temp = value_.vec_; - value_.vec_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void Cell::set_allocated_vec(::pb::VectorRowRecord* vec) { - clear_value(); - if (vec) { - set_has_vec(); - value_.vec_ = vec; - } - // @@protoc_insertion_point(field_set_allocated:pb.Cell.vec) -} - -inline bool Cell::has_value() const { - return value_case() != VALUE_NOT_SET; -} -inline void Cell::clear_has_value() { - _oneof_case_[0] = VALUE_NOT_SET; -} -inline Cell::ValueCase Cell::value_case() const { - return Cell::ValueCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// RowValue - -// repeated .pb.Cell cell = 2; -inline int RowValue::cell_size() const { - return cell_.size(); -} -inline void RowValue::clear_cell() { - cell_.Clear(); -} -inline const ::pb::Cell& RowValue::cell(int index) const { - // @@protoc_insertion_point(field_get:pb.RowValue.cell) - return cell_.Get(index); -} -inline ::pb::Cell* RowValue::mutable_cell(int index) { - // @@protoc_insertion_point(field_mutable:pb.RowValue.cell) - return cell_.Mutable(index); -} -inline ::pb::Cell* RowValue::add_cell() { - // @@protoc_insertion_point(field_add:pb.RowValue.cell) - return cell_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::pb::Cell >* -RowValue::mutable_cell() { - // @@protoc_insertion_point(field_mutable_list:pb.RowValue.cell) - return &cell_; -} -inline const ::google::protobuf::RepeatedPtrField< ::pb::Cell >& -RowValue::cell() const { - // @@protoc_insertion_point(field_list:pb.RowValue.cell) - return cell_; -} - -// ------------------------------------------------------------------- - -// PulsarMessage - -// optional string collection_name = 1; -inline void PulsarMessage::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& PulsarMessage::collection_name() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PulsarMessage::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.PulsarMessage.collection_name) -} -inline void PulsarMessage::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.PulsarMessage.collection_name) -} -inline void PulsarMessage::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.PulsarMessage.collection_name) -} -inline ::std::string* PulsarMessage::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* PulsarMessage::release_collection_name() { - // @@protoc_insertion_point(field_release:pb.PulsarMessage.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PulsarMessage::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:pb.PulsarMessage.collection_name) -} - -// repeated .pb.FieldValue fields = 2; -inline int PulsarMessage::fields_size() const { - return fields_.size(); -} -inline void PulsarMessage::clear_fields() { - fields_.Clear(); -} -inline const ::pb::FieldValue& PulsarMessage::fields(int index) const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.fields) - return fields_.Get(index); -} -inline ::pb::FieldValue* PulsarMessage::mutable_fields(int index) { - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.fields) - return fields_.Mutable(index); -} -inline ::pb::FieldValue* PulsarMessage::add_fields() { - // @@protoc_insertion_point(field_add:pb.PulsarMessage.fields) - return fields_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::pb::FieldValue >* -PulsarMessage::mutable_fields() { - // @@protoc_insertion_point(field_mutable_list:pb.PulsarMessage.fields) - return &fields_; -} -inline const ::google::protobuf::RepeatedPtrField< ::pb::FieldValue >& -PulsarMessage::fields() const { - // @@protoc_insertion_point(field_list:pb.PulsarMessage.fields) - return fields_; -} - -// optional int64 entity_id = 3; -inline void PulsarMessage::clear_entity_id() { - entity_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 PulsarMessage::entity_id() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.entity_id) - return entity_id_; -} -inline void PulsarMessage::set_entity_id(::google::protobuf::int64 value) { - - entity_id_ = value; - // @@protoc_insertion_point(field_set:pb.PulsarMessage.entity_id) -} - -// optional string partition_tag = 4; -inline void PulsarMessage::clear_partition_tag() { - partition_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& PulsarMessage::partition_tag() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.partition_tag) - return partition_tag_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PulsarMessage::set_partition_tag(const ::std::string& value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.PulsarMessage.partition_tag) -} -inline void PulsarMessage::set_partition_tag(const char* value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.PulsarMessage.partition_tag) -} -inline void PulsarMessage::set_partition_tag(const char* value, size_t size) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.PulsarMessage.partition_tag) -} -inline ::std::string* PulsarMessage::mutable_partition_tag() { - - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.partition_tag) - return partition_tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* PulsarMessage::release_partition_tag() { - // @@protoc_insertion_point(field_release:pb.PulsarMessage.partition_tag) - - return partition_tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PulsarMessage::set_allocated_partition_tag(::std::string* partition_tag) { - if (partition_tag != NULL) { - - } else { - - } - partition_tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), partition_tag); - // @@protoc_insertion_point(field_set_allocated:pb.PulsarMessage.partition_tag) -} - -// optional .pb.VectorParam vector_param = 5; -inline bool PulsarMessage::has_vector_param() const { - return !_is_default_instance_ && vector_param_ != NULL; -} -inline void PulsarMessage::clear_vector_param() { - if (GetArenaNoVirtual() == NULL && vector_param_ != NULL) delete vector_param_; - vector_param_ = NULL; -} -inline const ::pb::VectorParam& PulsarMessage::vector_param() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.vector_param) - return vector_param_ != NULL ? *vector_param_ : *default_instance_->vector_param_; -} -inline ::pb::VectorParam* PulsarMessage::mutable_vector_param() { - - if (vector_param_ == NULL) { - vector_param_ = new ::pb::VectorParam; - } - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.vector_param) - return vector_param_; -} -inline ::pb::VectorParam* PulsarMessage::release_vector_param() { - // @@protoc_insertion_point(field_release:pb.PulsarMessage.vector_param) - - ::pb::VectorParam* temp = vector_param_; - vector_param_ = NULL; - return temp; -} -inline void PulsarMessage::set_allocated_vector_param(::pb::VectorParam* vector_param) { - delete vector_param_; - vector_param_ = vector_param; - if (vector_param) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pb.PulsarMessage.vector_param) -} - -// optional .pb.SegmentRecord segments = 6; -inline bool PulsarMessage::has_segments() const { - return !_is_default_instance_ && segments_ != NULL; -} -inline void PulsarMessage::clear_segments() { - if (GetArenaNoVirtual() == NULL && segments_ != NULL) delete segments_; - segments_ = NULL; -} -inline const ::pb::SegmentRecord& PulsarMessage::segments() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.segments) - return segments_ != NULL ? *segments_ : *default_instance_->segments_; -} -inline ::pb::SegmentRecord* PulsarMessage::mutable_segments() { - - if (segments_ == NULL) { - segments_ = new ::pb::SegmentRecord; - } - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.segments) - return segments_; -} -inline ::pb::SegmentRecord* PulsarMessage::release_segments() { - // @@protoc_insertion_point(field_release:pb.PulsarMessage.segments) - - ::pb::SegmentRecord* temp = segments_; - segments_ = NULL; - return temp; -} -inline void PulsarMessage::set_allocated_segments(::pb::SegmentRecord* segments) { - delete segments_; - segments_ = segments; - if (segments) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pb.PulsarMessage.segments) -} - -// optional int64 timestamp = 7; -inline void PulsarMessage::clear_timestamp() { - timestamp_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 PulsarMessage::timestamp() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.timestamp) - return timestamp_; -} -inline void PulsarMessage::set_timestamp(::google::protobuf::int64 value) { - - timestamp_ = value; - // @@protoc_insertion_point(field_set:pb.PulsarMessage.timestamp) -} - -// optional int64 client_id = 8; -inline void PulsarMessage::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 PulsarMessage::client_id() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.client_id) - return client_id_; -} -inline void PulsarMessage::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:pb.PulsarMessage.client_id) -} - -// optional .pb.OpType msg_type = 9; -inline void PulsarMessage::clear_msg_type() { - msg_type_ = 0; -} -inline ::pb::OpType PulsarMessage::msg_type() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.msg_type) - return static_cast< ::pb::OpType >(msg_type_); -} -inline void PulsarMessage::set_msg_type(::pb::OpType value) { - - msg_type_ = value; - // @@protoc_insertion_point(field_set:pb.PulsarMessage.msg_type) -} - -// optional string topic_name = 10; -inline void PulsarMessage::clear_topic_name() { - topic_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& PulsarMessage::topic_name() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.topic_name) - return topic_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PulsarMessage::set_topic_name(const ::std::string& value) { - - topic_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.PulsarMessage.topic_name) -} -inline void PulsarMessage::set_topic_name(const char* value) { - - topic_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.PulsarMessage.topic_name) -} -inline void PulsarMessage::set_topic_name(const char* value, size_t size) { - - topic_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.PulsarMessage.topic_name) -} -inline ::std::string* PulsarMessage::mutable_topic_name() { - - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.topic_name) - return topic_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* PulsarMessage::release_topic_name() { - // @@protoc_insertion_point(field_release:pb.PulsarMessage.topic_name) - - return topic_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PulsarMessage::set_allocated_topic_name(::std::string* topic_name) { - if (topic_name != NULL) { - - } else { - - } - topic_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), topic_name); - // @@protoc_insertion_point(field_set_allocated:pb.PulsarMessage.topic_name) -} - -// optional int64 partition_id = 11; -inline void PulsarMessage::clear_partition_id() { - partition_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 PulsarMessage::partition_id() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.partition_id) - return partition_id_; -} -inline void PulsarMessage::set_partition_id(::google::protobuf::int64 value) { - - partition_id_ = value; - // @@protoc_insertion_point(field_set:pb.PulsarMessage.partition_id) -} - -// ------------------------------------------------------------------- - -// TestData - -// optional string id = 1; -inline void TestData::clear_id() { - id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TestData::id() const { - // @@protoc_insertion_point(field_get:pb.TestData.id) - return id_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TestData::set_id(const ::std::string& value) { - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.TestData.id) -} -inline void TestData::set_id(const char* value) { - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.TestData.id) -} -inline void TestData::set_id(const char* value, size_t size) { - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.TestData.id) -} -inline ::std::string* TestData::mutable_id() { - - // @@protoc_insertion_point(field_mutable:pb.TestData.id) - return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TestData::release_id() { - // @@protoc_insertion_point(field_release:pb.TestData.id) - - return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TestData::set_allocated_id(::std::string* id) { - if (id != NULL) { - - } else { - - } - id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); - // @@protoc_insertion_point(field_set_allocated:pb.TestData.id) -} - -// optional string name = 2; -inline void TestData::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TestData::name() const { - // @@protoc_insertion_point(field_get:pb.TestData.name) - return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TestData::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.TestData.name) -} -inline void TestData::set_name(const char* value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.TestData.name) -} -inline void TestData::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.TestData.name) -} -inline ::std::string* TestData::mutable_name() { - - // @@protoc_insertion_point(field_mutable:pb.TestData.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TestData::release_name() { - // @@protoc_insertion_point(field_release:pb.TestData.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TestData::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:pb.TestData.name) -} - -// ------------------------------------------------------------------- - -// InsertMsg - -// optional int64 client_id = 1; -inline void InsertMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 InsertMsg::client_id() const { - // @@protoc_insertion_point(field_get:pb.InsertMsg.client_id) - return client_id_; -} -inline void InsertMsg::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:pb.InsertMsg.client_id) -} - -// ------------------------------------------------------------------- - -// DeleteMsg - -// optional int64 client_id = 1; -inline void DeleteMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 DeleteMsg::client_id() const { - // @@protoc_insertion_point(field_get:pb.DeleteMsg.client_id) - return client_id_; -} -inline void DeleteMsg::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:pb.DeleteMsg.client_id) -} - -// ------------------------------------------------------------------- - -// SearchMsg - -// optional int64 client_id = 1; -inline void SearchMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 SearchMsg::client_id() const { - // @@protoc_insertion_point(field_get:pb.SearchMsg.client_id) - return client_id_; -} -inline void SearchMsg::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:pb.SearchMsg.client_id) -} - -// ------------------------------------------------------------------- - -// SearchResultMsg - -// optional int64 client_id = 1; -inline void SearchResultMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 SearchResultMsg::client_id() const { - // @@protoc_insertion_point(field_get:pb.SearchResultMsg.client_id) - return client_id_; -} -inline void SearchResultMsg::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:pb.SearchResultMsg.client_id) -} - -#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace pb - -#ifndef SWIG -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::pb::ErrorCode> : ::google::protobuf::internal::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pb::ErrorCode>() { - return ::pb::ErrorCode_descriptor(); -} -template <> struct is_proto_enum< ::pb::DataType> : ::google::protobuf::internal::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pb::DataType>() { - return ::pb::DataType_descriptor(); -} -template <> struct is_proto_enum< ::pb::OpType> : ::google::protobuf::internal::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pb::OpType>() { - return ::pb::OpType_descriptor(); -} - -} // namespace protobuf -} // namespace google -#endif // SWIG - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_pulsar_2eproto__INCLUDED diff --git a/proxy/src/pulsar/message_client/pb/pulsar.proto b/proxy/src/pulsar/message_client/pb/pulsar.proto deleted file mode 100644 index 17dfff0b9c..0000000000 --- a/proxy/src/pulsar/message_client/pb/pulsar.proto +++ /dev/null @@ -1,157 +0,0 @@ - -syntax = "proto3"; - -package pb; - -enum ErrorCode { - 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; -} - -message Status { - ErrorCode error_code = 1; - string reason = 2; -} - -enum DataType { - NONE = 0; - BOOL = 1; - INT8 = 2; - INT16 = 3; - INT32 = 4; - INT64 = 5; - - FLOAT = 10; - DOUBLE = 11; - - STRING = 20; - - VECTOR_BINARY = 100; - VECTOR_FLOAT = 101; -} - -enum OpType { - Insert = 0; - Delete = 1; - Search = 2; - TimeSync = 3; - Key2Seg = 4; - Statistics = 5; -} - -message SegmentRecord { - repeated string seg_info = 1; -} - -message VectorRowRecord { - repeated float float_data = 1; //float vector data - bytes binary_data = 2; //binary vector data -} - -message AttrRecord { - repeated int32 int32_value = 1; - repeated int64 int64_value = 2; - repeated float float_value = 3; - repeated double double_value = 4; -} - -message VectorRecord { - repeated VectorRowRecord records = 1; -} - -message VectorParam { - string json = 1; - VectorRecord row_record = 2; -} - -message FieldValue { - string field_name = 1; - DataType type = 2; - AttrRecord attr_record = 3; - VectorRecord vector_record = 4; -} - -message Cell { - oneof value{ - int32 int32_value = 1; - int64 int64_value = 2; - float float_value = 3; - double double_value = 4; - VectorRowRecord vec = 5; - } -} - -message RowValue{ - repeated Cell cell = 2; -} - -message PulsarMessage { - string collection_name = 1; - repeated FieldValue fields = 2; - int64 entity_id = 3; - string partition_tag = 4; - VectorParam vector_param =5; - SegmentRecord segments = 6; - int64 timestamp = 7; - int64 client_id = 8; - OpType msg_type = 9; - string topic_name = 10; - int64 partition_id = 11; -} - -//message PulsarMessages { -// string collection_name = 1; -// repeated FieldValue fields = 2; -// repeated int64 entity_id = 3; -// string partition_tag = 4; -// repeated VectorParam vector_param =5; -// repeated SegmentRecord segments = 6; -// repeated int64 timestamp = 7; -// repeated int64 client_id = 8; -// OpType msg_type = 9; -// repeated string topic_name = 10; -// repeated int64 partition_id = 11; -//} -message TestData { - string id = 1; - string name = 2; -} - -message InsertMsg { - int64 client_id = 1; -} - -message DeleteMsg { - int64 client_id = 1; -} - -message SearchMsg { - int64 client_id = 1; -} - -message SearchResultMsg { - int64 client_id = 1; -} - diff --git a/proxy/src/pulsar/message_client/pb/suvlim.pb.cc b/proxy/src/pulsar/message_client/pb/suvlim.pb.cc deleted file mode 100644 index 74d7f6e29b..0000000000 --- a/proxy/src/pulsar/message_client/pb/suvlim.pb.cc +++ /dev/null @@ -1,21782 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: suvlim.proto - -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION -#include "suvlim.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) - -namespace suvlim { -namespace grpc { - -namespace { - -const ::google::protobuf::Descriptor* Status_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - Status_reflection_ = NULL; -const ::google::protobuf::Descriptor* KeyValuePair_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - KeyValuePair_reflection_ = NULL; -const ::google::protobuf::Descriptor* CollectionName_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - CollectionName_reflection_ = NULL; -const ::google::protobuf::Descriptor* CollectionNameList_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - CollectionNameList_reflection_ = NULL; -const ::google::protobuf::Descriptor* FieldName_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - FieldName_reflection_ = NULL; -const ::google::protobuf::Descriptor* Mapping_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - Mapping_reflection_ = NULL; -const ::google::protobuf::Descriptor* MappingList_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - MappingList_reflection_ = NULL; -const ::google::protobuf::Descriptor* PartitionParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - PartitionParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* PartitionList_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - PartitionList_reflection_ = NULL; -const ::google::protobuf::Descriptor* VectorRowRecord_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - VectorRowRecord_reflection_ = NULL; -const ::google::protobuf::Descriptor* EntityIds_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - EntityIds_reflection_ = NULL; -const ::google::protobuf::Descriptor* VectorRecord_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - VectorRecord_reflection_ = NULL; -const ::google::protobuf::Descriptor* VectorParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - VectorParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* FieldMeta_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - FieldMeta_reflection_ = NULL; -const ::google::protobuf::Descriptor* Schema_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - Schema_reflection_ = NULL; -const ::google::protobuf::Descriptor* RowData_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - RowData_reflection_ = NULL; -const ::google::protobuf::Descriptor* InsertParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - InsertParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* SearchParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SearchParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* SearchInSegmentParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SearchInSegmentParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* Entities_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - Entities_reflection_ = NULL; -const ::google::protobuf::Descriptor* QueryResult_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - QueryResult_reflection_ = NULL; -const ::google::protobuf::Descriptor* StringReply_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - StringReply_reflection_ = NULL; -const ::google::protobuf::Descriptor* BoolReply_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - BoolReply_reflection_ = NULL; -const ::google::protobuf::Descriptor* CollectionRowCount_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - CollectionRowCount_reflection_ = NULL; -const ::google::protobuf::Descriptor* Command_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - Command_reflection_ = NULL; -const ::google::protobuf::Descriptor* IndexParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - IndexParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* FlushParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - FlushParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* CompactParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - CompactParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* DeleteByIDParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - DeleteByIDParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* CollectionInfo_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - CollectionInfo_reflection_ = NULL; -const ::google::protobuf::Descriptor* GetEntityIDsParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - GetEntityIDsParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* EntityIdentity_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - EntityIdentity_reflection_ = NULL; -const ::google::protobuf::Descriptor* VectorFieldParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - VectorFieldParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* FieldType_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - FieldType_reflection_ = NULL; -struct FieldTypeOneofInstance { - int data_type_; - const ::suvlim::grpc::VectorFieldParam* vector_param_; -}* FieldType_default_oneof_instance_ = NULL; -const ::google::protobuf::Descriptor* FieldParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - FieldParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* VectorFieldRecord_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - VectorFieldRecord_reflection_ = NULL; -const ::google::protobuf::Descriptor* TermQuery_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - TermQuery_reflection_ = NULL; -const ::google::protobuf::Descriptor* CompareExpr_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - CompareExpr_reflection_ = NULL; -const ::google::protobuf::Descriptor* RangeQuery_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - RangeQuery_reflection_ = NULL; -const ::google::protobuf::Descriptor* VectorQuery_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - VectorQuery_reflection_ = NULL; -const ::google::protobuf::Descriptor* BooleanQuery_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - BooleanQuery_reflection_ = NULL; -const ::google::protobuf::Descriptor* GeneralQuery_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - GeneralQuery_reflection_ = NULL; -struct GeneralQueryOneofInstance { - const ::suvlim::grpc::BooleanQuery* boolean_query_; - const ::suvlim::grpc::TermQuery* term_query_; - const ::suvlim::grpc::RangeQuery* range_query_; - const ::suvlim::grpc::VectorQuery* vector_query_; -}* GeneralQuery_default_oneof_instance_ = NULL; -const ::google::protobuf::Descriptor* SearchParamPB_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SearchParamPB_reflection_ = NULL; -const ::google::protobuf::Descriptor* InsertOrDeleteMsg_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - InsertOrDeleteMsg_reflection_ = NULL; -const ::google::protobuf::Descriptor* SearchMsg_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SearchMsg_reflection_ = NULL; -const ::google::protobuf::Descriptor* TimeSyncMsg_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - TimeSyncMsg_reflection_ = NULL; -const ::google::protobuf::Descriptor* SegmentRecord_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SegmentRecord_reflection_ = NULL; -const ::google::protobuf::Descriptor* Key2SegMsg_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - Key2SegMsg_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* ErrorCode_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* DataType_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* CompareOperator_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* Occur_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* OpType_descriptor_ = NULL; - -} // namespace - - -void protobuf_AssignDesc_suvlim_2eproto() GOOGLE_ATTRIBUTE_COLD; -void protobuf_AssignDesc_suvlim_2eproto() { - protobuf_AddDesc_suvlim_2eproto(); - const ::google::protobuf::FileDescriptor* file = - ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( - "suvlim.proto"); - GOOGLE_CHECK(file != NULL); - Status_descriptor_ = file->message_type(0); - static const int Status_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Status, error_code_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Status, reason_), - }; - Status_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - Status_descriptor_, - Status::default_instance_, - Status_offsets_, - -1, - -1, - -1, - sizeof(Status), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Status, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Status, _is_default_instance_)); - KeyValuePair_descriptor_ = file->message_type(1); - static const int KeyValuePair_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyValuePair, key_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyValuePair, value_), - }; - KeyValuePair_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - KeyValuePair_descriptor_, - KeyValuePair::default_instance_, - KeyValuePair_offsets_, - -1, - -1, - -1, - sizeof(KeyValuePair), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyValuePair, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyValuePair, _is_default_instance_)); - CollectionName_descriptor_ = file->message_type(2); - static const int CollectionName_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionName, collection_name_), - }; - CollectionName_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - CollectionName_descriptor_, - CollectionName::default_instance_, - CollectionName_offsets_, - -1, - -1, - -1, - sizeof(CollectionName), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionName, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionName, _is_default_instance_)); - CollectionNameList_descriptor_ = file->message_type(3); - static const int CollectionNameList_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionNameList, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionNameList, collection_names_), - }; - CollectionNameList_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - CollectionNameList_descriptor_, - CollectionNameList::default_instance_, - CollectionNameList_offsets_, - -1, - -1, - -1, - sizeof(CollectionNameList), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionNameList, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionNameList, _is_default_instance_)); - FieldName_descriptor_ = file->message_type(4); - static const int FieldName_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldName, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldName, field_name_), - }; - FieldName_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - FieldName_descriptor_, - FieldName::default_instance_, - FieldName_offsets_, - -1, - -1, - -1, - sizeof(FieldName), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldName, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldName, _is_default_instance_)); - Mapping_descriptor_ = file->message_type(5); - static const int Mapping_offsets_[4] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mapping, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mapping, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mapping, fields_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mapping, extra_params_), - }; - Mapping_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - Mapping_descriptor_, - Mapping::default_instance_, - Mapping_offsets_, - -1, - -1, - -1, - sizeof(Mapping), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mapping, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mapping, _is_default_instance_)); - MappingList_descriptor_ = file->message_type(6); - static const int MappingList_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MappingList, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MappingList, mapping_list_), - }; - MappingList_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - MappingList_descriptor_, - MappingList::default_instance_, - MappingList_offsets_, - -1, - -1, - -1, - sizeof(MappingList), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MappingList, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MappingList, _is_default_instance_)); - PartitionParam_descriptor_ = file->message_type(7); - static const int PartitionParam_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PartitionParam, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PartitionParam, tag_), - }; - PartitionParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - PartitionParam_descriptor_, - PartitionParam::default_instance_, - PartitionParam_offsets_, - -1, - -1, - -1, - sizeof(PartitionParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PartitionParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PartitionParam, _is_default_instance_)); - PartitionList_descriptor_ = file->message_type(8); - static const int PartitionList_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PartitionList, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PartitionList, partition_tag_array_), - }; - PartitionList_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - PartitionList_descriptor_, - PartitionList::default_instance_, - PartitionList_offsets_, - -1, - -1, - -1, - sizeof(PartitionList), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PartitionList, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PartitionList, _is_default_instance_)); - VectorRowRecord_descriptor_ = file->message_type(9); - static const int VectorRowRecord_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRowRecord, float_data_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRowRecord, binary_data_), - }; - VectorRowRecord_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - VectorRowRecord_descriptor_, - VectorRowRecord::default_instance_, - VectorRowRecord_offsets_, - -1, - -1, - -1, - sizeof(VectorRowRecord), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRowRecord, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRowRecord, _is_default_instance_)); - EntityIds_descriptor_ = file->message_type(10); - static const int EntityIds_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EntityIds, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EntityIds, entity_id_array_), - }; - EntityIds_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - EntityIds_descriptor_, - EntityIds::default_instance_, - EntityIds_offsets_, - -1, - -1, - -1, - sizeof(EntityIds), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EntityIds, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EntityIds, _is_default_instance_)); - VectorRecord_descriptor_ = file->message_type(11); - static const int VectorRecord_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRecord, records_), - }; - VectorRecord_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - VectorRecord_descriptor_, - VectorRecord::default_instance_, - VectorRecord_offsets_, - -1, - -1, - -1, - sizeof(VectorRecord), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRecord, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRecord, _is_default_instance_)); - VectorParam_descriptor_ = file->message_type(12); - static const int VectorParam_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorParam, json_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorParam, row_record_), - }; - VectorParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - VectorParam_descriptor_, - VectorParam::default_instance_, - VectorParam_offsets_, - -1, - -1, - -1, - sizeof(VectorParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorParam, _is_default_instance_)); - FieldMeta_descriptor_ = file->message_type(13); - static const int FieldMeta_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, field_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, dim_), - }; - FieldMeta_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - FieldMeta_descriptor_, - FieldMeta::default_instance_, - FieldMeta_offsets_, - -1, - -1, - -1, - sizeof(FieldMeta), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, _is_default_instance_)); - Schema_descriptor_ = file->message_type(14); - static const int Schema_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema, field_metas_), - }; - Schema_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - Schema_descriptor_, - Schema::default_instance_, - Schema_offsets_, - -1, - -1, - -1, - sizeof(Schema), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema, _is_default_instance_)); - RowData_descriptor_ = file->message_type(15); - static const int RowData_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RowData, blob_), - }; - RowData_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - RowData_descriptor_, - RowData::default_instance_, - RowData_offsets_, - -1, - -1, - -1, - sizeof(RowData), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RowData, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RowData, _is_default_instance_)); - InsertParam_descriptor_ = file->message_type(16); - static const int InsertParam_offsets_[6] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertParam, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertParam, schema_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertParam, rows_data_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertParam, entity_id_array_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertParam, partition_tag_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertParam, extra_params_), - }; - InsertParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - InsertParam_descriptor_, - InsertParam::default_instance_, - InsertParam_offsets_, - -1, - -1, - -1, - sizeof(InsertParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertParam, _is_default_instance_)); - SearchParam_descriptor_ = file->message_type(17); - static const int SearchParam_offsets_[5] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParam, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParam, vector_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParam, dsl_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParam, partition_tag_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParam, extra_params_), - }; - SearchParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - SearchParam_descriptor_, - SearchParam::default_instance_, - SearchParam_offsets_, - -1, - -1, - -1, - sizeof(SearchParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParam, _is_default_instance_)); - SearchInSegmentParam_descriptor_ = file->message_type(18); - static const int SearchInSegmentParam_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchInSegmentParam, file_id_array_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchInSegmentParam, search_param_), - }; - SearchInSegmentParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - SearchInSegmentParam_descriptor_, - SearchInSegmentParam::default_instance_, - SearchInSegmentParam_offsets_, - -1, - -1, - -1, - sizeof(SearchInSegmentParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchInSegmentParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchInSegmentParam, _is_default_instance_)); - Entities_descriptor_ = file->message_type(19); - static const int Entities_offsets_[4] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entities, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entities, ids_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entities, valid_row_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entities, rows_data_), - }; - Entities_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - Entities_descriptor_, - Entities::default_instance_, - Entities_offsets_, - -1, - -1, - -1, - sizeof(Entities), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entities, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entities, _is_default_instance_)); - QueryResult_descriptor_ = file->message_type(20); - static const int QueryResult_offsets_[6] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryResult, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryResult, entities_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryResult, row_num_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryResult, scores_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryResult, distances_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryResult, extra_params_), - }; - QueryResult_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - QueryResult_descriptor_, - QueryResult::default_instance_, - QueryResult_offsets_, - -1, - -1, - -1, - sizeof(QueryResult), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryResult, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryResult, _is_default_instance_)); - StringReply_descriptor_ = file->message_type(21); - static const int StringReply_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StringReply, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StringReply, string_reply_), - }; - StringReply_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - StringReply_descriptor_, - StringReply::default_instance_, - StringReply_offsets_, - -1, - -1, - -1, - sizeof(StringReply), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StringReply, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StringReply, _is_default_instance_)); - BoolReply_descriptor_ = file->message_type(22); - static const int BoolReply_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BoolReply, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BoolReply, bool_reply_), - }; - BoolReply_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - BoolReply_descriptor_, - BoolReply::default_instance_, - BoolReply_offsets_, - -1, - -1, - -1, - sizeof(BoolReply), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BoolReply, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BoolReply, _is_default_instance_)); - CollectionRowCount_descriptor_ = file->message_type(23); - static const int CollectionRowCount_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRowCount, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRowCount, collection_row_count_), - }; - CollectionRowCount_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - CollectionRowCount_descriptor_, - CollectionRowCount::default_instance_, - CollectionRowCount_offsets_, - -1, - -1, - -1, - sizeof(CollectionRowCount), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRowCount, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRowCount, _is_default_instance_)); - Command_descriptor_ = file->message_type(24); - static const int Command_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Command, cmd_), - }; - Command_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - Command_descriptor_, - Command::default_instance_, - Command_offsets_, - -1, - -1, - -1, - sizeof(Command), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Command, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Command, _is_default_instance_)); - IndexParam_descriptor_ = file->message_type(25); - static const int IndexParam_offsets_[5] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IndexParam, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IndexParam, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IndexParam, field_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IndexParam, index_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IndexParam, extra_params_), - }; - IndexParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - IndexParam_descriptor_, - IndexParam::default_instance_, - IndexParam_offsets_, - -1, - -1, - -1, - sizeof(IndexParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IndexParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IndexParam, _is_default_instance_)); - FlushParam_descriptor_ = file->message_type(26); - static const int FlushParam_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushParam, collection_name_array_), - }; - FlushParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - FlushParam_descriptor_, - FlushParam::default_instance_, - FlushParam_offsets_, - -1, - -1, - -1, - sizeof(FlushParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushParam, _is_default_instance_)); - CompactParam_descriptor_ = file->message_type(27); - static const int CompactParam_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompactParam, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompactParam, threshold_), - }; - CompactParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - CompactParam_descriptor_, - CompactParam::default_instance_, - CompactParam_offsets_, - -1, - -1, - -1, - sizeof(CompactParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompactParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompactParam, _is_default_instance_)); - DeleteByIDParam_descriptor_ = file->message_type(28); - static const int DeleteByIDParam_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteByIDParam, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteByIDParam, id_array_), - }; - DeleteByIDParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - DeleteByIDParam_descriptor_, - DeleteByIDParam::default_instance_, - DeleteByIDParam_offsets_, - -1, - -1, - -1, - sizeof(DeleteByIDParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteByIDParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteByIDParam, _is_default_instance_)); - CollectionInfo_descriptor_ = file->message_type(29); - static const int CollectionInfo_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionInfo, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionInfo, json_info_), - }; - CollectionInfo_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - CollectionInfo_descriptor_, - CollectionInfo::default_instance_, - CollectionInfo_offsets_, - -1, - -1, - -1, - sizeof(CollectionInfo), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionInfo, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionInfo, _is_default_instance_)); - GetEntityIDsParam_descriptor_ = file->message_type(30); - static const int GetEntityIDsParam_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetEntityIDsParam, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetEntityIDsParam, segment_id_), - }; - GetEntityIDsParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - GetEntityIDsParam_descriptor_, - GetEntityIDsParam::default_instance_, - GetEntityIDsParam_offsets_, - -1, - -1, - -1, - sizeof(GetEntityIDsParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetEntityIDsParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetEntityIDsParam, _is_default_instance_)); - EntityIdentity_descriptor_ = file->message_type(31); - static const int EntityIdentity_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EntityIdentity, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EntityIdentity, id_array_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EntityIdentity, field_names_), - }; - EntityIdentity_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - EntityIdentity_descriptor_, - EntityIdentity::default_instance_, - EntityIdentity_offsets_, - -1, - -1, - -1, - sizeof(EntityIdentity), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EntityIdentity, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EntityIdentity, _is_default_instance_)); - VectorFieldParam_descriptor_ = file->message_type(32); - static const int VectorFieldParam_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorFieldParam, dimension_), - }; - VectorFieldParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - VectorFieldParam_descriptor_, - VectorFieldParam::default_instance_, - VectorFieldParam_offsets_, - -1, - -1, - -1, - sizeof(VectorFieldParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorFieldParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorFieldParam, _is_default_instance_)); - FieldType_descriptor_ = file->message_type(33); - static const int FieldType_offsets_[3] = { - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(FieldType_default_oneof_instance_, data_type_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(FieldType_default_oneof_instance_, vector_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldType, value_), - }; - FieldType_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - FieldType_descriptor_, - FieldType::default_instance_, - FieldType_offsets_, - -1, - -1, - -1, - FieldType_default_oneof_instance_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldType, _oneof_case_[0]), - sizeof(FieldType), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldType, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldType, _is_default_instance_)); - FieldParam_descriptor_ = file->message_type(34); - static const int FieldParam_offsets_[5] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldParam, id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldParam, name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldParam, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldParam, index_params_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldParam, extra_params_), - }; - FieldParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - FieldParam_descriptor_, - FieldParam::default_instance_, - FieldParam_offsets_, - -1, - -1, - -1, - sizeof(FieldParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldParam, _is_default_instance_)); - VectorFieldRecord_descriptor_ = file->message_type(35); - static const int VectorFieldRecord_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorFieldRecord, value_), - }; - VectorFieldRecord_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - VectorFieldRecord_descriptor_, - VectorFieldRecord::default_instance_, - VectorFieldRecord_offsets_, - -1, - -1, - -1, - sizeof(VectorFieldRecord), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorFieldRecord, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorFieldRecord, _is_default_instance_)); - TermQuery_descriptor_ = file->message_type(36); - static const int TermQuery_offsets_[6] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TermQuery, field_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TermQuery, int_value_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TermQuery, double_value_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TermQuery, value_num_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TermQuery, boost_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TermQuery, extra_params_), - }; - TermQuery_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - TermQuery_descriptor_, - TermQuery::default_instance_, - TermQuery_offsets_, - -1, - -1, - -1, - sizeof(TermQuery), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TermQuery, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TermQuery, _is_default_instance_)); - CompareExpr_descriptor_ = file->message_type(37); - static const int CompareExpr_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompareExpr, operator__), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompareExpr, operand_), - }; - CompareExpr_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - CompareExpr_descriptor_, - CompareExpr::default_instance_, - CompareExpr_offsets_, - -1, - -1, - -1, - sizeof(CompareExpr), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompareExpr, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompareExpr, _is_default_instance_)); - RangeQuery_descriptor_ = file->message_type(38); - static const int RangeQuery_offsets_[4] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RangeQuery, field_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RangeQuery, operand_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RangeQuery, boost_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RangeQuery, extra_params_), - }; - RangeQuery_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - RangeQuery_descriptor_, - RangeQuery::default_instance_, - RangeQuery_offsets_, - -1, - -1, - -1, - sizeof(RangeQuery), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RangeQuery, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RangeQuery, _is_default_instance_)); - VectorQuery_descriptor_ = file->message_type(39); - static const int VectorQuery_offsets_[5] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorQuery, field_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorQuery, query_boost_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorQuery, records_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorQuery, topk_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorQuery, extra_params_), - }; - VectorQuery_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - VectorQuery_descriptor_, - VectorQuery::default_instance_, - VectorQuery_offsets_, - -1, - -1, - -1, - sizeof(VectorQuery), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorQuery, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorQuery, _is_default_instance_)); - BooleanQuery_descriptor_ = file->message_type(40); - static const int BooleanQuery_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BooleanQuery, occur_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BooleanQuery, general_query_), - }; - BooleanQuery_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - BooleanQuery_descriptor_, - BooleanQuery::default_instance_, - BooleanQuery_offsets_, - -1, - -1, - -1, - sizeof(BooleanQuery), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BooleanQuery, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BooleanQuery, _is_default_instance_)); - GeneralQuery_descriptor_ = file->message_type(41); - static const int GeneralQuery_offsets_[5] = { - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(GeneralQuery_default_oneof_instance_, boolean_query_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(GeneralQuery_default_oneof_instance_, term_query_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(GeneralQuery_default_oneof_instance_, range_query_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(GeneralQuery_default_oneof_instance_, vector_query_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneralQuery, query_), - }; - GeneralQuery_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - GeneralQuery_descriptor_, - GeneralQuery::default_instance_, - GeneralQuery_offsets_, - -1, - -1, - -1, - GeneralQuery_default_oneof_instance_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneralQuery, _oneof_case_[0]), - sizeof(GeneralQuery), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneralQuery, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneralQuery, _is_default_instance_)); - SearchParamPB_descriptor_ = file->message_type(42); - static const int SearchParamPB_offsets_[4] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParamPB, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParamPB, partition_tag_array_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParamPB, general_query_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParamPB, extra_params_), - }; - SearchParamPB_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - SearchParamPB_descriptor_, - SearchParamPB::default_instance_, - SearchParamPB_offsets_, - -1, - -1, - -1, - sizeof(SearchParamPB), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParamPB, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchParamPB, _is_default_instance_)); - InsertOrDeleteMsg_descriptor_ = file->message_type(43); - static const int InsertOrDeleteMsg_offsets_[10] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertOrDeleteMsg, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertOrDeleteMsg, rows_data_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertOrDeleteMsg, uid_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertOrDeleteMsg, partition_tag_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertOrDeleteMsg, timestamp_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertOrDeleteMsg, segment_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertOrDeleteMsg, channel_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertOrDeleteMsg, op_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertOrDeleteMsg, client_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertOrDeleteMsg, extra_params_), - }; - InsertOrDeleteMsg_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - InsertOrDeleteMsg_descriptor_, - InsertOrDeleteMsg::default_instance_, - InsertOrDeleteMsg_offsets_, - -1, - -1, - -1, - sizeof(InsertOrDeleteMsg), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertOrDeleteMsg, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertOrDeleteMsg, _is_default_instance_)); - SearchMsg_descriptor_ = file->message_type(44); - static const int SearchMsg_offsets_[7] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchMsg, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchMsg, records_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchMsg, partition_tag_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchMsg, uid_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchMsg, timestamp_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchMsg, client_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchMsg, extra_params_), - }; - SearchMsg_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - SearchMsg_descriptor_, - SearchMsg::default_instance_, - SearchMsg_offsets_, - -1, - -1, - -1, - sizeof(SearchMsg), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchMsg, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchMsg, _is_default_instance_)); - TimeSyncMsg_descriptor_ = file->message_type(45); - static const int TimeSyncMsg_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimeSyncMsg, clientid_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimeSyncMsg, timestamp_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimeSyncMsg, msgtype_), - }; - TimeSyncMsg_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - TimeSyncMsg_descriptor_, - TimeSyncMsg::default_instance_, - TimeSyncMsg_offsets_, - -1, - -1, - -1, - sizeof(TimeSyncMsg), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimeSyncMsg, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimeSyncMsg, _is_default_instance_)); - SegmentRecord_descriptor_ = file->message_type(46); - static const int SegmentRecord_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SegmentRecord, uid_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SegmentRecord, segment_id_), - }; - SegmentRecord_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - SegmentRecord_descriptor_, - SegmentRecord::default_instance_, - SegmentRecord_offsets_, - -1, - -1, - -1, - sizeof(SegmentRecord), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SegmentRecord, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SegmentRecord, _is_default_instance_)); - Key2SegMsg_descriptor_ = file->message_type(47); - static const int Key2SegMsg_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Key2SegMsg, client_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Key2SegMsg, records_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Key2SegMsg, msg_type_), - }; - Key2SegMsg_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - Key2SegMsg_descriptor_, - Key2SegMsg::default_instance_, - Key2SegMsg_offsets_, - -1, - -1, - -1, - sizeof(Key2SegMsg), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Key2SegMsg, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Key2SegMsg, _is_default_instance_)); - ErrorCode_descriptor_ = file->enum_type(0); - DataType_descriptor_ = file->enum_type(1); - CompareOperator_descriptor_ = file->enum_type(2); - Occur_descriptor_ = file->enum_type(3); - OpType_descriptor_ = file->enum_type(4); -} - -namespace { - -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); -inline void protobuf_AssignDescriptorsOnce() { - ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, - &protobuf_AssignDesc_suvlim_2eproto); -} - -void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; -void protobuf_RegisterTypes(const ::std::string&) { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - Status_descriptor_, &Status::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - KeyValuePair_descriptor_, &KeyValuePair::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - CollectionName_descriptor_, &CollectionName::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - CollectionNameList_descriptor_, &CollectionNameList::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - FieldName_descriptor_, &FieldName::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - Mapping_descriptor_, &Mapping::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - MappingList_descriptor_, &MappingList::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - PartitionParam_descriptor_, &PartitionParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - PartitionList_descriptor_, &PartitionList::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - VectorRowRecord_descriptor_, &VectorRowRecord::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - EntityIds_descriptor_, &EntityIds::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - VectorRecord_descriptor_, &VectorRecord::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - VectorParam_descriptor_, &VectorParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - FieldMeta_descriptor_, &FieldMeta::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - Schema_descriptor_, &Schema::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - RowData_descriptor_, &RowData::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - InsertParam_descriptor_, &InsertParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SearchParam_descriptor_, &SearchParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SearchInSegmentParam_descriptor_, &SearchInSegmentParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - Entities_descriptor_, &Entities::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - QueryResult_descriptor_, &QueryResult::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - StringReply_descriptor_, &StringReply::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - BoolReply_descriptor_, &BoolReply::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - CollectionRowCount_descriptor_, &CollectionRowCount::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - Command_descriptor_, &Command::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - IndexParam_descriptor_, &IndexParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - FlushParam_descriptor_, &FlushParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - CompactParam_descriptor_, &CompactParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - DeleteByIDParam_descriptor_, &DeleteByIDParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - CollectionInfo_descriptor_, &CollectionInfo::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - GetEntityIDsParam_descriptor_, &GetEntityIDsParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - EntityIdentity_descriptor_, &EntityIdentity::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - VectorFieldParam_descriptor_, &VectorFieldParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - FieldType_descriptor_, &FieldType::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - FieldParam_descriptor_, &FieldParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - VectorFieldRecord_descriptor_, &VectorFieldRecord::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - TermQuery_descriptor_, &TermQuery::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - CompareExpr_descriptor_, &CompareExpr::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - RangeQuery_descriptor_, &RangeQuery::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - VectorQuery_descriptor_, &VectorQuery::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - BooleanQuery_descriptor_, &BooleanQuery::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - GeneralQuery_descriptor_, &GeneralQuery::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SearchParamPB_descriptor_, &SearchParamPB::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - InsertOrDeleteMsg_descriptor_, &InsertOrDeleteMsg::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SearchMsg_descriptor_, &SearchMsg::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - TimeSyncMsg_descriptor_, &TimeSyncMsg::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SegmentRecord_descriptor_, &SegmentRecord::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - Key2SegMsg_descriptor_, &Key2SegMsg::default_instance()); -} - -} // namespace - -void protobuf_ShutdownFile_suvlim_2eproto() { - delete Status::default_instance_; - delete Status_reflection_; - delete KeyValuePair::default_instance_; - delete KeyValuePair_reflection_; - delete CollectionName::default_instance_; - delete CollectionName_reflection_; - delete CollectionNameList::default_instance_; - delete CollectionNameList_reflection_; - delete FieldName::default_instance_; - delete FieldName_reflection_; - delete Mapping::default_instance_; - delete Mapping_reflection_; - delete MappingList::default_instance_; - delete MappingList_reflection_; - delete PartitionParam::default_instance_; - delete PartitionParam_reflection_; - delete PartitionList::default_instance_; - delete PartitionList_reflection_; - delete VectorRowRecord::default_instance_; - delete VectorRowRecord_reflection_; - delete EntityIds::default_instance_; - delete EntityIds_reflection_; - delete VectorRecord::default_instance_; - delete VectorRecord_reflection_; - delete VectorParam::default_instance_; - delete VectorParam_reflection_; - delete FieldMeta::default_instance_; - delete FieldMeta_reflection_; - delete Schema::default_instance_; - delete Schema_reflection_; - delete RowData::default_instance_; - delete RowData_reflection_; - delete InsertParam::default_instance_; - delete InsertParam_reflection_; - delete SearchParam::default_instance_; - delete SearchParam_reflection_; - delete SearchInSegmentParam::default_instance_; - delete SearchInSegmentParam_reflection_; - delete Entities::default_instance_; - delete Entities_reflection_; - delete QueryResult::default_instance_; - delete QueryResult_reflection_; - delete StringReply::default_instance_; - delete StringReply_reflection_; - delete BoolReply::default_instance_; - delete BoolReply_reflection_; - delete CollectionRowCount::default_instance_; - delete CollectionRowCount_reflection_; - delete Command::default_instance_; - delete Command_reflection_; - delete IndexParam::default_instance_; - delete IndexParam_reflection_; - delete FlushParam::default_instance_; - delete FlushParam_reflection_; - delete CompactParam::default_instance_; - delete CompactParam_reflection_; - delete DeleteByIDParam::default_instance_; - delete DeleteByIDParam_reflection_; - delete CollectionInfo::default_instance_; - delete CollectionInfo_reflection_; - delete GetEntityIDsParam::default_instance_; - delete GetEntityIDsParam_reflection_; - delete EntityIdentity::default_instance_; - delete EntityIdentity_reflection_; - delete VectorFieldParam::default_instance_; - delete VectorFieldParam_reflection_; - delete FieldType::default_instance_; - delete FieldType_default_oneof_instance_; - delete FieldType_reflection_; - delete FieldParam::default_instance_; - delete FieldParam_reflection_; - delete VectorFieldRecord::default_instance_; - delete VectorFieldRecord_reflection_; - delete TermQuery::default_instance_; - delete TermQuery_reflection_; - delete CompareExpr::default_instance_; - delete CompareExpr_reflection_; - delete RangeQuery::default_instance_; - delete RangeQuery_reflection_; - delete VectorQuery::default_instance_; - delete VectorQuery_reflection_; - delete BooleanQuery::default_instance_; - delete BooleanQuery_reflection_; - delete GeneralQuery::default_instance_; - delete GeneralQuery_default_oneof_instance_; - delete GeneralQuery_reflection_; - delete SearchParamPB::default_instance_; - delete SearchParamPB_reflection_; - delete InsertOrDeleteMsg::default_instance_; - delete InsertOrDeleteMsg_reflection_; - delete SearchMsg::default_instance_; - delete SearchMsg_reflection_; - delete TimeSyncMsg::default_instance_; - delete TimeSyncMsg_reflection_; - delete SegmentRecord::default_instance_; - delete SegmentRecord_reflection_; - delete Key2SegMsg::default_instance_; - delete Key2SegMsg_reflection_; -} - -void protobuf_AddDesc_suvlim_2eproto() GOOGLE_ATTRIBUTE_COLD; -void protobuf_AddDesc_suvlim_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; - GOOGLE_PROTOBUF_VERIFY_VERSION; - - ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\014suvlim.proto\022\013suvlim.grpc\"D\n\006Status\022*\n" - "\nerror_code\030\001 \001(\0162\026.suvlim.grpc.ErrorCod" - "e\022\016\n\006reason\030\002 \001(\t\"*\n\014KeyValuePair\022\013\n\003key" - "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\")\n\016CollectionName\022" - "\027\n\017collection_name\030\001 \001(\t\"S\n\022CollectionNa" - "meList\022#\n\006status\030\001 \001(\0132\023.suvlim.grpc.Sta" - "tus\022\030\n\020collection_names\030\002 \003(\t\"8\n\tFieldNa" - "me\022\027\n\017collection_name\030\001 \001(\t\022\022\n\nfield_nam" - "e\030\002 \001(\t\"\241\001\n\007Mapping\022#\n\006status\030\001 \001(\0132\023.su" - "vlim.grpc.Status\022\027\n\017collection_name\030\002 \001(" - "\t\022\'\n\006fields\030\003 \003(\0132\027.suvlim.grpc.FieldPar" - "am\022/\n\014extra_params\030\004 \003(\0132\031.suvlim.grpc.K" - "eyValuePair\"^\n\013MappingList\022#\n\006status\030\001 \001" - "(\0132\023.suvlim.grpc.Status\022*\n\014mapping_list\030" - "\002 \003(\0132\024.suvlim.grpc.Mapping\"6\n\016Partition" - "Param\022\027\n\017collection_name\030\001 \001(\t\022\013\n\003tag\030\002 " - "\001(\t\"Q\n\rPartitionList\022#\n\006status\030\001 \001(\0132\023.s" - "uvlim.grpc.Status\022\033\n\023partition_tag_array" - "\030\002 \003(\t\":\n\017VectorRowRecord\022\022\n\nfloat_data\030" - "\001 \003(\002\022\023\n\013binary_data\030\002 \001(\014\"I\n\tEntityIds\022" - "#\n\006status\030\001 \001(\0132\023.suvlim.grpc.Status\022\027\n\017" - "entity_id_array\030\002 \003(\003\"=\n\014VectorRecord\022-\n" - "\007records\030\001 \003(\0132\034.suvlim.grpc.VectorRowRe" - "cord\"J\n\013VectorParam\022\014\n\004json\030\001 \001(\t\022-\n\nrow" - "_record\030\002 \001(\0132\031.suvlim.grpc.VectorRecord" - "\"Q\n\tFieldMeta\022\022\n\nfield_name\030\001 \001(\t\022#\n\004typ" - "e\030\002 \001(\0162\025.suvlim.grpc.DataType\022\013\n\003dim\030\003 " - "\001(\003\"5\n\006Schema\022+\n\013field_metas\030\001 \003(\0132\026.suv" - "lim.grpc.FieldMeta\"\027\n\007RowData\022\014\n\004blob\030\001 " - "\001(\014\"\325\001\n\013InsertParam\022\027\n\017collection_name\030\001" - " \001(\t\022#\n\006schema\030\002 \001(\0132\023.suvlim.grpc.Schem" - "a\022\'\n\trows_data\030\003 \003(\0132\024.suvlim.grpc.RowDa" - "ta\022\027\n\017entity_id_array\030\004 \003(\003\022\025\n\rpartition" - "_tag\030\005 \001(\t\022/\n\014extra_params\030\006 \003(\0132\031.suvli" - "m.grpc.KeyValuePair\"\253\001\n\013SearchParam\022\027\n\017c" - "ollection_name\030\001 \001(\t\022.\n\014vector_param\030\002 \003" - "(\0132\030.suvlim.grpc.VectorParam\022\013\n\003dsl\030\003 \001(" - "\t\022\025\n\rpartition_tag\030\004 \003(\t\022/\n\014extra_params" - "\030\005 \003(\0132\031.suvlim.grpc.KeyValuePair\"]\n\024Sea" - "rchInSegmentParam\022\025\n\rfile_id_array\030\001 \003(\t" - "\022.\n\014search_param\030\002 \001(\0132\030.suvlim.grpc.Sea" - "rchParam\"x\n\010Entities\022#\n\006status\030\001 \001(\0132\023.s" - "uvlim.grpc.Status\022\013\n\003ids\030\002 \003(\003\022\021\n\tvalid_" - "row\030\003 \003(\010\022\'\n\trows_data\030\004 \003(\0132\024.suvlim.gr" - "pc.RowData\"\300\001\n\013QueryResult\022#\n\006status\030\001 \001" - "(\0132\023.suvlim.grpc.Status\022\'\n\010entities\030\002 \001(" - "\0132\025.suvlim.grpc.Entities\022\017\n\007row_num\030\003 \001(" - "\003\022\016\n\006scores\030\004 \003(\002\022\021\n\tdistances\030\005 \003(\002\022/\n\014" - "extra_params\030\006 \003(\0132\031.suvlim.grpc.KeyValu" - "ePair\"H\n\013StringReply\022#\n\006status\030\001 \001(\0132\023.s" - "uvlim.grpc.Status\022\024\n\014string_reply\030\002 \001(\t\"" - "D\n\tBoolReply\022#\n\006status\030\001 \001(\0132\023.suvlim.gr" - "pc.Status\022\022\n\nbool_reply\030\002 \001(\010\"W\n\022Collect" - "ionRowCount\022#\n\006status\030\001 \001(\0132\023.suvlim.grp" - "c.Status\022\034\n\024collection_row_count\030\002 \001(\003\"\026" - "\n\007Command\022\013\n\003cmd\030\001 \001(\t\"\243\001\n\nIndexParam\022#\n" - "\006status\030\001 \001(\0132\023.suvlim.grpc.Status\022\027\n\017co" - "llection_name\030\002 \001(\t\022\022\n\nfield_name\030\003 \001(\t\022" - "\022\n\nindex_name\030\004 \001(\t\022/\n\014extra_params\030\005 \003(" - "\0132\031.suvlim.grpc.KeyValuePair\"+\n\nFlushPar" - "am\022\035\n\025collection_name_array\030\001 \003(\t\":\n\014Com" - "pactParam\022\027\n\017collection_name\030\001 \001(\t\022\021\n\tth" - "reshold\030\002 \001(\001\"<\n\017DeleteByIDParam\022\027\n\017coll" - "ection_name\030\001 \001(\t\022\020\n\010id_array\030\002 \003(\003\"H\n\016C" - "ollectionInfo\022#\n\006status\030\001 \001(\0132\023.suvlim.g" - "rpc.Status\022\021\n\tjson_info\030\002 \001(\t\"@\n\021GetEnti" - "tyIDsParam\022\027\n\017collection_name\030\001 \001(\t\022\022\n\ns" - "egment_id\030\002 \001(\003\"P\n\016EntityIdentity\022\027\n\017col" - "lection_name\030\001 \001(\t\022\020\n\010id_array\030\002 \003(\003\022\023\n\013" - "field_names\030\003 \003(\t\"%\n\020VectorFieldParam\022\021\n" - "\tdimension\030\001 \001(\003\"w\n\tFieldType\022*\n\tdata_ty" - "pe\030\001 \001(\0162\025.suvlim.grpc.DataTypeH\000\0225\n\014vec" - "tor_param\030\002 \001(\0132\035.suvlim.grpc.VectorFiel" - "dParamH\000B\007\n\005value\"\255\001\n\nFieldParam\022\n\n\002id\030\001" - " \001(\004\022\014\n\004name\030\002 \001(\t\022#\n\004type\030\003 \001(\0162\025.suvli" - "m.grpc.DataType\022/\n\014index_params\030\004 \003(\0132\031." - "suvlim.grpc.KeyValuePair\022/\n\014extra_params" - "\030\005 \003(\0132\031.suvlim.grpc.KeyValuePair\"@\n\021Vec" - "torFieldRecord\022+\n\005value\030\001 \003(\0132\034.suvlim.g" - "rpc.VectorRowRecord\"\233\001\n\tTermQuery\022\022\n\nfie" - "ld_name\030\001 \001(\t\022\021\n\tint_value\030\002 \003(\003\022\024\n\014doub" - "le_value\030\003 \003(\001\022\021\n\tvalue_num\030\004 \001(\003\022\r\n\005boo" - "st\030\005 \001(\002\022/\n\014extra_params\030\006 \003(\0132\031.suvlim." - "grpc.KeyValuePair\"N\n\013CompareExpr\022.\n\010oper" - "ator\030\001 \001(\0162\034.suvlim.grpc.CompareOperator" - "\022\017\n\007operand\030\002 \001(\t\"\213\001\n\nRangeQuery\022\022\n\nfiel" - "d_name\030\001 \001(\t\022)\n\007operand\030\002 \003(\0132\030.suvlim.g" - "rpc.CompareExpr\022\r\n\005boost\030\003 \001(\002\022/\n\014extra_" - "params\030\004 \003(\0132\031.suvlim.grpc.KeyValuePair\"" - "\244\001\n\013VectorQuery\022\022\n\nfield_name\030\001 \001(\t\022\023\n\013q" - "uery_boost\030\002 \001(\002\022-\n\007records\030\003 \003(\0132\034.suvl" - "im.grpc.VectorRowRecord\022\014\n\004topk\030\004 \001(\003\022/\n" - "\014extra_params\030\005 \003(\0132\031.suvlim.grpc.KeyVal" - "uePair\"c\n\014BooleanQuery\022!\n\005occur\030\001 \001(\0162\022." - "suvlim.grpc.Occur\0220\n\rgeneral_query\030\002 \003(\013" - "2\031.suvlim.grpc.GeneralQuery\"\333\001\n\014GeneralQ" - "uery\0222\n\rboolean_query\030\001 \001(\0132\031.suvlim.grp" - "c.BooleanQueryH\000\022,\n\nterm_query\030\002 \001(\0132\026.s" - "uvlim.grpc.TermQueryH\000\022.\n\013range_query\030\003 " - "\001(\0132\027.suvlim.grpc.RangeQueryH\000\0220\n\014vector" - "_query\030\004 \001(\0132\030.suvlim.grpc.VectorQueryH\000" - "B\007\n\005query\"\250\001\n\rSearchParamPB\022\027\n\017collectio" - "n_name\030\001 \001(\t\022\033\n\023partition_tag_array\030\002 \003(" - "\t\0220\n\rgeneral_query\030\003 \001(\0132\031.suvlim.grpc.G" - "eneralQuery\022/\n\014extra_params\030\004 \003(\0132\031.suvl" - "im.grpc.KeyValuePair\"\231\002\n\021InsertOrDeleteM" - "sg\022\027\n\017collection_name\030\001 \001(\t\022\'\n\trows_data" - "\030\002 \001(\0132\024.suvlim.grpc.RowData\022\013\n\003uid\030\003 \001(" - "\003\022\025\n\rpartition_tag\030\004 \001(\t\022\021\n\ttimestamp\030\005 " - "\001(\003\022\022\n\nsegment_id\030\006 \001(\003\022\022\n\nchannel_id\030\007 " - "\001(\003\022\037\n\002op\030\010 \001(\0162\023.suvlim.grpc.OpType\022\021\n\t" - "client_id\030\t \001(\003\022/\n\014extra_params\030\n \003(\0132\031." - "suvlim.grpc.KeyValuePair\"\316\001\n\tSearchMsg\022\027" - "\n\017collection_name\030\001 \001(\t\022-\n\007records\030\002 \001(\013" - "2\034.suvlim.grpc.VectorRowRecord\022\025\n\rpartit" - "ion_tag\030\003 \001(\t\022\013\n\003uid\030\004 \001(\003\022\021\n\ttimestamp\030" - "\005 \001(\003\022\021\n\tclient_id\030\006 \001(\003\022/\n\014extra_params" - "\030\007 \003(\0132\031.suvlim.grpc.KeyValuePair\"X\n\013Tim" - "eSyncMsg\022\020\n\010ClientId\030\001 \001(\003\022\021\n\tTimestamp\030" - "\002 \001(\003\022$\n\007MsgType\030\003 \001(\0162\023.suvlim.grpc.OpT" - "ype\"0\n\rSegmentRecord\022\013\n\003uid\030\001 \001(\003\022\022\n\nseg" - "ment_id\030\002 \003(\003\"s\n\nKey2SegMsg\022\021\n\tclient_id" - "\030\001 \001(\003\022+\n\007records\030\002 \001(\0132\032.suvlim.grpc.Se" - "gmentRecord\022%\n\010msg_type\030\003 \001(\0162\023.suvlim.g" - "rpc.OpType*\242\004\n\tErrorCode\022\013\n\007SUCCESS\020\000\022\024\n" - "\020UNEXPECTED_ERROR\020\001\022\022\n\016CONNECT_FAILED\020\002\022" - "\025\n\021PERMISSION_DENIED\020\003\022\031\n\025COLLECTION_NOT" - "_EXISTS\020\004\022\024\n\020ILLEGAL_ARGUMENT\020\005\022\025\n\021ILLEG" - "AL_DIMENSION\020\007\022\026\n\022ILLEGAL_INDEX_TYPE\020\010\022\033" - "\n\027ILLEGAL_COLLECTION_NAME\020\t\022\020\n\014ILLEGAL_T" - "OPK\020\n\022\025\n\021ILLEGAL_ROWRECORD\020\013\022\025\n\021ILLEGAL_" - "VECTOR_ID\020\014\022\031\n\025ILLEGAL_SEARCH_RESULT\020\r\022\022" - "\n\016FILE_NOT_FOUND\020\016\022\017\n\013META_FAILED\020\017\022\020\n\014C" - "ACHE_FAILED\020\020\022\030\n\024CANNOT_CREATE_FOLDER\020\021\022" - "\026\n\022CANNOT_CREATE_FILE\020\022\022\030\n\024CANNOT_DELETE" - "_FOLDER\020\023\022\026\n\022CANNOT_DELETE_FILE\020\024\022\025\n\021BUI" - "LD_INDEX_ERROR\020\025\022\021\n\rILLEGAL_NLIST\020\026\022\027\n\023I" - "LLEGAL_METRIC_TYPE\020\027\022\021\n\rOUT_OF_MEMORY\020\030*" - "\221\001\n\010DataType\022\010\n\004NONE\020\000\022\010\n\004BOOL\020\001\022\010\n\004INT8" - "\020\002\022\t\n\005INT16\020\003\022\t\n\005INT32\020\004\022\t\n\005INT64\020\005\022\t\n\005F" - "LOAT\020\n\022\n\n\006DOUBLE\020\013\022\n\n\006STRING\020\024\022\021\n\rVECTOR" - "_BINARY\020d\022\020\n\014VECTOR_FLOAT\020e*C\n\017CompareOp" - "erator\022\006\n\002LT\020\000\022\007\n\003LTE\020\001\022\006\n\002EQ\020\002\022\006\n\002GT\020\003\022" - "\007\n\003GTE\020\004\022\006\n\002NE\020\005*8\n\005Occur\022\013\n\007INVALID\020\000\022\010" - "\n\004MUST\020\001\022\n\n\006SHOULD\020\002\022\014\n\010MUST_NOT\020\003*\?\n\006Op" - "Type\022\n\n\006INSERT\020\000\022\n\n\006DELETE\020\001\022\n\n\006SEARCH\020\002" - "\022\021\n\rSEARCH_RESULT\020\0032\333\r\n\rMilvusService\022\?\n" - "\020CreateCollection\022\024.suvlim.grpc.Mapping\032" - "\023.suvlim.grpc.Status\"\000\022F\n\rHasCollection\022" - "\033.suvlim.grpc.CollectionName\032\026.suvlim.gr" - "pc.BoolReply\"\000\022I\n\022DescribeCollection\022\033.s" - "uvlim.grpc.CollectionName\032\024.suvlim.grpc." - "Mapping\"\000\022Q\n\017CountCollection\022\033.suvlim.gr" - "pc.CollectionName\032\037.suvlim.grpc.Collecti" - "onRowCount\"\000\022J\n\017ShowCollections\022\024.suvlim" - ".grpc.Command\032\037.suvlim.grpc.CollectionNa" - "meList\"\000\022P\n\022ShowCollectionInfo\022\033.suvlim." - "grpc.CollectionName\032\033.suvlim.grpc.Collec" - "tionInfo\"\000\022D\n\016DropCollection\022\033.suvlim.gr" - "pc.CollectionName\032\023.suvlim.grpc.Status\"\000" - "\022=\n\013CreateIndex\022\027.suvlim.grpc.IndexParam" - "\032\023.suvlim.grpc.Status\"\000\022C\n\rDescribeIndex" - "\022\027.suvlim.grpc.IndexParam\032\027.suvlim.grpc." - "IndexParam\"\000\022;\n\tDropIndex\022\027.suvlim.grpc." - "IndexParam\032\023.suvlim.grpc.Status\"\000\022E\n\017Cre" - "atePartition\022\033.suvlim.grpc.PartitionPara" - "m\032\023.suvlim.grpc.Status\"\000\022E\n\014HasPartition" - "\022\033.suvlim.grpc.PartitionParam\032\026.suvlim.g" - "rpc.BoolReply\"\000\022K\n\016ShowPartitions\022\033.suvl" - "im.grpc.CollectionName\032\032.suvlim.grpc.Par" - "titionList\"\000\022C\n\rDropPartition\022\033.suvlim.g" - "rpc.PartitionParam\032\023.suvlim.grpc.Status\"" - "\000\022<\n\006Insert\022\030.suvlim.grpc.InsertParam\032\026." - "suvlim.grpc.EntityIds\"\000\022E\n\rGetEntityByID" - "\022\033.suvlim.grpc.EntityIdentity\032\025.suvlim.g" - "rpc.Entities\"\000\022H\n\014GetEntityIDs\022\036.suvlim." - "grpc.GetEntityIDsParam\032\026.suvlim.grpc.Ent" - "ityIds\"\000\022>\n\006Search\022\030.suvlim.grpc.SearchP" - "aram\032\030.suvlim.grpc.QueryResult\"\000\022P\n\017Sear" - "chInSegment\022!.suvlim.grpc.SearchInSegmen" - "tParam\032\030.suvlim.grpc.QueryResult\"\000\0227\n\003Cm" - "d\022\024.suvlim.grpc.Command\032\030.suvlim.grpc.St" - "ringReply\"\000\022A\n\nDeleteByID\022\034.suvlim.grpc." - "DeleteByIDParam\032\023.suvlim.grpc.Status\"\000\022G" - "\n\021PreloadCollection\022\033.suvlim.grpc.Collec" - "tionName\032\023.suvlim.grpc.Status\"\000\0227\n\005Flush" - "\022\027.suvlim.grpc.FlushParam\032\023.suvlim.grpc." - "Status\"\000\022;\n\007Compact\022\031.suvlim.grpc.Compac" - "tParam\032\023.suvlim.grpc.Status\"\000\022B\n\010SearchP" - "B\022\032.suvlim.grpc.SearchParamPB\032\030.suvlim.g" - "rpc.QueryResult\"\000b\006proto3", 7625); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( - "suvlim.proto", &protobuf_RegisterTypes); - Status::default_instance_ = new Status(); - KeyValuePair::default_instance_ = new KeyValuePair(); - CollectionName::default_instance_ = new CollectionName(); - CollectionNameList::default_instance_ = new CollectionNameList(); - FieldName::default_instance_ = new FieldName(); - Mapping::default_instance_ = new Mapping(); - MappingList::default_instance_ = new MappingList(); - PartitionParam::default_instance_ = new PartitionParam(); - PartitionList::default_instance_ = new PartitionList(); - VectorRowRecord::default_instance_ = new VectorRowRecord(); - EntityIds::default_instance_ = new EntityIds(); - VectorRecord::default_instance_ = new VectorRecord(); - VectorParam::default_instance_ = new VectorParam(); - FieldMeta::default_instance_ = new FieldMeta(); - Schema::default_instance_ = new Schema(); - RowData::default_instance_ = new RowData(); - InsertParam::default_instance_ = new InsertParam(); - SearchParam::default_instance_ = new SearchParam(); - SearchInSegmentParam::default_instance_ = new SearchInSegmentParam(); - Entities::default_instance_ = new Entities(); - QueryResult::default_instance_ = new QueryResult(); - StringReply::default_instance_ = new StringReply(); - BoolReply::default_instance_ = new BoolReply(); - CollectionRowCount::default_instance_ = new CollectionRowCount(); - Command::default_instance_ = new Command(); - IndexParam::default_instance_ = new IndexParam(); - FlushParam::default_instance_ = new FlushParam(); - CompactParam::default_instance_ = new CompactParam(); - DeleteByIDParam::default_instance_ = new DeleteByIDParam(); - CollectionInfo::default_instance_ = new CollectionInfo(); - GetEntityIDsParam::default_instance_ = new GetEntityIDsParam(); - EntityIdentity::default_instance_ = new EntityIdentity(); - VectorFieldParam::default_instance_ = new VectorFieldParam(); - FieldType::default_instance_ = new FieldType(); - FieldType_default_oneof_instance_ = new FieldTypeOneofInstance(); - FieldParam::default_instance_ = new FieldParam(); - VectorFieldRecord::default_instance_ = new VectorFieldRecord(); - TermQuery::default_instance_ = new TermQuery(); - CompareExpr::default_instance_ = new CompareExpr(); - RangeQuery::default_instance_ = new RangeQuery(); - VectorQuery::default_instance_ = new VectorQuery(); - BooleanQuery::default_instance_ = new BooleanQuery(); - GeneralQuery::default_instance_ = new GeneralQuery(); - GeneralQuery_default_oneof_instance_ = new GeneralQueryOneofInstance(); - SearchParamPB::default_instance_ = new SearchParamPB(); - InsertOrDeleteMsg::default_instance_ = new InsertOrDeleteMsg(); - SearchMsg::default_instance_ = new SearchMsg(); - TimeSyncMsg::default_instance_ = new TimeSyncMsg(); - SegmentRecord::default_instance_ = new SegmentRecord(); - Key2SegMsg::default_instance_ = new Key2SegMsg(); - Status::default_instance_->InitAsDefaultInstance(); - KeyValuePair::default_instance_->InitAsDefaultInstance(); - CollectionName::default_instance_->InitAsDefaultInstance(); - CollectionNameList::default_instance_->InitAsDefaultInstance(); - FieldName::default_instance_->InitAsDefaultInstance(); - Mapping::default_instance_->InitAsDefaultInstance(); - MappingList::default_instance_->InitAsDefaultInstance(); - PartitionParam::default_instance_->InitAsDefaultInstance(); - PartitionList::default_instance_->InitAsDefaultInstance(); - VectorRowRecord::default_instance_->InitAsDefaultInstance(); - EntityIds::default_instance_->InitAsDefaultInstance(); - VectorRecord::default_instance_->InitAsDefaultInstance(); - VectorParam::default_instance_->InitAsDefaultInstance(); - FieldMeta::default_instance_->InitAsDefaultInstance(); - Schema::default_instance_->InitAsDefaultInstance(); - RowData::default_instance_->InitAsDefaultInstance(); - InsertParam::default_instance_->InitAsDefaultInstance(); - SearchParam::default_instance_->InitAsDefaultInstance(); - SearchInSegmentParam::default_instance_->InitAsDefaultInstance(); - Entities::default_instance_->InitAsDefaultInstance(); - QueryResult::default_instance_->InitAsDefaultInstance(); - StringReply::default_instance_->InitAsDefaultInstance(); - BoolReply::default_instance_->InitAsDefaultInstance(); - CollectionRowCount::default_instance_->InitAsDefaultInstance(); - Command::default_instance_->InitAsDefaultInstance(); - IndexParam::default_instance_->InitAsDefaultInstance(); - FlushParam::default_instance_->InitAsDefaultInstance(); - CompactParam::default_instance_->InitAsDefaultInstance(); - DeleteByIDParam::default_instance_->InitAsDefaultInstance(); - CollectionInfo::default_instance_->InitAsDefaultInstance(); - GetEntityIDsParam::default_instance_->InitAsDefaultInstance(); - EntityIdentity::default_instance_->InitAsDefaultInstance(); - VectorFieldParam::default_instance_->InitAsDefaultInstance(); - FieldType::default_instance_->InitAsDefaultInstance(); - FieldParam::default_instance_->InitAsDefaultInstance(); - VectorFieldRecord::default_instance_->InitAsDefaultInstance(); - TermQuery::default_instance_->InitAsDefaultInstance(); - CompareExpr::default_instance_->InitAsDefaultInstance(); - RangeQuery::default_instance_->InitAsDefaultInstance(); - VectorQuery::default_instance_->InitAsDefaultInstance(); - BooleanQuery::default_instance_->InitAsDefaultInstance(); - GeneralQuery::default_instance_->InitAsDefaultInstance(); - SearchParamPB::default_instance_->InitAsDefaultInstance(); - InsertOrDeleteMsg::default_instance_->InitAsDefaultInstance(); - SearchMsg::default_instance_->InitAsDefaultInstance(); - TimeSyncMsg::default_instance_->InitAsDefaultInstance(); - SegmentRecord::default_instance_->InitAsDefaultInstance(); - Key2SegMsg::default_instance_->InitAsDefaultInstance(); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_suvlim_2eproto); -} - -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_suvlim_2eproto { - StaticDescriptorInitializer_suvlim_2eproto() { - protobuf_AddDesc_suvlim_2eproto(); - } -} static_descriptor_initializer_suvlim_2eproto_; -const ::google::protobuf::EnumDescriptor* ErrorCode_descriptor() { - protobuf_AssignDescriptorsOnce(); - return ErrorCode_descriptor_; -} -bool ErrorCode_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 23: - case 24: - return true; - default: - return false; - } -} - -const ::google::protobuf::EnumDescriptor* DataType_descriptor() { - protobuf_AssignDescriptorsOnce(); - return DataType_descriptor_; -} -bool DataType_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 10: - case 11: - case 20: - case 100: - case 101: - return true; - default: - return false; - } -} - -const ::google::protobuf::EnumDescriptor* CompareOperator_descriptor() { - protobuf_AssignDescriptorsOnce(); - return CompareOperator_descriptor_; -} -bool CompareOperator_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - return true; - default: - return false; - } -} - -const ::google::protobuf::EnumDescriptor* Occur_descriptor() { - protobuf_AssignDescriptorsOnce(); - return Occur_descriptor_; -} -bool Occur_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} - -const ::google::protobuf::EnumDescriptor* OpType_descriptor() { - protobuf_AssignDescriptorsOnce(); - return OpType_descriptor_; -} -bool OpType_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} - - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Status::kErrorCodeFieldNumber; -const int Status::kReasonFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Status::Status() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.Status) -} - -void Status::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -Status::Status(const Status& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.Status) -} - -void Status::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - error_code_ = 0; - reason_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -Status::~Status() { - // @@protoc_insertion_point(destructor:suvlim.grpc.Status) - SharedDtor(); -} - -void Status::SharedDtor() { - reason_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void Status::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* Status::descriptor() { - protobuf_AssignDescriptorsOnce(); - return Status_descriptor_; -} - -const Status& Status::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -Status* Status::default_instance_ = NULL; - -Status* Status::New(::google::protobuf::Arena* arena) const { - Status* n = new Status; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void Status::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.Status) - error_code_ = 0; - reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -bool Status::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.Status) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .suvlim.grpc.ErrorCode error_code = 1; - case 1: { - if (tag == 8) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_error_code(static_cast< ::suvlim::grpc::ErrorCode >(value)); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_reason; - break; - } - - // optional string reason = 2; - case 2: { - if (tag == 18) { - parse_reason: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_reason())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), this->reason().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.Status.reason")); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.Status) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.Status) - return false; -#undef DO_ -} - -void Status::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.Status) - // optional .suvlim.grpc.ErrorCode error_code = 1; - if (this->error_code() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->error_code(), output); - } - - // optional string reason = 2; - if (this->reason().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), this->reason().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.Status.reason"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->reason(), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.Status) -} - -::google::protobuf::uint8* Status::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.Status) - // optional .suvlim.grpc.ErrorCode error_code = 1; - if (this->error_code() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->error_code(), target); - } - - // optional string reason = 2; - if (this->reason().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), this->reason().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.Status.reason"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->reason(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.Status) - return target; -} - -int Status::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.Status) - int total_size = 0; - - // optional .suvlim.grpc.ErrorCode error_code = 1; - if (this->error_code() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->error_code()); - } - - // optional string reason = 2; - if (this->reason().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->reason()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void Status::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.Status) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const Status* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.Status) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.Status) - MergeFrom(*source); - } -} - -void Status::MergeFrom(const Status& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.Status) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.error_code() != 0) { - set_error_code(from.error_code()); - } - if (from.reason().size() > 0) { - - reason_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_); - } -} - -void Status::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.Status) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Status::CopyFrom(const Status& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.Status) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Status::IsInitialized() const { - - return true; -} - -void Status::Swap(Status* other) { - if (other == this) return; - InternalSwap(other); -} -void Status::InternalSwap(Status* other) { - std::swap(error_code_, other->error_code_); - reason_.Swap(&other->reason_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata Status::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = Status_descriptor_; - metadata.reflection = Status_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// Status - -// optional .suvlim.grpc.ErrorCode error_code = 1; -void Status::clear_error_code() { - error_code_ = 0; -} - ::suvlim::grpc::ErrorCode Status::error_code() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Status.error_code) - return static_cast< ::suvlim::grpc::ErrorCode >(error_code_); -} - void Status::set_error_code(::suvlim::grpc::ErrorCode value) { - - error_code_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.Status.error_code) -} - -// optional string reason = 2; -void Status::clear_reason() { - reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& Status::reason() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Status.reason) - return reason_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void Status::set_reason(const ::std::string& value) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.Status.reason) -} - void Status::set_reason(const char* value) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.Status.reason) -} - void Status::set_reason(const char* value, size_t size) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.Status.reason) -} - ::std::string* Status::mutable_reason() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.Status.reason) - return reason_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* Status::release_reason() { - // @@protoc_insertion_point(field_release:suvlim.grpc.Status.reason) - - return reason_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void Status::set_allocated_reason(::std::string* reason) { - if (reason != NULL) { - - } else { - - } - reason_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reason); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.Status.reason) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int KeyValuePair::kKeyFieldNumber; -const int KeyValuePair::kValueFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -KeyValuePair::KeyValuePair() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.KeyValuePair) -} - -void KeyValuePair::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -KeyValuePair::KeyValuePair(const KeyValuePair& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.KeyValuePair) -} - -void KeyValuePair::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -KeyValuePair::~KeyValuePair() { - // @@protoc_insertion_point(destructor:suvlim.grpc.KeyValuePair) - SharedDtor(); -} - -void KeyValuePair::SharedDtor() { - key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void KeyValuePair::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* KeyValuePair::descriptor() { - protobuf_AssignDescriptorsOnce(); - return KeyValuePair_descriptor_; -} - -const KeyValuePair& KeyValuePair::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -KeyValuePair* KeyValuePair::default_instance_ = NULL; - -KeyValuePair* KeyValuePair::New(::google::protobuf::Arena* arena) const { - KeyValuePair* n = new KeyValuePair; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void KeyValuePair::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.KeyValuePair) - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -bool KeyValuePair::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.KeyValuePair) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string key = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_key())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), this->key().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.KeyValuePair.key")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_value; - break; - } - - // optional string value = 2; - case 2: { - if (tag == 18) { - parse_value: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_value())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), this->value().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.KeyValuePair.value")); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.KeyValuePair) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.KeyValuePair) - return false; -#undef DO_ -} - -void KeyValuePair::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.KeyValuePair) - // optional string key = 1; - if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), this->key().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.KeyValuePair.key"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->key(), output); - } - - // optional string value = 2; - if (this->value().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), this->value().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.KeyValuePair.value"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->value(), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.KeyValuePair) -} - -::google::protobuf::uint8* KeyValuePair::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.KeyValuePair) - // optional string key = 1; - if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), this->key().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.KeyValuePair.key"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->key(), target); - } - - // optional string value = 2; - if (this->value().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), this->value().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.KeyValuePair.value"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->value(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.KeyValuePair) - return target; -} - -int KeyValuePair::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.KeyValuePair) - int total_size = 0; - - // optional string key = 1; - if (this->key().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->key()); - } - - // optional string value = 2; - if (this->value().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->value()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void KeyValuePair::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.KeyValuePair) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const KeyValuePair* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.KeyValuePair) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.KeyValuePair) - MergeFrom(*source); - } -} - -void KeyValuePair::MergeFrom(const KeyValuePair& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.KeyValuePair) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.key().size() > 0) { - - key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); - } - if (from.value().size() > 0) { - - value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); - } -} - -void KeyValuePair::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.KeyValuePair) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void KeyValuePair::CopyFrom(const KeyValuePair& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.KeyValuePair) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool KeyValuePair::IsInitialized() const { - - return true; -} - -void KeyValuePair::Swap(KeyValuePair* other) { - if (other == this) return; - InternalSwap(other); -} -void KeyValuePair::InternalSwap(KeyValuePair* other) { - key_.Swap(&other->key_); - value_.Swap(&other->value_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata KeyValuePair::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = KeyValuePair_descriptor_; - metadata.reflection = KeyValuePair_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// KeyValuePair - -// optional string key = 1; -void KeyValuePair::clear_key() { - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& KeyValuePair::key() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.KeyValuePair.key) - return key_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void KeyValuePair::set_key(const ::std::string& value) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.KeyValuePair.key) -} - void KeyValuePair::set_key(const char* value) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.KeyValuePair.key) -} - void KeyValuePair::set_key(const char* value, size_t size) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.KeyValuePair.key) -} - ::std::string* KeyValuePair::mutable_key() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.KeyValuePair.key) - return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* KeyValuePair::release_key() { - // @@protoc_insertion_point(field_release:suvlim.grpc.KeyValuePair.key) - - return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void KeyValuePair::set_allocated_key(::std::string* key) { - if (key != NULL) { - - } else { - - } - key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.KeyValuePair.key) -} - -// optional string value = 2; -void KeyValuePair::clear_value() { - value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& KeyValuePair::value() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.KeyValuePair.value) - return value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void KeyValuePair::set_value(const ::std::string& value) { - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.KeyValuePair.value) -} - void KeyValuePair::set_value(const char* value) { - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.KeyValuePair.value) -} - void KeyValuePair::set_value(const char* value, size_t size) { - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.KeyValuePair.value) -} - ::std::string* KeyValuePair::mutable_value() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.KeyValuePair.value) - return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* KeyValuePair::release_value() { - // @@protoc_insertion_point(field_release:suvlim.grpc.KeyValuePair.value) - - return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void KeyValuePair::set_allocated_value(::std::string* value) { - if (value != NULL) { - - } else { - - } - value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.KeyValuePair.value) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CollectionName::kCollectionNameFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CollectionName::CollectionName() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.CollectionName) -} - -void CollectionName::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -CollectionName::CollectionName(const CollectionName& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.CollectionName) -} - -void CollectionName::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -CollectionName::~CollectionName() { - // @@protoc_insertion_point(destructor:suvlim.grpc.CollectionName) - SharedDtor(); -} - -void CollectionName::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void CollectionName::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* CollectionName::descriptor() { - protobuf_AssignDescriptorsOnce(); - return CollectionName_descriptor_; -} - -const CollectionName& CollectionName::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -CollectionName* CollectionName::default_instance_ = NULL; - -CollectionName* CollectionName::New(::google::protobuf::Arena* arena) const { - CollectionName* n = new CollectionName; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void CollectionName::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.CollectionName) - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -bool CollectionName::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.CollectionName) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.CollectionName.collection_name")); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.CollectionName) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.CollectionName) - return false; -#undef DO_ -} - -void CollectionName::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.CollectionName) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.CollectionName.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.CollectionName) -} - -::google::protobuf::uint8* CollectionName::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.CollectionName) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.CollectionName.collection_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.CollectionName) - return target; -} - -int CollectionName::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.CollectionName) - int total_size = 0; - - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void CollectionName::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.CollectionName) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const CollectionName* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.CollectionName) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.CollectionName) - MergeFrom(*source); - } -} - -void CollectionName::MergeFrom(const CollectionName& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.CollectionName) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } -} - -void CollectionName::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.CollectionName) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CollectionName::CopyFrom(const CollectionName& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.CollectionName) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CollectionName::IsInitialized() const { - - return true; -} - -void CollectionName::Swap(CollectionName* other) { - if (other == this) return; - InternalSwap(other); -} -void CollectionName::InternalSwap(CollectionName* other) { - collection_name_.Swap(&other->collection_name_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata CollectionName::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = CollectionName_descriptor_; - metadata.reflection = CollectionName_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// CollectionName - -// optional string collection_name = 1; -void CollectionName::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& CollectionName::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.CollectionName.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void CollectionName::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.CollectionName.collection_name) -} - void CollectionName::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.CollectionName.collection_name) -} - void CollectionName::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.CollectionName.collection_name) -} - ::std::string* CollectionName::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.CollectionName.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* CollectionName::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.CollectionName.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void CollectionName::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.CollectionName.collection_name) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CollectionNameList::kStatusFieldNumber; -const int CollectionNameList::kCollectionNamesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CollectionNameList::CollectionNameList() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.CollectionNameList) -} - -void CollectionNameList::InitAsDefaultInstance() { - _is_default_instance_ = true; - status_ = const_cast< ::suvlim::grpc::Status*>(&::suvlim::grpc::Status::default_instance()); -} - -CollectionNameList::CollectionNameList(const CollectionNameList& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.CollectionNameList) -} - -void CollectionNameList::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - status_ = NULL; -} - -CollectionNameList::~CollectionNameList() { - // @@protoc_insertion_point(destructor:suvlim.grpc.CollectionNameList) - SharedDtor(); -} - -void CollectionNameList::SharedDtor() { - if (this != default_instance_) { - delete status_; - } -} - -void CollectionNameList::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* CollectionNameList::descriptor() { - protobuf_AssignDescriptorsOnce(); - return CollectionNameList_descriptor_; -} - -const CollectionNameList& CollectionNameList::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -CollectionNameList* CollectionNameList::default_instance_ = NULL; - -CollectionNameList* CollectionNameList::New(::google::protobuf::Arena* arena) const { - CollectionNameList* n = new CollectionNameList; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void CollectionNameList::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.CollectionNameList) - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; - collection_names_.Clear(); -} - -bool CollectionNameList::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.CollectionNameList) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .suvlim.grpc.Status status = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_status())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_collection_names; - break; - } - - // repeated string collection_names = 2; - case 2: { - if (tag == 18) { - parse_collection_names: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_collection_names())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_names(this->collection_names_size() - 1).data(), - this->collection_names(this->collection_names_size() - 1).length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.CollectionNameList.collection_names")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_collection_names; - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.CollectionNameList) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.CollectionNameList) - return false; -#undef DO_ -} - -void CollectionNameList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.CollectionNameList) - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->status_, output); - } - - // repeated string collection_names = 2; - for (int i = 0; i < this->collection_names_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_names(i).data(), this->collection_names(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.CollectionNameList.collection_names"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->collection_names(i), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.CollectionNameList) -} - -::google::protobuf::uint8* CollectionNameList::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.CollectionNameList) - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->status_, false, target); - } - - // repeated string collection_names = 2; - for (int i = 0; i < this->collection_names_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_names(i).data(), this->collection_names(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.CollectionNameList.collection_names"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(2, this->collection_names(i), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.CollectionNameList) - return target; -} - -int CollectionNameList::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.CollectionNameList) - int total_size = 0; - - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->status_); - } - - // repeated string collection_names = 2; - total_size += 1 * this->collection_names_size(); - for (int i = 0; i < this->collection_names_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->collection_names(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void CollectionNameList::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.CollectionNameList) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const CollectionNameList* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.CollectionNameList) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.CollectionNameList) - MergeFrom(*source); - } -} - -void CollectionNameList::MergeFrom(const CollectionNameList& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.CollectionNameList) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - collection_names_.MergeFrom(from.collection_names_); - if (from.has_status()) { - mutable_status()->::suvlim::grpc::Status::MergeFrom(from.status()); - } -} - -void CollectionNameList::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.CollectionNameList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CollectionNameList::CopyFrom(const CollectionNameList& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.CollectionNameList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CollectionNameList::IsInitialized() const { - - return true; -} - -void CollectionNameList::Swap(CollectionNameList* other) { - if (other == this) return; - InternalSwap(other); -} -void CollectionNameList::InternalSwap(CollectionNameList* other) { - std::swap(status_, other->status_); - collection_names_.UnsafeArenaSwap(&other->collection_names_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata CollectionNameList::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = CollectionNameList_descriptor_; - metadata.reflection = CollectionNameList_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// CollectionNameList - -// optional .suvlim.grpc.Status status = 1; -bool CollectionNameList::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -void CollectionNameList::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -const ::suvlim::grpc::Status& CollectionNameList::status() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.CollectionNameList.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -::suvlim::grpc::Status* CollectionNameList::mutable_status() { - - if (status_ == NULL) { - status_ = new ::suvlim::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.CollectionNameList.status) - return status_; -} -::suvlim::grpc::Status* CollectionNameList::release_status() { - // @@protoc_insertion_point(field_release:suvlim.grpc.CollectionNameList.status) - - ::suvlim::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -void CollectionNameList::set_allocated_status(::suvlim::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.CollectionNameList.status) -} - -// repeated string collection_names = 2; -int CollectionNameList::collection_names_size() const { - return collection_names_.size(); -} -void CollectionNameList::clear_collection_names() { - collection_names_.Clear(); -} - const ::std::string& CollectionNameList::collection_names(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.CollectionNameList.collection_names) - return collection_names_.Get(index); -} - ::std::string* CollectionNameList::mutable_collection_names(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.CollectionNameList.collection_names) - return collection_names_.Mutable(index); -} - void CollectionNameList::set_collection_names(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:suvlim.grpc.CollectionNameList.collection_names) - collection_names_.Mutable(index)->assign(value); -} - void CollectionNameList::set_collection_names(int index, const char* value) { - collection_names_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.CollectionNameList.collection_names) -} - void CollectionNameList::set_collection_names(int index, const char* value, size_t size) { - collection_names_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.CollectionNameList.collection_names) -} - ::std::string* CollectionNameList::add_collection_names() { - // @@protoc_insertion_point(field_add_mutable:suvlim.grpc.CollectionNameList.collection_names) - return collection_names_.Add(); -} - void CollectionNameList::add_collection_names(const ::std::string& value) { - collection_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.CollectionNameList.collection_names) -} - void CollectionNameList::add_collection_names(const char* value) { - collection_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:suvlim.grpc.CollectionNameList.collection_names) -} - void CollectionNameList::add_collection_names(const char* value, size_t size) { - collection_names_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:suvlim.grpc.CollectionNameList.collection_names) -} - const ::google::protobuf::RepeatedPtrField< ::std::string>& -CollectionNameList::collection_names() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.CollectionNameList.collection_names) - return collection_names_; -} - ::google::protobuf::RepeatedPtrField< ::std::string>* -CollectionNameList::mutable_collection_names() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.CollectionNameList.collection_names) - return &collection_names_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int FieldName::kCollectionNameFieldNumber; -const int FieldName::kFieldNameFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -FieldName::FieldName() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.FieldName) -} - -void FieldName::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -FieldName::FieldName(const FieldName& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.FieldName) -} - -void FieldName::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - field_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -FieldName::~FieldName() { - // @@protoc_insertion_point(destructor:suvlim.grpc.FieldName) - SharedDtor(); -} - -void FieldName::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - field_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void FieldName::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* FieldName::descriptor() { - protobuf_AssignDescriptorsOnce(); - return FieldName_descriptor_; -} - -const FieldName& FieldName::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -FieldName* FieldName::default_instance_ = NULL; - -FieldName* FieldName::New(::google::protobuf::Arena* arena) const { - FieldName* n = new FieldName; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void FieldName::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.FieldName) - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -bool FieldName::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.FieldName) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.FieldName.collection_name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_field_name; - break; - } - - // optional string field_name = 2; - case 2: { - if (tag == 18) { - parse_field_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_field_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.FieldName.field_name")); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.FieldName) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.FieldName) - return false; -#undef DO_ -} - -void FieldName::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.FieldName) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.FieldName.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // optional string field_name = 2; - if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.FieldName.field_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->field_name(), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.FieldName) -} - -::google::protobuf::uint8* FieldName::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.FieldName) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.FieldName.collection_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // optional string field_name = 2; - if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.FieldName.field_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->field_name(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.FieldName) - return target; -} - -int FieldName::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.FieldName) - int total_size = 0; - - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // optional string field_name = 2; - if (this->field_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->field_name()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void FieldName::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.FieldName) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const FieldName* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.FieldName) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.FieldName) - MergeFrom(*source); - } -} - -void FieldName::MergeFrom(const FieldName& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.FieldName) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.field_name().size() > 0) { - - field_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } -} - -void FieldName::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.FieldName) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FieldName::CopyFrom(const FieldName& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.FieldName) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FieldName::IsInitialized() const { - - return true; -} - -void FieldName::Swap(FieldName* other) { - if (other == this) return; - InternalSwap(other); -} -void FieldName::InternalSwap(FieldName* other) { - collection_name_.Swap(&other->collection_name_); - field_name_.Swap(&other->field_name_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata FieldName::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = FieldName_descriptor_; - metadata.reflection = FieldName_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// FieldName - -// optional string collection_name = 1; -void FieldName::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& FieldName::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FieldName.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void FieldName::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.FieldName.collection_name) -} - void FieldName::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.FieldName.collection_name) -} - void FieldName::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.FieldName.collection_name) -} - ::std::string* FieldName::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.FieldName.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* FieldName::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.FieldName.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void FieldName::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.FieldName.collection_name) -} - -// optional string field_name = 2; -void FieldName::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& FieldName::field_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FieldName.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void FieldName::set_field_name(const ::std::string& value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.FieldName.field_name) -} - void FieldName::set_field_name(const char* value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.FieldName.field_name) -} - void FieldName::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.FieldName.field_name) -} - ::std::string* FieldName::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.FieldName.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* FieldName::release_field_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.FieldName.field_name) - - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void FieldName::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.FieldName.field_name) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Mapping::kStatusFieldNumber; -const int Mapping::kCollectionNameFieldNumber; -const int Mapping::kFieldsFieldNumber; -const int Mapping::kExtraParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Mapping::Mapping() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.Mapping) -} - -void Mapping::InitAsDefaultInstance() { - _is_default_instance_ = true; - status_ = const_cast< ::suvlim::grpc::Status*>(&::suvlim::grpc::Status::default_instance()); -} - -Mapping::Mapping(const Mapping& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.Mapping) -} - -void Mapping::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - status_ = NULL; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -Mapping::~Mapping() { - // @@protoc_insertion_point(destructor:suvlim.grpc.Mapping) - SharedDtor(); -} - -void Mapping::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - delete status_; - } -} - -void Mapping::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* Mapping::descriptor() { - protobuf_AssignDescriptorsOnce(); - return Mapping_descriptor_; -} - -const Mapping& Mapping::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -Mapping* Mapping::default_instance_ = NULL; - -Mapping* Mapping::New(::google::protobuf::Arena* arena) const { - Mapping* n = new Mapping; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void Mapping::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.Mapping) - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - fields_.Clear(); - extra_params_.Clear(); -} - -bool Mapping::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.Mapping) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .suvlim.grpc.Status status = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_status())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_collection_name; - break; - } - - // optional string collection_name = 2; - case 2: { - if (tag == 18) { - parse_collection_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.Mapping.collection_name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_fields; - break; - } - - // repeated .suvlim.grpc.FieldParam fields = 3; - case 3: { - if (tag == 26) { - parse_fields: - DO_(input->IncrementRecursionDepth()); - parse_loop_fields: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_fields())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_loop_fields; - if (input->ExpectTag(34)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - break; - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 4; - case 4: { - if (tag == 34) { - DO_(input->IncrementRecursionDepth()); - parse_loop_extra_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_extra_params())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.Mapping) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.Mapping) - return false; -#undef DO_ -} - -void Mapping::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.Mapping) - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->status_, output); - } - - // optional string collection_name = 2; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.Mapping.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->collection_name(), output); - } - - // repeated .suvlim.grpc.FieldParam fields = 3; - for (unsigned int i = 0, n = this->fields_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->fields(i), output); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 4; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->extra_params(i), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.Mapping) -} - -::google::protobuf::uint8* Mapping::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.Mapping) - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->status_, false, target); - } - - // optional string collection_name = 2; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.Mapping.collection_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->collection_name(), target); - } - - // repeated .suvlim.grpc.FieldParam fields = 3; - for (unsigned int i = 0, n = this->fields_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, this->fields(i), false, target); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 4; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, this->extra_params(i), false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.Mapping) - return target; -} - -int Mapping::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.Mapping) - int total_size = 0; - - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->status_); - } - - // optional string collection_name = 2; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // repeated .suvlim.grpc.FieldParam fields = 3; - total_size += 1 * this->fields_size(); - for (int i = 0; i < this->fields_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->fields(i)); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 4; - total_size += 1 * this->extra_params_size(); - for (int i = 0; i < this->extra_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->extra_params(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void Mapping::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.Mapping) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const Mapping* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.Mapping) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.Mapping) - MergeFrom(*source); - } -} - -void Mapping::MergeFrom(const Mapping& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.Mapping) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - fields_.MergeFrom(from.fields_); - extra_params_.MergeFrom(from.extra_params_); - if (from.has_status()) { - mutable_status()->::suvlim::grpc::Status::MergeFrom(from.status()); - } - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } -} - -void Mapping::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.Mapping) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Mapping::CopyFrom(const Mapping& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.Mapping) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Mapping::IsInitialized() const { - - return true; -} - -void Mapping::Swap(Mapping* other) { - if (other == this) return; - InternalSwap(other); -} -void Mapping::InternalSwap(Mapping* other) { - std::swap(status_, other->status_); - collection_name_.Swap(&other->collection_name_); - fields_.UnsafeArenaSwap(&other->fields_); - extra_params_.UnsafeArenaSwap(&other->extra_params_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata Mapping::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = Mapping_descriptor_; - metadata.reflection = Mapping_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// Mapping - -// optional .suvlim.grpc.Status status = 1; -bool Mapping::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -void Mapping::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -const ::suvlim::grpc::Status& Mapping::status() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Mapping.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -::suvlim::grpc::Status* Mapping::mutable_status() { - - if (status_ == NULL) { - status_ = new ::suvlim::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.Mapping.status) - return status_; -} -::suvlim::grpc::Status* Mapping::release_status() { - // @@protoc_insertion_point(field_release:suvlim.grpc.Mapping.status) - - ::suvlim::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -void Mapping::set_allocated_status(::suvlim::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.Mapping.status) -} - -// optional string collection_name = 2; -void Mapping::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& Mapping::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Mapping.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void Mapping::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.Mapping.collection_name) -} - void Mapping::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.Mapping.collection_name) -} - void Mapping::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.Mapping.collection_name) -} - ::std::string* Mapping::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.Mapping.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* Mapping::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.Mapping.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void Mapping::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.Mapping.collection_name) -} - -// repeated .suvlim.grpc.FieldParam fields = 3; -int Mapping::fields_size() const { - return fields_.size(); -} -void Mapping::clear_fields() { - fields_.Clear(); -} -const ::suvlim::grpc::FieldParam& Mapping::fields(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Mapping.fields) - return fields_.Get(index); -} -::suvlim::grpc::FieldParam* Mapping::mutable_fields(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.Mapping.fields) - return fields_.Mutable(index); -} -::suvlim::grpc::FieldParam* Mapping::add_fields() { - // @@protoc_insertion_point(field_add:suvlim.grpc.Mapping.fields) - return fields_.Add(); -} -::google::protobuf::RepeatedPtrField< ::suvlim::grpc::FieldParam >* -Mapping::mutable_fields() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.Mapping.fields) - return &fields_; -} -const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::FieldParam >& -Mapping::fields() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.Mapping.fields) - return fields_; -} - -// repeated .suvlim.grpc.KeyValuePair extra_params = 4; -int Mapping::extra_params_size() const { - return extra_params_.size(); -} -void Mapping::clear_extra_params() { - extra_params_.Clear(); -} -const ::suvlim::grpc::KeyValuePair& Mapping::extra_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Mapping.extra_params) - return extra_params_.Get(index); -} -::suvlim::grpc::KeyValuePair* Mapping::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.Mapping.extra_params) - return extra_params_.Mutable(index); -} -::suvlim::grpc::KeyValuePair* Mapping::add_extra_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.Mapping.extra_params) - return extra_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -Mapping::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.Mapping.extra_params) - return &extra_params_; -} -const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -Mapping::extra_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.Mapping.extra_params) - return extra_params_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int MappingList::kStatusFieldNumber; -const int MappingList::kMappingListFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -MappingList::MappingList() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.MappingList) -} - -void MappingList::InitAsDefaultInstance() { - _is_default_instance_ = true; - status_ = const_cast< ::suvlim::grpc::Status*>(&::suvlim::grpc::Status::default_instance()); -} - -MappingList::MappingList(const MappingList& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.MappingList) -} - -void MappingList::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - status_ = NULL; -} - -MappingList::~MappingList() { - // @@protoc_insertion_point(destructor:suvlim.grpc.MappingList) - SharedDtor(); -} - -void MappingList::SharedDtor() { - if (this != default_instance_) { - delete status_; - } -} - -void MappingList::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* MappingList::descriptor() { - protobuf_AssignDescriptorsOnce(); - return MappingList_descriptor_; -} - -const MappingList& MappingList::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -MappingList* MappingList::default_instance_ = NULL; - -MappingList* MappingList::New(::google::protobuf::Arena* arena) const { - MappingList* n = new MappingList; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void MappingList::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.MappingList) - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; - mapping_list_.Clear(); -} - -bool MappingList::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.MappingList) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .suvlim.grpc.Status status = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_status())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_mapping_list; - break; - } - - // repeated .suvlim.grpc.Mapping mapping_list = 2; - case 2: { - if (tag == 18) { - parse_mapping_list: - DO_(input->IncrementRecursionDepth()); - parse_loop_mapping_list: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_mapping_list())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_loop_mapping_list; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.MappingList) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.MappingList) - return false; -#undef DO_ -} - -void MappingList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.MappingList) - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->status_, output); - } - - // repeated .suvlim.grpc.Mapping mapping_list = 2; - for (unsigned int i = 0, n = this->mapping_list_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->mapping_list(i), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.MappingList) -} - -::google::protobuf::uint8* MappingList::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.MappingList) - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->status_, false, target); - } - - // repeated .suvlim.grpc.Mapping mapping_list = 2; - for (unsigned int i = 0, n = this->mapping_list_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, this->mapping_list(i), false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.MappingList) - return target; -} - -int MappingList::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.MappingList) - int total_size = 0; - - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->status_); - } - - // repeated .suvlim.grpc.Mapping mapping_list = 2; - total_size += 1 * this->mapping_list_size(); - for (int i = 0; i < this->mapping_list_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->mapping_list(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void MappingList::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.MappingList) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const MappingList* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.MappingList) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.MappingList) - MergeFrom(*source); - } -} - -void MappingList::MergeFrom(const MappingList& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.MappingList) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - mapping_list_.MergeFrom(from.mapping_list_); - if (from.has_status()) { - mutable_status()->::suvlim::grpc::Status::MergeFrom(from.status()); - } -} - -void MappingList::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.MappingList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MappingList::CopyFrom(const MappingList& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.MappingList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MappingList::IsInitialized() const { - - return true; -} - -void MappingList::Swap(MappingList* other) { - if (other == this) return; - InternalSwap(other); -} -void MappingList::InternalSwap(MappingList* other) { - std::swap(status_, other->status_); - mapping_list_.UnsafeArenaSwap(&other->mapping_list_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata MappingList::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = MappingList_descriptor_; - metadata.reflection = MappingList_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// MappingList - -// optional .suvlim.grpc.Status status = 1; -bool MappingList::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -void MappingList::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -const ::suvlim::grpc::Status& MappingList::status() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.MappingList.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -::suvlim::grpc::Status* MappingList::mutable_status() { - - if (status_ == NULL) { - status_ = new ::suvlim::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.MappingList.status) - return status_; -} -::suvlim::grpc::Status* MappingList::release_status() { - // @@protoc_insertion_point(field_release:suvlim.grpc.MappingList.status) - - ::suvlim::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -void MappingList::set_allocated_status(::suvlim::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.MappingList.status) -} - -// repeated .suvlim.grpc.Mapping mapping_list = 2; -int MappingList::mapping_list_size() const { - return mapping_list_.size(); -} -void MappingList::clear_mapping_list() { - mapping_list_.Clear(); -} -const ::suvlim::grpc::Mapping& MappingList::mapping_list(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.MappingList.mapping_list) - return mapping_list_.Get(index); -} -::suvlim::grpc::Mapping* MappingList::mutable_mapping_list(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.MappingList.mapping_list) - return mapping_list_.Mutable(index); -} -::suvlim::grpc::Mapping* MappingList::add_mapping_list() { - // @@protoc_insertion_point(field_add:suvlim.grpc.MappingList.mapping_list) - return mapping_list_.Add(); -} -::google::protobuf::RepeatedPtrField< ::suvlim::grpc::Mapping >* -MappingList::mutable_mapping_list() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.MappingList.mapping_list) - return &mapping_list_; -} -const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::Mapping >& -MappingList::mapping_list() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.MappingList.mapping_list) - return mapping_list_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PartitionParam::kCollectionNameFieldNumber; -const int PartitionParam::kTagFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PartitionParam::PartitionParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.PartitionParam) -} - -void PartitionParam::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -PartitionParam::PartitionParam(const PartitionParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.PartitionParam) -} - -void PartitionParam::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - tag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -PartitionParam::~PartitionParam() { - // @@protoc_insertion_point(destructor:suvlim.grpc.PartitionParam) - SharedDtor(); -} - -void PartitionParam::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - tag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void PartitionParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* PartitionParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return PartitionParam_descriptor_; -} - -const PartitionParam& PartitionParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -PartitionParam* PartitionParam::default_instance_ = NULL; - -PartitionParam* PartitionParam::New(::google::protobuf::Arena* arena) const { - PartitionParam* n = new PartitionParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void PartitionParam::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.PartitionParam) - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -bool PartitionParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.PartitionParam) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.PartitionParam.collection_name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_tag; - break; - } - - // optional string tag = 2; - case 2: { - if (tag == 18) { - parse_tag: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_tag())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag().data(), this->tag().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.PartitionParam.tag")); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.PartitionParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.PartitionParam) - return false; -#undef DO_ -} - -void PartitionParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.PartitionParam) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.PartitionParam.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // optional string tag = 2; - if (this->tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag().data(), this->tag().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.PartitionParam.tag"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->tag(), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.PartitionParam) -} - -::google::protobuf::uint8* PartitionParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.PartitionParam) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.PartitionParam.collection_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // optional string tag = 2; - if (this->tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag().data(), this->tag().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.PartitionParam.tag"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->tag(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.PartitionParam) - return target; -} - -int PartitionParam::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.PartitionParam) - int total_size = 0; - - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // optional string tag = 2; - if (this->tag().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->tag()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void PartitionParam::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.PartitionParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const PartitionParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.PartitionParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.PartitionParam) - MergeFrom(*source); - } -} - -void PartitionParam::MergeFrom(const PartitionParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.PartitionParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.tag().size() > 0) { - - tag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_); - } -} - -void PartitionParam::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.PartitionParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PartitionParam::CopyFrom(const PartitionParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.PartitionParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PartitionParam::IsInitialized() const { - - return true; -} - -void PartitionParam::Swap(PartitionParam* other) { - if (other == this) return; - InternalSwap(other); -} -void PartitionParam::InternalSwap(PartitionParam* other) { - collection_name_.Swap(&other->collection_name_); - tag_.Swap(&other->tag_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata PartitionParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = PartitionParam_descriptor_; - metadata.reflection = PartitionParam_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// PartitionParam - -// optional string collection_name = 1; -void PartitionParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& PartitionParam::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.PartitionParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void PartitionParam::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.PartitionParam.collection_name) -} - void PartitionParam::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.PartitionParam.collection_name) -} - void PartitionParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.PartitionParam.collection_name) -} - ::std::string* PartitionParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.PartitionParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* PartitionParam::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.PartitionParam.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void PartitionParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.PartitionParam.collection_name) -} - -// optional string tag = 2; -void PartitionParam::clear_tag() { - tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& PartitionParam::tag() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.PartitionParam.tag) - return tag_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void PartitionParam::set_tag(const ::std::string& value) { - - tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.PartitionParam.tag) -} - void PartitionParam::set_tag(const char* value) { - - tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.PartitionParam.tag) -} - void PartitionParam::set_tag(const char* value, size_t size) { - - tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.PartitionParam.tag) -} - ::std::string* PartitionParam::mutable_tag() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.PartitionParam.tag) - return tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* PartitionParam::release_tag() { - // @@protoc_insertion_point(field_release:suvlim.grpc.PartitionParam.tag) - - return tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void PartitionParam::set_allocated_tag(::std::string* tag) { - if (tag != NULL) { - - } else { - - } - tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tag); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.PartitionParam.tag) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PartitionList::kStatusFieldNumber; -const int PartitionList::kPartitionTagArrayFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PartitionList::PartitionList() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.PartitionList) -} - -void PartitionList::InitAsDefaultInstance() { - _is_default_instance_ = true; - status_ = const_cast< ::suvlim::grpc::Status*>(&::suvlim::grpc::Status::default_instance()); -} - -PartitionList::PartitionList(const PartitionList& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.PartitionList) -} - -void PartitionList::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - status_ = NULL; -} - -PartitionList::~PartitionList() { - // @@protoc_insertion_point(destructor:suvlim.grpc.PartitionList) - SharedDtor(); -} - -void PartitionList::SharedDtor() { - if (this != default_instance_) { - delete status_; - } -} - -void PartitionList::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* PartitionList::descriptor() { - protobuf_AssignDescriptorsOnce(); - return PartitionList_descriptor_; -} - -const PartitionList& PartitionList::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -PartitionList* PartitionList::default_instance_ = NULL; - -PartitionList* PartitionList::New(::google::protobuf::Arena* arena) const { - PartitionList* n = new PartitionList; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void PartitionList::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.PartitionList) - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; - partition_tag_array_.Clear(); -} - -bool PartitionList::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.PartitionList) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .suvlim.grpc.Status status = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_status())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_partition_tag_array; - break; - } - - // repeated string partition_tag_array = 2; - case 2: { - if (tag == 18) { - parse_partition_tag_array: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_partition_tag_array())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag_array(this->partition_tag_array_size() - 1).data(), - this->partition_tag_array(this->partition_tag_array_size() - 1).length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.PartitionList.partition_tag_array")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_partition_tag_array; - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.PartitionList) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.PartitionList) - return false; -#undef DO_ -} - -void PartitionList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.PartitionList) - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->status_, output); - } - - // repeated string partition_tag_array = 2; - for (int i = 0; i < this->partition_tag_array_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag_array(i).data(), this->partition_tag_array(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.PartitionList.partition_tag_array"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->partition_tag_array(i), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.PartitionList) -} - -::google::protobuf::uint8* PartitionList::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.PartitionList) - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->status_, false, target); - } - - // repeated string partition_tag_array = 2; - for (int i = 0; i < this->partition_tag_array_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag_array(i).data(), this->partition_tag_array(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.PartitionList.partition_tag_array"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(2, this->partition_tag_array(i), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.PartitionList) - return target; -} - -int PartitionList::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.PartitionList) - int total_size = 0; - - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->status_); - } - - // repeated string partition_tag_array = 2; - total_size += 1 * this->partition_tag_array_size(); - for (int i = 0; i < this->partition_tag_array_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->partition_tag_array(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void PartitionList::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.PartitionList) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const PartitionList* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.PartitionList) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.PartitionList) - MergeFrom(*source); - } -} - -void PartitionList::MergeFrom(const PartitionList& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.PartitionList) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - partition_tag_array_.MergeFrom(from.partition_tag_array_); - if (from.has_status()) { - mutable_status()->::suvlim::grpc::Status::MergeFrom(from.status()); - } -} - -void PartitionList::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.PartitionList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PartitionList::CopyFrom(const PartitionList& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.PartitionList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PartitionList::IsInitialized() const { - - return true; -} - -void PartitionList::Swap(PartitionList* other) { - if (other == this) return; - InternalSwap(other); -} -void PartitionList::InternalSwap(PartitionList* other) { - std::swap(status_, other->status_); - partition_tag_array_.UnsafeArenaSwap(&other->partition_tag_array_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata PartitionList::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = PartitionList_descriptor_; - metadata.reflection = PartitionList_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// PartitionList - -// optional .suvlim.grpc.Status status = 1; -bool PartitionList::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -void PartitionList::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -const ::suvlim::grpc::Status& PartitionList::status() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.PartitionList.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -::suvlim::grpc::Status* PartitionList::mutable_status() { - - if (status_ == NULL) { - status_ = new ::suvlim::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.PartitionList.status) - return status_; -} -::suvlim::grpc::Status* PartitionList::release_status() { - // @@protoc_insertion_point(field_release:suvlim.grpc.PartitionList.status) - - ::suvlim::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -void PartitionList::set_allocated_status(::suvlim::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.PartitionList.status) -} - -// repeated string partition_tag_array = 2; -int PartitionList::partition_tag_array_size() const { - return partition_tag_array_.size(); -} -void PartitionList::clear_partition_tag_array() { - partition_tag_array_.Clear(); -} - const ::std::string& PartitionList::partition_tag_array(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.PartitionList.partition_tag_array) - return partition_tag_array_.Get(index); -} - ::std::string* PartitionList::mutable_partition_tag_array(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.PartitionList.partition_tag_array) - return partition_tag_array_.Mutable(index); -} - void PartitionList::set_partition_tag_array(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:suvlim.grpc.PartitionList.partition_tag_array) - partition_tag_array_.Mutable(index)->assign(value); -} - void PartitionList::set_partition_tag_array(int index, const char* value) { - partition_tag_array_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.PartitionList.partition_tag_array) -} - void PartitionList::set_partition_tag_array(int index, const char* value, size_t size) { - partition_tag_array_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.PartitionList.partition_tag_array) -} - ::std::string* PartitionList::add_partition_tag_array() { - // @@protoc_insertion_point(field_add_mutable:suvlim.grpc.PartitionList.partition_tag_array) - return partition_tag_array_.Add(); -} - void PartitionList::add_partition_tag_array(const ::std::string& value) { - partition_tag_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.PartitionList.partition_tag_array) -} - void PartitionList::add_partition_tag_array(const char* value) { - partition_tag_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:suvlim.grpc.PartitionList.partition_tag_array) -} - void PartitionList::add_partition_tag_array(const char* value, size_t size) { - partition_tag_array_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:suvlim.grpc.PartitionList.partition_tag_array) -} - const ::google::protobuf::RepeatedPtrField< ::std::string>& -PartitionList::partition_tag_array() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.PartitionList.partition_tag_array) - return partition_tag_array_; -} - ::google::protobuf::RepeatedPtrField< ::std::string>* -PartitionList::mutable_partition_tag_array() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.PartitionList.partition_tag_array) - return &partition_tag_array_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VectorRowRecord::kFloatDataFieldNumber; -const int VectorRowRecord::kBinaryDataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -VectorRowRecord::VectorRowRecord() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.VectorRowRecord) -} - -void VectorRowRecord::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -VectorRowRecord::VectorRowRecord(const VectorRowRecord& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.VectorRowRecord) -} - -void VectorRowRecord::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - binary_data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -VectorRowRecord::~VectorRowRecord() { - // @@protoc_insertion_point(destructor:suvlim.grpc.VectorRowRecord) - SharedDtor(); -} - -void VectorRowRecord::SharedDtor() { - binary_data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void VectorRowRecord::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* VectorRowRecord::descriptor() { - protobuf_AssignDescriptorsOnce(); - return VectorRowRecord_descriptor_; -} - -const VectorRowRecord& VectorRowRecord::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -VectorRowRecord* VectorRowRecord::default_instance_ = NULL; - -VectorRowRecord* VectorRowRecord::New(::google::protobuf::Arena* arena) const { - VectorRowRecord* n = new VectorRowRecord; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void VectorRowRecord::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.VectorRowRecord) - binary_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - float_data_.Clear(); -} - -bool VectorRowRecord::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.VectorRowRecord) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated float float_data = 1; - case 1: { - if (tag == 10) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_float_data()))); - } else if (tag == 13) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 10, input, this->mutable_float_data()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_binary_data; - break; - } - - // optional bytes binary_data = 2; - case 2: { - if (tag == 18) { - parse_binary_data: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_binary_data())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.VectorRowRecord) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.VectorRowRecord) - return false; -#undef DO_ -} - -void VectorRowRecord::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.VectorRowRecord) - // repeated float float_data = 1; - if (this->float_data_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_float_data_cached_byte_size_); - } - for (int i = 0; i < this->float_data_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloatNoTag( - this->float_data(i), output); - } - - // optional bytes binary_data = 2; - if (this->binary_data().size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 2, this->binary_data(), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.VectorRowRecord) -} - -::google::protobuf::uint8* VectorRowRecord::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.VectorRowRecord) - // repeated float float_data = 1; - if (this->float_data_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 1, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _float_data_cached_byte_size_, target); - } - for (int i = 0; i < this->float_data_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatNoTagToArray(this->float_data(i), target); - } - - // optional bytes binary_data = 2; - if (this->binary_data().size() > 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 2, this->binary_data(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.VectorRowRecord) - return target; -} - -int VectorRowRecord::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.VectorRowRecord) - int total_size = 0; - - // optional bytes binary_data = 2; - if (this->binary_data().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->binary_data()); - } - - // repeated float float_data = 1; - { - int data_size = 0; - data_size = 4 * this->float_data_size(); - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _float_data_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void VectorRowRecord::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.VectorRowRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const VectorRowRecord* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.VectorRowRecord) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.VectorRowRecord) - MergeFrom(*source); - } -} - -void VectorRowRecord::MergeFrom(const VectorRowRecord& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.VectorRowRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - float_data_.MergeFrom(from.float_data_); - if (from.binary_data().size() > 0) { - - binary_data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.binary_data_); - } -} - -void VectorRowRecord::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.VectorRowRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VectorRowRecord::CopyFrom(const VectorRowRecord& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.VectorRowRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VectorRowRecord::IsInitialized() const { - - return true; -} - -void VectorRowRecord::Swap(VectorRowRecord* other) { - if (other == this) return; - InternalSwap(other); -} -void VectorRowRecord::InternalSwap(VectorRowRecord* other) { - float_data_.UnsafeArenaSwap(&other->float_data_); - binary_data_.Swap(&other->binary_data_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata VectorRowRecord::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = VectorRowRecord_descriptor_; - metadata.reflection = VectorRowRecord_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// VectorRowRecord - -// repeated float float_data = 1; -int VectorRowRecord::float_data_size() const { - return float_data_.size(); -} -void VectorRowRecord::clear_float_data() { - float_data_.Clear(); -} - float VectorRowRecord::float_data(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.VectorRowRecord.float_data) - return float_data_.Get(index); -} - void VectorRowRecord::set_float_data(int index, float value) { - float_data_.Set(index, value); - // @@protoc_insertion_point(field_set:suvlim.grpc.VectorRowRecord.float_data) -} - void VectorRowRecord::add_float_data(float value) { - float_data_.Add(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.VectorRowRecord.float_data) -} - const ::google::protobuf::RepeatedField< float >& -VectorRowRecord::float_data() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.VectorRowRecord.float_data) - return float_data_; -} - ::google::protobuf::RepeatedField< float >* -VectorRowRecord::mutable_float_data() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.VectorRowRecord.float_data) - return &float_data_; -} - -// optional bytes binary_data = 2; -void VectorRowRecord::clear_binary_data() { - binary_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& VectorRowRecord::binary_data() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.VectorRowRecord.binary_data) - return binary_data_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void VectorRowRecord::set_binary_data(const ::std::string& value) { - - binary_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.VectorRowRecord.binary_data) -} - void VectorRowRecord::set_binary_data(const char* value) { - - binary_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.VectorRowRecord.binary_data) -} - void VectorRowRecord::set_binary_data(const void* value, size_t size) { - - binary_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.VectorRowRecord.binary_data) -} - ::std::string* VectorRowRecord::mutable_binary_data() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.VectorRowRecord.binary_data) - return binary_data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* VectorRowRecord::release_binary_data() { - // @@protoc_insertion_point(field_release:suvlim.grpc.VectorRowRecord.binary_data) - - return binary_data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void VectorRowRecord::set_allocated_binary_data(::std::string* binary_data) { - if (binary_data != NULL) { - - } else { - - } - binary_data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), binary_data); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.VectorRowRecord.binary_data) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int EntityIds::kStatusFieldNumber; -const int EntityIds::kEntityIdArrayFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -EntityIds::EntityIds() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.EntityIds) -} - -void EntityIds::InitAsDefaultInstance() { - _is_default_instance_ = true; - status_ = const_cast< ::suvlim::grpc::Status*>(&::suvlim::grpc::Status::default_instance()); -} - -EntityIds::EntityIds(const EntityIds& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.EntityIds) -} - -void EntityIds::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - status_ = NULL; -} - -EntityIds::~EntityIds() { - // @@protoc_insertion_point(destructor:suvlim.grpc.EntityIds) - SharedDtor(); -} - -void EntityIds::SharedDtor() { - if (this != default_instance_) { - delete status_; - } -} - -void EntityIds::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* EntityIds::descriptor() { - protobuf_AssignDescriptorsOnce(); - return EntityIds_descriptor_; -} - -const EntityIds& EntityIds::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -EntityIds* EntityIds::default_instance_ = NULL; - -EntityIds* EntityIds::New(::google::protobuf::Arena* arena) const { - EntityIds* n = new EntityIds; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void EntityIds::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.EntityIds) - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; - entity_id_array_.Clear(); -} - -bool EntityIds::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.EntityIds) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .suvlim.grpc.Status status = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_status())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_entity_id_array; - break; - } - - // repeated int64 entity_id_array = 2; - case 2: { - if (tag == 18) { - parse_entity_id_array: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, this->mutable_entity_id_array()))); - } else if (tag == 16) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - 1, 18, input, this->mutable_entity_id_array()))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.EntityIds) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.EntityIds) - return false; -#undef DO_ -} - -void EntityIds::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.EntityIds) - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->status_, output); - } - - // repeated int64 entity_id_array = 2; - if (this->entity_id_array_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_entity_id_array_cached_byte_size_); - } - for (int i = 0; i < this->entity_id_array_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag( - this->entity_id_array(i), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.EntityIds) -} - -::google::protobuf::uint8* EntityIds::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.EntityIds) - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->status_, false, target); - } - - // repeated int64 entity_id_array = 2; - if (this->entity_id_array_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 2, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _entity_id_array_cached_byte_size_, target); - } - for (int i = 0; i < this->entity_id_array_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->entity_id_array(i), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.EntityIds) - return target; -} - -int EntityIds::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.EntityIds) - int total_size = 0; - - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->status_); - } - - // repeated int64 entity_id_array = 2; - { - int data_size = 0; - for (int i = 0; i < this->entity_id_array_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int64Size(this->entity_id_array(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _entity_id_array_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void EntityIds::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.EntityIds) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const EntityIds* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.EntityIds) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.EntityIds) - MergeFrom(*source); - } -} - -void EntityIds::MergeFrom(const EntityIds& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.EntityIds) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - entity_id_array_.MergeFrom(from.entity_id_array_); - if (from.has_status()) { - mutable_status()->::suvlim::grpc::Status::MergeFrom(from.status()); - } -} - -void EntityIds::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.EntityIds) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EntityIds::CopyFrom(const EntityIds& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.EntityIds) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EntityIds::IsInitialized() const { - - return true; -} - -void EntityIds::Swap(EntityIds* other) { - if (other == this) return; - InternalSwap(other); -} -void EntityIds::InternalSwap(EntityIds* other) { - std::swap(status_, other->status_); - entity_id_array_.UnsafeArenaSwap(&other->entity_id_array_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata EntityIds::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = EntityIds_descriptor_; - metadata.reflection = EntityIds_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// EntityIds - -// optional .suvlim.grpc.Status status = 1; -bool EntityIds::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -void EntityIds::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -const ::suvlim::grpc::Status& EntityIds::status() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.EntityIds.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -::suvlim::grpc::Status* EntityIds::mutable_status() { - - if (status_ == NULL) { - status_ = new ::suvlim::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.EntityIds.status) - return status_; -} -::suvlim::grpc::Status* EntityIds::release_status() { - // @@protoc_insertion_point(field_release:suvlim.grpc.EntityIds.status) - - ::suvlim::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -void EntityIds::set_allocated_status(::suvlim::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.EntityIds.status) -} - -// repeated int64 entity_id_array = 2; -int EntityIds::entity_id_array_size() const { - return entity_id_array_.size(); -} -void EntityIds::clear_entity_id_array() { - entity_id_array_.Clear(); -} - ::google::protobuf::int64 EntityIds::entity_id_array(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.EntityIds.entity_id_array) - return entity_id_array_.Get(index); -} - void EntityIds::set_entity_id_array(int index, ::google::protobuf::int64 value) { - entity_id_array_.Set(index, value); - // @@protoc_insertion_point(field_set:suvlim.grpc.EntityIds.entity_id_array) -} - void EntityIds::add_entity_id_array(::google::protobuf::int64 value) { - entity_id_array_.Add(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.EntityIds.entity_id_array) -} - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -EntityIds::entity_id_array() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.EntityIds.entity_id_array) - return entity_id_array_; -} - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -EntityIds::mutable_entity_id_array() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.EntityIds.entity_id_array) - return &entity_id_array_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VectorRecord::kRecordsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -VectorRecord::VectorRecord() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.VectorRecord) -} - -void VectorRecord::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -VectorRecord::VectorRecord(const VectorRecord& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.VectorRecord) -} - -void VectorRecord::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; -} - -VectorRecord::~VectorRecord() { - // @@protoc_insertion_point(destructor:suvlim.grpc.VectorRecord) - SharedDtor(); -} - -void VectorRecord::SharedDtor() { - if (this != default_instance_) { - } -} - -void VectorRecord::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* VectorRecord::descriptor() { - protobuf_AssignDescriptorsOnce(); - return VectorRecord_descriptor_; -} - -const VectorRecord& VectorRecord::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -VectorRecord* VectorRecord::default_instance_ = NULL; - -VectorRecord* VectorRecord::New(::google::protobuf::Arena* arena) const { - VectorRecord* n = new VectorRecord; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void VectorRecord::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.VectorRecord) - records_.Clear(); -} - -bool VectorRecord::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.VectorRecord) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .suvlim.grpc.VectorRowRecord records = 1; - case 1: { - if (tag == 10) { - DO_(input->IncrementRecursionDepth()); - parse_loop_records: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_records())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_loop_records; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.VectorRecord) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.VectorRecord) - return false; -#undef DO_ -} - -void VectorRecord::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.VectorRecord) - // repeated .suvlim.grpc.VectorRowRecord records = 1; - for (unsigned int i = 0, n = this->records_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->records(i), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.VectorRecord) -} - -::google::protobuf::uint8* VectorRecord::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.VectorRecord) - // repeated .suvlim.grpc.VectorRowRecord records = 1; - for (unsigned int i = 0, n = this->records_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, this->records(i), false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.VectorRecord) - return target; -} - -int VectorRecord::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.VectorRecord) - int total_size = 0; - - // repeated .suvlim.grpc.VectorRowRecord records = 1; - total_size += 1 * this->records_size(); - for (int i = 0; i < this->records_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->records(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void VectorRecord::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.VectorRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const VectorRecord* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.VectorRecord) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.VectorRecord) - MergeFrom(*source); - } -} - -void VectorRecord::MergeFrom(const VectorRecord& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.VectorRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - records_.MergeFrom(from.records_); -} - -void VectorRecord::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.VectorRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VectorRecord::CopyFrom(const VectorRecord& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.VectorRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VectorRecord::IsInitialized() const { - - return true; -} - -void VectorRecord::Swap(VectorRecord* other) { - if (other == this) return; - InternalSwap(other); -} -void VectorRecord::InternalSwap(VectorRecord* other) { - records_.UnsafeArenaSwap(&other->records_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata VectorRecord::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = VectorRecord_descriptor_; - metadata.reflection = VectorRecord_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// VectorRecord - -// repeated .suvlim.grpc.VectorRowRecord records = 1; -int VectorRecord::records_size() const { - return records_.size(); -} -void VectorRecord::clear_records() { - records_.Clear(); -} -const ::suvlim::grpc::VectorRowRecord& VectorRecord::records(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.VectorRecord.records) - return records_.Get(index); -} -::suvlim::grpc::VectorRowRecord* VectorRecord::mutable_records(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.VectorRecord.records) - return records_.Mutable(index); -} -::suvlim::grpc::VectorRowRecord* VectorRecord::add_records() { - // @@protoc_insertion_point(field_add:suvlim.grpc.VectorRecord.records) - return records_.Add(); -} -::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorRowRecord >* -VectorRecord::mutable_records() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.VectorRecord.records) - return &records_; -} -const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorRowRecord >& -VectorRecord::records() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.VectorRecord.records) - return records_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VectorParam::kJsonFieldNumber; -const int VectorParam::kRowRecordFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -VectorParam::VectorParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.VectorParam) -} - -void VectorParam::InitAsDefaultInstance() { - _is_default_instance_ = true; - row_record_ = const_cast< ::suvlim::grpc::VectorRecord*>(&::suvlim::grpc::VectorRecord::default_instance()); -} - -VectorParam::VectorParam(const VectorParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.VectorParam) -} - -void VectorParam::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - json_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - row_record_ = NULL; -} - -VectorParam::~VectorParam() { - // @@protoc_insertion_point(destructor:suvlim.grpc.VectorParam) - SharedDtor(); -} - -void VectorParam::SharedDtor() { - json_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - delete row_record_; - } -} - -void VectorParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* VectorParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return VectorParam_descriptor_; -} - -const VectorParam& VectorParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -VectorParam* VectorParam::default_instance_ = NULL; - -VectorParam* VectorParam::New(::google::protobuf::Arena* arena) const { - VectorParam* n = new VectorParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void VectorParam::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.VectorParam) - json_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && row_record_ != NULL) delete row_record_; - row_record_ = NULL; -} - -bool VectorParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.VectorParam) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string json = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_json())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->json().data(), this->json().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.VectorParam.json")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_row_record; - break; - } - - // optional .suvlim.grpc.VectorRecord row_record = 2; - case 2: { - if (tag == 18) { - parse_row_record: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_row_record())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.VectorParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.VectorParam) - return false; -#undef DO_ -} - -void VectorParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.VectorParam) - // optional string json = 1; - if (this->json().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->json().data(), this->json().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.VectorParam.json"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->json(), output); - } - - // optional .suvlim.grpc.VectorRecord row_record = 2; - if (this->has_row_record()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *this->row_record_, output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.VectorParam) -} - -::google::protobuf::uint8* VectorParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.VectorParam) - // optional string json = 1; - if (this->json().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->json().data(), this->json().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.VectorParam.json"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->json(), target); - } - - // optional .suvlim.grpc.VectorRecord row_record = 2; - if (this->has_row_record()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *this->row_record_, false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.VectorParam) - return target; -} - -int VectorParam::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.VectorParam) - int total_size = 0; - - // optional string json = 1; - if (this->json().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->json()); - } - - // optional .suvlim.grpc.VectorRecord row_record = 2; - if (this->has_row_record()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->row_record_); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void VectorParam::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.VectorParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const VectorParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.VectorParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.VectorParam) - MergeFrom(*source); - } -} - -void VectorParam::MergeFrom(const VectorParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.VectorParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.json().size() > 0) { - - json_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.json_); - } - if (from.has_row_record()) { - mutable_row_record()->::suvlim::grpc::VectorRecord::MergeFrom(from.row_record()); - } -} - -void VectorParam::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.VectorParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VectorParam::CopyFrom(const VectorParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.VectorParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VectorParam::IsInitialized() const { - - return true; -} - -void VectorParam::Swap(VectorParam* other) { - if (other == this) return; - InternalSwap(other); -} -void VectorParam::InternalSwap(VectorParam* other) { - json_.Swap(&other->json_); - std::swap(row_record_, other->row_record_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata VectorParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = VectorParam_descriptor_; - metadata.reflection = VectorParam_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// VectorParam - -// optional string json = 1; -void VectorParam::clear_json() { - json_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& VectorParam::json() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.VectorParam.json) - return json_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void VectorParam::set_json(const ::std::string& value) { - - json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.VectorParam.json) -} - void VectorParam::set_json(const char* value) { - - json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.VectorParam.json) -} - void VectorParam::set_json(const char* value, size_t size) { - - json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.VectorParam.json) -} - ::std::string* VectorParam::mutable_json() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.VectorParam.json) - return json_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* VectorParam::release_json() { - // @@protoc_insertion_point(field_release:suvlim.grpc.VectorParam.json) - - return json_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void VectorParam::set_allocated_json(::std::string* json) { - if (json != NULL) { - - } else { - - } - json_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.VectorParam.json) -} - -// optional .suvlim.grpc.VectorRecord row_record = 2; -bool VectorParam::has_row_record() const { - return !_is_default_instance_ && row_record_ != NULL; -} -void VectorParam::clear_row_record() { - if (GetArenaNoVirtual() == NULL && row_record_ != NULL) delete row_record_; - row_record_ = NULL; -} -const ::suvlim::grpc::VectorRecord& VectorParam::row_record() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.VectorParam.row_record) - return row_record_ != NULL ? *row_record_ : *default_instance_->row_record_; -} -::suvlim::grpc::VectorRecord* VectorParam::mutable_row_record() { - - if (row_record_ == NULL) { - row_record_ = new ::suvlim::grpc::VectorRecord; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.VectorParam.row_record) - return row_record_; -} -::suvlim::grpc::VectorRecord* VectorParam::release_row_record() { - // @@protoc_insertion_point(field_release:suvlim.grpc.VectorParam.row_record) - - ::suvlim::grpc::VectorRecord* temp = row_record_; - row_record_ = NULL; - return temp; -} -void VectorParam::set_allocated_row_record(::suvlim::grpc::VectorRecord* row_record) { - delete row_record_; - row_record_ = row_record; - if (row_record) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.VectorParam.row_record) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int FieldMeta::kFieldNameFieldNumber; -const int FieldMeta::kTypeFieldNumber; -const int FieldMeta::kDimFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -FieldMeta::FieldMeta() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.FieldMeta) -} - -void FieldMeta::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -FieldMeta::FieldMeta(const FieldMeta& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.FieldMeta) -} - -void FieldMeta::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - field_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_ = 0; - dim_ = GOOGLE_LONGLONG(0); -} - -FieldMeta::~FieldMeta() { - // @@protoc_insertion_point(destructor:suvlim.grpc.FieldMeta) - SharedDtor(); -} - -void FieldMeta::SharedDtor() { - field_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void FieldMeta::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* FieldMeta::descriptor() { - protobuf_AssignDescriptorsOnce(); - return FieldMeta_descriptor_; -} - -const FieldMeta& FieldMeta::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -FieldMeta* FieldMeta::default_instance_ = NULL; - -FieldMeta* FieldMeta::New(::google::protobuf::Arena* arena) const { - FieldMeta* n = new FieldMeta; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void FieldMeta::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.FieldMeta) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(FieldMeta, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&first, 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - ZR_(dim_, type_); - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - -#undef ZR_HELPER_ -#undef ZR_ - -} - -bool FieldMeta::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.FieldMeta) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string field_name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_field_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.FieldMeta.field_name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_type; - break; - } - - // optional .suvlim.grpc.DataType type = 2; - case 2: { - if (tag == 16) { - parse_type: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_type(static_cast< ::suvlim::grpc::DataType >(value)); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_dim; - break; - } - - // optional int64 dim = 3; - case 3: { - if (tag == 24) { - parse_dim: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &dim_))); - - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.FieldMeta) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.FieldMeta) - return false; -#undef DO_ -} - -void FieldMeta::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.FieldMeta) - // optional string field_name = 1; - if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.FieldMeta.field_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->field_name(), output); - } - - // optional .suvlim.grpc.DataType type = 2; - if (this->type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->type(), output); - } - - // optional int64 dim = 3; - if (this->dim() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->dim(), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.FieldMeta) -} - -::google::protobuf::uint8* FieldMeta::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.FieldMeta) - // optional string field_name = 1; - if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.FieldMeta.field_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->field_name(), target); - } - - // optional .suvlim.grpc.DataType type = 2; - if (this->type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->type(), target); - } - - // optional int64 dim = 3; - if (this->dim() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->dim(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.FieldMeta) - return target; -} - -int FieldMeta::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.FieldMeta) - int total_size = 0; - - // optional string field_name = 1; - if (this->field_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->field_name()); - } - - // optional .suvlim.grpc.DataType type = 2; - if (this->type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - // optional int64 dim = 3; - if (this->dim() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->dim()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void FieldMeta::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.FieldMeta) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const FieldMeta* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.FieldMeta) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.FieldMeta) - MergeFrom(*source); - } -} - -void FieldMeta::MergeFrom(const FieldMeta& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.FieldMeta) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.field_name().size() > 0) { - - field_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - if (from.type() != 0) { - set_type(from.type()); - } - if (from.dim() != 0) { - set_dim(from.dim()); - } -} - -void FieldMeta::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.FieldMeta) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FieldMeta::CopyFrom(const FieldMeta& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.FieldMeta) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FieldMeta::IsInitialized() const { - - return true; -} - -void FieldMeta::Swap(FieldMeta* other) { - if (other == this) return; - InternalSwap(other); -} -void FieldMeta::InternalSwap(FieldMeta* other) { - field_name_.Swap(&other->field_name_); - std::swap(type_, other->type_); - std::swap(dim_, other->dim_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata FieldMeta::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = FieldMeta_descriptor_; - metadata.reflection = FieldMeta_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// FieldMeta - -// optional string field_name = 1; -void FieldMeta::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& FieldMeta::field_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FieldMeta.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void FieldMeta::set_field_name(const ::std::string& value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.FieldMeta.field_name) -} - void FieldMeta::set_field_name(const char* value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.FieldMeta.field_name) -} - void FieldMeta::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.FieldMeta.field_name) -} - ::std::string* FieldMeta::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.FieldMeta.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* FieldMeta::release_field_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.FieldMeta.field_name) - - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void FieldMeta::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.FieldMeta.field_name) -} - -// optional .suvlim.grpc.DataType type = 2; -void FieldMeta::clear_type() { - type_ = 0; -} - ::suvlim::grpc::DataType FieldMeta::type() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FieldMeta.type) - return static_cast< ::suvlim::grpc::DataType >(type_); -} - void FieldMeta::set_type(::suvlim::grpc::DataType value) { - - type_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.FieldMeta.type) -} - -// optional int64 dim = 3; -void FieldMeta::clear_dim() { - dim_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 FieldMeta::dim() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FieldMeta.dim) - return dim_; -} - void FieldMeta::set_dim(::google::protobuf::int64 value) { - - dim_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.FieldMeta.dim) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Schema::kFieldMetasFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Schema::Schema() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.Schema) -} - -void Schema::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -Schema::Schema(const Schema& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.Schema) -} - -void Schema::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; -} - -Schema::~Schema() { - // @@protoc_insertion_point(destructor:suvlim.grpc.Schema) - SharedDtor(); -} - -void Schema::SharedDtor() { - if (this != default_instance_) { - } -} - -void Schema::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* Schema::descriptor() { - protobuf_AssignDescriptorsOnce(); - return Schema_descriptor_; -} - -const Schema& Schema::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -Schema* Schema::default_instance_ = NULL; - -Schema* Schema::New(::google::protobuf::Arena* arena) const { - Schema* n = new Schema; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void Schema::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.Schema) - field_metas_.Clear(); -} - -bool Schema::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.Schema) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .suvlim.grpc.FieldMeta field_metas = 1; - case 1: { - if (tag == 10) { - DO_(input->IncrementRecursionDepth()); - parse_loop_field_metas: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_field_metas())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_loop_field_metas; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.Schema) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.Schema) - return false; -#undef DO_ -} - -void Schema::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.Schema) - // repeated .suvlim.grpc.FieldMeta field_metas = 1; - for (unsigned int i = 0, n = this->field_metas_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->field_metas(i), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.Schema) -} - -::google::protobuf::uint8* Schema::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.Schema) - // repeated .suvlim.grpc.FieldMeta field_metas = 1; - for (unsigned int i = 0, n = this->field_metas_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, this->field_metas(i), false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.Schema) - return target; -} - -int Schema::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.Schema) - int total_size = 0; - - // repeated .suvlim.grpc.FieldMeta field_metas = 1; - total_size += 1 * this->field_metas_size(); - for (int i = 0; i < this->field_metas_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->field_metas(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void Schema::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.Schema) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const Schema* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.Schema) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.Schema) - MergeFrom(*source); - } -} - -void Schema::MergeFrom(const Schema& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.Schema) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - field_metas_.MergeFrom(from.field_metas_); -} - -void Schema::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.Schema) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Schema::CopyFrom(const Schema& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.Schema) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Schema::IsInitialized() const { - - return true; -} - -void Schema::Swap(Schema* other) { - if (other == this) return; - InternalSwap(other); -} -void Schema::InternalSwap(Schema* other) { - field_metas_.UnsafeArenaSwap(&other->field_metas_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata Schema::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = Schema_descriptor_; - metadata.reflection = Schema_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// Schema - -// repeated .suvlim.grpc.FieldMeta field_metas = 1; -int Schema::field_metas_size() const { - return field_metas_.size(); -} -void Schema::clear_field_metas() { - field_metas_.Clear(); -} -const ::suvlim::grpc::FieldMeta& Schema::field_metas(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Schema.field_metas) - return field_metas_.Get(index); -} -::suvlim::grpc::FieldMeta* Schema::mutable_field_metas(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.Schema.field_metas) - return field_metas_.Mutable(index); -} -::suvlim::grpc::FieldMeta* Schema::add_field_metas() { - // @@protoc_insertion_point(field_add:suvlim.grpc.Schema.field_metas) - return field_metas_.Add(); -} -::google::protobuf::RepeatedPtrField< ::suvlim::grpc::FieldMeta >* -Schema::mutable_field_metas() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.Schema.field_metas) - return &field_metas_; -} -const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::FieldMeta >& -Schema::field_metas() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.Schema.field_metas) - return field_metas_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int RowData::kBlobFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -RowData::RowData() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.RowData) -} - -void RowData::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -RowData::RowData(const RowData& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.RowData) -} - -void RowData::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - blob_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -RowData::~RowData() { - // @@protoc_insertion_point(destructor:suvlim.grpc.RowData) - SharedDtor(); -} - -void RowData::SharedDtor() { - blob_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void RowData::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* RowData::descriptor() { - protobuf_AssignDescriptorsOnce(); - return RowData_descriptor_; -} - -const RowData& RowData::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -RowData* RowData::default_instance_ = NULL; - -RowData* RowData::New(::google::protobuf::Arena* arena) const { - RowData* n = new RowData; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void RowData::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.RowData) - blob_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -bool RowData::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.RowData) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional bytes blob = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_blob())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.RowData) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.RowData) - return false; -#undef DO_ -} - -void RowData::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.RowData) - // optional bytes blob = 1; - if (this->blob().size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 1, this->blob(), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.RowData) -} - -::google::protobuf::uint8* RowData::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.RowData) - // optional bytes blob = 1; - if (this->blob().size() > 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 1, this->blob(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.RowData) - return target; -} - -int RowData::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.RowData) - int total_size = 0; - - // optional bytes blob = 1; - if (this->blob().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->blob()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void RowData::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.RowData) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const RowData* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.RowData) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.RowData) - MergeFrom(*source); - } -} - -void RowData::MergeFrom(const RowData& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.RowData) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.blob().size() > 0) { - - blob_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.blob_); - } -} - -void RowData::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.RowData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RowData::CopyFrom(const RowData& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.RowData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RowData::IsInitialized() const { - - return true; -} - -void RowData::Swap(RowData* other) { - if (other == this) return; - InternalSwap(other); -} -void RowData::InternalSwap(RowData* other) { - blob_.Swap(&other->blob_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata RowData::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = RowData_descriptor_; - metadata.reflection = RowData_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// RowData - -// optional bytes blob = 1; -void RowData::clear_blob() { - blob_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& RowData::blob() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.RowData.blob) - return blob_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void RowData::set_blob(const ::std::string& value) { - - blob_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.RowData.blob) -} - void RowData::set_blob(const char* value) { - - blob_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.RowData.blob) -} - void RowData::set_blob(const void* value, size_t size) { - - blob_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.RowData.blob) -} - ::std::string* RowData::mutable_blob() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.RowData.blob) - return blob_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* RowData::release_blob() { - // @@protoc_insertion_point(field_release:suvlim.grpc.RowData.blob) - - return blob_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void RowData::set_allocated_blob(::std::string* blob) { - if (blob != NULL) { - - } else { - - } - blob_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), blob); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.RowData.blob) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int InsertParam::kCollectionNameFieldNumber; -const int InsertParam::kSchemaFieldNumber; -const int InsertParam::kRowsDataFieldNumber; -const int InsertParam::kEntityIdArrayFieldNumber; -const int InsertParam::kPartitionTagFieldNumber; -const int InsertParam::kExtraParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -InsertParam::InsertParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.InsertParam) -} - -void InsertParam::InitAsDefaultInstance() { - _is_default_instance_ = true; - schema_ = const_cast< ::suvlim::grpc::Schema*>(&::suvlim::grpc::Schema::default_instance()); -} - -InsertParam::InsertParam(const InsertParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.InsertParam) -} - -void InsertParam::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - schema_ = NULL; - partition_tag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -InsertParam::~InsertParam() { - // @@protoc_insertion_point(destructor:suvlim.grpc.InsertParam) - SharedDtor(); -} - -void InsertParam::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - partition_tag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - delete schema_; - } -} - -void InsertParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* InsertParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return InsertParam_descriptor_; -} - -const InsertParam& InsertParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -InsertParam* InsertParam::default_instance_ = NULL; - -InsertParam* InsertParam::New(::google::protobuf::Arena* arena) const { - InsertParam* n = new InsertParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void InsertParam::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.InsertParam) - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && schema_ != NULL) delete schema_; - schema_ = NULL; - partition_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - rows_data_.Clear(); - entity_id_array_.Clear(); - extra_params_.Clear(); -} - -bool InsertParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.InsertParam) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.InsertParam.collection_name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_schema; - break; - } - - // optional .suvlim.grpc.Schema schema = 2; - case 2: { - if (tag == 18) { - parse_schema: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_schema())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_rows_data; - break; - } - - // repeated .suvlim.grpc.RowData rows_data = 3; - case 3: { - if (tag == 26) { - parse_rows_data: - DO_(input->IncrementRecursionDepth()); - parse_loop_rows_data: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_rows_data())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_loop_rows_data; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectTag(34)) goto parse_entity_id_array; - break; - } - - // repeated int64 entity_id_array = 4; - case 4: { - if (tag == 34) { - parse_entity_id_array: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, this->mutable_entity_id_array()))); - } else if (tag == 32) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - 1, 34, input, this->mutable_entity_id_array()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_partition_tag; - break; - } - - // optional string partition_tag = 5; - case 5: { - if (tag == 42) { - parse_partition_tag: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_partition_tag())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), this->partition_tag().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.InsertParam.partition_tag")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_extra_params; - break; - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 6; - case 6: { - if (tag == 50) { - parse_extra_params: - DO_(input->IncrementRecursionDepth()); - parse_loop_extra_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_extra_params())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.InsertParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.InsertParam) - return false; -#undef DO_ -} - -void InsertParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.InsertParam) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.InsertParam.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // optional .suvlim.grpc.Schema schema = 2; - if (this->has_schema()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *this->schema_, output); - } - - // repeated .suvlim.grpc.RowData rows_data = 3; - for (unsigned int i = 0, n = this->rows_data_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->rows_data(i), output); - } - - // repeated int64 entity_id_array = 4; - if (this->entity_id_array_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_entity_id_array_cached_byte_size_); - } - for (int i = 0; i < this->entity_id_array_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag( - this->entity_id_array(i), output); - } - - // optional string partition_tag = 5; - if (this->partition_tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), this->partition_tag().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.InsertParam.partition_tag"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->partition_tag(), output); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 6; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->extra_params(i), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.InsertParam) -} - -::google::protobuf::uint8* InsertParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.InsertParam) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.InsertParam.collection_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // optional .suvlim.grpc.Schema schema = 2; - if (this->has_schema()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *this->schema_, false, target); - } - - // repeated .suvlim.grpc.RowData rows_data = 3; - for (unsigned int i = 0, n = this->rows_data_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, this->rows_data(i), false, target); - } - - // repeated int64 entity_id_array = 4; - if (this->entity_id_array_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 4, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _entity_id_array_cached_byte_size_, target); - } - for (int i = 0; i < this->entity_id_array_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->entity_id_array(i), target); - } - - // optional string partition_tag = 5; - if (this->partition_tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), this->partition_tag().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.InsertParam.partition_tag"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->partition_tag(), target); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 6; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 6, this->extra_params(i), false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.InsertParam) - return target; -} - -int InsertParam::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.InsertParam) - int total_size = 0; - - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // optional .suvlim.grpc.Schema schema = 2; - if (this->has_schema()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->schema_); - } - - // optional string partition_tag = 5; - if (this->partition_tag().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->partition_tag()); - } - - // repeated .suvlim.grpc.RowData rows_data = 3; - total_size += 1 * this->rows_data_size(); - for (int i = 0; i < this->rows_data_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->rows_data(i)); - } - - // repeated int64 entity_id_array = 4; - { - int data_size = 0; - for (int i = 0; i < this->entity_id_array_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int64Size(this->entity_id_array(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _entity_id_array_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 6; - total_size += 1 * this->extra_params_size(); - for (int i = 0; i < this->extra_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->extra_params(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void InsertParam::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.InsertParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const InsertParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.InsertParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.InsertParam) - MergeFrom(*source); - } -} - -void InsertParam::MergeFrom(const InsertParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.InsertParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - rows_data_.MergeFrom(from.rows_data_); - entity_id_array_.MergeFrom(from.entity_id_array_); - extra_params_.MergeFrom(from.extra_params_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.has_schema()) { - mutable_schema()->::suvlim::grpc::Schema::MergeFrom(from.schema()); - } - if (from.partition_tag().size() > 0) { - - partition_tag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); - } -} - -void InsertParam::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.InsertParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void InsertParam::CopyFrom(const InsertParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.InsertParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool InsertParam::IsInitialized() const { - - return true; -} - -void InsertParam::Swap(InsertParam* other) { - if (other == this) return; - InternalSwap(other); -} -void InsertParam::InternalSwap(InsertParam* other) { - collection_name_.Swap(&other->collection_name_); - std::swap(schema_, other->schema_); - rows_data_.UnsafeArenaSwap(&other->rows_data_); - entity_id_array_.UnsafeArenaSwap(&other->entity_id_array_); - partition_tag_.Swap(&other->partition_tag_); - extra_params_.UnsafeArenaSwap(&other->extra_params_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata InsertParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = InsertParam_descriptor_; - metadata.reflection = InsertParam_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// InsertParam - -// optional string collection_name = 1; -void InsertParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& InsertParam::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void InsertParam::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.InsertParam.collection_name) -} - void InsertParam::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.InsertParam.collection_name) -} - void InsertParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.InsertParam.collection_name) -} - ::std::string* InsertParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.InsertParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* InsertParam::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.InsertParam.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void InsertParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.InsertParam.collection_name) -} - -// optional .suvlim.grpc.Schema schema = 2; -bool InsertParam::has_schema() const { - return !_is_default_instance_ && schema_ != NULL; -} -void InsertParam::clear_schema() { - if (GetArenaNoVirtual() == NULL && schema_ != NULL) delete schema_; - schema_ = NULL; -} -const ::suvlim::grpc::Schema& InsertParam::schema() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertParam.schema) - return schema_ != NULL ? *schema_ : *default_instance_->schema_; -} -::suvlim::grpc::Schema* InsertParam::mutable_schema() { - - if (schema_ == NULL) { - schema_ = new ::suvlim::grpc::Schema; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.InsertParam.schema) - return schema_; -} -::suvlim::grpc::Schema* InsertParam::release_schema() { - // @@protoc_insertion_point(field_release:suvlim.grpc.InsertParam.schema) - - ::suvlim::grpc::Schema* temp = schema_; - schema_ = NULL; - return temp; -} -void InsertParam::set_allocated_schema(::suvlim::grpc::Schema* schema) { - delete schema_; - schema_ = schema; - if (schema) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.InsertParam.schema) -} - -// repeated .suvlim.grpc.RowData rows_data = 3; -int InsertParam::rows_data_size() const { - return rows_data_.size(); -} -void InsertParam::clear_rows_data() { - rows_data_.Clear(); -} -const ::suvlim::grpc::RowData& InsertParam::rows_data(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertParam.rows_data) - return rows_data_.Get(index); -} -::suvlim::grpc::RowData* InsertParam::mutable_rows_data(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.InsertParam.rows_data) - return rows_data_.Mutable(index); -} -::suvlim::grpc::RowData* InsertParam::add_rows_data() { - // @@protoc_insertion_point(field_add:suvlim.grpc.InsertParam.rows_data) - return rows_data_.Add(); -} -::google::protobuf::RepeatedPtrField< ::suvlim::grpc::RowData >* -InsertParam::mutable_rows_data() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.InsertParam.rows_data) - return &rows_data_; -} -const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::RowData >& -InsertParam::rows_data() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.InsertParam.rows_data) - return rows_data_; -} - -// repeated int64 entity_id_array = 4; -int InsertParam::entity_id_array_size() const { - return entity_id_array_.size(); -} -void InsertParam::clear_entity_id_array() { - entity_id_array_.Clear(); -} - ::google::protobuf::int64 InsertParam::entity_id_array(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertParam.entity_id_array) - return entity_id_array_.Get(index); -} - void InsertParam::set_entity_id_array(int index, ::google::protobuf::int64 value) { - entity_id_array_.Set(index, value); - // @@protoc_insertion_point(field_set:suvlim.grpc.InsertParam.entity_id_array) -} - void InsertParam::add_entity_id_array(::google::protobuf::int64 value) { - entity_id_array_.Add(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.InsertParam.entity_id_array) -} - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -InsertParam::entity_id_array() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.InsertParam.entity_id_array) - return entity_id_array_; -} - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -InsertParam::mutable_entity_id_array() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.InsertParam.entity_id_array) - return &entity_id_array_; -} - -// optional string partition_tag = 5; -void InsertParam::clear_partition_tag() { - partition_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& InsertParam::partition_tag() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertParam.partition_tag) - return partition_tag_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void InsertParam::set_partition_tag(const ::std::string& value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.InsertParam.partition_tag) -} - void InsertParam::set_partition_tag(const char* value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.InsertParam.partition_tag) -} - void InsertParam::set_partition_tag(const char* value, size_t size) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.InsertParam.partition_tag) -} - ::std::string* InsertParam::mutable_partition_tag() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.InsertParam.partition_tag) - return partition_tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* InsertParam::release_partition_tag() { - // @@protoc_insertion_point(field_release:suvlim.grpc.InsertParam.partition_tag) - - return partition_tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void InsertParam::set_allocated_partition_tag(::std::string* partition_tag) { - if (partition_tag != NULL) { - - } else { - - } - partition_tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), partition_tag); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.InsertParam.partition_tag) -} - -// repeated .suvlim.grpc.KeyValuePair extra_params = 6; -int InsertParam::extra_params_size() const { - return extra_params_.size(); -} -void InsertParam::clear_extra_params() { - extra_params_.Clear(); -} -const ::suvlim::grpc::KeyValuePair& InsertParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertParam.extra_params) - return extra_params_.Get(index); -} -::suvlim::grpc::KeyValuePair* InsertParam::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.InsertParam.extra_params) - return extra_params_.Mutable(index); -} -::suvlim::grpc::KeyValuePair* InsertParam::add_extra_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.InsertParam.extra_params) - return extra_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -InsertParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.InsertParam.extra_params) - return &extra_params_; -} -const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -InsertParam::extra_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.InsertParam.extra_params) - return extra_params_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SearchParam::kCollectionNameFieldNumber; -const int SearchParam::kVectorParamFieldNumber; -const int SearchParam::kDslFieldNumber; -const int SearchParam::kPartitionTagFieldNumber; -const int SearchParam::kExtraParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SearchParam::SearchParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.SearchParam) -} - -void SearchParam::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -SearchParam::SearchParam(const SearchParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.SearchParam) -} - -void SearchParam::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - dsl_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -SearchParam::~SearchParam() { - // @@protoc_insertion_point(destructor:suvlim.grpc.SearchParam) - SharedDtor(); -} - -void SearchParam::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - dsl_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void SearchParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* SearchParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SearchParam_descriptor_; -} - -const SearchParam& SearchParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -SearchParam* SearchParam::default_instance_ = NULL; - -SearchParam* SearchParam::New(::google::protobuf::Arena* arena) const { - SearchParam* n = new SearchParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void SearchParam::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.SearchParam) - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - dsl_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - vector_param_.Clear(); - partition_tag_.Clear(); - extra_params_.Clear(); -} - -bool SearchParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.SearchParam) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.SearchParam.collection_name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_vector_param; - break; - } - - // repeated .suvlim.grpc.VectorParam vector_param = 2; - case 2: { - if (tag == 18) { - parse_vector_param: - DO_(input->IncrementRecursionDepth()); - parse_loop_vector_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_vector_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_loop_vector_param; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectTag(26)) goto parse_dsl; - break; - } - - // optional string dsl = 3; - case 3: { - if (tag == 26) { - parse_dsl: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_dsl())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->dsl().data(), this->dsl().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.SearchParam.dsl")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_partition_tag; - break; - } - - // repeated string partition_tag = 4; - case 4: { - if (tag == 34) { - parse_partition_tag: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_partition_tag())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag(this->partition_tag_size() - 1).data(), - this->partition_tag(this->partition_tag_size() - 1).length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.SearchParam.partition_tag")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_partition_tag; - if (input->ExpectTag(42)) goto parse_extra_params; - break; - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 5; - case 5: { - if (tag == 42) { - parse_extra_params: - DO_(input->IncrementRecursionDepth()); - parse_loop_extra_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_extra_params())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.SearchParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.SearchParam) - return false; -#undef DO_ -} - -void SearchParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.SearchParam) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.SearchParam.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // repeated .suvlim.grpc.VectorParam vector_param = 2; - for (unsigned int i = 0, n = this->vector_param_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->vector_param(i), output); - } - - // optional string dsl = 3; - if (this->dsl().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->dsl().data(), this->dsl().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.SearchParam.dsl"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->dsl(), output); - } - - // repeated string partition_tag = 4; - for (int i = 0; i < this->partition_tag_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag(i).data(), this->partition_tag(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.SearchParam.partition_tag"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 4, this->partition_tag(i), output); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->extra_params(i), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.SearchParam) -} - -::google::protobuf::uint8* SearchParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.SearchParam) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.SearchParam.collection_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // repeated .suvlim.grpc.VectorParam vector_param = 2; - for (unsigned int i = 0, n = this->vector_param_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, this->vector_param(i), false, target); - } - - // optional string dsl = 3; - if (this->dsl().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->dsl().data(), this->dsl().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.SearchParam.dsl"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->dsl(), target); - } - - // repeated string partition_tag = 4; - for (int i = 0; i < this->partition_tag_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag(i).data(), this->partition_tag(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.SearchParam.partition_tag"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(4, this->partition_tag(i), target); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 5, this->extra_params(i), false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.SearchParam) - return target; -} - -int SearchParam::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.SearchParam) - int total_size = 0; - - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // optional string dsl = 3; - if (this->dsl().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->dsl()); - } - - // repeated .suvlim.grpc.VectorParam vector_param = 2; - total_size += 1 * this->vector_param_size(); - for (int i = 0; i < this->vector_param_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->vector_param(i)); - } - - // repeated string partition_tag = 4; - total_size += 1 * this->partition_tag_size(); - for (int i = 0; i < this->partition_tag_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->partition_tag(i)); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 5; - total_size += 1 * this->extra_params_size(); - for (int i = 0; i < this->extra_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->extra_params(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SearchParam::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.SearchParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const SearchParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.SearchParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.SearchParam) - MergeFrom(*source); - } -} - -void SearchParam::MergeFrom(const SearchParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.SearchParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - vector_param_.MergeFrom(from.vector_param_); - partition_tag_.MergeFrom(from.partition_tag_); - extra_params_.MergeFrom(from.extra_params_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.dsl().size() > 0) { - - dsl_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dsl_); - } -} - -void SearchParam::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.SearchParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SearchParam::CopyFrom(const SearchParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.SearchParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SearchParam::IsInitialized() const { - - return true; -} - -void SearchParam::Swap(SearchParam* other) { - if (other == this) return; - InternalSwap(other); -} -void SearchParam::InternalSwap(SearchParam* other) { - collection_name_.Swap(&other->collection_name_); - vector_param_.UnsafeArenaSwap(&other->vector_param_); - dsl_.Swap(&other->dsl_); - partition_tag_.UnsafeArenaSwap(&other->partition_tag_); - extra_params_.UnsafeArenaSwap(&other->extra_params_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata SearchParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SearchParam_descriptor_; - metadata.reflection = SearchParam_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SearchParam - -// optional string collection_name = 1; -void SearchParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& SearchParam::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void SearchParam::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.SearchParam.collection_name) -} - void SearchParam::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.SearchParam.collection_name) -} - void SearchParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.SearchParam.collection_name) -} - ::std::string* SearchParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* SearchParam::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.SearchParam.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void SearchParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.SearchParam.collection_name) -} - -// repeated .suvlim.grpc.VectorParam vector_param = 2; -int SearchParam::vector_param_size() const { - return vector_param_.size(); -} -void SearchParam::clear_vector_param() { - vector_param_.Clear(); -} -const ::suvlim::grpc::VectorParam& SearchParam::vector_param(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchParam.vector_param) - return vector_param_.Get(index); -} -::suvlim::grpc::VectorParam* SearchParam::mutable_vector_param(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchParam.vector_param) - return vector_param_.Mutable(index); -} -::suvlim::grpc::VectorParam* SearchParam::add_vector_param() { - // @@protoc_insertion_point(field_add:suvlim.grpc.SearchParam.vector_param) - return vector_param_.Add(); -} -::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorParam >* -SearchParam::mutable_vector_param() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.SearchParam.vector_param) - return &vector_param_; -} -const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorParam >& -SearchParam::vector_param() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.SearchParam.vector_param) - return vector_param_; -} - -// optional string dsl = 3; -void SearchParam::clear_dsl() { - dsl_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& SearchParam::dsl() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchParam.dsl) - return dsl_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void SearchParam::set_dsl(const ::std::string& value) { - - dsl_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.SearchParam.dsl) -} - void SearchParam::set_dsl(const char* value) { - - dsl_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.SearchParam.dsl) -} - void SearchParam::set_dsl(const char* value, size_t size) { - - dsl_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.SearchParam.dsl) -} - ::std::string* SearchParam::mutable_dsl() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchParam.dsl) - return dsl_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* SearchParam::release_dsl() { - // @@protoc_insertion_point(field_release:suvlim.grpc.SearchParam.dsl) - - return dsl_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void SearchParam::set_allocated_dsl(::std::string* dsl) { - if (dsl != NULL) { - - } else { - - } - dsl_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), dsl); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.SearchParam.dsl) -} - -// repeated string partition_tag = 4; -int SearchParam::partition_tag_size() const { - return partition_tag_.size(); -} -void SearchParam::clear_partition_tag() { - partition_tag_.Clear(); -} - const ::std::string& SearchParam::partition_tag(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchParam.partition_tag) - return partition_tag_.Get(index); -} - ::std::string* SearchParam::mutable_partition_tag(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchParam.partition_tag) - return partition_tag_.Mutable(index); -} - void SearchParam::set_partition_tag(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:suvlim.grpc.SearchParam.partition_tag) - partition_tag_.Mutable(index)->assign(value); -} - void SearchParam::set_partition_tag(int index, const char* value) { - partition_tag_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.SearchParam.partition_tag) -} - void SearchParam::set_partition_tag(int index, const char* value, size_t size) { - partition_tag_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.SearchParam.partition_tag) -} - ::std::string* SearchParam::add_partition_tag() { - // @@protoc_insertion_point(field_add_mutable:suvlim.grpc.SearchParam.partition_tag) - return partition_tag_.Add(); -} - void SearchParam::add_partition_tag(const ::std::string& value) { - partition_tag_.Add()->assign(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.SearchParam.partition_tag) -} - void SearchParam::add_partition_tag(const char* value) { - partition_tag_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:suvlim.grpc.SearchParam.partition_tag) -} - void SearchParam::add_partition_tag(const char* value, size_t size) { - partition_tag_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:suvlim.grpc.SearchParam.partition_tag) -} - const ::google::protobuf::RepeatedPtrField< ::std::string>& -SearchParam::partition_tag() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.SearchParam.partition_tag) - return partition_tag_; -} - ::google::protobuf::RepeatedPtrField< ::std::string>* -SearchParam::mutable_partition_tag() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.SearchParam.partition_tag) - return &partition_tag_; -} - -// repeated .suvlim.grpc.KeyValuePair extra_params = 5; -int SearchParam::extra_params_size() const { - return extra_params_.size(); -} -void SearchParam::clear_extra_params() { - extra_params_.Clear(); -} -const ::suvlim::grpc::KeyValuePair& SearchParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchParam.extra_params) - return extra_params_.Get(index); -} -::suvlim::grpc::KeyValuePair* SearchParam::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchParam.extra_params) - return extra_params_.Mutable(index); -} -::suvlim::grpc::KeyValuePair* SearchParam::add_extra_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.SearchParam.extra_params) - return extra_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -SearchParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.SearchParam.extra_params) - return &extra_params_; -} -const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -SearchParam::extra_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.SearchParam.extra_params) - return extra_params_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SearchInSegmentParam::kFileIdArrayFieldNumber; -const int SearchInSegmentParam::kSearchParamFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SearchInSegmentParam::SearchInSegmentParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.SearchInSegmentParam) -} - -void SearchInSegmentParam::InitAsDefaultInstance() { - _is_default_instance_ = true; - search_param_ = const_cast< ::suvlim::grpc::SearchParam*>(&::suvlim::grpc::SearchParam::default_instance()); -} - -SearchInSegmentParam::SearchInSegmentParam(const SearchInSegmentParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.SearchInSegmentParam) -} - -void SearchInSegmentParam::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - search_param_ = NULL; -} - -SearchInSegmentParam::~SearchInSegmentParam() { - // @@protoc_insertion_point(destructor:suvlim.grpc.SearchInSegmentParam) - SharedDtor(); -} - -void SearchInSegmentParam::SharedDtor() { - if (this != default_instance_) { - delete search_param_; - } -} - -void SearchInSegmentParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* SearchInSegmentParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SearchInSegmentParam_descriptor_; -} - -const SearchInSegmentParam& SearchInSegmentParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -SearchInSegmentParam* SearchInSegmentParam::default_instance_ = NULL; - -SearchInSegmentParam* SearchInSegmentParam::New(::google::protobuf::Arena* arena) const { - SearchInSegmentParam* n = new SearchInSegmentParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void SearchInSegmentParam::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.SearchInSegmentParam) - if (GetArenaNoVirtual() == NULL && search_param_ != NULL) delete search_param_; - search_param_ = NULL; - file_id_array_.Clear(); -} - -bool SearchInSegmentParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.SearchInSegmentParam) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated string file_id_array = 1; - case 1: { - if (tag == 10) { - parse_file_id_array: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_file_id_array())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->file_id_array(this->file_id_array_size() - 1).data(), - this->file_id_array(this->file_id_array_size() - 1).length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.SearchInSegmentParam.file_id_array")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_file_id_array; - if (input->ExpectTag(18)) goto parse_search_param; - break; - } - - // optional .suvlim.grpc.SearchParam search_param = 2; - case 2: { - if (tag == 18) { - parse_search_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_search_param())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.SearchInSegmentParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.SearchInSegmentParam) - return false; -#undef DO_ -} - -void SearchInSegmentParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.SearchInSegmentParam) - // repeated string file_id_array = 1; - for (int i = 0; i < this->file_id_array_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->file_id_array(i).data(), this->file_id_array(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.SearchInSegmentParam.file_id_array"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->file_id_array(i), output); - } - - // optional .suvlim.grpc.SearchParam search_param = 2; - if (this->has_search_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *this->search_param_, output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.SearchInSegmentParam) -} - -::google::protobuf::uint8* SearchInSegmentParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.SearchInSegmentParam) - // repeated string file_id_array = 1; - for (int i = 0; i < this->file_id_array_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->file_id_array(i).data(), this->file_id_array(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.SearchInSegmentParam.file_id_array"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(1, this->file_id_array(i), target); - } - - // optional .suvlim.grpc.SearchParam search_param = 2; - if (this->has_search_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *this->search_param_, false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.SearchInSegmentParam) - return target; -} - -int SearchInSegmentParam::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.SearchInSegmentParam) - int total_size = 0; - - // optional .suvlim.grpc.SearchParam search_param = 2; - if (this->has_search_param()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->search_param_); - } - - // repeated string file_id_array = 1; - total_size += 1 * this->file_id_array_size(); - for (int i = 0; i < this->file_id_array_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->file_id_array(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SearchInSegmentParam::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.SearchInSegmentParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const SearchInSegmentParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.SearchInSegmentParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.SearchInSegmentParam) - MergeFrom(*source); - } -} - -void SearchInSegmentParam::MergeFrom(const SearchInSegmentParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.SearchInSegmentParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - file_id_array_.MergeFrom(from.file_id_array_); - if (from.has_search_param()) { - mutable_search_param()->::suvlim::grpc::SearchParam::MergeFrom(from.search_param()); - } -} - -void SearchInSegmentParam::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.SearchInSegmentParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SearchInSegmentParam::CopyFrom(const SearchInSegmentParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.SearchInSegmentParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SearchInSegmentParam::IsInitialized() const { - - return true; -} - -void SearchInSegmentParam::Swap(SearchInSegmentParam* other) { - if (other == this) return; - InternalSwap(other); -} -void SearchInSegmentParam::InternalSwap(SearchInSegmentParam* other) { - file_id_array_.UnsafeArenaSwap(&other->file_id_array_); - std::swap(search_param_, other->search_param_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata SearchInSegmentParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SearchInSegmentParam_descriptor_; - metadata.reflection = SearchInSegmentParam_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SearchInSegmentParam - -// repeated string file_id_array = 1; -int SearchInSegmentParam::file_id_array_size() const { - return file_id_array_.size(); -} -void SearchInSegmentParam::clear_file_id_array() { - file_id_array_.Clear(); -} - const ::std::string& SearchInSegmentParam::file_id_array(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchInSegmentParam.file_id_array) - return file_id_array_.Get(index); -} - ::std::string* SearchInSegmentParam::mutable_file_id_array(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchInSegmentParam.file_id_array) - return file_id_array_.Mutable(index); -} - void SearchInSegmentParam::set_file_id_array(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:suvlim.grpc.SearchInSegmentParam.file_id_array) - file_id_array_.Mutable(index)->assign(value); -} - void SearchInSegmentParam::set_file_id_array(int index, const char* value) { - file_id_array_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.SearchInSegmentParam.file_id_array) -} - void SearchInSegmentParam::set_file_id_array(int index, const char* value, size_t size) { - file_id_array_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.SearchInSegmentParam.file_id_array) -} - ::std::string* SearchInSegmentParam::add_file_id_array() { - // @@protoc_insertion_point(field_add_mutable:suvlim.grpc.SearchInSegmentParam.file_id_array) - return file_id_array_.Add(); -} - void SearchInSegmentParam::add_file_id_array(const ::std::string& value) { - file_id_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.SearchInSegmentParam.file_id_array) -} - void SearchInSegmentParam::add_file_id_array(const char* value) { - file_id_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:suvlim.grpc.SearchInSegmentParam.file_id_array) -} - void SearchInSegmentParam::add_file_id_array(const char* value, size_t size) { - file_id_array_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:suvlim.grpc.SearchInSegmentParam.file_id_array) -} - const ::google::protobuf::RepeatedPtrField< ::std::string>& -SearchInSegmentParam::file_id_array() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.SearchInSegmentParam.file_id_array) - return file_id_array_; -} - ::google::protobuf::RepeatedPtrField< ::std::string>* -SearchInSegmentParam::mutable_file_id_array() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.SearchInSegmentParam.file_id_array) - return &file_id_array_; -} - -// optional .suvlim.grpc.SearchParam search_param = 2; -bool SearchInSegmentParam::has_search_param() const { - return !_is_default_instance_ && search_param_ != NULL; -} -void SearchInSegmentParam::clear_search_param() { - if (GetArenaNoVirtual() == NULL && search_param_ != NULL) delete search_param_; - search_param_ = NULL; -} -const ::suvlim::grpc::SearchParam& SearchInSegmentParam::search_param() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchInSegmentParam.search_param) - return search_param_ != NULL ? *search_param_ : *default_instance_->search_param_; -} -::suvlim::grpc::SearchParam* SearchInSegmentParam::mutable_search_param() { - - if (search_param_ == NULL) { - search_param_ = new ::suvlim::grpc::SearchParam; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchInSegmentParam.search_param) - return search_param_; -} -::suvlim::grpc::SearchParam* SearchInSegmentParam::release_search_param() { - // @@protoc_insertion_point(field_release:suvlim.grpc.SearchInSegmentParam.search_param) - - ::suvlim::grpc::SearchParam* temp = search_param_; - search_param_ = NULL; - return temp; -} -void SearchInSegmentParam::set_allocated_search_param(::suvlim::grpc::SearchParam* search_param) { - delete search_param_; - search_param_ = search_param; - if (search_param) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.SearchInSegmentParam.search_param) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Entities::kStatusFieldNumber; -const int Entities::kIdsFieldNumber; -const int Entities::kValidRowFieldNumber; -const int Entities::kRowsDataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Entities::Entities() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.Entities) -} - -void Entities::InitAsDefaultInstance() { - _is_default_instance_ = true; - status_ = const_cast< ::suvlim::grpc::Status*>(&::suvlim::grpc::Status::default_instance()); -} - -Entities::Entities(const Entities& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.Entities) -} - -void Entities::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - status_ = NULL; -} - -Entities::~Entities() { - // @@protoc_insertion_point(destructor:suvlim.grpc.Entities) - SharedDtor(); -} - -void Entities::SharedDtor() { - if (this != default_instance_) { - delete status_; - } -} - -void Entities::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* Entities::descriptor() { - protobuf_AssignDescriptorsOnce(); - return Entities_descriptor_; -} - -const Entities& Entities::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -Entities* Entities::default_instance_ = NULL; - -Entities* Entities::New(::google::protobuf::Arena* arena) const { - Entities* n = new Entities; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void Entities::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.Entities) - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; - ids_.Clear(); - valid_row_.Clear(); - rows_data_.Clear(); -} - -bool Entities::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.Entities) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .suvlim.grpc.Status status = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_status())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_ids; - break; - } - - // repeated int64 ids = 2; - case 2: { - if (tag == 18) { - parse_ids: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, this->mutable_ids()))); - } else if (tag == 16) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - 1, 18, input, this->mutable_ids()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_valid_row; - break; - } - - // repeated bool valid_row = 3; - case 3: { - if (tag == 26) { - parse_valid_row: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, this->mutable_valid_row()))); - } else if (tag == 24) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - 1, 26, input, this->mutable_valid_row()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_rows_data; - break; - } - - // repeated .suvlim.grpc.RowData rows_data = 4; - case 4: { - if (tag == 34) { - parse_rows_data: - DO_(input->IncrementRecursionDepth()); - parse_loop_rows_data: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_rows_data())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_loop_rows_data; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.Entities) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.Entities) - return false; -#undef DO_ -} - -void Entities::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.Entities) - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->status_, output); - } - - // repeated int64 ids = 2; - if (this->ids_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_ids_cached_byte_size_); - } - for (int i = 0; i < this->ids_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag( - this->ids(i), output); - } - - // repeated bool valid_row = 3; - if (this->valid_row_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_valid_row_cached_byte_size_); - } - for (int i = 0; i < this->valid_row_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteBoolNoTag( - this->valid_row(i), output); - } - - // repeated .suvlim.grpc.RowData rows_data = 4; - for (unsigned int i = 0, n = this->rows_data_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->rows_data(i), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.Entities) -} - -::google::protobuf::uint8* Entities::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.Entities) - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->status_, false, target); - } - - // repeated int64 ids = 2; - if (this->ids_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 2, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _ids_cached_byte_size_, target); - } - for (int i = 0; i < this->ids_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->ids(i), target); - } - - // repeated bool valid_row = 3; - if (this->valid_row_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 3, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _valid_row_cached_byte_size_, target); - } - for (int i = 0; i < this->valid_row_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteBoolNoTagToArray(this->valid_row(i), target); - } - - // repeated .suvlim.grpc.RowData rows_data = 4; - for (unsigned int i = 0, n = this->rows_data_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, this->rows_data(i), false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.Entities) - return target; -} - -int Entities::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.Entities) - int total_size = 0; - - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->status_); - } - - // repeated int64 ids = 2; - { - int data_size = 0; - for (int i = 0; i < this->ids_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int64Size(this->ids(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _ids_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated bool valid_row = 3; - { - int data_size = 0; - data_size = 1 * this->valid_row_size(); - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _valid_row_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated .suvlim.grpc.RowData rows_data = 4; - total_size += 1 * this->rows_data_size(); - for (int i = 0; i < this->rows_data_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->rows_data(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void Entities::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.Entities) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const Entities* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.Entities) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.Entities) - MergeFrom(*source); - } -} - -void Entities::MergeFrom(const Entities& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.Entities) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - ids_.MergeFrom(from.ids_); - valid_row_.MergeFrom(from.valid_row_); - rows_data_.MergeFrom(from.rows_data_); - if (from.has_status()) { - mutable_status()->::suvlim::grpc::Status::MergeFrom(from.status()); - } -} - -void Entities::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.Entities) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Entities::CopyFrom(const Entities& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.Entities) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Entities::IsInitialized() const { - - return true; -} - -void Entities::Swap(Entities* other) { - if (other == this) return; - InternalSwap(other); -} -void Entities::InternalSwap(Entities* other) { - std::swap(status_, other->status_); - ids_.UnsafeArenaSwap(&other->ids_); - valid_row_.UnsafeArenaSwap(&other->valid_row_); - rows_data_.UnsafeArenaSwap(&other->rows_data_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata Entities::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = Entities_descriptor_; - metadata.reflection = Entities_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// Entities - -// optional .suvlim.grpc.Status status = 1; -bool Entities::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -void Entities::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -const ::suvlim::grpc::Status& Entities::status() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Entities.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -::suvlim::grpc::Status* Entities::mutable_status() { - - if (status_ == NULL) { - status_ = new ::suvlim::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.Entities.status) - return status_; -} -::suvlim::grpc::Status* Entities::release_status() { - // @@protoc_insertion_point(field_release:suvlim.grpc.Entities.status) - - ::suvlim::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -void Entities::set_allocated_status(::suvlim::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.Entities.status) -} - -// repeated int64 ids = 2; -int Entities::ids_size() const { - return ids_.size(); -} -void Entities::clear_ids() { - ids_.Clear(); -} - ::google::protobuf::int64 Entities::ids(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Entities.ids) - return ids_.Get(index); -} - void Entities::set_ids(int index, ::google::protobuf::int64 value) { - ids_.Set(index, value); - // @@protoc_insertion_point(field_set:suvlim.grpc.Entities.ids) -} - void Entities::add_ids(::google::protobuf::int64 value) { - ids_.Add(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.Entities.ids) -} - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -Entities::ids() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.Entities.ids) - return ids_; -} - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -Entities::mutable_ids() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.Entities.ids) - return &ids_; -} - -// repeated bool valid_row = 3; -int Entities::valid_row_size() const { - return valid_row_.size(); -} -void Entities::clear_valid_row() { - valid_row_.Clear(); -} - bool Entities::valid_row(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Entities.valid_row) - return valid_row_.Get(index); -} - void Entities::set_valid_row(int index, bool value) { - valid_row_.Set(index, value); - // @@protoc_insertion_point(field_set:suvlim.grpc.Entities.valid_row) -} - void Entities::add_valid_row(bool value) { - valid_row_.Add(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.Entities.valid_row) -} - const ::google::protobuf::RepeatedField< bool >& -Entities::valid_row() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.Entities.valid_row) - return valid_row_; -} - ::google::protobuf::RepeatedField< bool >* -Entities::mutable_valid_row() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.Entities.valid_row) - return &valid_row_; -} - -// repeated .suvlim.grpc.RowData rows_data = 4; -int Entities::rows_data_size() const { - return rows_data_.size(); -} -void Entities::clear_rows_data() { - rows_data_.Clear(); -} -const ::suvlim::grpc::RowData& Entities::rows_data(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Entities.rows_data) - return rows_data_.Get(index); -} -::suvlim::grpc::RowData* Entities::mutable_rows_data(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.Entities.rows_data) - return rows_data_.Mutable(index); -} -::suvlim::grpc::RowData* Entities::add_rows_data() { - // @@protoc_insertion_point(field_add:suvlim.grpc.Entities.rows_data) - return rows_data_.Add(); -} -::google::protobuf::RepeatedPtrField< ::suvlim::grpc::RowData >* -Entities::mutable_rows_data() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.Entities.rows_data) - return &rows_data_; -} -const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::RowData >& -Entities::rows_data() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.Entities.rows_data) - return rows_data_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int QueryResult::kStatusFieldNumber; -const int QueryResult::kEntitiesFieldNumber; -const int QueryResult::kRowNumFieldNumber; -const int QueryResult::kScoresFieldNumber; -const int QueryResult::kDistancesFieldNumber; -const int QueryResult::kExtraParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -QueryResult::QueryResult() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.QueryResult) -} - -void QueryResult::InitAsDefaultInstance() { - _is_default_instance_ = true; - status_ = const_cast< ::suvlim::grpc::Status*>(&::suvlim::grpc::Status::default_instance()); - entities_ = const_cast< ::suvlim::grpc::Entities*>(&::suvlim::grpc::Entities::default_instance()); -} - -QueryResult::QueryResult(const QueryResult& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.QueryResult) -} - -void QueryResult::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - status_ = NULL; - entities_ = NULL; - row_num_ = GOOGLE_LONGLONG(0); -} - -QueryResult::~QueryResult() { - // @@protoc_insertion_point(destructor:suvlim.grpc.QueryResult) - SharedDtor(); -} - -void QueryResult::SharedDtor() { - if (this != default_instance_) { - delete status_; - delete entities_; - } -} - -void QueryResult::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* QueryResult::descriptor() { - protobuf_AssignDescriptorsOnce(); - return QueryResult_descriptor_; -} - -const QueryResult& QueryResult::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -QueryResult* QueryResult::default_instance_ = NULL; - -QueryResult* QueryResult::New(::google::protobuf::Arena* arena) const { - QueryResult* n = new QueryResult; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void QueryResult::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.QueryResult) - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; - if (GetArenaNoVirtual() == NULL && entities_ != NULL) delete entities_; - entities_ = NULL; - row_num_ = GOOGLE_LONGLONG(0); - scores_.Clear(); - distances_.Clear(); - extra_params_.Clear(); -} - -bool QueryResult::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.QueryResult) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .suvlim.grpc.Status status = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_status())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_entities; - break; - } - - // optional .suvlim.grpc.Entities entities = 2; - case 2: { - if (tag == 18) { - parse_entities: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_entities())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_row_num; - break; - } - - // optional int64 row_num = 3; - case 3: { - if (tag == 24) { - parse_row_num: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &row_num_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_scores; - break; - } - - // repeated float scores = 4; - case 4: { - if (tag == 34) { - parse_scores: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_scores()))); - } else if (tag == 37) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 34, input, this->mutable_scores()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_distances; - break; - } - - // repeated float distances = 5; - case 5: { - if (tag == 42) { - parse_distances: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_distances()))); - } else if (tag == 45) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 42, input, this->mutable_distances()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_extra_params; - break; - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 6; - case 6: { - if (tag == 50) { - parse_extra_params: - DO_(input->IncrementRecursionDepth()); - parse_loop_extra_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_extra_params())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.QueryResult) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.QueryResult) - return false; -#undef DO_ -} - -void QueryResult::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.QueryResult) - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->status_, output); - } - - // optional .suvlim.grpc.Entities entities = 2; - if (this->has_entities()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *this->entities_, output); - } - - // optional int64 row_num = 3; - if (this->row_num() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->row_num(), output); - } - - // repeated float scores = 4; - if (this->scores_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_scores_cached_byte_size_); - } - for (int i = 0; i < this->scores_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloatNoTag( - this->scores(i), output); - } - - // repeated float distances = 5; - if (this->distances_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_distances_cached_byte_size_); - } - for (int i = 0; i < this->distances_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloatNoTag( - this->distances(i), output); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 6; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->extra_params(i), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.QueryResult) -} - -::google::protobuf::uint8* QueryResult::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.QueryResult) - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->status_, false, target); - } - - // optional .suvlim.grpc.Entities entities = 2; - if (this->has_entities()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *this->entities_, false, target); - } - - // optional int64 row_num = 3; - if (this->row_num() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->row_num(), target); - } - - // repeated float scores = 4; - if (this->scores_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 4, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _scores_cached_byte_size_, target); - } - for (int i = 0; i < this->scores_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatNoTagToArray(this->scores(i), target); - } - - // repeated float distances = 5; - if (this->distances_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 5, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _distances_cached_byte_size_, target); - } - for (int i = 0; i < this->distances_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatNoTagToArray(this->distances(i), target); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 6; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 6, this->extra_params(i), false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.QueryResult) - return target; -} - -int QueryResult::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.QueryResult) - int total_size = 0; - - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->status_); - } - - // optional .suvlim.grpc.Entities entities = 2; - if (this->has_entities()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->entities_); - } - - // optional int64 row_num = 3; - if (this->row_num() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->row_num()); - } - - // repeated float scores = 4; - { - int data_size = 0; - data_size = 4 * this->scores_size(); - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _scores_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated float distances = 5; - { - int data_size = 0; - data_size = 4 * this->distances_size(); - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _distances_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 6; - total_size += 1 * this->extra_params_size(); - for (int i = 0; i < this->extra_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->extra_params(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void QueryResult::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.QueryResult) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const QueryResult* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.QueryResult) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.QueryResult) - MergeFrom(*source); - } -} - -void QueryResult::MergeFrom(const QueryResult& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.QueryResult) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - scores_.MergeFrom(from.scores_); - distances_.MergeFrom(from.distances_); - extra_params_.MergeFrom(from.extra_params_); - if (from.has_status()) { - mutable_status()->::suvlim::grpc::Status::MergeFrom(from.status()); - } - if (from.has_entities()) { - mutable_entities()->::suvlim::grpc::Entities::MergeFrom(from.entities()); - } - if (from.row_num() != 0) { - set_row_num(from.row_num()); - } -} - -void QueryResult::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.QueryResult) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void QueryResult::CopyFrom(const QueryResult& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.QueryResult) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool QueryResult::IsInitialized() const { - - return true; -} - -void QueryResult::Swap(QueryResult* other) { - if (other == this) return; - InternalSwap(other); -} -void QueryResult::InternalSwap(QueryResult* other) { - std::swap(status_, other->status_); - std::swap(entities_, other->entities_); - std::swap(row_num_, other->row_num_); - scores_.UnsafeArenaSwap(&other->scores_); - distances_.UnsafeArenaSwap(&other->distances_); - extra_params_.UnsafeArenaSwap(&other->extra_params_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata QueryResult::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = QueryResult_descriptor_; - metadata.reflection = QueryResult_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// QueryResult - -// optional .suvlim.grpc.Status status = 1; -bool QueryResult::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -void QueryResult::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -const ::suvlim::grpc::Status& QueryResult::status() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.QueryResult.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -::suvlim::grpc::Status* QueryResult::mutable_status() { - - if (status_ == NULL) { - status_ = new ::suvlim::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.QueryResult.status) - return status_; -} -::suvlim::grpc::Status* QueryResult::release_status() { - // @@protoc_insertion_point(field_release:suvlim.grpc.QueryResult.status) - - ::suvlim::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -void QueryResult::set_allocated_status(::suvlim::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.QueryResult.status) -} - -// optional .suvlim.grpc.Entities entities = 2; -bool QueryResult::has_entities() const { - return !_is_default_instance_ && entities_ != NULL; -} -void QueryResult::clear_entities() { - if (GetArenaNoVirtual() == NULL && entities_ != NULL) delete entities_; - entities_ = NULL; -} -const ::suvlim::grpc::Entities& QueryResult::entities() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.QueryResult.entities) - return entities_ != NULL ? *entities_ : *default_instance_->entities_; -} -::suvlim::grpc::Entities* QueryResult::mutable_entities() { - - if (entities_ == NULL) { - entities_ = new ::suvlim::grpc::Entities; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.QueryResult.entities) - return entities_; -} -::suvlim::grpc::Entities* QueryResult::release_entities() { - // @@protoc_insertion_point(field_release:suvlim.grpc.QueryResult.entities) - - ::suvlim::grpc::Entities* temp = entities_; - entities_ = NULL; - return temp; -} -void QueryResult::set_allocated_entities(::suvlim::grpc::Entities* entities) { - delete entities_; - entities_ = entities; - if (entities) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.QueryResult.entities) -} - -// optional int64 row_num = 3; -void QueryResult::clear_row_num() { - row_num_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 QueryResult::row_num() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.QueryResult.row_num) - return row_num_; -} - void QueryResult::set_row_num(::google::protobuf::int64 value) { - - row_num_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.QueryResult.row_num) -} - -// repeated float scores = 4; -int QueryResult::scores_size() const { - return scores_.size(); -} -void QueryResult::clear_scores() { - scores_.Clear(); -} - float QueryResult::scores(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.QueryResult.scores) - return scores_.Get(index); -} - void QueryResult::set_scores(int index, float value) { - scores_.Set(index, value); - // @@protoc_insertion_point(field_set:suvlim.grpc.QueryResult.scores) -} - void QueryResult::add_scores(float value) { - scores_.Add(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.QueryResult.scores) -} - const ::google::protobuf::RepeatedField< float >& -QueryResult::scores() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.QueryResult.scores) - return scores_; -} - ::google::protobuf::RepeatedField< float >* -QueryResult::mutable_scores() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.QueryResult.scores) - return &scores_; -} - -// repeated float distances = 5; -int QueryResult::distances_size() const { - return distances_.size(); -} -void QueryResult::clear_distances() { - distances_.Clear(); -} - float QueryResult::distances(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.QueryResult.distances) - return distances_.Get(index); -} - void QueryResult::set_distances(int index, float value) { - distances_.Set(index, value); - // @@protoc_insertion_point(field_set:suvlim.grpc.QueryResult.distances) -} - void QueryResult::add_distances(float value) { - distances_.Add(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.QueryResult.distances) -} - const ::google::protobuf::RepeatedField< float >& -QueryResult::distances() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.QueryResult.distances) - return distances_; -} - ::google::protobuf::RepeatedField< float >* -QueryResult::mutable_distances() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.QueryResult.distances) - return &distances_; -} - -// repeated .suvlim.grpc.KeyValuePair extra_params = 6; -int QueryResult::extra_params_size() const { - return extra_params_.size(); -} -void QueryResult::clear_extra_params() { - extra_params_.Clear(); -} -const ::suvlim::grpc::KeyValuePair& QueryResult::extra_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.QueryResult.extra_params) - return extra_params_.Get(index); -} -::suvlim::grpc::KeyValuePair* QueryResult::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.QueryResult.extra_params) - return extra_params_.Mutable(index); -} -::suvlim::grpc::KeyValuePair* QueryResult::add_extra_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.QueryResult.extra_params) - return extra_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -QueryResult::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.QueryResult.extra_params) - return &extra_params_; -} -const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -QueryResult::extra_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.QueryResult.extra_params) - return extra_params_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int StringReply::kStatusFieldNumber; -const int StringReply::kStringReplyFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -StringReply::StringReply() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.StringReply) -} - -void StringReply::InitAsDefaultInstance() { - _is_default_instance_ = true; - status_ = const_cast< ::suvlim::grpc::Status*>(&::suvlim::grpc::Status::default_instance()); -} - -StringReply::StringReply(const StringReply& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.StringReply) -} - -void StringReply::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - status_ = NULL; - string_reply_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -StringReply::~StringReply() { - // @@protoc_insertion_point(destructor:suvlim.grpc.StringReply) - SharedDtor(); -} - -void StringReply::SharedDtor() { - string_reply_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - delete status_; - } -} - -void StringReply::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* StringReply::descriptor() { - protobuf_AssignDescriptorsOnce(); - return StringReply_descriptor_; -} - -const StringReply& StringReply::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -StringReply* StringReply::default_instance_ = NULL; - -StringReply* StringReply::New(::google::protobuf::Arena* arena) const { - StringReply* n = new StringReply; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void StringReply::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.StringReply) - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; - string_reply_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -bool StringReply::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.StringReply) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .suvlim.grpc.Status status = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_status())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_string_reply; - break; - } - - // optional string string_reply = 2; - case 2: { - if (tag == 18) { - parse_string_reply: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_string_reply())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->string_reply().data(), this->string_reply().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.StringReply.string_reply")); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.StringReply) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.StringReply) - return false; -#undef DO_ -} - -void StringReply::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.StringReply) - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->status_, output); - } - - // optional string string_reply = 2; - if (this->string_reply().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->string_reply().data(), this->string_reply().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.StringReply.string_reply"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->string_reply(), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.StringReply) -} - -::google::protobuf::uint8* StringReply::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.StringReply) - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->status_, false, target); - } - - // optional string string_reply = 2; - if (this->string_reply().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->string_reply().data(), this->string_reply().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.StringReply.string_reply"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->string_reply(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.StringReply) - return target; -} - -int StringReply::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.StringReply) - int total_size = 0; - - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->status_); - } - - // optional string string_reply = 2; - if (this->string_reply().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->string_reply()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void StringReply::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.StringReply) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const StringReply* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.StringReply) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.StringReply) - MergeFrom(*source); - } -} - -void StringReply::MergeFrom(const StringReply& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.StringReply) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.has_status()) { - mutable_status()->::suvlim::grpc::Status::MergeFrom(from.status()); - } - if (from.string_reply().size() > 0) { - - string_reply_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.string_reply_); - } -} - -void StringReply::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.StringReply) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StringReply::CopyFrom(const StringReply& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.StringReply) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StringReply::IsInitialized() const { - - return true; -} - -void StringReply::Swap(StringReply* other) { - if (other == this) return; - InternalSwap(other); -} -void StringReply::InternalSwap(StringReply* other) { - std::swap(status_, other->status_); - string_reply_.Swap(&other->string_reply_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata StringReply::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = StringReply_descriptor_; - metadata.reflection = StringReply_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// StringReply - -// optional .suvlim.grpc.Status status = 1; -bool StringReply::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -void StringReply::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -const ::suvlim::grpc::Status& StringReply::status() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.StringReply.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -::suvlim::grpc::Status* StringReply::mutable_status() { - - if (status_ == NULL) { - status_ = new ::suvlim::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.StringReply.status) - return status_; -} -::suvlim::grpc::Status* StringReply::release_status() { - // @@protoc_insertion_point(field_release:suvlim.grpc.StringReply.status) - - ::suvlim::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -void StringReply::set_allocated_status(::suvlim::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.StringReply.status) -} - -// optional string string_reply = 2; -void StringReply::clear_string_reply() { - string_reply_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& StringReply::string_reply() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.StringReply.string_reply) - return string_reply_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void StringReply::set_string_reply(const ::std::string& value) { - - string_reply_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.StringReply.string_reply) -} - void StringReply::set_string_reply(const char* value) { - - string_reply_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.StringReply.string_reply) -} - void StringReply::set_string_reply(const char* value, size_t size) { - - string_reply_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.StringReply.string_reply) -} - ::std::string* StringReply::mutable_string_reply() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.StringReply.string_reply) - return string_reply_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* StringReply::release_string_reply() { - // @@protoc_insertion_point(field_release:suvlim.grpc.StringReply.string_reply) - - return string_reply_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void StringReply::set_allocated_string_reply(::std::string* string_reply) { - if (string_reply != NULL) { - - } else { - - } - string_reply_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), string_reply); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.StringReply.string_reply) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int BoolReply::kStatusFieldNumber; -const int BoolReply::kBoolReplyFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -BoolReply::BoolReply() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.BoolReply) -} - -void BoolReply::InitAsDefaultInstance() { - _is_default_instance_ = true; - status_ = const_cast< ::suvlim::grpc::Status*>(&::suvlim::grpc::Status::default_instance()); -} - -BoolReply::BoolReply(const BoolReply& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.BoolReply) -} - -void BoolReply::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - status_ = NULL; - bool_reply_ = false; -} - -BoolReply::~BoolReply() { - // @@protoc_insertion_point(destructor:suvlim.grpc.BoolReply) - SharedDtor(); -} - -void BoolReply::SharedDtor() { - if (this != default_instance_) { - delete status_; - } -} - -void BoolReply::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* BoolReply::descriptor() { - protobuf_AssignDescriptorsOnce(); - return BoolReply_descriptor_; -} - -const BoolReply& BoolReply::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -BoolReply* BoolReply::default_instance_ = NULL; - -BoolReply* BoolReply::New(::google::protobuf::Arena* arena) const { - BoolReply* n = new BoolReply; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void BoolReply::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.BoolReply) - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; - bool_reply_ = false; -} - -bool BoolReply::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.BoolReply) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .suvlim.grpc.Status status = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_status())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_bool_reply; - break; - } - - // optional bool bool_reply = 2; - case 2: { - if (tag == 16) { - parse_bool_reply: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &bool_reply_))); - - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.BoolReply) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.BoolReply) - return false; -#undef DO_ -} - -void BoolReply::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.BoolReply) - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->status_, output); - } - - // optional bool bool_reply = 2; - if (this->bool_reply() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->bool_reply(), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.BoolReply) -} - -::google::protobuf::uint8* BoolReply::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.BoolReply) - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->status_, false, target); - } - - // optional bool bool_reply = 2; - if (this->bool_reply() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->bool_reply(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.BoolReply) - return target; -} - -int BoolReply::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.BoolReply) - int total_size = 0; - - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->status_); - } - - // optional bool bool_reply = 2; - if (this->bool_reply() != 0) { - total_size += 1 + 1; - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void BoolReply::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.BoolReply) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const BoolReply* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.BoolReply) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.BoolReply) - MergeFrom(*source); - } -} - -void BoolReply::MergeFrom(const BoolReply& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.BoolReply) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.has_status()) { - mutable_status()->::suvlim::grpc::Status::MergeFrom(from.status()); - } - if (from.bool_reply() != 0) { - set_bool_reply(from.bool_reply()); - } -} - -void BoolReply::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.BoolReply) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BoolReply::CopyFrom(const BoolReply& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.BoolReply) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BoolReply::IsInitialized() const { - - return true; -} - -void BoolReply::Swap(BoolReply* other) { - if (other == this) return; - InternalSwap(other); -} -void BoolReply::InternalSwap(BoolReply* other) { - std::swap(status_, other->status_); - std::swap(bool_reply_, other->bool_reply_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata BoolReply::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = BoolReply_descriptor_; - metadata.reflection = BoolReply_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// BoolReply - -// optional .suvlim.grpc.Status status = 1; -bool BoolReply::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -void BoolReply::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -const ::suvlim::grpc::Status& BoolReply::status() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.BoolReply.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -::suvlim::grpc::Status* BoolReply::mutable_status() { - - if (status_ == NULL) { - status_ = new ::suvlim::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.BoolReply.status) - return status_; -} -::suvlim::grpc::Status* BoolReply::release_status() { - // @@protoc_insertion_point(field_release:suvlim.grpc.BoolReply.status) - - ::suvlim::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -void BoolReply::set_allocated_status(::suvlim::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.BoolReply.status) -} - -// optional bool bool_reply = 2; -void BoolReply::clear_bool_reply() { - bool_reply_ = false; -} - bool BoolReply::bool_reply() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.BoolReply.bool_reply) - return bool_reply_; -} - void BoolReply::set_bool_reply(bool value) { - - bool_reply_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.BoolReply.bool_reply) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CollectionRowCount::kStatusFieldNumber; -const int CollectionRowCount::kCollectionRowCountFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CollectionRowCount::CollectionRowCount() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.CollectionRowCount) -} - -void CollectionRowCount::InitAsDefaultInstance() { - _is_default_instance_ = true; - status_ = const_cast< ::suvlim::grpc::Status*>(&::suvlim::grpc::Status::default_instance()); -} - -CollectionRowCount::CollectionRowCount(const CollectionRowCount& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.CollectionRowCount) -} - -void CollectionRowCount::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - status_ = NULL; - collection_row_count_ = GOOGLE_LONGLONG(0); -} - -CollectionRowCount::~CollectionRowCount() { - // @@protoc_insertion_point(destructor:suvlim.grpc.CollectionRowCount) - SharedDtor(); -} - -void CollectionRowCount::SharedDtor() { - if (this != default_instance_) { - delete status_; - } -} - -void CollectionRowCount::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* CollectionRowCount::descriptor() { - protobuf_AssignDescriptorsOnce(); - return CollectionRowCount_descriptor_; -} - -const CollectionRowCount& CollectionRowCount::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -CollectionRowCount* CollectionRowCount::default_instance_ = NULL; - -CollectionRowCount* CollectionRowCount::New(::google::protobuf::Arena* arena) const { - CollectionRowCount* n = new CollectionRowCount; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void CollectionRowCount::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.CollectionRowCount) - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; - collection_row_count_ = GOOGLE_LONGLONG(0); -} - -bool CollectionRowCount::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.CollectionRowCount) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .suvlim.grpc.Status status = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_status())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_collection_row_count; - break; - } - - // optional int64 collection_row_count = 2; - case 2: { - if (tag == 16) { - parse_collection_row_count: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &collection_row_count_))); - - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.CollectionRowCount) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.CollectionRowCount) - return false; -#undef DO_ -} - -void CollectionRowCount::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.CollectionRowCount) - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->status_, output); - } - - // optional int64 collection_row_count = 2; - if (this->collection_row_count() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->collection_row_count(), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.CollectionRowCount) -} - -::google::protobuf::uint8* CollectionRowCount::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.CollectionRowCount) - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->status_, false, target); - } - - // optional int64 collection_row_count = 2; - if (this->collection_row_count() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->collection_row_count(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.CollectionRowCount) - return target; -} - -int CollectionRowCount::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.CollectionRowCount) - int total_size = 0; - - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->status_); - } - - // optional int64 collection_row_count = 2; - if (this->collection_row_count() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->collection_row_count()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void CollectionRowCount::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.CollectionRowCount) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const CollectionRowCount* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.CollectionRowCount) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.CollectionRowCount) - MergeFrom(*source); - } -} - -void CollectionRowCount::MergeFrom(const CollectionRowCount& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.CollectionRowCount) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.has_status()) { - mutable_status()->::suvlim::grpc::Status::MergeFrom(from.status()); - } - if (from.collection_row_count() != 0) { - set_collection_row_count(from.collection_row_count()); - } -} - -void CollectionRowCount::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.CollectionRowCount) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CollectionRowCount::CopyFrom(const CollectionRowCount& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.CollectionRowCount) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CollectionRowCount::IsInitialized() const { - - return true; -} - -void CollectionRowCount::Swap(CollectionRowCount* other) { - if (other == this) return; - InternalSwap(other); -} -void CollectionRowCount::InternalSwap(CollectionRowCount* other) { - std::swap(status_, other->status_); - std::swap(collection_row_count_, other->collection_row_count_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata CollectionRowCount::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = CollectionRowCount_descriptor_; - metadata.reflection = CollectionRowCount_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// CollectionRowCount - -// optional .suvlim.grpc.Status status = 1; -bool CollectionRowCount::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -void CollectionRowCount::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -const ::suvlim::grpc::Status& CollectionRowCount::status() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.CollectionRowCount.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -::suvlim::grpc::Status* CollectionRowCount::mutable_status() { - - if (status_ == NULL) { - status_ = new ::suvlim::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.CollectionRowCount.status) - return status_; -} -::suvlim::grpc::Status* CollectionRowCount::release_status() { - // @@protoc_insertion_point(field_release:suvlim.grpc.CollectionRowCount.status) - - ::suvlim::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -void CollectionRowCount::set_allocated_status(::suvlim::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.CollectionRowCount.status) -} - -// optional int64 collection_row_count = 2; -void CollectionRowCount::clear_collection_row_count() { - collection_row_count_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 CollectionRowCount::collection_row_count() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.CollectionRowCount.collection_row_count) - return collection_row_count_; -} - void CollectionRowCount::set_collection_row_count(::google::protobuf::int64 value) { - - collection_row_count_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.CollectionRowCount.collection_row_count) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Command::kCmdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Command::Command() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.Command) -} - -void Command::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -Command::Command(const Command& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.Command) -} - -void Command::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - cmd_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -Command::~Command() { - // @@protoc_insertion_point(destructor:suvlim.grpc.Command) - SharedDtor(); -} - -void Command::SharedDtor() { - cmd_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void Command::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* Command::descriptor() { - protobuf_AssignDescriptorsOnce(); - return Command_descriptor_; -} - -const Command& Command::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -Command* Command::default_instance_ = NULL; - -Command* Command::New(::google::protobuf::Arena* arena) const { - Command* n = new Command; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void Command::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.Command) - cmd_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -bool Command::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.Command) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string cmd = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_cmd())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cmd().data(), this->cmd().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.Command.cmd")); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.Command) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.Command) - return false; -#undef DO_ -} - -void Command::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.Command) - // optional string cmd = 1; - if (this->cmd().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cmd().data(), this->cmd().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.Command.cmd"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->cmd(), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.Command) -} - -::google::protobuf::uint8* Command::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.Command) - // optional string cmd = 1; - if (this->cmd().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cmd().data(), this->cmd().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.Command.cmd"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->cmd(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.Command) - return target; -} - -int Command::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.Command) - int total_size = 0; - - // optional string cmd = 1; - if (this->cmd().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->cmd()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void Command::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.Command) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const Command* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.Command) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.Command) - MergeFrom(*source); - } -} - -void Command::MergeFrom(const Command& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.Command) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.cmd().size() > 0) { - - cmd_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cmd_); - } -} - -void Command::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.Command) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Command::CopyFrom(const Command& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.Command) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Command::IsInitialized() const { - - return true; -} - -void Command::Swap(Command* other) { - if (other == this) return; - InternalSwap(other); -} -void Command::InternalSwap(Command* other) { - cmd_.Swap(&other->cmd_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata Command::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = Command_descriptor_; - metadata.reflection = Command_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// Command - -// optional string cmd = 1; -void Command::clear_cmd() { - cmd_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& Command::cmd() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Command.cmd) - return cmd_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void Command::set_cmd(const ::std::string& value) { - - cmd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.Command.cmd) -} - void Command::set_cmd(const char* value) { - - cmd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.Command.cmd) -} - void Command::set_cmd(const char* value, size_t size) { - - cmd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.Command.cmd) -} - ::std::string* Command::mutable_cmd() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.Command.cmd) - return cmd_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* Command::release_cmd() { - // @@protoc_insertion_point(field_release:suvlim.grpc.Command.cmd) - - return cmd_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void Command::set_allocated_cmd(::std::string* cmd) { - if (cmd != NULL) { - - } else { - - } - cmd_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cmd); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.Command.cmd) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int IndexParam::kStatusFieldNumber; -const int IndexParam::kCollectionNameFieldNumber; -const int IndexParam::kFieldNameFieldNumber; -const int IndexParam::kIndexNameFieldNumber; -const int IndexParam::kExtraParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -IndexParam::IndexParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.IndexParam) -} - -void IndexParam::InitAsDefaultInstance() { - _is_default_instance_ = true; - status_ = const_cast< ::suvlim::grpc::Status*>(&::suvlim::grpc::Status::default_instance()); -} - -IndexParam::IndexParam(const IndexParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.IndexParam) -} - -void IndexParam::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - status_ = NULL; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - field_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - index_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -IndexParam::~IndexParam() { - // @@protoc_insertion_point(destructor:suvlim.grpc.IndexParam) - SharedDtor(); -} - -void IndexParam::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - field_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - index_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - delete status_; - } -} - -void IndexParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* IndexParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return IndexParam_descriptor_; -} - -const IndexParam& IndexParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -IndexParam* IndexParam::default_instance_ = NULL; - -IndexParam* IndexParam::New(::google::protobuf::Arena* arena) const { - IndexParam* n = new IndexParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void IndexParam::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.IndexParam) - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - index_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - extra_params_.Clear(); -} - -bool IndexParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.IndexParam) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .suvlim.grpc.Status status = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_status())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_collection_name; - break; - } - - // optional string collection_name = 2; - case 2: { - if (tag == 18) { - parse_collection_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.IndexParam.collection_name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_field_name; - break; - } - - // optional string field_name = 3; - case 3: { - if (tag == 26) { - parse_field_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_field_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.IndexParam.field_name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_index_name; - break; - } - - // optional string index_name = 4; - case 4: { - if (tag == 34) { - parse_index_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_index_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->index_name().data(), this->index_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.IndexParam.index_name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_extra_params; - break; - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 5; - case 5: { - if (tag == 42) { - parse_extra_params: - DO_(input->IncrementRecursionDepth()); - parse_loop_extra_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_extra_params())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.IndexParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.IndexParam) - return false; -#undef DO_ -} - -void IndexParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.IndexParam) - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->status_, output); - } - - // optional string collection_name = 2; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.IndexParam.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->collection_name(), output); - } - - // optional string field_name = 3; - if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.IndexParam.field_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->field_name(), output); - } - - // optional string index_name = 4; - if (this->index_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->index_name().data(), this->index_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.IndexParam.index_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->index_name(), output); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->extra_params(i), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.IndexParam) -} - -::google::protobuf::uint8* IndexParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.IndexParam) - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->status_, false, target); - } - - // optional string collection_name = 2; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.IndexParam.collection_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->collection_name(), target); - } - - // optional string field_name = 3; - if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.IndexParam.field_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->field_name(), target); - } - - // optional string index_name = 4; - if (this->index_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->index_name().data(), this->index_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.IndexParam.index_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->index_name(), target); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 5, this->extra_params(i), false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.IndexParam) - return target; -} - -int IndexParam::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.IndexParam) - int total_size = 0; - - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->status_); - } - - // optional string collection_name = 2; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // optional string field_name = 3; - if (this->field_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->field_name()); - } - - // optional string index_name = 4; - if (this->index_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->index_name()); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 5; - total_size += 1 * this->extra_params_size(); - for (int i = 0; i < this->extra_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->extra_params(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void IndexParam::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.IndexParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const IndexParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.IndexParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.IndexParam) - MergeFrom(*source); - } -} - -void IndexParam::MergeFrom(const IndexParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.IndexParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - extra_params_.MergeFrom(from.extra_params_); - if (from.has_status()) { - mutable_status()->::suvlim::grpc::Status::MergeFrom(from.status()); - } - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.field_name().size() > 0) { - - field_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - if (from.index_name().size() > 0) { - - index_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.index_name_); - } -} - -void IndexParam::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.IndexParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void IndexParam::CopyFrom(const IndexParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.IndexParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool IndexParam::IsInitialized() const { - - return true; -} - -void IndexParam::Swap(IndexParam* other) { - if (other == this) return; - InternalSwap(other); -} -void IndexParam::InternalSwap(IndexParam* other) { - std::swap(status_, other->status_); - collection_name_.Swap(&other->collection_name_); - field_name_.Swap(&other->field_name_); - index_name_.Swap(&other->index_name_); - extra_params_.UnsafeArenaSwap(&other->extra_params_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata IndexParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = IndexParam_descriptor_; - metadata.reflection = IndexParam_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// IndexParam - -// optional .suvlim.grpc.Status status = 1; -bool IndexParam::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -void IndexParam::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -const ::suvlim::grpc::Status& IndexParam::status() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.IndexParam.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -::suvlim::grpc::Status* IndexParam::mutable_status() { - - if (status_ == NULL) { - status_ = new ::suvlim::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.IndexParam.status) - return status_; -} -::suvlim::grpc::Status* IndexParam::release_status() { - // @@protoc_insertion_point(field_release:suvlim.grpc.IndexParam.status) - - ::suvlim::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -void IndexParam::set_allocated_status(::suvlim::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.IndexParam.status) -} - -// optional string collection_name = 2; -void IndexParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& IndexParam::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.IndexParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void IndexParam::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.IndexParam.collection_name) -} - void IndexParam::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.IndexParam.collection_name) -} - void IndexParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.IndexParam.collection_name) -} - ::std::string* IndexParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.IndexParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* IndexParam::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.IndexParam.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void IndexParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.IndexParam.collection_name) -} - -// optional string field_name = 3; -void IndexParam::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& IndexParam::field_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.IndexParam.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void IndexParam::set_field_name(const ::std::string& value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.IndexParam.field_name) -} - void IndexParam::set_field_name(const char* value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.IndexParam.field_name) -} - void IndexParam::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.IndexParam.field_name) -} - ::std::string* IndexParam::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.IndexParam.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* IndexParam::release_field_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.IndexParam.field_name) - - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void IndexParam::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.IndexParam.field_name) -} - -// optional string index_name = 4; -void IndexParam::clear_index_name() { - index_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& IndexParam::index_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.IndexParam.index_name) - return index_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void IndexParam::set_index_name(const ::std::string& value) { - - index_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.IndexParam.index_name) -} - void IndexParam::set_index_name(const char* value) { - - index_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.IndexParam.index_name) -} - void IndexParam::set_index_name(const char* value, size_t size) { - - index_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.IndexParam.index_name) -} - ::std::string* IndexParam::mutable_index_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.IndexParam.index_name) - return index_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* IndexParam::release_index_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.IndexParam.index_name) - - return index_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void IndexParam::set_allocated_index_name(::std::string* index_name) { - if (index_name != NULL) { - - } else { - - } - index_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), index_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.IndexParam.index_name) -} - -// repeated .suvlim.grpc.KeyValuePair extra_params = 5; -int IndexParam::extra_params_size() const { - return extra_params_.size(); -} -void IndexParam::clear_extra_params() { - extra_params_.Clear(); -} -const ::suvlim::grpc::KeyValuePair& IndexParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.IndexParam.extra_params) - return extra_params_.Get(index); -} -::suvlim::grpc::KeyValuePair* IndexParam::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.IndexParam.extra_params) - return extra_params_.Mutable(index); -} -::suvlim::grpc::KeyValuePair* IndexParam::add_extra_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.IndexParam.extra_params) - return extra_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -IndexParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.IndexParam.extra_params) - return &extra_params_; -} -const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -IndexParam::extra_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.IndexParam.extra_params) - return extra_params_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int FlushParam::kCollectionNameArrayFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -FlushParam::FlushParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.FlushParam) -} - -void FlushParam::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -FlushParam::FlushParam(const FlushParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.FlushParam) -} - -void FlushParam::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; -} - -FlushParam::~FlushParam() { - // @@protoc_insertion_point(destructor:suvlim.grpc.FlushParam) - SharedDtor(); -} - -void FlushParam::SharedDtor() { - if (this != default_instance_) { - } -} - -void FlushParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* FlushParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return FlushParam_descriptor_; -} - -const FlushParam& FlushParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -FlushParam* FlushParam::default_instance_ = NULL; - -FlushParam* FlushParam::New(::google::protobuf::Arena* arena) const { - FlushParam* n = new FlushParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void FlushParam::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.FlushParam) - collection_name_array_.Clear(); -} - -bool FlushParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.FlushParam) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated string collection_name_array = 1; - case 1: { - if (tag == 10) { - parse_collection_name_array: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_collection_name_array())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name_array(this->collection_name_array_size() - 1).data(), - this->collection_name_array(this->collection_name_array_size() - 1).length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.FlushParam.collection_name_array")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_collection_name_array; - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.FlushParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.FlushParam) - return false; -#undef DO_ -} - -void FlushParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.FlushParam) - // repeated string collection_name_array = 1; - for (int i = 0; i < this->collection_name_array_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name_array(i).data(), this->collection_name_array(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.FlushParam.collection_name_array"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->collection_name_array(i), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.FlushParam) -} - -::google::protobuf::uint8* FlushParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.FlushParam) - // repeated string collection_name_array = 1; - for (int i = 0; i < this->collection_name_array_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name_array(i).data(), this->collection_name_array(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.FlushParam.collection_name_array"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(1, this->collection_name_array(i), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.FlushParam) - return target; -} - -int FlushParam::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.FlushParam) - int total_size = 0; - - // repeated string collection_name_array = 1; - total_size += 1 * this->collection_name_array_size(); - for (int i = 0; i < this->collection_name_array_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->collection_name_array(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void FlushParam::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.FlushParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const FlushParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.FlushParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.FlushParam) - MergeFrom(*source); - } -} - -void FlushParam::MergeFrom(const FlushParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.FlushParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - collection_name_array_.MergeFrom(from.collection_name_array_); -} - -void FlushParam::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.FlushParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FlushParam::CopyFrom(const FlushParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.FlushParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FlushParam::IsInitialized() const { - - return true; -} - -void FlushParam::Swap(FlushParam* other) { - if (other == this) return; - InternalSwap(other); -} -void FlushParam::InternalSwap(FlushParam* other) { - collection_name_array_.UnsafeArenaSwap(&other->collection_name_array_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata FlushParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = FlushParam_descriptor_; - metadata.reflection = FlushParam_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// FlushParam - -// repeated string collection_name_array = 1; -int FlushParam::collection_name_array_size() const { - return collection_name_array_.size(); -} -void FlushParam::clear_collection_name_array() { - collection_name_array_.Clear(); -} - const ::std::string& FlushParam::collection_name_array(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FlushParam.collection_name_array) - return collection_name_array_.Get(index); -} - ::std::string* FlushParam::mutable_collection_name_array(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.FlushParam.collection_name_array) - return collection_name_array_.Mutable(index); -} - void FlushParam::set_collection_name_array(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:suvlim.grpc.FlushParam.collection_name_array) - collection_name_array_.Mutable(index)->assign(value); -} - void FlushParam::set_collection_name_array(int index, const char* value) { - collection_name_array_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.FlushParam.collection_name_array) -} - void FlushParam::set_collection_name_array(int index, const char* value, size_t size) { - collection_name_array_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.FlushParam.collection_name_array) -} - ::std::string* FlushParam::add_collection_name_array() { - // @@protoc_insertion_point(field_add_mutable:suvlim.grpc.FlushParam.collection_name_array) - return collection_name_array_.Add(); -} - void FlushParam::add_collection_name_array(const ::std::string& value) { - collection_name_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.FlushParam.collection_name_array) -} - void FlushParam::add_collection_name_array(const char* value) { - collection_name_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:suvlim.grpc.FlushParam.collection_name_array) -} - void FlushParam::add_collection_name_array(const char* value, size_t size) { - collection_name_array_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:suvlim.grpc.FlushParam.collection_name_array) -} - const ::google::protobuf::RepeatedPtrField< ::std::string>& -FlushParam::collection_name_array() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.FlushParam.collection_name_array) - return collection_name_array_; -} - ::google::protobuf::RepeatedPtrField< ::std::string>* -FlushParam::mutable_collection_name_array() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.FlushParam.collection_name_array) - return &collection_name_array_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CompactParam::kCollectionNameFieldNumber; -const int CompactParam::kThresholdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CompactParam::CompactParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.CompactParam) -} - -void CompactParam::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -CompactParam::CompactParam(const CompactParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.CompactParam) -} - -void CompactParam::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - threshold_ = 0; -} - -CompactParam::~CompactParam() { - // @@protoc_insertion_point(destructor:suvlim.grpc.CompactParam) - SharedDtor(); -} - -void CompactParam::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void CompactParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* CompactParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return CompactParam_descriptor_; -} - -const CompactParam& CompactParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -CompactParam* CompactParam::default_instance_ = NULL; - -CompactParam* CompactParam::New(::google::protobuf::Arena* arena) const { - CompactParam* n = new CompactParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void CompactParam::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.CompactParam) - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - threshold_ = 0; -} - -bool CompactParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.CompactParam) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.CompactParam.collection_name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(17)) goto parse_threshold; - break; - } - - // optional double threshold = 2; - case 2: { - if (tag == 17) { - parse_threshold: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &threshold_))); - - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.CompactParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.CompactParam) - return false; -#undef DO_ -} - -void CompactParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.CompactParam) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.CompactParam.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // optional double threshold = 2; - if (this->threshold() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->threshold(), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.CompactParam) -} - -::google::protobuf::uint8* CompactParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.CompactParam) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.CompactParam.collection_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // optional double threshold = 2; - if (this->threshold() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->threshold(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.CompactParam) - return target; -} - -int CompactParam::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.CompactParam) - int total_size = 0; - - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // optional double threshold = 2; - if (this->threshold() != 0) { - total_size += 1 + 8; - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void CompactParam::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.CompactParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const CompactParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.CompactParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.CompactParam) - MergeFrom(*source); - } -} - -void CompactParam::MergeFrom(const CompactParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.CompactParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.threshold() != 0) { - set_threshold(from.threshold()); - } -} - -void CompactParam::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.CompactParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CompactParam::CopyFrom(const CompactParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.CompactParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CompactParam::IsInitialized() const { - - return true; -} - -void CompactParam::Swap(CompactParam* other) { - if (other == this) return; - InternalSwap(other); -} -void CompactParam::InternalSwap(CompactParam* other) { - collection_name_.Swap(&other->collection_name_); - std::swap(threshold_, other->threshold_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata CompactParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = CompactParam_descriptor_; - metadata.reflection = CompactParam_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// CompactParam - -// optional string collection_name = 1; -void CompactParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& CompactParam::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.CompactParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void CompactParam::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.CompactParam.collection_name) -} - void CompactParam::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.CompactParam.collection_name) -} - void CompactParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.CompactParam.collection_name) -} - ::std::string* CompactParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.CompactParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* CompactParam::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.CompactParam.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void CompactParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.CompactParam.collection_name) -} - -// optional double threshold = 2; -void CompactParam::clear_threshold() { - threshold_ = 0; -} - double CompactParam::threshold() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.CompactParam.threshold) - return threshold_; -} - void CompactParam::set_threshold(double value) { - - threshold_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.CompactParam.threshold) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DeleteByIDParam::kCollectionNameFieldNumber; -const int DeleteByIDParam::kIdArrayFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DeleteByIDParam::DeleteByIDParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.DeleteByIDParam) -} - -void DeleteByIDParam::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -DeleteByIDParam::DeleteByIDParam(const DeleteByIDParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.DeleteByIDParam) -} - -void DeleteByIDParam::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -DeleteByIDParam::~DeleteByIDParam() { - // @@protoc_insertion_point(destructor:suvlim.grpc.DeleteByIDParam) - SharedDtor(); -} - -void DeleteByIDParam::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void DeleteByIDParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* DeleteByIDParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return DeleteByIDParam_descriptor_; -} - -const DeleteByIDParam& DeleteByIDParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -DeleteByIDParam* DeleteByIDParam::default_instance_ = NULL; - -DeleteByIDParam* DeleteByIDParam::New(::google::protobuf::Arena* arena) const { - DeleteByIDParam* n = new DeleteByIDParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void DeleteByIDParam::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.DeleteByIDParam) - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - id_array_.Clear(); -} - -bool DeleteByIDParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.DeleteByIDParam) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.DeleteByIDParam.collection_name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_id_array; - break; - } - - // repeated int64 id_array = 2; - case 2: { - if (tag == 18) { - parse_id_array: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, this->mutable_id_array()))); - } else if (tag == 16) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - 1, 18, input, this->mutable_id_array()))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.DeleteByIDParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.DeleteByIDParam) - return false; -#undef DO_ -} - -void DeleteByIDParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.DeleteByIDParam) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.DeleteByIDParam.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // repeated int64 id_array = 2; - if (this->id_array_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_id_array_cached_byte_size_); - } - for (int i = 0; i < this->id_array_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag( - this->id_array(i), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.DeleteByIDParam) -} - -::google::protobuf::uint8* DeleteByIDParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.DeleteByIDParam) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.DeleteByIDParam.collection_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // repeated int64 id_array = 2; - if (this->id_array_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 2, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _id_array_cached_byte_size_, target); - } - for (int i = 0; i < this->id_array_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->id_array(i), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.DeleteByIDParam) - return target; -} - -int DeleteByIDParam::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.DeleteByIDParam) - int total_size = 0; - - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // repeated int64 id_array = 2; - { - int data_size = 0; - for (int i = 0; i < this->id_array_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int64Size(this->id_array(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _id_array_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void DeleteByIDParam::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.DeleteByIDParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const DeleteByIDParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.DeleteByIDParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.DeleteByIDParam) - MergeFrom(*source); - } -} - -void DeleteByIDParam::MergeFrom(const DeleteByIDParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.DeleteByIDParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - id_array_.MergeFrom(from.id_array_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } -} - -void DeleteByIDParam::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.DeleteByIDParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DeleteByIDParam::CopyFrom(const DeleteByIDParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.DeleteByIDParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DeleteByIDParam::IsInitialized() const { - - return true; -} - -void DeleteByIDParam::Swap(DeleteByIDParam* other) { - if (other == this) return; - InternalSwap(other); -} -void DeleteByIDParam::InternalSwap(DeleteByIDParam* other) { - collection_name_.Swap(&other->collection_name_); - id_array_.UnsafeArenaSwap(&other->id_array_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata DeleteByIDParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = DeleteByIDParam_descriptor_; - metadata.reflection = DeleteByIDParam_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// DeleteByIDParam - -// optional string collection_name = 1; -void DeleteByIDParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& DeleteByIDParam::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.DeleteByIDParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void DeleteByIDParam::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.DeleteByIDParam.collection_name) -} - void DeleteByIDParam::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.DeleteByIDParam.collection_name) -} - void DeleteByIDParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.DeleteByIDParam.collection_name) -} - ::std::string* DeleteByIDParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.DeleteByIDParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* DeleteByIDParam::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.DeleteByIDParam.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void DeleteByIDParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.DeleteByIDParam.collection_name) -} - -// repeated int64 id_array = 2; -int DeleteByIDParam::id_array_size() const { - return id_array_.size(); -} -void DeleteByIDParam::clear_id_array() { - id_array_.Clear(); -} - ::google::protobuf::int64 DeleteByIDParam::id_array(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.DeleteByIDParam.id_array) - return id_array_.Get(index); -} - void DeleteByIDParam::set_id_array(int index, ::google::protobuf::int64 value) { - id_array_.Set(index, value); - // @@protoc_insertion_point(field_set:suvlim.grpc.DeleteByIDParam.id_array) -} - void DeleteByIDParam::add_id_array(::google::protobuf::int64 value) { - id_array_.Add(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.DeleteByIDParam.id_array) -} - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -DeleteByIDParam::id_array() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.DeleteByIDParam.id_array) - return id_array_; -} - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -DeleteByIDParam::mutable_id_array() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.DeleteByIDParam.id_array) - return &id_array_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CollectionInfo::kStatusFieldNumber; -const int CollectionInfo::kJsonInfoFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CollectionInfo::CollectionInfo() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.CollectionInfo) -} - -void CollectionInfo::InitAsDefaultInstance() { - _is_default_instance_ = true; - status_ = const_cast< ::suvlim::grpc::Status*>(&::suvlim::grpc::Status::default_instance()); -} - -CollectionInfo::CollectionInfo(const CollectionInfo& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.CollectionInfo) -} - -void CollectionInfo::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - status_ = NULL; - json_info_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -CollectionInfo::~CollectionInfo() { - // @@protoc_insertion_point(destructor:suvlim.grpc.CollectionInfo) - SharedDtor(); -} - -void CollectionInfo::SharedDtor() { - json_info_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - delete status_; - } -} - -void CollectionInfo::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* CollectionInfo::descriptor() { - protobuf_AssignDescriptorsOnce(); - return CollectionInfo_descriptor_; -} - -const CollectionInfo& CollectionInfo::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -CollectionInfo* CollectionInfo::default_instance_ = NULL; - -CollectionInfo* CollectionInfo::New(::google::protobuf::Arena* arena) const { - CollectionInfo* n = new CollectionInfo; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void CollectionInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.CollectionInfo) - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; - json_info_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -bool CollectionInfo::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.CollectionInfo) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .suvlim.grpc.Status status = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_status())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_json_info; - break; - } - - // optional string json_info = 2; - case 2: { - if (tag == 18) { - parse_json_info: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_json_info())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->json_info().data(), this->json_info().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.CollectionInfo.json_info")); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.CollectionInfo) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.CollectionInfo) - return false; -#undef DO_ -} - -void CollectionInfo::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.CollectionInfo) - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->status_, output); - } - - // optional string json_info = 2; - if (this->json_info().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->json_info().data(), this->json_info().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.CollectionInfo.json_info"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->json_info(), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.CollectionInfo) -} - -::google::protobuf::uint8* CollectionInfo::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.CollectionInfo) - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->status_, false, target); - } - - // optional string json_info = 2; - if (this->json_info().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->json_info().data(), this->json_info().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.CollectionInfo.json_info"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->json_info(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.CollectionInfo) - return target; -} - -int CollectionInfo::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.CollectionInfo) - int total_size = 0; - - // optional .suvlim.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->status_); - } - - // optional string json_info = 2; - if (this->json_info().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->json_info()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void CollectionInfo::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.CollectionInfo) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const CollectionInfo* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.CollectionInfo) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.CollectionInfo) - MergeFrom(*source); - } -} - -void CollectionInfo::MergeFrom(const CollectionInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.CollectionInfo) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.has_status()) { - mutable_status()->::suvlim::grpc::Status::MergeFrom(from.status()); - } - if (from.json_info().size() > 0) { - - json_info_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.json_info_); - } -} - -void CollectionInfo::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.CollectionInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CollectionInfo::CopyFrom(const CollectionInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.CollectionInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CollectionInfo::IsInitialized() const { - - return true; -} - -void CollectionInfo::Swap(CollectionInfo* other) { - if (other == this) return; - InternalSwap(other); -} -void CollectionInfo::InternalSwap(CollectionInfo* other) { - std::swap(status_, other->status_); - json_info_.Swap(&other->json_info_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata CollectionInfo::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = CollectionInfo_descriptor_; - metadata.reflection = CollectionInfo_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// CollectionInfo - -// optional .suvlim.grpc.Status status = 1; -bool CollectionInfo::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -void CollectionInfo::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -const ::suvlim::grpc::Status& CollectionInfo::status() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.CollectionInfo.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -::suvlim::grpc::Status* CollectionInfo::mutable_status() { - - if (status_ == NULL) { - status_ = new ::suvlim::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.CollectionInfo.status) - return status_; -} -::suvlim::grpc::Status* CollectionInfo::release_status() { - // @@protoc_insertion_point(field_release:suvlim.grpc.CollectionInfo.status) - - ::suvlim::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -void CollectionInfo::set_allocated_status(::suvlim::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.CollectionInfo.status) -} - -// optional string json_info = 2; -void CollectionInfo::clear_json_info() { - json_info_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& CollectionInfo::json_info() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.CollectionInfo.json_info) - return json_info_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void CollectionInfo::set_json_info(const ::std::string& value) { - - json_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.CollectionInfo.json_info) -} - void CollectionInfo::set_json_info(const char* value) { - - json_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.CollectionInfo.json_info) -} - void CollectionInfo::set_json_info(const char* value, size_t size) { - - json_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.CollectionInfo.json_info) -} - ::std::string* CollectionInfo::mutable_json_info() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.CollectionInfo.json_info) - return json_info_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* CollectionInfo::release_json_info() { - // @@protoc_insertion_point(field_release:suvlim.grpc.CollectionInfo.json_info) - - return json_info_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void CollectionInfo::set_allocated_json_info(::std::string* json_info) { - if (json_info != NULL) { - - } else { - - } - json_info_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json_info); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.CollectionInfo.json_info) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetEntityIDsParam::kCollectionNameFieldNumber; -const int GetEntityIDsParam::kSegmentIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetEntityIDsParam::GetEntityIDsParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.GetEntityIDsParam) -} - -void GetEntityIDsParam::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -GetEntityIDsParam::GetEntityIDsParam(const GetEntityIDsParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.GetEntityIDsParam) -} - -void GetEntityIDsParam::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - segment_id_ = GOOGLE_LONGLONG(0); -} - -GetEntityIDsParam::~GetEntityIDsParam() { - // @@protoc_insertion_point(destructor:suvlim.grpc.GetEntityIDsParam) - SharedDtor(); -} - -void GetEntityIDsParam::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void GetEntityIDsParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* GetEntityIDsParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return GetEntityIDsParam_descriptor_; -} - -const GetEntityIDsParam& GetEntityIDsParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -GetEntityIDsParam* GetEntityIDsParam::default_instance_ = NULL; - -GetEntityIDsParam* GetEntityIDsParam::New(::google::protobuf::Arena* arena) const { - GetEntityIDsParam* n = new GetEntityIDsParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void GetEntityIDsParam::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.GetEntityIDsParam) - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - segment_id_ = GOOGLE_LONGLONG(0); -} - -bool GetEntityIDsParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.GetEntityIDsParam) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.GetEntityIDsParam.collection_name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_segment_id; - break; - } - - // optional int64 segment_id = 2; - case 2: { - if (tag == 16) { - parse_segment_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &segment_id_))); - - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.GetEntityIDsParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.GetEntityIDsParam) - return false; -#undef DO_ -} - -void GetEntityIDsParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.GetEntityIDsParam) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.GetEntityIDsParam.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // optional int64 segment_id = 2; - if (this->segment_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->segment_id(), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.GetEntityIDsParam) -} - -::google::protobuf::uint8* GetEntityIDsParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.GetEntityIDsParam) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.GetEntityIDsParam.collection_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // optional int64 segment_id = 2; - if (this->segment_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->segment_id(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.GetEntityIDsParam) - return target; -} - -int GetEntityIDsParam::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.GetEntityIDsParam) - int total_size = 0; - - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // optional int64 segment_id = 2; - if (this->segment_id() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->segment_id()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void GetEntityIDsParam::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.GetEntityIDsParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const GetEntityIDsParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.GetEntityIDsParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.GetEntityIDsParam) - MergeFrom(*source); - } -} - -void GetEntityIDsParam::MergeFrom(const GetEntityIDsParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.GetEntityIDsParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.segment_id() != 0) { - set_segment_id(from.segment_id()); - } -} - -void GetEntityIDsParam::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.GetEntityIDsParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetEntityIDsParam::CopyFrom(const GetEntityIDsParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.GetEntityIDsParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetEntityIDsParam::IsInitialized() const { - - return true; -} - -void GetEntityIDsParam::Swap(GetEntityIDsParam* other) { - if (other == this) return; - InternalSwap(other); -} -void GetEntityIDsParam::InternalSwap(GetEntityIDsParam* other) { - collection_name_.Swap(&other->collection_name_); - std::swap(segment_id_, other->segment_id_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata GetEntityIDsParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = GetEntityIDsParam_descriptor_; - metadata.reflection = GetEntityIDsParam_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// GetEntityIDsParam - -// optional string collection_name = 1; -void GetEntityIDsParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& GetEntityIDsParam::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.GetEntityIDsParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void GetEntityIDsParam::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.GetEntityIDsParam.collection_name) -} - void GetEntityIDsParam::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.GetEntityIDsParam.collection_name) -} - void GetEntityIDsParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.GetEntityIDsParam.collection_name) -} - ::std::string* GetEntityIDsParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.GetEntityIDsParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* GetEntityIDsParam::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.GetEntityIDsParam.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void GetEntityIDsParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.GetEntityIDsParam.collection_name) -} - -// optional int64 segment_id = 2; -void GetEntityIDsParam::clear_segment_id() { - segment_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 GetEntityIDsParam::segment_id() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.GetEntityIDsParam.segment_id) - return segment_id_; -} - void GetEntityIDsParam::set_segment_id(::google::protobuf::int64 value) { - - segment_id_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.GetEntityIDsParam.segment_id) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int EntityIdentity::kCollectionNameFieldNumber; -const int EntityIdentity::kIdArrayFieldNumber; -const int EntityIdentity::kFieldNamesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -EntityIdentity::EntityIdentity() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.EntityIdentity) -} - -void EntityIdentity::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -EntityIdentity::EntityIdentity(const EntityIdentity& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.EntityIdentity) -} - -void EntityIdentity::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -EntityIdentity::~EntityIdentity() { - // @@protoc_insertion_point(destructor:suvlim.grpc.EntityIdentity) - SharedDtor(); -} - -void EntityIdentity::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void EntityIdentity::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* EntityIdentity::descriptor() { - protobuf_AssignDescriptorsOnce(); - return EntityIdentity_descriptor_; -} - -const EntityIdentity& EntityIdentity::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -EntityIdentity* EntityIdentity::default_instance_ = NULL; - -EntityIdentity* EntityIdentity::New(::google::protobuf::Arena* arena) const { - EntityIdentity* n = new EntityIdentity; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void EntityIdentity::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.EntityIdentity) - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - id_array_.Clear(); - field_names_.Clear(); -} - -bool EntityIdentity::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.EntityIdentity) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.EntityIdentity.collection_name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_id_array; - break; - } - - // repeated int64 id_array = 2; - case 2: { - if (tag == 18) { - parse_id_array: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, this->mutable_id_array()))); - } else if (tag == 16) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - 1, 18, input, this->mutable_id_array()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_field_names; - break; - } - - // repeated string field_names = 3; - case 3: { - if (tag == 26) { - parse_field_names: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_field_names())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_names(this->field_names_size() - 1).data(), - this->field_names(this->field_names_size() - 1).length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.EntityIdentity.field_names")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_field_names; - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.EntityIdentity) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.EntityIdentity) - return false; -#undef DO_ -} - -void EntityIdentity::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.EntityIdentity) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.EntityIdentity.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // repeated int64 id_array = 2; - if (this->id_array_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_id_array_cached_byte_size_); - } - for (int i = 0; i < this->id_array_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag( - this->id_array(i), output); - } - - // repeated string field_names = 3; - for (int i = 0; i < this->field_names_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_names(i).data(), this->field_names(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.EntityIdentity.field_names"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 3, this->field_names(i), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.EntityIdentity) -} - -::google::protobuf::uint8* EntityIdentity::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.EntityIdentity) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.EntityIdentity.collection_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // repeated int64 id_array = 2; - if (this->id_array_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 2, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _id_array_cached_byte_size_, target); - } - for (int i = 0; i < this->id_array_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->id_array(i), target); - } - - // repeated string field_names = 3; - for (int i = 0; i < this->field_names_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_names(i).data(), this->field_names(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.EntityIdentity.field_names"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(3, this->field_names(i), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.EntityIdentity) - return target; -} - -int EntityIdentity::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.EntityIdentity) - int total_size = 0; - - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // repeated int64 id_array = 2; - { - int data_size = 0; - for (int i = 0; i < this->id_array_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int64Size(this->id_array(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _id_array_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated string field_names = 3; - total_size += 1 * this->field_names_size(); - for (int i = 0; i < this->field_names_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->field_names(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void EntityIdentity::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.EntityIdentity) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const EntityIdentity* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.EntityIdentity) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.EntityIdentity) - MergeFrom(*source); - } -} - -void EntityIdentity::MergeFrom(const EntityIdentity& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.EntityIdentity) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - id_array_.MergeFrom(from.id_array_); - field_names_.MergeFrom(from.field_names_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } -} - -void EntityIdentity::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.EntityIdentity) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EntityIdentity::CopyFrom(const EntityIdentity& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.EntityIdentity) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EntityIdentity::IsInitialized() const { - - return true; -} - -void EntityIdentity::Swap(EntityIdentity* other) { - if (other == this) return; - InternalSwap(other); -} -void EntityIdentity::InternalSwap(EntityIdentity* other) { - collection_name_.Swap(&other->collection_name_); - id_array_.UnsafeArenaSwap(&other->id_array_); - field_names_.UnsafeArenaSwap(&other->field_names_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata EntityIdentity::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = EntityIdentity_descriptor_; - metadata.reflection = EntityIdentity_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// EntityIdentity - -// optional string collection_name = 1; -void EntityIdentity::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& EntityIdentity::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.EntityIdentity.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void EntityIdentity::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.EntityIdentity.collection_name) -} - void EntityIdentity::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.EntityIdentity.collection_name) -} - void EntityIdentity::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.EntityIdentity.collection_name) -} - ::std::string* EntityIdentity::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.EntityIdentity.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* EntityIdentity::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.EntityIdentity.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void EntityIdentity::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.EntityIdentity.collection_name) -} - -// repeated int64 id_array = 2; -int EntityIdentity::id_array_size() const { - return id_array_.size(); -} -void EntityIdentity::clear_id_array() { - id_array_.Clear(); -} - ::google::protobuf::int64 EntityIdentity::id_array(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.EntityIdentity.id_array) - return id_array_.Get(index); -} - void EntityIdentity::set_id_array(int index, ::google::protobuf::int64 value) { - id_array_.Set(index, value); - // @@protoc_insertion_point(field_set:suvlim.grpc.EntityIdentity.id_array) -} - void EntityIdentity::add_id_array(::google::protobuf::int64 value) { - id_array_.Add(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.EntityIdentity.id_array) -} - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -EntityIdentity::id_array() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.EntityIdentity.id_array) - return id_array_; -} - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -EntityIdentity::mutable_id_array() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.EntityIdentity.id_array) - return &id_array_; -} - -// repeated string field_names = 3; -int EntityIdentity::field_names_size() const { - return field_names_.size(); -} -void EntityIdentity::clear_field_names() { - field_names_.Clear(); -} - const ::std::string& EntityIdentity::field_names(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.EntityIdentity.field_names) - return field_names_.Get(index); -} - ::std::string* EntityIdentity::mutable_field_names(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.EntityIdentity.field_names) - return field_names_.Mutable(index); -} - void EntityIdentity::set_field_names(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:suvlim.grpc.EntityIdentity.field_names) - field_names_.Mutable(index)->assign(value); -} - void EntityIdentity::set_field_names(int index, const char* value) { - field_names_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.EntityIdentity.field_names) -} - void EntityIdentity::set_field_names(int index, const char* value, size_t size) { - field_names_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.EntityIdentity.field_names) -} - ::std::string* EntityIdentity::add_field_names() { - // @@protoc_insertion_point(field_add_mutable:suvlim.grpc.EntityIdentity.field_names) - return field_names_.Add(); -} - void EntityIdentity::add_field_names(const ::std::string& value) { - field_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.EntityIdentity.field_names) -} - void EntityIdentity::add_field_names(const char* value) { - field_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:suvlim.grpc.EntityIdentity.field_names) -} - void EntityIdentity::add_field_names(const char* value, size_t size) { - field_names_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:suvlim.grpc.EntityIdentity.field_names) -} - const ::google::protobuf::RepeatedPtrField< ::std::string>& -EntityIdentity::field_names() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.EntityIdentity.field_names) - return field_names_; -} - ::google::protobuf::RepeatedPtrField< ::std::string>* -EntityIdentity::mutable_field_names() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.EntityIdentity.field_names) - return &field_names_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VectorFieldParam::kDimensionFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -VectorFieldParam::VectorFieldParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.VectorFieldParam) -} - -void VectorFieldParam::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -VectorFieldParam::VectorFieldParam(const VectorFieldParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.VectorFieldParam) -} - -void VectorFieldParam::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - dimension_ = GOOGLE_LONGLONG(0); -} - -VectorFieldParam::~VectorFieldParam() { - // @@protoc_insertion_point(destructor:suvlim.grpc.VectorFieldParam) - SharedDtor(); -} - -void VectorFieldParam::SharedDtor() { - if (this != default_instance_) { - } -} - -void VectorFieldParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* VectorFieldParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return VectorFieldParam_descriptor_; -} - -const VectorFieldParam& VectorFieldParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -VectorFieldParam* VectorFieldParam::default_instance_ = NULL; - -VectorFieldParam* VectorFieldParam::New(::google::protobuf::Arena* arena) const { - VectorFieldParam* n = new VectorFieldParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void VectorFieldParam::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.VectorFieldParam) - dimension_ = GOOGLE_LONGLONG(0); -} - -bool VectorFieldParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.VectorFieldParam) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int64 dimension = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &dimension_))); - - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.VectorFieldParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.VectorFieldParam) - return false; -#undef DO_ -} - -void VectorFieldParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.VectorFieldParam) - // optional int64 dimension = 1; - if (this->dimension() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->dimension(), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.VectorFieldParam) -} - -::google::protobuf::uint8* VectorFieldParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.VectorFieldParam) - // optional int64 dimension = 1; - if (this->dimension() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->dimension(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.VectorFieldParam) - return target; -} - -int VectorFieldParam::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.VectorFieldParam) - int total_size = 0; - - // optional int64 dimension = 1; - if (this->dimension() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->dimension()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void VectorFieldParam::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.VectorFieldParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const VectorFieldParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.VectorFieldParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.VectorFieldParam) - MergeFrom(*source); - } -} - -void VectorFieldParam::MergeFrom(const VectorFieldParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.VectorFieldParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.dimension() != 0) { - set_dimension(from.dimension()); - } -} - -void VectorFieldParam::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.VectorFieldParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VectorFieldParam::CopyFrom(const VectorFieldParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.VectorFieldParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VectorFieldParam::IsInitialized() const { - - return true; -} - -void VectorFieldParam::Swap(VectorFieldParam* other) { - if (other == this) return; - InternalSwap(other); -} -void VectorFieldParam::InternalSwap(VectorFieldParam* other) { - std::swap(dimension_, other->dimension_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata VectorFieldParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = VectorFieldParam_descriptor_; - metadata.reflection = VectorFieldParam_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// VectorFieldParam - -// optional int64 dimension = 1; -void VectorFieldParam::clear_dimension() { - dimension_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 VectorFieldParam::dimension() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.VectorFieldParam.dimension) - return dimension_; -} - void VectorFieldParam::set_dimension(::google::protobuf::int64 value) { - - dimension_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.VectorFieldParam.dimension) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int FieldType::kDataTypeFieldNumber; -const int FieldType::kVectorParamFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -FieldType::FieldType() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.FieldType) -} - -void FieldType::InitAsDefaultInstance() { - _is_default_instance_ = true; - FieldType_default_oneof_instance_->data_type_ = 0; - FieldType_default_oneof_instance_->vector_param_ = const_cast< ::suvlim::grpc::VectorFieldParam*>(&::suvlim::grpc::VectorFieldParam::default_instance()); -} - -FieldType::FieldType(const FieldType& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.FieldType) -} - -void FieldType::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - clear_has_value(); -} - -FieldType::~FieldType() { - // @@protoc_insertion_point(destructor:suvlim.grpc.FieldType) - SharedDtor(); -} - -void FieldType::SharedDtor() { - if (has_value()) { - clear_value(); - } - if (this != default_instance_) { - } -} - -void FieldType::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* FieldType::descriptor() { - protobuf_AssignDescriptorsOnce(); - return FieldType_descriptor_; -} - -const FieldType& FieldType::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -FieldType* FieldType::default_instance_ = NULL; - -FieldType* FieldType::New(::google::protobuf::Arena* arena) const { - FieldType* n = new FieldType; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void FieldType::clear_value() { -// @@protoc_insertion_point(one_of_clear_start:suvlim.grpc.FieldType) - switch(value_case()) { - case kDataType: { - // No need to clear - break; - } - case kVectorParam: { - delete value_.vector_param_; - break; - } - case VALUE_NOT_SET: { - break; - } - } - _oneof_case_[0] = VALUE_NOT_SET; -} - - -void FieldType::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.FieldType) - clear_value(); -} - -bool FieldType::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.FieldType) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .suvlim.grpc.DataType data_type = 1; - case 1: { - if (tag == 8) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_data_type(static_cast< ::suvlim::grpc::DataType >(value)); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_vector_param; - break; - } - - // optional .suvlim.grpc.VectorFieldParam vector_param = 2; - case 2: { - if (tag == 18) { - parse_vector_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_vector_param())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.FieldType) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.FieldType) - return false; -#undef DO_ -} - -void FieldType::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.FieldType) - // optional .suvlim.grpc.DataType data_type = 1; - if (has_data_type()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->data_type(), output); - } - - // optional .suvlim.grpc.VectorFieldParam vector_param = 2; - if (has_vector_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *value_.vector_param_, output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.FieldType) -} - -::google::protobuf::uint8* FieldType::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.FieldType) - // optional .suvlim.grpc.DataType data_type = 1; - if (has_data_type()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->data_type(), target); - } - - // optional .suvlim.grpc.VectorFieldParam vector_param = 2; - if (has_vector_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *value_.vector_param_, false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.FieldType) - return target; -} - -int FieldType::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.FieldType) - int total_size = 0; - - switch (value_case()) { - // optional .suvlim.grpc.DataType data_type = 1; - case kDataType: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->data_type()); - break; - } - // optional .suvlim.grpc.VectorFieldParam vector_param = 2; - case kVectorParam: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *value_.vector_param_); - break; - } - case VALUE_NOT_SET: { - break; - } - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void FieldType::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.FieldType) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const FieldType* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.FieldType) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.FieldType) - MergeFrom(*source); - } -} - -void FieldType::MergeFrom(const FieldType& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.FieldType) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - switch (from.value_case()) { - case kDataType: { - set_data_type(from.data_type()); - break; - } - case kVectorParam: { - mutable_vector_param()->::suvlim::grpc::VectorFieldParam::MergeFrom(from.vector_param()); - break; - } - case VALUE_NOT_SET: { - break; - } - } -} - -void FieldType::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.FieldType) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FieldType::CopyFrom(const FieldType& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.FieldType) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FieldType::IsInitialized() const { - - return true; -} - -void FieldType::Swap(FieldType* other) { - if (other == this) return; - InternalSwap(other); -} -void FieldType::InternalSwap(FieldType* other) { - std::swap(value_, other->value_); - std::swap(_oneof_case_[0], other->_oneof_case_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata FieldType::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = FieldType_descriptor_; - metadata.reflection = FieldType_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// FieldType - -// optional .suvlim.grpc.DataType data_type = 1; -bool FieldType::has_data_type() const { - return value_case() == kDataType; -} -void FieldType::set_has_data_type() { - _oneof_case_[0] = kDataType; -} -void FieldType::clear_data_type() { - if (has_data_type()) { - value_.data_type_ = 0; - clear_has_value(); - } -} - ::suvlim::grpc::DataType FieldType::data_type() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FieldType.data_type) - if (has_data_type()) { - return static_cast< ::suvlim::grpc::DataType >(value_.data_type_); - } - return static_cast< ::suvlim::grpc::DataType >(0); -} - void FieldType::set_data_type(::suvlim::grpc::DataType value) { - if (!has_data_type()) { - clear_value(); - set_has_data_type(); - } - value_.data_type_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.FieldType.data_type) -} - -// optional .suvlim.grpc.VectorFieldParam vector_param = 2; -bool FieldType::has_vector_param() const { - return value_case() == kVectorParam; -} -void FieldType::set_has_vector_param() { - _oneof_case_[0] = kVectorParam; -} -void FieldType::clear_vector_param() { - if (has_vector_param()) { - delete value_.vector_param_; - clear_has_value(); - } -} - const ::suvlim::grpc::VectorFieldParam& FieldType::vector_param() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FieldType.vector_param) - return has_vector_param() - ? *value_.vector_param_ - : ::suvlim::grpc::VectorFieldParam::default_instance(); -} -::suvlim::grpc::VectorFieldParam* FieldType::mutable_vector_param() { - if (!has_vector_param()) { - clear_value(); - set_has_vector_param(); - value_.vector_param_ = new ::suvlim::grpc::VectorFieldParam; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.FieldType.vector_param) - return value_.vector_param_; -} -::suvlim::grpc::VectorFieldParam* FieldType::release_vector_param() { - // @@protoc_insertion_point(field_release:suvlim.grpc.FieldType.vector_param) - if (has_vector_param()) { - clear_has_value(); - ::suvlim::grpc::VectorFieldParam* temp = value_.vector_param_; - value_.vector_param_ = NULL; - return temp; - } else { - return NULL; - } -} -void FieldType::set_allocated_vector_param(::suvlim::grpc::VectorFieldParam* vector_param) { - clear_value(); - if (vector_param) { - set_has_vector_param(); - value_.vector_param_ = vector_param; - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.FieldType.vector_param) -} - -bool FieldType::has_value() const { - return value_case() != VALUE_NOT_SET; -} -void FieldType::clear_has_value() { - _oneof_case_[0] = VALUE_NOT_SET; -} -FieldType::ValueCase FieldType::value_case() const { - return FieldType::ValueCase(_oneof_case_[0]); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int FieldParam::kIdFieldNumber; -const int FieldParam::kNameFieldNumber; -const int FieldParam::kTypeFieldNumber; -const int FieldParam::kIndexParamsFieldNumber; -const int FieldParam::kExtraParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -FieldParam::FieldParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.FieldParam) -} - -void FieldParam::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -FieldParam::FieldParam(const FieldParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.FieldParam) -} - -void FieldParam::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - id_ = GOOGLE_ULONGLONG(0); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_ = 0; -} - -FieldParam::~FieldParam() { - // @@protoc_insertion_point(destructor:suvlim.grpc.FieldParam) - SharedDtor(); -} - -void FieldParam::SharedDtor() { - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void FieldParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* FieldParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return FieldParam_descriptor_; -} - -const FieldParam& FieldParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -FieldParam* FieldParam::default_instance_ = NULL; - -FieldParam* FieldParam::New(::google::protobuf::Arena* arena) const { - FieldParam* n = new FieldParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void FieldParam::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.FieldParam) - id_ = GOOGLE_ULONGLONG(0); - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_ = 0; - index_params_.Clear(); - extra_params_.Clear(); -} - -bool FieldParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.FieldParam) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint64 id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &id_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_name; - break; - } - - // optional string name = 2; - case 2: { - if (tag == 18) { - parse_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.FieldParam.name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_type; - break; - } - - // optional .suvlim.grpc.DataType type = 3; - case 3: { - if (tag == 24) { - parse_type: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_type(static_cast< ::suvlim::grpc::DataType >(value)); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_index_params; - break; - } - - // repeated .suvlim.grpc.KeyValuePair index_params = 4; - case 4: { - if (tag == 34) { - parse_index_params: - DO_(input->IncrementRecursionDepth()); - parse_loop_index_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_index_params())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_loop_index_params; - if (input->ExpectTag(42)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - break; - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 5; - case 5: { - if (tag == 42) { - DO_(input->IncrementRecursionDepth()); - parse_loop_extra_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_extra_params())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.FieldParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.FieldParam) - return false; -#undef DO_ -} - -void FieldParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.FieldParam) - // optional uint64 id = 1; - if (this->id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->id(), output); - } - - // optional string name = 2; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.FieldParam.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->name(), output); - } - - // optional .suvlim.grpc.DataType type = 3; - if (this->type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->type(), output); - } - - // repeated .suvlim.grpc.KeyValuePair index_params = 4; - for (unsigned int i = 0, n = this->index_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->index_params(i), output); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->extra_params(i), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.FieldParam) -} - -::google::protobuf::uint8* FieldParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.FieldParam) - // optional uint64 id = 1; - if (this->id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->id(), target); - } - - // optional string name = 2; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.FieldParam.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->name(), target); - } - - // optional .suvlim.grpc.DataType type = 3; - if (this->type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->type(), target); - } - - // repeated .suvlim.grpc.KeyValuePair index_params = 4; - for (unsigned int i = 0, n = this->index_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, this->index_params(i), false, target); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 5, this->extra_params(i), false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.FieldParam) - return target; -} - -int FieldParam::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.FieldParam) - int total_size = 0; - - // optional uint64 id = 1; - if (this->id() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->id()); - } - - // optional string name = 2; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // optional .suvlim.grpc.DataType type = 3; - if (this->type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - // repeated .suvlim.grpc.KeyValuePair index_params = 4; - total_size += 1 * this->index_params_size(); - for (int i = 0; i < this->index_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->index_params(i)); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 5; - total_size += 1 * this->extra_params_size(); - for (int i = 0; i < this->extra_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->extra_params(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void FieldParam::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.FieldParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const FieldParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.FieldParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.FieldParam) - MergeFrom(*source); - } -} - -void FieldParam::MergeFrom(const FieldParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.FieldParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - index_params_.MergeFrom(from.index_params_); - extra_params_.MergeFrom(from.extra_params_); - if (from.id() != 0) { - set_id(from.id()); - } - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.type() != 0) { - set_type(from.type()); - } -} - -void FieldParam::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.FieldParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FieldParam::CopyFrom(const FieldParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.FieldParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FieldParam::IsInitialized() const { - - return true; -} - -void FieldParam::Swap(FieldParam* other) { - if (other == this) return; - InternalSwap(other); -} -void FieldParam::InternalSwap(FieldParam* other) { - std::swap(id_, other->id_); - name_.Swap(&other->name_); - std::swap(type_, other->type_); - index_params_.UnsafeArenaSwap(&other->index_params_); - extra_params_.UnsafeArenaSwap(&other->extra_params_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata FieldParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = FieldParam_descriptor_; - metadata.reflection = FieldParam_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// FieldParam - -// optional uint64 id = 1; -void FieldParam::clear_id() { - id_ = GOOGLE_ULONGLONG(0); -} - ::google::protobuf::uint64 FieldParam::id() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FieldParam.id) - return id_; -} - void FieldParam::set_id(::google::protobuf::uint64 value) { - - id_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.FieldParam.id) -} - -// optional string name = 2; -void FieldParam::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& FieldParam::name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FieldParam.name) - return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void FieldParam::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.FieldParam.name) -} - void FieldParam::set_name(const char* value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.FieldParam.name) -} - void FieldParam::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.FieldParam.name) -} - ::std::string* FieldParam::mutable_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.FieldParam.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* FieldParam::release_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.FieldParam.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void FieldParam::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.FieldParam.name) -} - -// optional .suvlim.grpc.DataType type = 3; -void FieldParam::clear_type() { - type_ = 0; -} - ::suvlim::grpc::DataType FieldParam::type() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FieldParam.type) - return static_cast< ::suvlim::grpc::DataType >(type_); -} - void FieldParam::set_type(::suvlim::grpc::DataType value) { - - type_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.FieldParam.type) -} - -// repeated .suvlim.grpc.KeyValuePair index_params = 4; -int FieldParam::index_params_size() const { - return index_params_.size(); -} -void FieldParam::clear_index_params() { - index_params_.Clear(); -} -const ::suvlim::grpc::KeyValuePair& FieldParam::index_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FieldParam.index_params) - return index_params_.Get(index); -} -::suvlim::grpc::KeyValuePair* FieldParam::mutable_index_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.FieldParam.index_params) - return index_params_.Mutable(index); -} -::suvlim::grpc::KeyValuePair* FieldParam::add_index_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.FieldParam.index_params) - return index_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -FieldParam::mutable_index_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.FieldParam.index_params) - return &index_params_; -} -const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -FieldParam::index_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.FieldParam.index_params) - return index_params_; -} - -// repeated .suvlim.grpc.KeyValuePair extra_params = 5; -int FieldParam::extra_params_size() const { - return extra_params_.size(); -} -void FieldParam::clear_extra_params() { - extra_params_.Clear(); -} -const ::suvlim::grpc::KeyValuePair& FieldParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FieldParam.extra_params) - return extra_params_.Get(index); -} -::suvlim::grpc::KeyValuePair* FieldParam::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.FieldParam.extra_params) - return extra_params_.Mutable(index); -} -::suvlim::grpc::KeyValuePair* FieldParam::add_extra_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.FieldParam.extra_params) - return extra_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -FieldParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.FieldParam.extra_params) - return &extra_params_; -} -const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -FieldParam::extra_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.FieldParam.extra_params) - return extra_params_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VectorFieldRecord::kValueFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -VectorFieldRecord::VectorFieldRecord() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.VectorFieldRecord) -} - -void VectorFieldRecord::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -VectorFieldRecord::VectorFieldRecord(const VectorFieldRecord& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.VectorFieldRecord) -} - -void VectorFieldRecord::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; -} - -VectorFieldRecord::~VectorFieldRecord() { - // @@protoc_insertion_point(destructor:suvlim.grpc.VectorFieldRecord) - SharedDtor(); -} - -void VectorFieldRecord::SharedDtor() { - if (this != default_instance_) { - } -} - -void VectorFieldRecord::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* VectorFieldRecord::descriptor() { - protobuf_AssignDescriptorsOnce(); - return VectorFieldRecord_descriptor_; -} - -const VectorFieldRecord& VectorFieldRecord::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -VectorFieldRecord* VectorFieldRecord::default_instance_ = NULL; - -VectorFieldRecord* VectorFieldRecord::New(::google::protobuf::Arena* arena) const { - VectorFieldRecord* n = new VectorFieldRecord; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void VectorFieldRecord::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.VectorFieldRecord) - value_.Clear(); -} - -bool VectorFieldRecord::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.VectorFieldRecord) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .suvlim.grpc.VectorRowRecord value = 1; - case 1: { - if (tag == 10) { - DO_(input->IncrementRecursionDepth()); - parse_loop_value: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_value())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_loop_value; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.VectorFieldRecord) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.VectorFieldRecord) - return false; -#undef DO_ -} - -void VectorFieldRecord::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.VectorFieldRecord) - // repeated .suvlim.grpc.VectorRowRecord value = 1; - for (unsigned int i = 0, n = this->value_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->value(i), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.VectorFieldRecord) -} - -::google::protobuf::uint8* VectorFieldRecord::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.VectorFieldRecord) - // repeated .suvlim.grpc.VectorRowRecord value = 1; - for (unsigned int i = 0, n = this->value_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, this->value(i), false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.VectorFieldRecord) - return target; -} - -int VectorFieldRecord::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.VectorFieldRecord) - int total_size = 0; - - // repeated .suvlim.grpc.VectorRowRecord value = 1; - total_size += 1 * this->value_size(); - for (int i = 0; i < this->value_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->value(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void VectorFieldRecord::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.VectorFieldRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const VectorFieldRecord* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.VectorFieldRecord) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.VectorFieldRecord) - MergeFrom(*source); - } -} - -void VectorFieldRecord::MergeFrom(const VectorFieldRecord& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.VectorFieldRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - value_.MergeFrom(from.value_); -} - -void VectorFieldRecord::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.VectorFieldRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VectorFieldRecord::CopyFrom(const VectorFieldRecord& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.VectorFieldRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VectorFieldRecord::IsInitialized() const { - - return true; -} - -void VectorFieldRecord::Swap(VectorFieldRecord* other) { - if (other == this) return; - InternalSwap(other); -} -void VectorFieldRecord::InternalSwap(VectorFieldRecord* other) { - value_.UnsafeArenaSwap(&other->value_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata VectorFieldRecord::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = VectorFieldRecord_descriptor_; - metadata.reflection = VectorFieldRecord_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// VectorFieldRecord - -// repeated .suvlim.grpc.VectorRowRecord value = 1; -int VectorFieldRecord::value_size() const { - return value_.size(); -} -void VectorFieldRecord::clear_value() { - value_.Clear(); -} -const ::suvlim::grpc::VectorRowRecord& VectorFieldRecord::value(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.VectorFieldRecord.value) - return value_.Get(index); -} -::suvlim::grpc::VectorRowRecord* VectorFieldRecord::mutable_value(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.VectorFieldRecord.value) - return value_.Mutable(index); -} -::suvlim::grpc::VectorRowRecord* VectorFieldRecord::add_value() { - // @@protoc_insertion_point(field_add:suvlim.grpc.VectorFieldRecord.value) - return value_.Add(); -} -::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorRowRecord >* -VectorFieldRecord::mutable_value() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.VectorFieldRecord.value) - return &value_; -} -const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorRowRecord >& -VectorFieldRecord::value() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.VectorFieldRecord.value) - return value_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TermQuery::kFieldNameFieldNumber; -const int TermQuery::kIntValueFieldNumber; -const int TermQuery::kDoubleValueFieldNumber; -const int TermQuery::kValueNumFieldNumber; -const int TermQuery::kBoostFieldNumber; -const int TermQuery::kExtraParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TermQuery::TermQuery() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.TermQuery) -} - -void TermQuery::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -TermQuery::TermQuery(const TermQuery& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.TermQuery) -} - -void TermQuery::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - field_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - value_num_ = GOOGLE_LONGLONG(0); - boost_ = 0; -} - -TermQuery::~TermQuery() { - // @@protoc_insertion_point(destructor:suvlim.grpc.TermQuery) - SharedDtor(); -} - -void TermQuery::SharedDtor() { - field_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void TermQuery::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* TermQuery::descriptor() { - protobuf_AssignDescriptorsOnce(); - return TermQuery_descriptor_; -} - -const TermQuery& TermQuery::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -TermQuery* TermQuery::default_instance_ = NULL; - -TermQuery* TermQuery::New(::google::protobuf::Arena* arena) const { - TermQuery* n = new TermQuery; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void TermQuery::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.TermQuery) - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - value_num_ = GOOGLE_LONGLONG(0); - boost_ = 0; - int_value_.Clear(); - double_value_.Clear(); - extra_params_.Clear(); -} - -bool TermQuery::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.TermQuery) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string field_name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_field_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.TermQuery.field_name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_int_value; - break; - } - - // repeated int64 int_value = 2; - case 2: { - if (tag == 18) { - parse_int_value: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, this->mutable_int_value()))); - } else if (tag == 16) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - 1, 18, input, this->mutable_int_value()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_double_value; - break; - } - - // repeated double double_value = 3; - case 3: { - if (tag == 26) { - parse_double_value: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, this->mutable_double_value()))); - } else if (tag == 25) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - 1, 26, input, this->mutable_double_value()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_value_num; - break; - } - - // optional int64 value_num = 4; - case 4: { - if (tag == 32) { - parse_value_num: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &value_num_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(45)) goto parse_boost; - break; - } - - // optional float boost = 5; - case 5: { - if (tag == 45) { - parse_boost: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &boost_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_extra_params; - break; - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 6; - case 6: { - if (tag == 50) { - parse_extra_params: - DO_(input->IncrementRecursionDepth()); - parse_loop_extra_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_extra_params())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.TermQuery) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.TermQuery) - return false; -#undef DO_ -} - -void TermQuery::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.TermQuery) - // optional string field_name = 1; - if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.TermQuery.field_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->field_name(), output); - } - - // repeated int64 int_value = 2; - if (this->int_value_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_int_value_cached_byte_size_); - } - for (int i = 0; i < this->int_value_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag( - this->int_value(i), output); - } - - // repeated double double_value = 3; - if (this->double_value_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_double_value_cached_byte_size_); - } - for (int i = 0; i < this->double_value_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteDoubleNoTag( - this->double_value(i), output); - } - - // optional int64 value_num = 4; - if (this->value_num() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->value_num(), output); - } - - // optional float boost = 5; - if (this->boost() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->boost(), output); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 6; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->extra_params(i), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.TermQuery) -} - -::google::protobuf::uint8* TermQuery::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.TermQuery) - // optional string field_name = 1; - if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.TermQuery.field_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->field_name(), target); - } - - // repeated int64 int_value = 2; - if (this->int_value_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 2, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _int_value_cached_byte_size_, target); - } - for (int i = 0; i < this->int_value_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->int_value(i), target); - } - - // repeated double double_value = 3; - if (this->double_value_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 3, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _double_value_cached_byte_size_, target); - } - for (int i = 0; i < this->double_value_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->double_value(i), target); - } - - // optional int64 value_num = 4; - if (this->value_num() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->value_num(), target); - } - - // optional float boost = 5; - if (this->boost() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->boost(), target); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 6; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 6, this->extra_params(i), false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.TermQuery) - return target; -} - -int TermQuery::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.TermQuery) - int total_size = 0; - - // optional string field_name = 1; - if (this->field_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->field_name()); - } - - // optional int64 value_num = 4; - if (this->value_num() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->value_num()); - } - - // optional float boost = 5; - if (this->boost() != 0) { - total_size += 1 + 4; - } - - // repeated int64 int_value = 2; - { - int data_size = 0; - for (int i = 0; i < this->int_value_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int64Size(this->int_value(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _int_value_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated double double_value = 3; - { - int data_size = 0; - data_size = 8 * this->double_value_size(); - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _double_value_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 6; - total_size += 1 * this->extra_params_size(); - for (int i = 0; i < this->extra_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->extra_params(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void TermQuery::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.TermQuery) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const TermQuery* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.TermQuery) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.TermQuery) - MergeFrom(*source); - } -} - -void TermQuery::MergeFrom(const TermQuery& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.TermQuery) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - int_value_.MergeFrom(from.int_value_); - double_value_.MergeFrom(from.double_value_); - extra_params_.MergeFrom(from.extra_params_); - if (from.field_name().size() > 0) { - - field_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - if (from.value_num() != 0) { - set_value_num(from.value_num()); - } - if (from.boost() != 0) { - set_boost(from.boost()); - } -} - -void TermQuery::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.TermQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TermQuery::CopyFrom(const TermQuery& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.TermQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TermQuery::IsInitialized() const { - - return true; -} - -void TermQuery::Swap(TermQuery* other) { - if (other == this) return; - InternalSwap(other); -} -void TermQuery::InternalSwap(TermQuery* other) { - field_name_.Swap(&other->field_name_); - int_value_.UnsafeArenaSwap(&other->int_value_); - double_value_.UnsafeArenaSwap(&other->double_value_); - std::swap(value_num_, other->value_num_); - std::swap(boost_, other->boost_); - extra_params_.UnsafeArenaSwap(&other->extra_params_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata TermQuery::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = TermQuery_descriptor_; - metadata.reflection = TermQuery_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// TermQuery - -// optional string field_name = 1; -void TermQuery::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& TermQuery::field_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.TermQuery.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void TermQuery::set_field_name(const ::std::string& value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.TermQuery.field_name) -} - void TermQuery::set_field_name(const char* value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.TermQuery.field_name) -} - void TermQuery::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.TermQuery.field_name) -} - ::std::string* TermQuery::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.TermQuery.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* TermQuery::release_field_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.TermQuery.field_name) - - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void TermQuery::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.TermQuery.field_name) -} - -// repeated int64 int_value = 2; -int TermQuery::int_value_size() const { - return int_value_.size(); -} -void TermQuery::clear_int_value() { - int_value_.Clear(); -} - ::google::protobuf::int64 TermQuery::int_value(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.TermQuery.int_value) - return int_value_.Get(index); -} - void TermQuery::set_int_value(int index, ::google::protobuf::int64 value) { - int_value_.Set(index, value); - // @@protoc_insertion_point(field_set:suvlim.grpc.TermQuery.int_value) -} - void TermQuery::add_int_value(::google::protobuf::int64 value) { - int_value_.Add(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.TermQuery.int_value) -} - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -TermQuery::int_value() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.TermQuery.int_value) - return int_value_; -} - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -TermQuery::mutable_int_value() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.TermQuery.int_value) - return &int_value_; -} - -// repeated double double_value = 3; -int TermQuery::double_value_size() const { - return double_value_.size(); -} -void TermQuery::clear_double_value() { - double_value_.Clear(); -} - double TermQuery::double_value(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.TermQuery.double_value) - return double_value_.Get(index); -} - void TermQuery::set_double_value(int index, double value) { - double_value_.Set(index, value); - // @@protoc_insertion_point(field_set:suvlim.grpc.TermQuery.double_value) -} - void TermQuery::add_double_value(double value) { - double_value_.Add(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.TermQuery.double_value) -} - const ::google::protobuf::RepeatedField< double >& -TermQuery::double_value() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.TermQuery.double_value) - return double_value_; -} - ::google::protobuf::RepeatedField< double >* -TermQuery::mutable_double_value() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.TermQuery.double_value) - return &double_value_; -} - -// optional int64 value_num = 4; -void TermQuery::clear_value_num() { - value_num_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 TermQuery::value_num() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.TermQuery.value_num) - return value_num_; -} - void TermQuery::set_value_num(::google::protobuf::int64 value) { - - value_num_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.TermQuery.value_num) -} - -// optional float boost = 5; -void TermQuery::clear_boost() { - boost_ = 0; -} - float TermQuery::boost() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.TermQuery.boost) - return boost_; -} - void TermQuery::set_boost(float value) { - - boost_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.TermQuery.boost) -} - -// repeated .suvlim.grpc.KeyValuePair extra_params = 6; -int TermQuery::extra_params_size() const { - return extra_params_.size(); -} -void TermQuery::clear_extra_params() { - extra_params_.Clear(); -} -const ::suvlim::grpc::KeyValuePair& TermQuery::extra_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.TermQuery.extra_params) - return extra_params_.Get(index); -} -::suvlim::grpc::KeyValuePair* TermQuery::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.TermQuery.extra_params) - return extra_params_.Mutable(index); -} -::suvlim::grpc::KeyValuePair* TermQuery::add_extra_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.TermQuery.extra_params) - return extra_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -TermQuery::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.TermQuery.extra_params) - return &extra_params_; -} -const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -TermQuery::extra_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.TermQuery.extra_params) - return extra_params_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CompareExpr::kOperatorFieldNumber; -const int CompareExpr::kOperandFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CompareExpr::CompareExpr() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.CompareExpr) -} - -void CompareExpr::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -CompareExpr::CompareExpr(const CompareExpr& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.CompareExpr) -} - -void CompareExpr::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - operator__ = 0; - operand_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -CompareExpr::~CompareExpr() { - // @@protoc_insertion_point(destructor:suvlim.grpc.CompareExpr) - SharedDtor(); -} - -void CompareExpr::SharedDtor() { - operand_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void CompareExpr::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* CompareExpr::descriptor() { - protobuf_AssignDescriptorsOnce(); - return CompareExpr_descriptor_; -} - -const CompareExpr& CompareExpr::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -CompareExpr* CompareExpr::default_instance_ = NULL; - -CompareExpr* CompareExpr::New(::google::protobuf::Arena* arena) const { - CompareExpr* n = new CompareExpr; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void CompareExpr::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.CompareExpr) - operator__ = 0; - operand_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -bool CompareExpr::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.CompareExpr) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .suvlim.grpc.CompareOperator operator = 1; - case 1: { - if (tag == 8) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_operator_(static_cast< ::suvlim::grpc::CompareOperator >(value)); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_operand; - break; - } - - // optional string operand = 2; - case 2: { - if (tag == 18) { - parse_operand: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_operand())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->operand().data(), this->operand().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.CompareExpr.operand")); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.CompareExpr) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.CompareExpr) - return false; -#undef DO_ -} - -void CompareExpr::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.CompareExpr) - // optional .suvlim.grpc.CompareOperator operator = 1; - if (this->operator_() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->operator_(), output); - } - - // optional string operand = 2; - if (this->operand().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->operand().data(), this->operand().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.CompareExpr.operand"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->operand(), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.CompareExpr) -} - -::google::protobuf::uint8* CompareExpr::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.CompareExpr) - // optional .suvlim.grpc.CompareOperator operator = 1; - if (this->operator_() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->operator_(), target); - } - - // optional string operand = 2; - if (this->operand().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->operand().data(), this->operand().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.CompareExpr.operand"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->operand(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.CompareExpr) - return target; -} - -int CompareExpr::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.CompareExpr) - int total_size = 0; - - // optional .suvlim.grpc.CompareOperator operator = 1; - if (this->operator_() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->operator_()); - } - - // optional string operand = 2; - if (this->operand().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->operand()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void CompareExpr::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.CompareExpr) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const CompareExpr* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.CompareExpr) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.CompareExpr) - MergeFrom(*source); - } -} - -void CompareExpr::MergeFrom(const CompareExpr& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.CompareExpr) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.operator_() != 0) { - set_operator_(from.operator_()); - } - if (from.operand().size() > 0) { - - operand_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.operand_); - } -} - -void CompareExpr::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.CompareExpr) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CompareExpr::CopyFrom(const CompareExpr& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.CompareExpr) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CompareExpr::IsInitialized() const { - - return true; -} - -void CompareExpr::Swap(CompareExpr* other) { - if (other == this) return; - InternalSwap(other); -} -void CompareExpr::InternalSwap(CompareExpr* other) { - std::swap(operator__, other->operator__); - operand_.Swap(&other->operand_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata CompareExpr::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = CompareExpr_descriptor_; - metadata.reflection = CompareExpr_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// CompareExpr - -// optional .suvlim.grpc.CompareOperator operator = 1; -void CompareExpr::clear_operator_() { - operator__ = 0; -} - ::suvlim::grpc::CompareOperator CompareExpr::operator_() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.CompareExpr.operator) - return static_cast< ::suvlim::grpc::CompareOperator >(operator__); -} - void CompareExpr::set_operator_(::suvlim::grpc::CompareOperator value) { - - operator__ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.CompareExpr.operator) -} - -// optional string operand = 2; -void CompareExpr::clear_operand() { - operand_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& CompareExpr::operand() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.CompareExpr.operand) - return operand_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void CompareExpr::set_operand(const ::std::string& value) { - - operand_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.CompareExpr.operand) -} - void CompareExpr::set_operand(const char* value) { - - operand_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.CompareExpr.operand) -} - void CompareExpr::set_operand(const char* value, size_t size) { - - operand_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.CompareExpr.operand) -} - ::std::string* CompareExpr::mutable_operand() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.CompareExpr.operand) - return operand_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* CompareExpr::release_operand() { - // @@protoc_insertion_point(field_release:suvlim.grpc.CompareExpr.operand) - - return operand_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void CompareExpr::set_allocated_operand(::std::string* operand) { - if (operand != NULL) { - - } else { - - } - operand_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), operand); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.CompareExpr.operand) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int RangeQuery::kFieldNameFieldNumber; -const int RangeQuery::kOperandFieldNumber; -const int RangeQuery::kBoostFieldNumber; -const int RangeQuery::kExtraParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -RangeQuery::RangeQuery() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.RangeQuery) -} - -void RangeQuery::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -RangeQuery::RangeQuery(const RangeQuery& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.RangeQuery) -} - -void RangeQuery::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - field_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - boost_ = 0; -} - -RangeQuery::~RangeQuery() { - // @@protoc_insertion_point(destructor:suvlim.grpc.RangeQuery) - SharedDtor(); -} - -void RangeQuery::SharedDtor() { - field_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void RangeQuery::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* RangeQuery::descriptor() { - protobuf_AssignDescriptorsOnce(); - return RangeQuery_descriptor_; -} - -const RangeQuery& RangeQuery::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -RangeQuery* RangeQuery::default_instance_ = NULL; - -RangeQuery* RangeQuery::New(::google::protobuf::Arena* arena) const { - RangeQuery* n = new RangeQuery; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void RangeQuery::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.RangeQuery) - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - boost_ = 0; - operand_.Clear(); - extra_params_.Clear(); -} - -bool RangeQuery::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.RangeQuery) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string field_name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_field_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.RangeQuery.field_name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_operand; - break; - } - - // repeated .suvlim.grpc.CompareExpr operand = 2; - case 2: { - if (tag == 18) { - parse_operand: - DO_(input->IncrementRecursionDepth()); - parse_loop_operand: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_operand())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_loop_operand; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectTag(29)) goto parse_boost; - break; - } - - // optional float boost = 3; - case 3: { - if (tag == 29) { - parse_boost: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &boost_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_extra_params; - break; - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 4; - case 4: { - if (tag == 34) { - parse_extra_params: - DO_(input->IncrementRecursionDepth()); - parse_loop_extra_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_extra_params())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.RangeQuery) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.RangeQuery) - return false; -#undef DO_ -} - -void RangeQuery::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.RangeQuery) - // optional string field_name = 1; - if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.RangeQuery.field_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->field_name(), output); - } - - // repeated .suvlim.grpc.CompareExpr operand = 2; - for (unsigned int i = 0, n = this->operand_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->operand(i), output); - } - - // optional float boost = 3; - if (this->boost() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->boost(), output); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 4; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->extra_params(i), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.RangeQuery) -} - -::google::protobuf::uint8* RangeQuery::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.RangeQuery) - // optional string field_name = 1; - if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.RangeQuery.field_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->field_name(), target); - } - - // repeated .suvlim.grpc.CompareExpr operand = 2; - for (unsigned int i = 0, n = this->operand_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, this->operand(i), false, target); - } - - // optional float boost = 3; - if (this->boost() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->boost(), target); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 4; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, this->extra_params(i), false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.RangeQuery) - return target; -} - -int RangeQuery::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.RangeQuery) - int total_size = 0; - - // optional string field_name = 1; - if (this->field_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->field_name()); - } - - // optional float boost = 3; - if (this->boost() != 0) { - total_size += 1 + 4; - } - - // repeated .suvlim.grpc.CompareExpr operand = 2; - total_size += 1 * this->operand_size(); - for (int i = 0; i < this->operand_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->operand(i)); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 4; - total_size += 1 * this->extra_params_size(); - for (int i = 0; i < this->extra_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->extra_params(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void RangeQuery::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.RangeQuery) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const RangeQuery* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.RangeQuery) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.RangeQuery) - MergeFrom(*source); - } -} - -void RangeQuery::MergeFrom(const RangeQuery& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.RangeQuery) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - operand_.MergeFrom(from.operand_); - extra_params_.MergeFrom(from.extra_params_); - if (from.field_name().size() > 0) { - - field_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - if (from.boost() != 0) { - set_boost(from.boost()); - } -} - -void RangeQuery::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.RangeQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RangeQuery::CopyFrom(const RangeQuery& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.RangeQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RangeQuery::IsInitialized() const { - - return true; -} - -void RangeQuery::Swap(RangeQuery* other) { - if (other == this) return; - InternalSwap(other); -} -void RangeQuery::InternalSwap(RangeQuery* other) { - field_name_.Swap(&other->field_name_); - operand_.UnsafeArenaSwap(&other->operand_); - std::swap(boost_, other->boost_); - extra_params_.UnsafeArenaSwap(&other->extra_params_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata RangeQuery::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = RangeQuery_descriptor_; - metadata.reflection = RangeQuery_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// RangeQuery - -// optional string field_name = 1; -void RangeQuery::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& RangeQuery::field_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.RangeQuery.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void RangeQuery::set_field_name(const ::std::string& value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.RangeQuery.field_name) -} - void RangeQuery::set_field_name(const char* value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.RangeQuery.field_name) -} - void RangeQuery::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.RangeQuery.field_name) -} - ::std::string* RangeQuery::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.RangeQuery.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* RangeQuery::release_field_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.RangeQuery.field_name) - - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void RangeQuery::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.RangeQuery.field_name) -} - -// repeated .suvlim.grpc.CompareExpr operand = 2; -int RangeQuery::operand_size() const { - return operand_.size(); -} -void RangeQuery::clear_operand() { - operand_.Clear(); -} -const ::suvlim::grpc::CompareExpr& RangeQuery::operand(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.RangeQuery.operand) - return operand_.Get(index); -} -::suvlim::grpc::CompareExpr* RangeQuery::mutable_operand(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.RangeQuery.operand) - return operand_.Mutable(index); -} -::suvlim::grpc::CompareExpr* RangeQuery::add_operand() { - // @@protoc_insertion_point(field_add:suvlim.grpc.RangeQuery.operand) - return operand_.Add(); -} -::google::protobuf::RepeatedPtrField< ::suvlim::grpc::CompareExpr >* -RangeQuery::mutable_operand() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.RangeQuery.operand) - return &operand_; -} -const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::CompareExpr >& -RangeQuery::operand() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.RangeQuery.operand) - return operand_; -} - -// optional float boost = 3; -void RangeQuery::clear_boost() { - boost_ = 0; -} - float RangeQuery::boost() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.RangeQuery.boost) - return boost_; -} - void RangeQuery::set_boost(float value) { - - boost_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.RangeQuery.boost) -} - -// repeated .suvlim.grpc.KeyValuePair extra_params = 4; -int RangeQuery::extra_params_size() const { - return extra_params_.size(); -} -void RangeQuery::clear_extra_params() { - extra_params_.Clear(); -} -const ::suvlim::grpc::KeyValuePair& RangeQuery::extra_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.RangeQuery.extra_params) - return extra_params_.Get(index); -} -::suvlim::grpc::KeyValuePair* RangeQuery::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.RangeQuery.extra_params) - return extra_params_.Mutable(index); -} -::suvlim::grpc::KeyValuePair* RangeQuery::add_extra_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.RangeQuery.extra_params) - return extra_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -RangeQuery::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.RangeQuery.extra_params) - return &extra_params_; -} -const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -RangeQuery::extra_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.RangeQuery.extra_params) - return extra_params_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VectorQuery::kFieldNameFieldNumber; -const int VectorQuery::kQueryBoostFieldNumber; -const int VectorQuery::kRecordsFieldNumber; -const int VectorQuery::kTopkFieldNumber; -const int VectorQuery::kExtraParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -VectorQuery::VectorQuery() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.VectorQuery) -} - -void VectorQuery::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -VectorQuery::VectorQuery(const VectorQuery& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.VectorQuery) -} - -void VectorQuery::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - field_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - query_boost_ = 0; - topk_ = GOOGLE_LONGLONG(0); -} - -VectorQuery::~VectorQuery() { - // @@protoc_insertion_point(destructor:suvlim.grpc.VectorQuery) - SharedDtor(); -} - -void VectorQuery::SharedDtor() { - field_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void VectorQuery::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* VectorQuery::descriptor() { - protobuf_AssignDescriptorsOnce(); - return VectorQuery_descriptor_; -} - -const VectorQuery& VectorQuery::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -VectorQuery* VectorQuery::default_instance_ = NULL; - -VectorQuery* VectorQuery::New(::google::protobuf::Arena* arena) const { - VectorQuery* n = new VectorQuery; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void VectorQuery::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.VectorQuery) - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - query_boost_ = 0; - topk_ = GOOGLE_LONGLONG(0); - records_.Clear(); - extra_params_.Clear(); -} - -bool VectorQuery::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.VectorQuery) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string field_name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_field_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.VectorQuery.field_name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(21)) goto parse_query_boost; - break; - } - - // optional float query_boost = 2; - case 2: { - if (tag == 21) { - parse_query_boost: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &query_boost_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_records; - break; - } - - // repeated .suvlim.grpc.VectorRowRecord records = 3; - case 3: { - if (tag == 26) { - parse_records: - DO_(input->IncrementRecursionDepth()); - parse_loop_records: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_records())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_loop_records; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectTag(32)) goto parse_topk; - break; - } - - // optional int64 topk = 4; - case 4: { - if (tag == 32) { - parse_topk: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &topk_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_extra_params; - break; - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 5; - case 5: { - if (tag == 42) { - parse_extra_params: - DO_(input->IncrementRecursionDepth()); - parse_loop_extra_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_extra_params())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.VectorQuery) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.VectorQuery) - return false; -#undef DO_ -} - -void VectorQuery::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.VectorQuery) - // optional string field_name = 1; - if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.VectorQuery.field_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->field_name(), output); - } - - // optional float query_boost = 2; - if (this->query_boost() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->query_boost(), output); - } - - // repeated .suvlim.grpc.VectorRowRecord records = 3; - for (unsigned int i = 0, n = this->records_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->records(i), output); - } - - // optional int64 topk = 4; - if (this->topk() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->topk(), output); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->extra_params(i), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.VectorQuery) -} - -::google::protobuf::uint8* VectorQuery::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.VectorQuery) - // optional string field_name = 1; - if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.VectorQuery.field_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->field_name(), target); - } - - // optional float query_boost = 2; - if (this->query_boost() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->query_boost(), target); - } - - // repeated .suvlim.grpc.VectorRowRecord records = 3; - for (unsigned int i = 0, n = this->records_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, this->records(i), false, target); - } - - // optional int64 topk = 4; - if (this->topk() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->topk(), target); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 5, this->extra_params(i), false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.VectorQuery) - return target; -} - -int VectorQuery::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.VectorQuery) - int total_size = 0; - - // optional string field_name = 1; - if (this->field_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->field_name()); - } - - // optional float query_boost = 2; - if (this->query_boost() != 0) { - total_size += 1 + 4; - } - - // optional int64 topk = 4; - if (this->topk() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->topk()); - } - - // repeated .suvlim.grpc.VectorRowRecord records = 3; - total_size += 1 * this->records_size(); - for (int i = 0; i < this->records_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->records(i)); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 5; - total_size += 1 * this->extra_params_size(); - for (int i = 0; i < this->extra_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->extra_params(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void VectorQuery::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.VectorQuery) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const VectorQuery* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.VectorQuery) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.VectorQuery) - MergeFrom(*source); - } -} - -void VectorQuery::MergeFrom(const VectorQuery& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.VectorQuery) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - records_.MergeFrom(from.records_); - extra_params_.MergeFrom(from.extra_params_); - if (from.field_name().size() > 0) { - - field_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - if (from.query_boost() != 0) { - set_query_boost(from.query_boost()); - } - if (from.topk() != 0) { - set_topk(from.topk()); - } -} - -void VectorQuery::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.VectorQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VectorQuery::CopyFrom(const VectorQuery& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.VectorQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VectorQuery::IsInitialized() const { - - return true; -} - -void VectorQuery::Swap(VectorQuery* other) { - if (other == this) return; - InternalSwap(other); -} -void VectorQuery::InternalSwap(VectorQuery* other) { - field_name_.Swap(&other->field_name_); - std::swap(query_boost_, other->query_boost_); - records_.UnsafeArenaSwap(&other->records_); - std::swap(topk_, other->topk_); - extra_params_.UnsafeArenaSwap(&other->extra_params_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata VectorQuery::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = VectorQuery_descriptor_; - metadata.reflection = VectorQuery_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// VectorQuery - -// optional string field_name = 1; -void VectorQuery::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& VectorQuery::field_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.VectorQuery.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void VectorQuery::set_field_name(const ::std::string& value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.VectorQuery.field_name) -} - void VectorQuery::set_field_name(const char* value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.VectorQuery.field_name) -} - void VectorQuery::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.VectorQuery.field_name) -} - ::std::string* VectorQuery::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.VectorQuery.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* VectorQuery::release_field_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.VectorQuery.field_name) - - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void VectorQuery::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.VectorQuery.field_name) -} - -// optional float query_boost = 2; -void VectorQuery::clear_query_boost() { - query_boost_ = 0; -} - float VectorQuery::query_boost() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.VectorQuery.query_boost) - return query_boost_; -} - void VectorQuery::set_query_boost(float value) { - - query_boost_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.VectorQuery.query_boost) -} - -// repeated .suvlim.grpc.VectorRowRecord records = 3; -int VectorQuery::records_size() const { - return records_.size(); -} -void VectorQuery::clear_records() { - records_.Clear(); -} -const ::suvlim::grpc::VectorRowRecord& VectorQuery::records(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.VectorQuery.records) - return records_.Get(index); -} -::suvlim::grpc::VectorRowRecord* VectorQuery::mutable_records(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.VectorQuery.records) - return records_.Mutable(index); -} -::suvlim::grpc::VectorRowRecord* VectorQuery::add_records() { - // @@protoc_insertion_point(field_add:suvlim.grpc.VectorQuery.records) - return records_.Add(); -} -::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorRowRecord >* -VectorQuery::mutable_records() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.VectorQuery.records) - return &records_; -} -const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorRowRecord >& -VectorQuery::records() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.VectorQuery.records) - return records_; -} - -// optional int64 topk = 4; -void VectorQuery::clear_topk() { - topk_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 VectorQuery::topk() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.VectorQuery.topk) - return topk_; -} - void VectorQuery::set_topk(::google::protobuf::int64 value) { - - topk_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.VectorQuery.topk) -} - -// repeated .suvlim.grpc.KeyValuePair extra_params = 5; -int VectorQuery::extra_params_size() const { - return extra_params_.size(); -} -void VectorQuery::clear_extra_params() { - extra_params_.Clear(); -} -const ::suvlim::grpc::KeyValuePair& VectorQuery::extra_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.VectorQuery.extra_params) - return extra_params_.Get(index); -} -::suvlim::grpc::KeyValuePair* VectorQuery::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.VectorQuery.extra_params) - return extra_params_.Mutable(index); -} -::suvlim::grpc::KeyValuePair* VectorQuery::add_extra_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.VectorQuery.extra_params) - return extra_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -VectorQuery::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.VectorQuery.extra_params) - return &extra_params_; -} -const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -VectorQuery::extra_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.VectorQuery.extra_params) - return extra_params_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int BooleanQuery::kOccurFieldNumber; -const int BooleanQuery::kGeneralQueryFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -BooleanQuery::BooleanQuery() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.BooleanQuery) -} - -void BooleanQuery::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -BooleanQuery::BooleanQuery(const BooleanQuery& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.BooleanQuery) -} - -void BooleanQuery::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - occur_ = 0; -} - -BooleanQuery::~BooleanQuery() { - // @@protoc_insertion_point(destructor:suvlim.grpc.BooleanQuery) - SharedDtor(); -} - -void BooleanQuery::SharedDtor() { - if (this != default_instance_) { - } -} - -void BooleanQuery::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* BooleanQuery::descriptor() { - protobuf_AssignDescriptorsOnce(); - return BooleanQuery_descriptor_; -} - -const BooleanQuery& BooleanQuery::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -BooleanQuery* BooleanQuery::default_instance_ = NULL; - -BooleanQuery* BooleanQuery::New(::google::protobuf::Arena* arena) const { - BooleanQuery* n = new BooleanQuery; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void BooleanQuery::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.BooleanQuery) - occur_ = 0; - general_query_.Clear(); -} - -bool BooleanQuery::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.BooleanQuery) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .suvlim.grpc.Occur occur = 1; - case 1: { - if (tag == 8) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_occur(static_cast< ::suvlim::grpc::Occur >(value)); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_general_query; - break; - } - - // repeated .suvlim.grpc.GeneralQuery general_query = 2; - case 2: { - if (tag == 18) { - parse_general_query: - DO_(input->IncrementRecursionDepth()); - parse_loop_general_query: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_general_query())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_loop_general_query; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.BooleanQuery) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.BooleanQuery) - return false; -#undef DO_ -} - -void BooleanQuery::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.BooleanQuery) - // optional .suvlim.grpc.Occur occur = 1; - if (this->occur() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->occur(), output); - } - - // repeated .suvlim.grpc.GeneralQuery general_query = 2; - for (unsigned int i = 0, n = this->general_query_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->general_query(i), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.BooleanQuery) -} - -::google::protobuf::uint8* BooleanQuery::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.BooleanQuery) - // optional .suvlim.grpc.Occur occur = 1; - if (this->occur() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->occur(), target); - } - - // repeated .suvlim.grpc.GeneralQuery general_query = 2; - for (unsigned int i = 0, n = this->general_query_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, this->general_query(i), false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.BooleanQuery) - return target; -} - -int BooleanQuery::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.BooleanQuery) - int total_size = 0; - - // optional .suvlim.grpc.Occur occur = 1; - if (this->occur() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->occur()); - } - - // repeated .suvlim.grpc.GeneralQuery general_query = 2; - total_size += 1 * this->general_query_size(); - for (int i = 0; i < this->general_query_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->general_query(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void BooleanQuery::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.BooleanQuery) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const BooleanQuery* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.BooleanQuery) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.BooleanQuery) - MergeFrom(*source); - } -} - -void BooleanQuery::MergeFrom(const BooleanQuery& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.BooleanQuery) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - general_query_.MergeFrom(from.general_query_); - if (from.occur() != 0) { - set_occur(from.occur()); - } -} - -void BooleanQuery::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.BooleanQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BooleanQuery::CopyFrom(const BooleanQuery& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.BooleanQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BooleanQuery::IsInitialized() const { - - return true; -} - -void BooleanQuery::Swap(BooleanQuery* other) { - if (other == this) return; - InternalSwap(other); -} -void BooleanQuery::InternalSwap(BooleanQuery* other) { - std::swap(occur_, other->occur_); - general_query_.UnsafeArenaSwap(&other->general_query_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata BooleanQuery::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = BooleanQuery_descriptor_; - metadata.reflection = BooleanQuery_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// BooleanQuery - -// optional .suvlim.grpc.Occur occur = 1; -void BooleanQuery::clear_occur() { - occur_ = 0; -} - ::suvlim::grpc::Occur BooleanQuery::occur() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.BooleanQuery.occur) - return static_cast< ::suvlim::grpc::Occur >(occur_); -} - void BooleanQuery::set_occur(::suvlim::grpc::Occur value) { - - occur_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.BooleanQuery.occur) -} - -// repeated .suvlim.grpc.GeneralQuery general_query = 2; -int BooleanQuery::general_query_size() const { - return general_query_.size(); -} -void BooleanQuery::clear_general_query() { - general_query_.Clear(); -} -const ::suvlim::grpc::GeneralQuery& BooleanQuery::general_query(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.BooleanQuery.general_query) - return general_query_.Get(index); -} -::suvlim::grpc::GeneralQuery* BooleanQuery::mutable_general_query(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.BooleanQuery.general_query) - return general_query_.Mutable(index); -} -::suvlim::grpc::GeneralQuery* BooleanQuery::add_general_query() { - // @@protoc_insertion_point(field_add:suvlim.grpc.BooleanQuery.general_query) - return general_query_.Add(); -} -::google::protobuf::RepeatedPtrField< ::suvlim::grpc::GeneralQuery >* -BooleanQuery::mutable_general_query() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.BooleanQuery.general_query) - return &general_query_; -} -const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::GeneralQuery >& -BooleanQuery::general_query() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.BooleanQuery.general_query) - return general_query_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GeneralQuery::kBooleanQueryFieldNumber; -const int GeneralQuery::kTermQueryFieldNumber; -const int GeneralQuery::kRangeQueryFieldNumber; -const int GeneralQuery::kVectorQueryFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GeneralQuery::GeneralQuery() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.GeneralQuery) -} - -void GeneralQuery::InitAsDefaultInstance() { - _is_default_instance_ = true; - GeneralQuery_default_oneof_instance_->boolean_query_ = const_cast< ::suvlim::grpc::BooleanQuery*>(&::suvlim::grpc::BooleanQuery::default_instance()); - GeneralQuery_default_oneof_instance_->term_query_ = const_cast< ::suvlim::grpc::TermQuery*>(&::suvlim::grpc::TermQuery::default_instance()); - GeneralQuery_default_oneof_instance_->range_query_ = const_cast< ::suvlim::grpc::RangeQuery*>(&::suvlim::grpc::RangeQuery::default_instance()); - GeneralQuery_default_oneof_instance_->vector_query_ = const_cast< ::suvlim::grpc::VectorQuery*>(&::suvlim::grpc::VectorQuery::default_instance()); -} - -GeneralQuery::GeneralQuery(const GeneralQuery& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.GeneralQuery) -} - -void GeneralQuery::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - clear_has_query(); -} - -GeneralQuery::~GeneralQuery() { - // @@protoc_insertion_point(destructor:suvlim.grpc.GeneralQuery) - SharedDtor(); -} - -void GeneralQuery::SharedDtor() { - if (has_query()) { - clear_query(); - } - if (this != default_instance_) { - } -} - -void GeneralQuery::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* GeneralQuery::descriptor() { - protobuf_AssignDescriptorsOnce(); - return GeneralQuery_descriptor_; -} - -const GeneralQuery& GeneralQuery::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -GeneralQuery* GeneralQuery::default_instance_ = NULL; - -GeneralQuery* GeneralQuery::New(::google::protobuf::Arena* arena) const { - GeneralQuery* n = new GeneralQuery; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void GeneralQuery::clear_query() { -// @@protoc_insertion_point(one_of_clear_start:suvlim.grpc.GeneralQuery) - switch(query_case()) { - case kBooleanQuery: { - delete query_.boolean_query_; - break; - } - case kTermQuery: { - delete query_.term_query_; - break; - } - case kRangeQuery: { - delete query_.range_query_; - break; - } - case kVectorQuery: { - delete query_.vector_query_; - break; - } - case QUERY_NOT_SET: { - break; - } - } - _oneof_case_[0] = QUERY_NOT_SET; -} - - -void GeneralQuery::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.GeneralQuery) - clear_query(); -} - -bool GeneralQuery::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.GeneralQuery) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .suvlim.grpc.BooleanQuery boolean_query = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_boolean_query())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_term_query; - break; - } - - // optional .suvlim.grpc.TermQuery term_query = 2; - case 2: { - if (tag == 18) { - parse_term_query: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_term_query())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_range_query; - break; - } - - // optional .suvlim.grpc.RangeQuery range_query = 3; - case 3: { - if (tag == 26) { - parse_range_query: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_range_query())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_vector_query; - break; - } - - // optional .suvlim.grpc.VectorQuery vector_query = 4; - case 4: { - if (tag == 34) { - parse_vector_query: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_vector_query())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.GeneralQuery) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.GeneralQuery) - return false; -#undef DO_ -} - -void GeneralQuery::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.GeneralQuery) - // optional .suvlim.grpc.BooleanQuery boolean_query = 1; - if (has_boolean_query()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *query_.boolean_query_, output); - } - - // optional .suvlim.grpc.TermQuery term_query = 2; - if (has_term_query()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *query_.term_query_, output); - } - - // optional .suvlim.grpc.RangeQuery range_query = 3; - if (has_range_query()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, *query_.range_query_, output); - } - - // optional .suvlim.grpc.VectorQuery vector_query = 4; - if (has_vector_query()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, *query_.vector_query_, output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.GeneralQuery) -} - -::google::protobuf::uint8* GeneralQuery::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.GeneralQuery) - // optional .suvlim.grpc.BooleanQuery boolean_query = 1; - if (has_boolean_query()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *query_.boolean_query_, false, target); - } - - // optional .suvlim.grpc.TermQuery term_query = 2; - if (has_term_query()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *query_.term_query_, false, target); - } - - // optional .suvlim.grpc.RangeQuery range_query = 3; - if (has_range_query()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, *query_.range_query_, false, target); - } - - // optional .suvlim.grpc.VectorQuery vector_query = 4; - if (has_vector_query()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, *query_.vector_query_, false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.GeneralQuery) - return target; -} - -int GeneralQuery::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.GeneralQuery) - int total_size = 0; - - switch (query_case()) { - // optional .suvlim.grpc.BooleanQuery boolean_query = 1; - case kBooleanQuery: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *query_.boolean_query_); - break; - } - // optional .suvlim.grpc.TermQuery term_query = 2; - case kTermQuery: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *query_.term_query_); - break; - } - // optional .suvlim.grpc.RangeQuery range_query = 3; - case kRangeQuery: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *query_.range_query_); - break; - } - // optional .suvlim.grpc.VectorQuery vector_query = 4; - case kVectorQuery: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *query_.vector_query_); - break; - } - case QUERY_NOT_SET: { - break; - } - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void GeneralQuery::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.GeneralQuery) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const GeneralQuery* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.GeneralQuery) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.GeneralQuery) - MergeFrom(*source); - } -} - -void GeneralQuery::MergeFrom(const GeneralQuery& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.GeneralQuery) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - switch (from.query_case()) { - case kBooleanQuery: { - mutable_boolean_query()->::suvlim::grpc::BooleanQuery::MergeFrom(from.boolean_query()); - break; - } - case kTermQuery: { - mutable_term_query()->::suvlim::grpc::TermQuery::MergeFrom(from.term_query()); - break; - } - case kRangeQuery: { - mutable_range_query()->::suvlim::grpc::RangeQuery::MergeFrom(from.range_query()); - break; - } - case kVectorQuery: { - mutable_vector_query()->::suvlim::grpc::VectorQuery::MergeFrom(from.vector_query()); - break; - } - case QUERY_NOT_SET: { - break; - } - } -} - -void GeneralQuery::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.GeneralQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GeneralQuery::CopyFrom(const GeneralQuery& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.GeneralQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GeneralQuery::IsInitialized() const { - - return true; -} - -void GeneralQuery::Swap(GeneralQuery* other) { - if (other == this) return; - InternalSwap(other); -} -void GeneralQuery::InternalSwap(GeneralQuery* other) { - std::swap(query_, other->query_); - std::swap(_oneof_case_[0], other->_oneof_case_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata GeneralQuery::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = GeneralQuery_descriptor_; - metadata.reflection = GeneralQuery_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// GeneralQuery - -// optional .suvlim.grpc.BooleanQuery boolean_query = 1; -bool GeneralQuery::has_boolean_query() const { - return query_case() == kBooleanQuery; -} -void GeneralQuery::set_has_boolean_query() { - _oneof_case_[0] = kBooleanQuery; -} -void GeneralQuery::clear_boolean_query() { - if (has_boolean_query()) { - delete query_.boolean_query_; - clear_has_query(); - } -} - const ::suvlim::grpc::BooleanQuery& GeneralQuery::boolean_query() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.GeneralQuery.boolean_query) - return has_boolean_query() - ? *query_.boolean_query_ - : ::suvlim::grpc::BooleanQuery::default_instance(); -} -::suvlim::grpc::BooleanQuery* GeneralQuery::mutable_boolean_query() { - if (!has_boolean_query()) { - clear_query(); - set_has_boolean_query(); - query_.boolean_query_ = new ::suvlim::grpc::BooleanQuery; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.GeneralQuery.boolean_query) - return query_.boolean_query_; -} -::suvlim::grpc::BooleanQuery* GeneralQuery::release_boolean_query() { - // @@protoc_insertion_point(field_release:suvlim.grpc.GeneralQuery.boolean_query) - if (has_boolean_query()) { - clear_has_query(); - ::suvlim::grpc::BooleanQuery* temp = query_.boolean_query_; - query_.boolean_query_ = NULL; - return temp; - } else { - return NULL; - } -} -void GeneralQuery::set_allocated_boolean_query(::suvlim::grpc::BooleanQuery* boolean_query) { - clear_query(); - if (boolean_query) { - set_has_boolean_query(); - query_.boolean_query_ = boolean_query; - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.GeneralQuery.boolean_query) -} - -// optional .suvlim.grpc.TermQuery term_query = 2; -bool GeneralQuery::has_term_query() const { - return query_case() == kTermQuery; -} -void GeneralQuery::set_has_term_query() { - _oneof_case_[0] = kTermQuery; -} -void GeneralQuery::clear_term_query() { - if (has_term_query()) { - delete query_.term_query_; - clear_has_query(); - } -} - const ::suvlim::grpc::TermQuery& GeneralQuery::term_query() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.GeneralQuery.term_query) - return has_term_query() - ? *query_.term_query_ - : ::suvlim::grpc::TermQuery::default_instance(); -} -::suvlim::grpc::TermQuery* GeneralQuery::mutable_term_query() { - if (!has_term_query()) { - clear_query(); - set_has_term_query(); - query_.term_query_ = new ::suvlim::grpc::TermQuery; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.GeneralQuery.term_query) - return query_.term_query_; -} -::suvlim::grpc::TermQuery* GeneralQuery::release_term_query() { - // @@protoc_insertion_point(field_release:suvlim.grpc.GeneralQuery.term_query) - if (has_term_query()) { - clear_has_query(); - ::suvlim::grpc::TermQuery* temp = query_.term_query_; - query_.term_query_ = NULL; - return temp; - } else { - return NULL; - } -} -void GeneralQuery::set_allocated_term_query(::suvlim::grpc::TermQuery* term_query) { - clear_query(); - if (term_query) { - set_has_term_query(); - query_.term_query_ = term_query; - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.GeneralQuery.term_query) -} - -// optional .suvlim.grpc.RangeQuery range_query = 3; -bool GeneralQuery::has_range_query() const { - return query_case() == kRangeQuery; -} -void GeneralQuery::set_has_range_query() { - _oneof_case_[0] = kRangeQuery; -} -void GeneralQuery::clear_range_query() { - if (has_range_query()) { - delete query_.range_query_; - clear_has_query(); - } -} - const ::suvlim::grpc::RangeQuery& GeneralQuery::range_query() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.GeneralQuery.range_query) - return has_range_query() - ? *query_.range_query_ - : ::suvlim::grpc::RangeQuery::default_instance(); -} -::suvlim::grpc::RangeQuery* GeneralQuery::mutable_range_query() { - if (!has_range_query()) { - clear_query(); - set_has_range_query(); - query_.range_query_ = new ::suvlim::grpc::RangeQuery; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.GeneralQuery.range_query) - return query_.range_query_; -} -::suvlim::grpc::RangeQuery* GeneralQuery::release_range_query() { - // @@protoc_insertion_point(field_release:suvlim.grpc.GeneralQuery.range_query) - if (has_range_query()) { - clear_has_query(); - ::suvlim::grpc::RangeQuery* temp = query_.range_query_; - query_.range_query_ = NULL; - return temp; - } else { - return NULL; - } -} -void GeneralQuery::set_allocated_range_query(::suvlim::grpc::RangeQuery* range_query) { - clear_query(); - if (range_query) { - set_has_range_query(); - query_.range_query_ = range_query; - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.GeneralQuery.range_query) -} - -// optional .suvlim.grpc.VectorQuery vector_query = 4; -bool GeneralQuery::has_vector_query() const { - return query_case() == kVectorQuery; -} -void GeneralQuery::set_has_vector_query() { - _oneof_case_[0] = kVectorQuery; -} -void GeneralQuery::clear_vector_query() { - if (has_vector_query()) { - delete query_.vector_query_; - clear_has_query(); - } -} - const ::suvlim::grpc::VectorQuery& GeneralQuery::vector_query() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.GeneralQuery.vector_query) - return has_vector_query() - ? *query_.vector_query_ - : ::suvlim::grpc::VectorQuery::default_instance(); -} -::suvlim::grpc::VectorQuery* GeneralQuery::mutable_vector_query() { - if (!has_vector_query()) { - clear_query(); - set_has_vector_query(); - query_.vector_query_ = new ::suvlim::grpc::VectorQuery; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.GeneralQuery.vector_query) - return query_.vector_query_; -} -::suvlim::grpc::VectorQuery* GeneralQuery::release_vector_query() { - // @@protoc_insertion_point(field_release:suvlim.grpc.GeneralQuery.vector_query) - if (has_vector_query()) { - clear_has_query(); - ::suvlim::grpc::VectorQuery* temp = query_.vector_query_; - query_.vector_query_ = NULL; - return temp; - } else { - return NULL; - } -} -void GeneralQuery::set_allocated_vector_query(::suvlim::grpc::VectorQuery* vector_query) { - clear_query(); - if (vector_query) { - set_has_vector_query(); - query_.vector_query_ = vector_query; - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.GeneralQuery.vector_query) -} - -bool GeneralQuery::has_query() const { - return query_case() != QUERY_NOT_SET; -} -void GeneralQuery::clear_has_query() { - _oneof_case_[0] = QUERY_NOT_SET; -} -GeneralQuery::QueryCase GeneralQuery::query_case() const { - return GeneralQuery::QueryCase(_oneof_case_[0]); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SearchParamPB::kCollectionNameFieldNumber; -const int SearchParamPB::kPartitionTagArrayFieldNumber; -const int SearchParamPB::kGeneralQueryFieldNumber; -const int SearchParamPB::kExtraParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SearchParamPB::SearchParamPB() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.SearchParamPB) -} - -void SearchParamPB::InitAsDefaultInstance() { - _is_default_instance_ = true; - general_query_ = const_cast< ::suvlim::grpc::GeneralQuery*>(&::suvlim::grpc::GeneralQuery::default_instance()); -} - -SearchParamPB::SearchParamPB(const SearchParamPB& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.SearchParamPB) -} - -void SearchParamPB::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - general_query_ = NULL; -} - -SearchParamPB::~SearchParamPB() { - // @@protoc_insertion_point(destructor:suvlim.grpc.SearchParamPB) - SharedDtor(); -} - -void SearchParamPB::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - delete general_query_; - } -} - -void SearchParamPB::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* SearchParamPB::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SearchParamPB_descriptor_; -} - -const SearchParamPB& SearchParamPB::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -SearchParamPB* SearchParamPB::default_instance_ = NULL; - -SearchParamPB* SearchParamPB::New(::google::protobuf::Arena* arena) const { - SearchParamPB* n = new SearchParamPB; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void SearchParamPB::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.SearchParamPB) - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && general_query_ != NULL) delete general_query_; - general_query_ = NULL; - partition_tag_array_.Clear(); - extra_params_.Clear(); -} - -bool SearchParamPB::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.SearchParamPB) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.SearchParamPB.collection_name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_partition_tag_array; - break; - } - - // repeated string partition_tag_array = 2; - case 2: { - if (tag == 18) { - parse_partition_tag_array: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_partition_tag_array())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag_array(this->partition_tag_array_size() - 1).data(), - this->partition_tag_array(this->partition_tag_array_size() - 1).length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.SearchParamPB.partition_tag_array")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_partition_tag_array; - if (input->ExpectTag(26)) goto parse_general_query; - break; - } - - // optional .suvlim.grpc.GeneralQuery general_query = 3; - case 3: { - if (tag == 26) { - parse_general_query: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_general_query())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_extra_params; - break; - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 4; - case 4: { - if (tag == 34) { - parse_extra_params: - DO_(input->IncrementRecursionDepth()); - parse_loop_extra_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_extra_params())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.SearchParamPB) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.SearchParamPB) - return false; -#undef DO_ -} - -void SearchParamPB::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.SearchParamPB) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.SearchParamPB.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // repeated string partition_tag_array = 2; - for (int i = 0; i < this->partition_tag_array_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag_array(i).data(), this->partition_tag_array(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.SearchParamPB.partition_tag_array"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->partition_tag_array(i), output); - } - - // optional .suvlim.grpc.GeneralQuery general_query = 3; - if (this->has_general_query()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, *this->general_query_, output); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 4; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->extra_params(i), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.SearchParamPB) -} - -::google::protobuf::uint8* SearchParamPB::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.SearchParamPB) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.SearchParamPB.collection_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // repeated string partition_tag_array = 2; - for (int i = 0; i < this->partition_tag_array_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag_array(i).data(), this->partition_tag_array(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.SearchParamPB.partition_tag_array"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(2, this->partition_tag_array(i), target); - } - - // optional .suvlim.grpc.GeneralQuery general_query = 3; - if (this->has_general_query()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, *this->general_query_, false, target); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 4; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, this->extra_params(i), false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.SearchParamPB) - return target; -} - -int SearchParamPB::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.SearchParamPB) - int total_size = 0; - - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // optional .suvlim.grpc.GeneralQuery general_query = 3; - if (this->has_general_query()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->general_query_); - } - - // repeated string partition_tag_array = 2; - total_size += 1 * this->partition_tag_array_size(); - for (int i = 0; i < this->partition_tag_array_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->partition_tag_array(i)); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 4; - total_size += 1 * this->extra_params_size(); - for (int i = 0; i < this->extra_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->extra_params(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SearchParamPB::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.SearchParamPB) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const SearchParamPB* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.SearchParamPB) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.SearchParamPB) - MergeFrom(*source); - } -} - -void SearchParamPB::MergeFrom(const SearchParamPB& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.SearchParamPB) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - partition_tag_array_.MergeFrom(from.partition_tag_array_); - extra_params_.MergeFrom(from.extra_params_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.has_general_query()) { - mutable_general_query()->::suvlim::grpc::GeneralQuery::MergeFrom(from.general_query()); - } -} - -void SearchParamPB::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.SearchParamPB) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SearchParamPB::CopyFrom(const SearchParamPB& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.SearchParamPB) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SearchParamPB::IsInitialized() const { - - return true; -} - -void SearchParamPB::Swap(SearchParamPB* other) { - if (other == this) return; - InternalSwap(other); -} -void SearchParamPB::InternalSwap(SearchParamPB* other) { - collection_name_.Swap(&other->collection_name_); - partition_tag_array_.UnsafeArenaSwap(&other->partition_tag_array_); - std::swap(general_query_, other->general_query_); - extra_params_.UnsafeArenaSwap(&other->extra_params_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata SearchParamPB::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SearchParamPB_descriptor_; - metadata.reflection = SearchParamPB_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SearchParamPB - -// optional string collection_name = 1; -void SearchParamPB::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& SearchParamPB::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchParamPB.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void SearchParamPB::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.SearchParamPB.collection_name) -} - void SearchParamPB::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.SearchParamPB.collection_name) -} - void SearchParamPB::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.SearchParamPB.collection_name) -} - ::std::string* SearchParamPB::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchParamPB.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* SearchParamPB::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.SearchParamPB.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void SearchParamPB::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.SearchParamPB.collection_name) -} - -// repeated string partition_tag_array = 2; -int SearchParamPB::partition_tag_array_size() const { - return partition_tag_array_.size(); -} -void SearchParamPB::clear_partition_tag_array() { - partition_tag_array_.Clear(); -} - const ::std::string& SearchParamPB::partition_tag_array(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchParamPB.partition_tag_array) - return partition_tag_array_.Get(index); -} - ::std::string* SearchParamPB::mutable_partition_tag_array(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchParamPB.partition_tag_array) - return partition_tag_array_.Mutable(index); -} - void SearchParamPB::set_partition_tag_array(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:suvlim.grpc.SearchParamPB.partition_tag_array) - partition_tag_array_.Mutable(index)->assign(value); -} - void SearchParamPB::set_partition_tag_array(int index, const char* value) { - partition_tag_array_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.SearchParamPB.partition_tag_array) -} - void SearchParamPB::set_partition_tag_array(int index, const char* value, size_t size) { - partition_tag_array_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.SearchParamPB.partition_tag_array) -} - ::std::string* SearchParamPB::add_partition_tag_array() { - // @@protoc_insertion_point(field_add_mutable:suvlim.grpc.SearchParamPB.partition_tag_array) - return partition_tag_array_.Add(); -} - void SearchParamPB::add_partition_tag_array(const ::std::string& value) { - partition_tag_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.SearchParamPB.partition_tag_array) -} - void SearchParamPB::add_partition_tag_array(const char* value) { - partition_tag_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:suvlim.grpc.SearchParamPB.partition_tag_array) -} - void SearchParamPB::add_partition_tag_array(const char* value, size_t size) { - partition_tag_array_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:suvlim.grpc.SearchParamPB.partition_tag_array) -} - const ::google::protobuf::RepeatedPtrField< ::std::string>& -SearchParamPB::partition_tag_array() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.SearchParamPB.partition_tag_array) - return partition_tag_array_; -} - ::google::protobuf::RepeatedPtrField< ::std::string>* -SearchParamPB::mutable_partition_tag_array() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.SearchParamPB.partition_tag_array) - return &partition_tag_array_; -} - -// optional .suvlim.grpc.GeneralQuery general_query = 3; -bool SearchParamPB::has_general_query() const { - return !_is_default_instance_ && general_query_ != NULL; -} -void SearchParamPB::clear_general_query() { - if (GetArenaNoVirtual() == NULL && general_query_ != NULL) delete general_query_; - general_query_ = NULL; -} -const ::suvlim::grpc::GeneralQuery& SearchParamPB::general_query() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchParamPB.general_query) - return general_query_ != NULL ? *general_query_ : *default_instance_->general_query_; -} -::suvlim::grpc::GeneralQuery* SearchParamPB::mutable_general_query() { - - if (general_query_ == NULL) { - general_query_ = new ::suvlim::grpc::GeneralQuery; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchParamPB.general_query) - return general_query_; -} -::suvlim::grpc::GeneralQuery* SearchParamPB::release_general_query() { - // @@protoc_insertion_point(field_release:suvlim.grpc.SearchParamPB.general_query) - - ::suvlim::grpc::GeneralQuery* temp = general_query_; - general_query_ = NULL; - return temp; -} -void SearchParamPB::set_allocated_general_query(::suvlim::grpc::GeneralQuery* general_query) { - delete general_query_; - general_query_ = general_query; - if (general_query) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.SearchParamPB.general_query) -} - -// repeated .suvlim.grpc.KeyValuePair extra_params = 4; -int SearchParamPB::extra_params_size() const { - return extra_params_.size(); -} -void SearchParamPB::clear_extra_params() { - extra_params_.Clear(); -} -const ::suvlim::grpc::KeyValuePair& SearchParamPB::extra_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchParamPB.extra_params) - return extra_params_.Get(index); -} -::suvlim::grpc::KeyValuePair* SearchParamPB::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchParamPB.extra_params) - return extra_params_.Mutable(index); -} -::suvlim::grpc::KeyValuePair* SearchParamPB::add_extra_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.SearchParamPB.extra_params) - return extra_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -SearchParamPB::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.SearchParamPB.extra_params) - return &extra_params_; -} -const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -SearchParamPB::extra_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.SearchParamPB.extra_params) - return extra_params_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int InsertOrDeleteMsg::kCollectionNameFieldNumber; -const int InsertOrDeleteMsg::kRowsDataFieldNumber; -const int InsertOrDeleteMsg::kUidFieldNumber; -const int InsertOrDeleteMsg::kPartitionTagFieldNumber; -const int InsertOrDeleteMsg::kTimestampFieldNumber; -const int InsertOrDeleteMsg::kSegmentIdFieldNumber; -const int InsertOrDeleteMsg::kChannelIdFieldNumber; -const int InsertOrDeleteMsg::kOpFieldNumber; -const int InsertOrDeleteMsg::kClientIdFieldNumber; -const int InsertOrDeleteMsg::kExtraParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -InsertOrDeleteMsg::InsertOrDeleteMsg() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.InsertOrDeleteMsg) -} - -void InsertOrDeleteMsg::InitAsDefaultInstance() { - _is_default_instance_ = true; - rows_data_ = const_cast< ::suvlim::grpc::RowData*>(&::suvlim::grpc::RowData::default_instance()); -} - -InsertOrDeleteMsg::InsertOrDeleteMsg(const InsertOrDeleteMsg& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.InsertOrDeleteMsg) -} - -void InsertOrDeleteMsg::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - rows_data_ = NULL; - uid_ = GOOGLE_LONGLONG(0); - partition_tag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - timestamp_ = GOOGLE_LONGLONG(0); - segment_id_ = GOOGLE_LONGLONG(0); - channel_id_ = GOOGLE_LONGLONG(0); - op_ = 0; - client_id_ = GOOGLE_LONGLONG(0); -} - -InsertOrDeleteMsg::~InsertOrDeleteMsg() { - // @@protoc_insertion_point(destructor:suvlim.grpc.InsertOrDeleteMsg) - SharedDtor(); -} - -void InsertOrDeleteMsg::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - partition_tag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - delete rows_data_; - } -} - -void InsertOrDeleteMsg::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* InsertOrDeleteMsg::descriptor() { - protobuf_AssignDescriptorsOnce(); - return InsertOrDeleteMsg_descriptor_; -} - -const InsertOrDeleteMsg& InsertOrDeleteMsg::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -InsertOrDeleteMsg* InsertOrDeleteMsg::default_instance_ = NULL; - -InsertOrDeleteMsg* InsertOrDeleteMsg::New(::google::protobuf::Arena* arena) const { - InsertOrDeleteMsg* n = new InsertOrDeleteMsg; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void InsertOrDeleteMsg::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.InsertOrDeleteMsg) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(InsertOrDeleteMsg, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&first, 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - ZR_(timestamp_, channel_id_); - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && rows_data_ != NULL) delete rows_data_; - rows_data_ = NULL; - uid_ = GOOGLE_LONGLONG(0); - partition_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - op_ = 0; - client_id_ = GOOGLE_LONGLONG(0); - -#undef ZR_HELPER_ -#undef ZR_ - - extra_params_.Clear(); -} - -bool InsertOrDeleteMsg::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.InsertOrDeleteMsg) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.InsertOrDeleteMsg.collection_name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_rows_data; - break; - } - - // optional .suvlim.grpc.RowData rows_data = 2; - case 2: { - if (tag == 18) { - parse_rows_data: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_rows_data())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_uid; - break; - } - - // optional int64 uid = 3; - case 3: { - if (tag == 24) { - parse_uid: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &uid_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_partition_tag; - break; - } - - // optional string partition_tag = 4; - case 4: { - if (tag == 34) { - parse_partition_tag: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_partition_tag())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), this->partition_tag().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.InsertOrDeleteMsg.partition_tag")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_timestamp; - break; - } - - // optional int64 timestamp = 5; - case 5: { - if (tag == 40) { - parse_timestamp: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, ×tamp_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_segment_id; - break; - } - - // optional int64 segment_id = 6; - case 6: { - if (tag == 48) { - parse_segment_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &segment_id_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_channel_id; - break; - } - - // optional int64 channel_id = 7; - case 7: { - if (tag == 56) { - parse_channel_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &channel_id_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(64)) goto parse_op; - break; - } - - // optional .suvlim.grpc.OpType op = 8; - case 8: { - if (tag == 64) { - parse_op: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_op(static_cast< ::suvlim::grpc::OpType >(value)); - } else { - goto handle_unusual; - } - if (input->ExpectTag(72)) goto parse_client_id; - break; - } - - // optional int64 client_id = 9; - case 9: { - if (tag == 72) { - parse_client_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &client_id_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(82)) goto parse_extra_params; - break; - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 10; - case 10: { - if (tag == 82) { - parse_extra_params: - DO_(input->IncrementRecursionDepth()); - parse_loop_extra_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_extra_params())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(82)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.InsertOrDeleteMsg) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.InsertOrDeleteMsg) - return false; -#undef DO_ -} - -void InsertOrDeleteMsg::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.InsertOrDeleteMsg) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.InsertOrDeleteMsg.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // optional .suvlim.grpc.RowData rows_data = 2; - if (this->has_rows_data()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *this->rows_data_, output); - } - - // optional int64 uid = 3; - if (this->uid() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->uid(), output); - } - - // optional string partition_tag = 4; - if (this->partition_tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), this->partition_tag().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.InsertOrDeleteMsg.partition_tag"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->partition_tag(), output); - } - - // optional int64 timestamp = 5; - if (this->timestamp() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->timestamp(), output); - } - - // optional int64 segment_id = 6; - if (this->segment_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(6, this->segment_id(), output); - } - - // optional int64 channel_id = 7; - if (this->channel_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(7, this->channel_id(), output); - } - - // optional .suvlim.grpc.OpType op = 8; - if (this->op() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 8, this->op(), output); - } - - // optional int64 client_id = 9; - if (this->client_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(9, this->client_id(), output); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 10; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 10, this->extra_params(i), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.InsertOrDeleteMsg) -} - -::google::protobuf::uint8* InsertOrDeleteMsg::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.InsertOrDeleteMsg) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.InsertOrDeleteMsg.collection_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // optional .suvlim.grpc.RowData rows_data = 2; - if (this->has_rows_data()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *this->rows_data_, false, target); - } - - // optional int64 uid = 3; - if (this->uid() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->uid(), target); - } - - // optional string partition_tag = 4; - if (this->partition_tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), this->partition_tag().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.InsertOrDeleteMsg.partition_tag"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->partition_tag(), target); - } - - // optional int64 timestamp = 5; - if (this->timestamp() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->timestamp(), target); - } - - // optional int64 segment_id = 6; - if (this->segment_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(6, this->segment_id(), target); - } - - // optional int64 channel_id = 7; - if (this->channel_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(7, this->channel_id(), target); - } - - // optional .suvlim.grpc.OpType op = 8; - if (this->op() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 8, this->op(), target); - } - - // optional int64 client_id = 9; - if (this->client_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(9, this->client_id(), target); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 10; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 10, this->extra_params(i), false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.InsertOrDeleteMsg) - return target; -} - -int InsertOrDeleteMsg::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.InsertOrDeleteMsg) - int total_size = 0; - - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // optional .suvlim.grpc.RowData rows_data = 2; - if (this->has_rows_data()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->rows_data_); - } - - // optional int64 uid = 3; - if (this->uid() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->uid()); - } - - // optional string partition_tag = 4; - if (this->partition_tag().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->partition_tag()); - } - - // optional int64 timestamp = 5; - if (this->timestamp() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->timestamp()); - } - - // optional int64 segment_id = 6; - if (this->segment_id() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->segment_id()); - } - - // optional int64 channel_id = 7; - if (this->channel_id() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->channel_id()); - } - - // optional .suvlim.grpc.OpType op = 8; - if (this->op() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->op()); - } - - // optional int64 client_id = 9; - if (this->client_id() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->client_id()); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 10; - total_size += 1 * this->extra_params_size(); - for (int i = 0; i < this->extra_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->extra_params(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void InsertOrDeleteMsg::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.InsertOrDeleteMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const InsertOrDeleteMsg* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.InsertOrDeleteMsg) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.InsertOrDeleteMsg) - MergeFrom(*source); - } -} - -void InsertOrDeleteMsg::MergeFrom(const InsertOrDeleteMsg& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.InsertOrDeleteMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - extra_params_.MergeFrom(from.extra_params_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.has_rows_data()) { - mutable_rows_data()->::suvlim::grpc::RowData::MergeFrom(from.rows_data()); - } - if (from.uid() != 0) { - set_uid(from.uid()); - } - if (from.partition_tag().size() > 0) { - - partition_tag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); - } - if (from.timestamp() != 0) { - set_timestamp(from.timestamp()); - } - if (from.segment_id() != 0) { - set_segment_id(from.segment_id()); - } - if (from.channel_id() != 0) { - set_channel_id(from.channel_id()); - } - if (from.op() != 0) { - set_op(from.op()); - } - if (from.client_id() != 0) { - set_client_id(from.client_id()); - } -} - -void InsertOrDeleteMsg::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.InsertOrDeleteMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void InsertOrDeleteMsg::CopyFrom(const InsertOrDeleteMsg& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.InsertOrDeleteMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool InsertOrDeleteMsg::IsInitialized() const { - - return true; -} - -void InsertOrDeleteMsg::Swap(InsertOrDeleteMsg* other) { - if (other == this) return; - InternalSwap(other); -} -void InsertOrDeleteMsg::InternalSwap(InsertOrDeleteMsg* other) { - collection_name_.Swap(&other->collection_name_); - std::swap(rows_data_, other->rows_data_); - std::swap(uid_, other->uid_); - partition_tag_.Swap(&other->partition_tag_); - std::swap(timestamp_, other->timestamp_); - std::swap(segment_id_, other->segment_id_); - std::swap(channel_id_, other->channel_id_); - std::swap(op_, other->op_); - std::swap(client_id_, other->client_id_); - extra_params_.UnsafeArenaSwap(&other->extra_params_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata InsertOrDeleteMsg::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = InsertOrDeleteMsg_descriptor_; - metadata.reflection = InsertOrDeleteMsg_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// InsertOrDeleteMsg - -// optional string collection_name = 1; -void InsertOrDeleteMsg::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& InsertOrDeleteMsg::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertOrDeleteMsg.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void InsertOrDeleteMsg::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.InsertOrDeleteMsg.collection_name) -} - void InsertOrDeleteMsg::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.InsertOrDeleteMsg.collection_name) -} - void InsertOrDeleteMsg::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.InsertOrDeleteMsg.collection_name) -} - ::std::string* InsertOrDeleteMsg::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.InsertOrDeleteMsg.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* InsertOrDeleteMsg::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.InsertOrDeleteMsg.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void InsertOrDeleteMsg::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.InsertOrDeleteMsg.collection_name) -} - -// optional .suvlim.grpc.RowData rows_data = 2; -bool InsertOrDeleteMsg::has_rows_data() const { - return !_is_default_instance_ && rows_data_ != NULL; -} -void InsertOrDeleteMsg::clear_rows_data() { - if (GetArenaNoVirtual() == NULL && rows_data_ != NULL) delete rows_data_; - rows_data_ = NULL; -} -const ::suvlim::grpc::RowData& InsertOrDeleteMsg::rows_data() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertOrDeleteMsg.rows_data) - return rows_data_ != NULL ? *rows_data_ : *default_instance_->rows_data_; -} -::suvlim::grpc::RowData* InsertOrDeleteMsg::mutable_rows_data() { - - if (rows_data_ == NULL) { - rows_data_ = new ::suvlim::grpc::RowData; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.InsertOrDeleteMsg.rows_data) - return rows_data_; -} -::suvlim::grpc::RowData* InsertOrDeleteMsg::release_rows_data() { - // @@protoc_insertion_point(field_release:suvlim.grpc.InsertOrDeleteMsg.rows_data) - - ::suvlim::grpc::RowData* temp = rows_data_; - rows_data_ = NULL; - return temp; -} -void InsertOrDeleteMsg::set_allocated_rows_data(::suvlim::grpc::RowData* rows_data) { - delete rows_data_; - rows_data_ = rows_data; - if (rows_data) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.InsertOrDeleteMsg.rows_data) -} - -// optional int64 uid = 3; -void InsertOrDeleteMsg::clear_uid() { - uid_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 InsertOrDeleteMsg::uid() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertOrDeleteMsg.uid) - return uid_; -} - void InsertOrDeleteMsg::set_uid(::google::protobuf::int64 value) { - - uid_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.InsertOrDeleteMsg.uid) -} - -// optional string partition_tag = 4; -void InsertOrDeleteMsg::clear_partition_tag() { - partition_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& InsertOrDeleteMsg::partition_tag() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertOrDeleteMsg.partition_tag) - return partition_tag_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void InsertOrDeleteMsg::set_partition_tag(const ::std::string& value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.InsertOrDeleteMsg.partition_tag) -} - void InsertOrDeleteMsg::set_partition_tag(const char* value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.InsertOrDeleteMsg.partition_tag) -} - void InsertOrDeleteMsg::set_partition_tag(const char* value, size_t size) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.InsertOrDeleteMsg.partition_tag) -} - ::std::string* InsertOrDeleteMsg::mutable_partition_tag() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.InsertOrDeleteMsg.partition_tag) - return partition_tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* InsertOrDeleteMsg::release_partition_tag() { - // @@protoc_insertion_point(field_release:suvlim.grpc.InsertOrDeleteMsg.partition_tag) - - return partition_tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void InsertOrDeleteMsg::set_allocated_partition_tag(::std::string* partition_tag) { - if (partition_tag != NULL) { - - } else { - - } - partition_tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), partition_tag); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.InsertOrDeleteMsg.partition_tag) -} - -// optional int64 timestamp = 5; -void InsertOrDeleteMsg::clear_timestamp() { - timestamp_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 InsertOrDeleteMsg::timestamp() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertOrDeleteMsg.timestamp) - return timestamp_; -} - void InsertOrDeleteMsg::set_timestamp(::google::protobuf::int64 value) { - - timestamp_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.InsertOrDeleteMsg.timestamp) -} - -// optional int64 segment_id = 6; -void InsertOrDeleteMsg::clear_segment_id() { - segment_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 InsertOrDeleteMsg::segment_id() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertOrDeleteMsg.segment_id) - return segment_id_; -} - void InsertOrDeleteMsg::set_segment_id(::google::protobuf::int64 value) { - - segment_id_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.InsertOrDeleteMsg.segment_id) -} - -// optional int64 channel_id = 7; -void InsertOrDeleteMsg::clear_channel_id() { - channel_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 InsertOrDeleteMsg::channel_id() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertOrDeleteMsg.channel_id) - return channel_id_; -} - void InsertOrDeleteMsg::set_channel_id(::google::protobuf::int64 value) { - - channel_id_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.InsertOrDeleteMsg.channel_id) -} - -// optional .suvlim.grpc.OpType op = 8; -void InsertOrDeleteMsg::clear_op() { - op_ = 0; -} - ::suvlim::grpc::OpType InsertOrDeleteMsg::op() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertOrDeleteMsg.op) - return static_cast< ::suvlim::grpc::OpType >(op_); -} - void InsertOrDeleteMsg::set_op(::suvlim::grpc::OpType value) { - - op_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.InsertOrDeleteMsg.op) -} - -// optional int64 client_id = 9; -void InsertOrDeleteMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 InsertOrDeleteMsg::client_id() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertOrDeleteMsg.client_id) - return client_id_; -} - void InsertOrDeleteMsg::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.InsertOrDeleteMsg.client_id) -} - -// repeated .suvlim.grpc.KeyValuePair extra_params = 10; -int InsertOrDeleteMsg::extra_params_size() const { - return extra_params_.size(); -} -void InsertOrDeleteMsg::clear_extra_params() { - extra_params_.Clear(); -} -const ::suvlim::grpc::KeyValuePair& InsertOrDeleteMsg::extra_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertOrDeleteMsg.extra_params) - return extra_params_.Get(index); -} -::suvlim::grpc::KeyValuePair* InsertOrDeleteMsg::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.InsertOrDeleteMsg.extra_params) - return extra_params_.Mutable(index); -} -::suvlim::grpc::KeyValuePair* InsertOrDeleteMsg::add_extra_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.InsertOrDeleteMsg.extra_params) - return extra_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -InsertOrDeleteMsg::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.InsertOrDeleteMsg.extra_params) - return &extra_params_; -} -const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -InsertOrDeleteMsg::extra_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.InsertOrDeleteMsg.extra_params) - return extra_params_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SearchMsg::kCollectionNameFieldNumber; -const int SearchMsg::kRecordsFieldNumber; -const int SearchMsg::kPartitionTagFieldNumber; -const int SearchMsg::kUidFieldNumber; -const int SearchMsg::kTimestampFieldNumber; -const int SearchMsg::kClientIdFieldNumber; -const int SearchMsg::kExtraParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SearchMsg::SearchMsg() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.SearchMsg) -} - -void SearchMsg::InitAsDefaultInstance() { - _is_default_instance_ = true; - records_ = const_cast< ::suvlim::grpc::VectorRowRecord*>(&::suvlim::grpc::VectorRowRecord::default_instance()); -} - -SearchMsg::SearchMsg(const SearchMsg& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.SearchMsg) -} - -void SearchMsg::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - records_ = NULL; - partition_tag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - uid_ = GOOGLE_LONGLONG(0); - timestamp_ = GOOGLE_LONGLONG(0); - client_id_ = GOOGLE_LONGLONG(0); -} - -SearchMsg::~SearchMsg() { - // @@protoc_insertion_point(destructor:suvlim.grpc.SearchMsg) - SharedDtor(); -} - -void SearchMsg::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - partition_tag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - delete records_; - } -} - -void SearchMsg::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* SearchMsg::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SearchMsg_descriptor_; -} - -const SearchMsg& SearchMsg::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -SearchMsg* SearchMsg::default_instance_ = NULL; - -SearchMsg* SearchMsg::New(::google::protobuf::Arena* arena) const { - SearchMsg* n = new SearchMsg; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void SearchMsg::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.SearchMsg) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(SearchMsg, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&first, 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - ZR_(uid_, client_id_); - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && records_ != NULL) delete records_; - records_ = NULL; - partition_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - -#undef ZR_HELPER_ -#undef ZR_ - - extra_params_.Clear(); -} - -bool SearchMsg::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.SearchMsg) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.SearchMsg.collection_name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_records; - break; - } - - // optional .suvlim.grpc.VectorRowRecord records = 2; - case 2: { - if (tag == 18) { - parse_records: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_records())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_partition_tag; - break; - } - - // optional string partition_tag = 3; - case 3: { - if (tag == 26) { - parse_partition_tag: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_partition_tag())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), this->partition_tag().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "suvlim.grpc.SearchMsg.partition_tag")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_uid; - break; - } - - // optional int64 uid = 4; - case 4: { - if (tag == 32) { - parse_uid: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &uid_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_timestamp; - break; - } - - // optional int64 timestamp = 5; - case 5: { - if (tag == 40) { - parse_timestamp: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, ×tamp_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_client_id; - break; - } - - // optional int64 client_id = 6; - case 6: { - if (tag == 48) { - parse_client_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &client_id_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_extra_params; - break; - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 7; - case 7: { - if (tag == 58) { - parse_extra_params: - DO_(input->IncrementRecursionDepth()); - parse_loop_extra_params: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_extra_params())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_loop_extra_params; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.SearchMsg) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.SearchMsg) - return false; -#undef DO_ -} - -void SearchMsg::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.SearchMsg) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.SearchMsg.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // optional .suvlim.grpc.VectorRowRecord records = 2; - if (this->has_records()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *this->records_, output); - } - - // optional string partition_tag = 3; - if (this->partition_tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), this->partition_tag().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.SearchMsg.partition_tag"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->partition_tag(), output); - } - - // optional int64 uid = 4; - if (this->uid() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->uid(), output); - } - - // optional int64 timestamp = 5; - if (this->timestamp() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->timestamp(), output); - } - - // optional int64 client_id = 6; - if (this->client_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(6, this->client_id(), output); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 7; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, this->extra_params(i), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.SearchMsg) -} - -::google::protobuf::uint8* SearchMsg::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.SearchMsg) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.SearchMsg.collection_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // optional .suvlim.grpc.VectorRowRecord records = 2; - if (this->has_records()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *this->records_, false, target); - } - - // optional string partition_tag = 3; - if (this->partition_tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), this->partition_tag().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "suvlim.grpc.SearchMsg.partition_tag"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->partition_tag(), target); - } - - // optional int64 uid = 4; - if (this->uid() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->uid(), target); - } - - // optional int64 timestamp = 5; - if (this->timestamp() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->timestamp(), target); - } - - // optional int64 client_id = 6; - if (this->client_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(6, this->client_id(), target); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 7; - for (unsigned int i = 0, n = this->extra_params_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 7, this->extra_params(i), false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.SearchMsg) - return target; -} - -int SearchMsg::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.SearchMsg) - int total_size = 0; - - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // optional .suvlim.grpc.VectorRowRecord records = 2; - if (this->has_records()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->records_); - } - - // optional string partition_tag = 3; - if (this->partition_tag().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->partition_tag()); - } - - // optional int64 uid = 4; - if (this->uid() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->uid()); - } - - // optional int64 timestamp = 5; - if (this->timestamp() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->timestamp()); - } - - // optional int64 client_id = 6; - if (this->client_id() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->client_id()); - } - - // repeated .suvlim.grpc.KeyValuePair extra_params = 7; - total_size += 1 * this->extra_params_size(); - for (int i = 0; i < this->extra_params_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->extra_params(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SearchMsg::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.SearchMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const SearchMsg* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.SearchMsg) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.SearchMsg) - MergeFrom(*source); - } -} - -void SearchMsg::MergeFrom(const SearchMsg& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.SearchMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - extra_params_.MergeFrom(from.extra_params_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.has_records()) { - mutable_records()->::suvlim::grpc::VectorRowRecord::MergeFrom(from.records()); - } - if (from.partition_tag().size() > 0) { - - partition_tag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); - } - if (from.uid() != 0) { - set_uid(from.uid()); - } - if (from.timestamp() != 0) { - set_timestamp(from.timestamp()); - } - if (from.client_id() != 0) { - set_client_id(from.client_id()); - } -} - -void SearchMsg::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.SearchMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SearchMsg::CopyFrom(const SearchMsg& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.SearchMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SearchMsg::IsInitialized() const { - - return true; -} - -void SearchMsg::Swap(SearchMsg* other) { - if (other == this) return; - InternalSwap(other); -} -void SearchMsg::InternalSwap(SearchMsg* other) { - collection_name_.Swap(&other->collection_name_); - std::swap(records_, other->records_); - partition_tag_.Swap(&other->partition_tag_); - std::swap(uid_, other->uid_); - std::swap(timestamp_, other->timestamp_); - std::swap(client_id_, other->client_id_); - extra_params_.UnsafeArenaSwap(&other->extra_params_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata SearchMsg::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SearchMsg_descriptor_; - metadata.reflection = SearchMsg_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SearchMsg - -// optional string collection_name = 1; -void SearchMsg::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& SearchMsg::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchMsg.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void SearchMsg::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.SearchMsg.collection_name) -} - void SearchMsg::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.SearchMsg.collection_name) -} - void SearchMsg::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.SearchMsg.collection_name) -} - ::std::string* SearchMsg::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchMsg.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* SearchMsg::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.SearchMsg.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void SearchMsg::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.SearchMsg.collection_name) -} - -// optional .suvlim.grpc.VectorRowRecord records = 2; -bool SearchMsg::has_records() const { - return !_is_default_instance_ && records_ != NULL; -} -void SearchMsg::clear_records() { - if (GetArenaNoVirtual() == NULL && records_ != NULL) delete records_; - records_ = NULL; -} -const ::suvlim::grpc::VectorRowRecord& SearchMsg::records() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchMsg.records) - return records_ != NULL ? *records_ : *default_instance_->records_; -} -::suvlim::grpc::VectorRowRecord* SearchMsg::mutable_records() { - - if (records_ == NULL) { - records_ = new ::suvlim::grpc::VectorRowRecord; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchMsg.records) - return records_; -} -::suvlim::grpc::VectorRowRecord* SearchMsg::release_records() { - // @@protoc_insertion_point(field_release:suvlim.grpc.SearchMsg.records) - - ::suvlim::grpc::VectorRowRecord* temp = records_; - records_ = NULL; - return temp; -} -void SearchMsg::set_allocated_records(::suvlim::grpc::VectorRowRecord* records) { - delete records_; - records_ = records; - if (records) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.SearchMsg.records) -} - -// optional string partition_tag = 3; -void SearchMsg::clear_partition_tag() { - partition_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& SearchMsg::partition_tag() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchMsg.partition_tag) - return partition_tag_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void SearchMsg::set_partition_tag(const ::std::string& value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.SearchMsg.partition_tag) -} - void SearchMsg::set_partition_tag(const char* value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.SearchMsg.partition_tag) -} - void SearchMsg::set_partition_tag(const char* value, size_t size) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.SearchMsg.partition_tag) -} - ::std::string* SearchMsg::mutable_partition_tag() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchMsg.partition_tag) - return partition_tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* SearchMsg::release_partition_tag() { - // @@protoc_insertion_point(field_release:suvlim.grpc.SearchMsg.partition_tag) - - return partition_tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void SearchMsg::set_allocated_partition_tag(::std::string* partition_tag) { - if (partition_tag != NULL) { - - } else { - - } - partition_tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), partition_tag); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.SearchMsg.partition_tag) -} - -// optional int64 uid = 4; -void SearchMsg::clear_uid() { - uid_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 SearchMsg::uid() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchMsg.uid) - return uid_; -} - void SearchMsg::set_uid(::google::protobuf::int64 value) { - - uid_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.SearchMsg.uid) -} - -// optional int64 timestamp = 5; -void SearchMsg::clear_timestamp() { - timestamp_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 SearchMsg::timestamp() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchMsg.timestamp) - return timestamp_; -} - void SearchMsg::set_timestamp(::google::protobuf::int64 value) { - - timestamp_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.SearchMsg.timestamp) -} - -// optional int64 client_id = 6; -void SearchMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 SearchMsg::client_id() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchMsg.client_id) - return client_id_; -} - void SearchMsg::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.SearchMsg.client_id) -} - -// repeated .suvlim.grpc.KeyValuePair extra_params = 7; -int SearchMsg::extra_params_size() const { - return extra_params_.size(); -} -void SearchMsg::clear_extra_params() { - extra_params_.Clear(); -} -const ::suvlim::grpc::KeyValuePair& SearchMsg::extra_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchMsg.extra_params) - return extra_params_.Get(index); -} -::suvlim::grpc::KeyValuePair* SearchMsg::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchMsg.extra_params) - return extra_params_.Mutable(index); -} -::suvlim::grpc::KeyValuePair* SearchMsg::add_extra_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.SearchMsg.extra_params) - return extra_params_.Add(); -} -::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -SearchMsg::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.SearchMsg.extra_params) - return &extra_params_; -} -const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -SearchMsg::extra_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.SearchMsg.extra_params) - return extra_params_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TimeSyncMsg::kClientIdFieldNumber; -const int TimeSyncMsg::kTimestampFieldNumber; -const int TimeSyncMsg::kMsgTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TimeSyncMsg::TimeSyncMsg() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.TimeSyncMsg) -} - -void TimeSyncMsg::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -TimeSyncMsg::TimeSyncMsg(const TimeSyncMsg& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.TimeSyncMsg) -} - -void TimeSyncMsg::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - clientid_ = GOOGLE_LONGLONG(0); - timestamp_ = GOOGLE_LONGLONG(0); - msgtype_ = 0; -} - -TimeSyncMsg::~TimeSyncMsg() { - // @@protoc_insertion_point(destructor:suvlim.grpc.TimeSyncMsg) - SharedDtor(); -} - -void TimeSyncMsg::SharedDtor() { - if (this != default_instance_) { - } -} - -void TimeSyncMsg::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* TimeSyncMsg::descriptor() { - protobuf_AssignDescriptorsOnce(); - return TimeSyncMsg_descriptor_; -} - -const TimeSyncMsg& TimeSyncMsg::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -TimeSyncMsg* TimeSyncMsg::default_instance_ = NULL; - -TimeSyncMsg* TimeSyncMsg::New(::google::protobuf::Arena* arena) const { - TimeSyncMsg* n = new TimeSyncMsg; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void TimeSyncMsg::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.TimeSyncMsg) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(TimeSyncMsg, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&first, 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - ZR_(clientid_, msgtype_); - -#undef ZR_HELPER_ -#undef ZR_ - -} - -bool TimeSyncMsg::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.TimeSyncMsg) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int64 ClientId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &clientid_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_Timestamp; - break; - } - - // optional int64 Timestamp = 2; - case 2: { - if (tag == 16) { - parse_Timestamp: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, ×tamp_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_MsgType; - break; - } - - // optional .suvlim.grpc.OpType MsgType = 3; - case 3: { - if (tag == 24) { - parse_MsgType: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_msgtype(static_cast< ::suvlim::grpc::OpType >(value)); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.TimeSyncMsg) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.TimeSyncMsg) - return false; -#undef DO_ -} - -void TimeSyncMsg::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.TimeSyncMsg) - // optional int64 ClientId = 1; - if (this->clientid() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->clientid(), output); - } - - // optional int64 Timestamp = 2; - if (this->timestamp() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->timestamp(), output); - } - - // optional .suvlim.grpc.OpType MsgType = 3; - if (this->msgtype() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->msgtype(), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.TimeSyncMsg) -} - -::google::protobuf::uint8* TimeSyncMsg::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.TimeSyncMsg) - // optional int64 ClientId = 1; - if (this->clientid() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->clientid(), target); - } - - // optional int64 Timestamp = 2; - if (this->timestamp() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->timestamp(), target); - } - - // optional .suvlim.grpc.OpType MsgType = 3; - if (this->msgtype() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->msgtype(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.TimeSyncMsg) - return target; -} - -int TimeSyncMsg::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.TimeSyncMsg) - int total_size = 0; - - // optional int64 ClientId = 1; - if (this->clientid() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->clientid()); - } - - // optional int64 Timestamp = 2; - if (this->timestamp() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->timestamp()); - } - - // optional .suvlim.grpc.OpType MsgType = 3; - if (this->msgtype() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->msgtype()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void TimeSyncMsg::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.TimeSyncMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const TimeSyncMsg* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.TimeSyncMsg) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.TimeSyncMsg) - MergeFrom(*source); - } -} - -void TimeSyncMsg::MergeFrom(const TimeSyncMsg& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.TimeSyncMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.clientid() != 0) { - set_clientid(from.clientid()); - } - if (from.timestamp() != 0) { - set_timestamp(from.timestamp()); - } - if (from.msgtype() != 0) { - set_msgtype(from.msgtype()); - } -} - -void TimeSyncMsg::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.TimeSyncMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TimeSyncMsg::CopyFrom(const TimeSyncMsg& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.TimeSyncMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TimeSyncMsg::IsInitialized() const { - - return true; -} - -void TimeSyncMsg::Swap(TimeSyncMsg* other) { - if (other == this) return; - InternalSwap(other); -} -void TimeSyncMsg::InternalSwap(TimeSyncMsg* other) { - std::swap(clientid_, other->clientid_); - std::swap(timestamp_, other->timestamp_); - std::swap(msgtype_, other->msgtype_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata TimeSyncMsg::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = TimeSyncMsg_descriptor_; - metadata.reflection = TimeSyncMsg_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// TimeSyncMsg - -// optional int64 ClientId = 1; -void TimeSyncMsg::clear_clientid() { - clientid_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 TimeSyncMsg::clientid() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.TimeSyncMsg.ClientId) - return clientid_; -} - void TimeSyncMsg::set_clientid(::google::protobuf::int64 value) { - - clientid_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.TimeSyncMsg.ClientId) -} - -// optional int64 Timestamp = 2; -void TimeSyncMsg::clear_timestamp() { - timestamp_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 TimeSyncMsg::timestamp() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.TimeSyncMsg.Timestamp) - return timestamp_; -} - void TimeSyncMsg::set_timestamp(::google::protobuf::int64 value) { - - timestamp_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.TimeSyncMsg.Timestamp) -} - -// optional .suvlim.grpc.OpType MsgType = 3; -void TimeSyncMsg::clear_msgtype() { - msgtype_ = 0; -} - ::suvlim::grpc::OpType TimeSyncMsg::msgtype() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.TimeSyncMsg.MsgType) - return static_cast< ::suvlim::grpc::OpType >(msgtype_); -} - void TimeSyncMsg::set_msgtype(::suvlim::grpc::OpType value) { - - msgtype_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.TimeSyncMsg.MsgType) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SegmentRecord::kUidFieldNumber; -const int SegmentRecord::kSegmentIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SegmentRecord::SegmentRecord() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.SegmentRecord) -} - -void SegmentRecord::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -SegmentRecord::SegmentRecord(const SegmentRecord& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.SegmentRecord) -} - -void SegmentRecord::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - uid_ = GOOGLE_LONGLONG(0); -} - -SegmentRecord::~SegmentRecord() { - // @@protoc_insertion_point(destructor:suvlim.grpc.SegmentRecord) - SharedDtor(); -} - -void SegmentRecord::SharedDtor() { - if (this != default_instance_) { - } -} - -void SegmentRecord::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* SegmentRecord::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SegmentRecord_descriptor_; -} - -const SegmentRecord& SegmentRecord::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -SegmentRecord* SegmentRecord::default_instance_ = NULL; - -SegmentRecord* SegmentRecord::New(::google::protobuf::Arena* arena) const { - SegmentRecord* n = new SegmentRecord; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void SegmentRecord::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.SegmentRecord) - uid_ = GOOGLE_LONGLONG(0); - segment_id_.Clear(); -} - -bool SegmentRecord::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.SegmentRecord) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int64 uid = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &uid_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_segment_id; - break; - } - - // repeated int64 segment_id = 2; - case 2: { - if (tag == 18) { - parse_segment_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, this->mutable_segment_id()))); - } else if (tag == 16) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - 1, 18, input, this->mutable_segment_id()))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.SegmentRecord) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.SegmentRecord) - return false; -#undef DO_ -} - -void SegmentRecord::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.SegmentRecord) - // optional int64 uid = 1; - if (this->uid() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->uid(), output); - } - - // repeated int64 segment_id = 2; - if (this->segment_id_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_segment_id_cached_byte_size_); - } - for (int i = 0; i < this->segment_id_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag( - this->segment_id(i), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.SegmentRecord) -} - -::google::protobuf::uint8* SegmentRecord::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.SegmentRecord) - // optional int64 uid = 1; - if (this->uid() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->uid(), target); - } - - // repeated int64 segment_id = 2; - if (this->segment_id_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 2, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _segment_id_cached_byte_size_, target); - } - for (int i = 0; i < this->segment_id_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->segment_id(i), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.SegmentRecord) - return target; -} - -int SegmentRecord::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.SegmentRecord) - int total_size = 0; - - // optional int64 uid = 1; - if (this->uid() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->uid()); - } - - // repeated int64 segment_id = 2; - { - int data_size = 0; - for (int i = 0; i < this->segment_id_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int64Size(this->segment_id(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _segment_id_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SegmentRecord::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.SegmentRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const SegmentRecord* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.SegmentRecord) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.SegmentRecord) - MergeFrom(*source); - } -} - -void SegmentRecord::MergeFrom(const SegmentRecord& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.SegmentRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - segment_id_.MergeFrom(from.segment_id_); - if (from.uid() != 0) { - set_uid(from.uid()); - } -} - -void SegmentRecord::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.SegmentRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SegmentRecord::CopyFrom(const SegmentRecord& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.SegmentRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SegmentRecord::IsInitialized() const { - - return true; -} - -void SegmentRecord::Swap(SegmentRecord* other) { - if (other == this) return; - InternalSwap(other); -} -void SegmentRecord::InternalSwap(SegmentRecord* other) { - std::swap(uid_, other->uid_); - segment_id_.UnsafeArenaSwap(&other->segment_id_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata SegmentRecord::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SegmentRecord_descriptor_; - metadata.reflection = SegmentRecord_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SegmentRecord - -// optional int64 uid = 1; -void SegmentRecord::clear_uid() { - uid_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 SegmentRecord::uid() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SegmentRecord.uid) - return uid_; -} - void SegmentRecord::set_uid(::google::protobuf::int64 value) { - - uid_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.SegmentRecord.uid) -} - -// repeated int64 segment_id = 2; -int SegmentRecord::segment_id_size() const { - return segment_id_.size(); -} -void SegmentRecord::clear_segment_id() { - segment_id_.Clear(); -} - ::google::protobuf::int64 SegmentRecord::segment_id(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SegmentRecord.segment_id) - return segment_id_.Get(index); -} - void SegmentRecord::set_segment_id(int index, ::google::protobuf::int64 value) { - segment_id_.Set(index, value); - // @@protoc_insertion_point(field_set:suvlim.grpc.SegmentRecord.segment_id) -} - void SegmentRecord::add_segment_id(::google::protobuf::int64 value) { - segment_id_.Add(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.SegmentRecord.segment_id) -} - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -SegmentRecord::segment_id() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.SegmentRecord.segment_id) - return segment_id_; -} - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -SegmentRecord::mutable_segment_id() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.SegmentRecord.segment_id) - return &segment_id_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Key2SegMsg::kClientIdFieldNumber; -const int Key2SegMsg::kRecordsFieldNumber; -const int Key2SegMsg::kMsgTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Key2SegMsg::Key2SegMsg() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:suvlim.grpc.Key2SegMsg) -} - -void Key2SegMsg::InitAsDefaultInstance() { - _is_default_instance_ = true; - records_ = const_cast< ::suvlim::grpc::SegmentRecord*>(&::suvlim::grpc::SegmentRecord::default_instance()); -} - -Key2SegMsg::Key2SegMsg(const Key2SegMsg& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:suvlim.grpc.Key2SegMsg) -} - -void Key2SegMsg::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - client_id_ = GOOGLE_LONGLONG(0); - records_ = NULL; - msg_type_ = 0; -} - -Key2SegMsg::~Key2SegMsg() { - // @@protoc_insertion_point(destructor:suvlim.grpc.Key2SegMsg) - SharedDtor(); -} - -void Key2SegMsg::SharedDtor() { - if (this != default_instance_) { - delete records_; - } -} - -void Key2SegMsg::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* Key2SegMsg::descriptor() { - protobuf_AssignDescriptorsOnce(); - return Key2SegMsg_descriptor_; -} - -const Key2SegMsg& Key2SegMsg::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_suvlim_2eproto(); - return *default_instance_; -} - -Key2SegMsg* Key2SegMsg::default_instance_ = NULL; - -Key2SegMsg* Key2SegMsg::New(::google::protobuf::Arena* arena) const { - Key2SegMsg* n = new Key2SegMsg; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void Key2SegMsg::Clear() { -// @@protoc_insertion_point(message_clear_start:suvlim.grpc.Key2SegMsg) - client_id_ = GOOGLE_LONGLONG(0); - if (GetArenaNoVirtual() == NULL && records_ != NULL) delete records_; - records_ = NULL; - msg_type_ = 0; -} - -bool Key2SegMsg::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:suvlim.grpc.Key2SegMsg) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int64 client_id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &client_id_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_records; - break; - } - - // optional .suvlim.grpc.SegmentRecord records = 2; - case 2: { - if (tag == 18) { - parse_records: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_records())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_msg_type; - break; - } - - // optional .suvlim.grpc.OpType msg_type = 3; - case 3: { - if (tag == 24) { - parse_msg_type: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_msg_type(static_cast< ::suvlim::grpc::OpType >(value)); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:suvlim.grpc.Key2SegMsg) - return true; -failure: - // @@protoc_insertion_point(parse_failure:suvlim.grpc.Key2SegMsg) - return false; -#undef DO_ -} - -void Key2SegMsg::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:suvlim.grpc.Key2SegMsg) - // optional int64 client_id = 1; - if (this->client_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->client_id(), output); - } - - // optional .suvlim.grpc.SegmentRecord records = 2; - if (this->has_records()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *this->records_, output); - } - - // optional .suvlim.grpc.OpType msg_type = 3; - if (this->msg_type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->msg_type(), output); - } - - // @@protoc_insertion_point(serialize_end:suvlim.grpc.Key2SegMsg) -} - -::google::protobuf::uint8* Key2SegMsg::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:suvlim.grpc.Key2SegMsg) - // optional int64 client_id = 1; - if (this->client_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->client_id(), target); - } - - // optional .suvlim.grpc.SegmentRecord records = 2; - if (this->has_records()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *this->records_, false, target); - } - - // optional .suvlim.grpc.OpType msg_type = 3; - if (this->msg_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->msg_type(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:suvlim.grpc.Key2SegMsg) - return target; -} - -int Key2SegMsg::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:suvlim.grpc.Key2SegMsg) - int total_size = 0; - - // optional int64 client_id = 1; - if (this->client_id() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->client_id()); - } - - // optional .suvlim.grpc.SegmentRecord records = 2; - if (this->has_records()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->records_); - } - - // optional .suvlim.grpc.OpType msg_type = 3; - if (this->msg_type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->msg_type()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void Key2SegMsg::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:suvlim.grpc.Key2SegMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const Key2SegMsg* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:suvlim.grpc.Key2SegMsg) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:suvlim.grpc.Key2SegMsg) - MergeFrom(*source); - } -} - -void Key2SegMsg::MergeFrom(const Key2SegMsg& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:suvlim.grpc.Key2SegMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.client_id() != 0) { - set_client_id(from.client_id()); - } - if (from.has_records()) { - mutable_records()->::suvlim::grpc::SegmentRecord::MergeFrom(from.records()); - } - if (from.msg_type() != 0) { - set_msg_type(from.msg_type()); - } -} - -void Key2SegMsg::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:suvlim.grpc.Key2SegMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Key2SegMsg::CopyFrom(const Key2SegMsg& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:suvlim.grpc.Key2SegMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Key2SegMsg::IsInitialized() const { - - return true; -} - -void Key2SegMsg::Swap(Key2SegMsg* other) { - if (other == this) return; - InternalSwap(other); -} -void Key2SegMsg::InternalSwap(Key2SegMsg* other) { - std::swap(client_id_, other->client_id_); - std::swap(records_, other->records_); - std::swap(msg_type_, other->msg_type_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata Key2SegMsg::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = Key2SegMsg_descriptor_; - metadata.reflection = Key2SegMsg_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// Key2SegMsg - -// optional int64 client_id = 1; -void Key2SegMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 Key2SegMsg::client_id() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Key2SegMsg.client_id) - return client_id_; -} - void Key2SegMsg::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.Key2SegMsg.client_id) -} - -// optional .suvlim.grpc.SegmentRecord records = 2; -bool Key2SegMsg::has_records() const { - return !_is_default_instance_ && records_ != NULL; -} -void Key2SegMsg::clear_records() { - if (GetArenaNoVirtual() == NULL && records_ != NULL) delete records_; - records_ = NULL; -} -const ::suvlim::grpc::SegmentRecord& Key2SegMsg::records() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Key2SegMsg.records) - return records_ != NULL ? *records_ : *default_instance_->records_; -} -::suvlim::grpc::SegmentRecord* Key2SegMsg::mutable_records() { - - if (records_ == NULL) { - records_ = new ::suvlim::grpc::SegmentRecord; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.Key2SegMsg.records) - return records_; -} -::suvlim::grpc::SegmentRecord* Key2SegMsg::release_records() { - // @@protoc_insertion_point(field_release:suvlim.grpc.Key2SegMsg.records) - - ::suvlim::grpc::SegmentRecord* temp = records_; - records_ = NULL; - return temp; -} -void Key2SegMsg::set_allocated_records(::suvlim::grpc::SegmentRecord* records) { - delete records_; - records_ = records; - if (records) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.Key2SegMsg.records) -} - -// optional .suvlim.grpc.OpType msg_type = 3; -void Key2SegMsg::clear_msg_type() { - msg_type_ = 0; -} - ::suvlim::grpc::OpType Key2SegMsg::msg_type() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Key2SegMsg.msg_type) - return static_cast< ::suvlim::grpc::OpType >(msg_type_); -} - void Key2SegMsg::set_msg_type(::suvlim::grpc::OpType value) { - - msg_type_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.Key2SegMsg.msg_type) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// @@protoc_insertion_point(namespace_scope) - -} // namespace grpc -} // namespace suvlim - -// @@protoc_insertion_point(global_scope) diff --git a/proxy/src/pulsar/message_client/pb/suvlim.pb.h b/proxy/src/pulsar/message_client/pb/suvlim.pb.h deleted file mode 100644 index 7e282626d1..0000000000 --- a/proxy/src/pulsar/message_client/pb/suvlim.pb.h +++ /dev/null @@ -1,10343 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: suvlim.proto - -#ifndef PROTOBUF_suvlim_2eproto__INCLUDED -#define PROTOBUF_suvlim_2eproto__INCLUDED - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3000000 -#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 3000000 < GOOGLE_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 -// @@protoc_insertion_point(includes) - -namespace suvlim { -namespace grpc { - -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_suvlim_2eproto(); -void protobuf_AssignDesc_suvlim_2eproto(); -void protobuf_ShutdownFile_suvlim_2eproto(); - -class BoolReply; -class BooleanQuery; -class CollectionInfo; -class CollectionName; -class CollectionNameList; -class CollectionRowCount; -class Command; -class CompactParam; -class CompareExpr; -class DeleteByIDParam; -class Entities; -class EntityIdentity; -class EntityIds; -class FieldMeta; -class FieldName; -class FieldParam; -class FieldType; -class FlushParam; -class GeneralQuery; -class GetEntityIDsParam; -class IndexParam; -class InsertOrDeleteMsg; -class InsertParam; -class Key2SegMsg; -class KeyValuePair; -class Mapping; -class MappingList; -class PartitionList; -class PartitionParam; -class QueryResult; -class RangeQuery; -class RowData; -class Schema; -class SearchInSegmentParam; -class SearchMsg; -class SearchParam; -class SearchParamPB; -class SegmentRecord; -class Status; -class StringReply; -class TermQuery; -class TimeSyncMsg; -class VectorFieldParam; -class VectorFieldRecord; -class VectorParam; -class VectorQuery; -class VectorRecord; -class VectorRowRecord; - -enum ErrorCode { - 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_ = ::google::protobuf::kint32min, - ErrorCode_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool ErrorCode_IsValid(int value); -const ErrorCode ErrorCode_MIN = SUCCESS; -const ErrorCode ErrorCode_MAX = OUT_OF_MEMORY; -const int ErrorCode_ARRAYSIZE = ErrorCode_MAX + 1; - -const ::google::protobuf::EnumDescriptor* ErrorCode_descriptor(); -inline const ::std::string& ErrorCode_Name(ErrorCode value) { - return ::google::protobuf::internal::NameOfEnum( - ErrorCode_descriptor(), value); -} -inline bool ErrorCode_Parse( - const ::std::string& name, ErrorCode* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ErrorCode_descriptor(), name, value); -} -enum DataType { - NONE = 0, - BOOL = 1, - INT8 = 2, - INT16 = 3, - INT32 = 4, - INT64 = 5, - FLOAT = 10, - DOUBLE = 11, - STRING = 20, - VECTOR_BINARY = 100, - VECTOR_FLOAT = 101, - DataType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - DataType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool DataType_IsValid(int value); -const DataType DataType_MIN = NONE; -const DataType DataType_MAX = VECTOR_FLOAT; -const int DataType_ARRAYSIZE = DataType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* DataType_descriptor(); -inline const ::std::string& DataType_Name(DataType value) { - return ::google::protobuf::internal::NameOfEnum( - DataType_descriptor(), value); -} -inline bool DataType_Parse( - const ::std::string& name, DataType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - DataType_descriptor(), name, value); -} -enum CompareOperator { - LT = 0, - LTE = 1, - EQ = 2, - GT = 3, - GTE = 4, - NE = 5, - CompareOperator_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - CompareOperator_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool CompareOperator_IsValid(int value); -const CompareOperator CompareOperator_MIN = LT; -const CompareOperator CompareOperator_MAX = NE; -const int CompareOperator_ARRAYSIZE = CompareOperator_MAX + 1; - -const ::google::protobuf::EnumDescriptor* CompareOperator_descriptor(); -inline const ::std::string& CompareOperator_Name(CompareOperator value) { - return ::google::protobuf::internal::NameOfEnum( - CompareOperator_descriptor(), value); -} -inline bool CompareOperator_Parse( - const ::std::string& name, CompareOperator* value) { - return ::google::protobuf::internal::ParseNamedEnum( - CompareOperator_descriptor(), name, value); -} -enum Occur { - INVALID = 0, - MUST = 1, - SHOULD = 2, - MUST_NOT = 3, - Occur_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - Occur_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool Occur_IsValid(int value); -const Occur Occur_MIN = INVALID; -const Occur Occur_MAX = MUST_NOT; -const int Occur_ARRAYSIZE = Occur_MAX + 1; - -const ::google::protobuf::EnumDescriptor* Occur_descriptor(); -inline const ::std::string& Occur_Name(Occur value) { - return ::google::protobuf::internal::NameOfEnum( - Occur_descriptor(), value); -} -inline bool Occur_Parse( - const ::std::string& name, Occur* value) { - return ::google::protobuf::internal::ParseNamedEnum( - Occur_descriptor(), name, value); -} -enum OpType { - INSERT = 0, - DELETE = 1, - SEARCH = 2, - SEARCH_RESULT = 3, - OpType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - OpType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool OpType_IsValid(int value); -const OpType OpType_MIN = INSERT; -const OpType OpType_MAX = SEARCH_RESULT; -const int OpType_ARRAYSIZE = OpType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* OpType_descriptor(); -inline const ::std::string& OpType_Name(OpType value) { - return ::google::protobuf::internal::NameOfEnum( - OpType_descriptor(), value); -} -inline bool OpType_Parse( - const ::std::string& name, OpType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - OpType_descriptor(), name, value); -} -// =================================================================== - -class Status : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.Status) */ { - public: - Status(); - virtual ~Status(); - - Status(const Status& from); - - inline Status& operator=(const Status& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const Status& default_instance(); - - void Swap(Status* other); - - // implements Message ---------------------------------------------- - - inline Status* New() const { return New(NULL); } - - Status* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Status& from); - void MergeFrom(const Status& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Status* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .suvlim.grpc.ErrorCode error_code = 1; - void clear_error_code(); - static const int kErrorCodeFieldNumber = 1; - ::suvlim::grpc::ErrorCode error_code() const; - void set_error_code(::suvlim::grpc::ErrorCode value); - - // optional string reason = 2; - void clear_reason(); - static const int kReasonFieldNumber = 2; - const ::std::string& reason() const; - void set_reason(const ::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); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.Status) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr reason_; - int error_code_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static Status* default_instance_; -}; -// ------------------------------------------------------------------- - -class KeyValuePair : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.KeyValuePair) */ { - public: - KeyValuePair(); - virtual ~KeyValuePair(); - - KeyValuePair(const KeyValuePair& from); - - inline KeyValuePair& operator=(const KeyValuePair& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const KeyValuePair& default_instance(); - - void Swap(KeyValuePair* other); - - // implements Message ---------------------------------------------- - - inline KeyValuePair* New() const { return New(NULL); } - - KeyValuePair* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const KeyValuePair& from); - void MergeFrom(const KeyValuePair& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(KeyValuePair* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string key = 1; - void clear_key(); - static const int kKeyFieldNumber = 1; - const ::std::string& key() const; - void set_key(const ::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); - - // optional string value = 2; - void clear_value(); - static const int kValueFieldNumber = 2; - const ::std::string& value() const; - void set_value(const ::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:suvlim.grpc.KeyValuePair) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr key_; - ::google::protobuf::internal::ArenaStringPtr value_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static KeyValuePair* default_instance_; -}; -// ------------------------------------------------------------------- - -class CollectionName : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.CollectionName) */ { - public: - CollectionName(); - virtual ~CollectionName(); - - CollectionName(const CollectionName& from); - - inline CollectionName& operator=(const CollectionName& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const CollectionName& default_instance(); - - void Swap(CollectionName* other); - - // implements Message ---------------------------------------------- - - inline CollectionName* New() const { return New(NULL); } - - CollectionName* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CollectionName& from); - void MergeFrom(const CollectionName& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(CollectionName* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string collection_name = 1; - void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.CollectionName) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static CollectionName* default_instance_; -}; -// ------------------------------------------------------------------- - -class CollectionNameList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.CollectionNameList) */ { - public: - CollectionNameList(); - virtual ~CollectionNameList(); - - CollectionNameList(const CollectionNameList& from); - - inline CollectionNameList& operator=(const CollectionNameList& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const CollectionNameList& default_instance(); - - void Swap(CollectionNameList* other); - - // implements Message ---------------------------------------------- - - inline CollectionNameList* New() const { return New(NULL); } - - CollectionNameList* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CollectionNameList& from); - void MergeFrom(const CollectionNameList& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(CollectionNameList* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .suvlim.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - static const int kStatusFieldNumber = 1; - const ::suvlim::grpc::Status& status() const; - ::suvlim::grpc::Status* mutable_status(); - ::suvlim::grpc::Status* release_status(); - void set_allocated_status(::suvlim::grpc::Status* status); - - // repeated string collection_names = 2; - int collection_names_size() const; - void clear_collection_names(); - static const int kCollectionNamesFieldNumber = 2; - const ::std::string& collection_names(int index) const; - ::std::string* mutable_collection_names(int index); - void set_collection_names(int index, const ::std::string& value); - void set_collection_names(int index, const char* value); - void set_collection_names(int index, const char* value, size_t size); - ::std::string* add_collection_names(); - void add_collection_names(const ::std::string& value); - void add_collection_names(const char* value); - void add_collection_names(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& collection_names() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_collection_names(); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.CollectionNameList) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::suvlim::grpc::Status* status_; - ::google::protobuf::RepeatedPtrField< ::std::string> collection_names_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static CollectionNameList* default_instance_; -}; -// ------------------------------------------------------------------- - -class FieldName : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.FieldName) */ { - public: - FieldName(); - virtual ~FieldName(); - - FieldName(const FieldName& from); - - inline FieldName& operator=(const FieldName& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const FieldName& default_instance(); - - void Swap(FieldName* other); - - // implements Message ---------------------------------------------- - - inline FieldName* New() const { return New(NULL); } - - FieldName* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const FieldName& from); - void MergeFrom(const FieldName& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(FieldName* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string collection_name = 1; - void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); - - // optional string field_name = 2; - void clear_field_name(); - static const int kFieldNameFieldNumber = 2; - const ::std::string& field_name() const; - void set_field_name(const ::std::string& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - ::std::string* mutable_field_name(); - ::std::string* release_field_name(); - void set_allocated_field_name(::std::string* field_name); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.FieldName) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - ::google::protobuf::internal::ArenaStringPtr field_name_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static FieldName* default_instance_; -}; -// ------------------------------------------------------------------- - -class Mapping : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.Mapping) */ { - public: - Mapping(); - virtual ~Mapping(); - - Mapping(const Mapping& from); - - inline Mapping& operator=(const Mapping& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const Mapping& default_instance(); - - void Swap(Mapping* other); - - // implements Message ---------------------------------------------- - - inline Mapping* New() const { return New(NULL); } - - Mapping* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Mapping& from); - void MergeFrom(const Mapping& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Mapping* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .suvlim.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - static const int kStatusFieldNumber = 1; - const ::suvlim::grpc::Status& status() const; - ::suvlim::grpc::Status* mutable_status(); - ::suvlim::grpc::Status* release_status(); - void set_allocated_status(::suvlim::grpc::Status* status); - - // optional string collection_name = 2; - void clear_collection_name(); - static const int kCollectionNameFieldNumber = 2; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); - - // repeated .suvlim.grpc.FieldParam fields = 3; - int fields_size() const; - void clear_fields(); - static const int kFieldsFieldNumber = 3; - const ::suvlim::grpc::FieldParam& fields(int index) const; - ::suvlim::grpc::FieldParam* mutable_fields(int index); - ::suvlim::grpc::FieldParam* add_fields(); - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::FieldParam >* - mutable_fields(); - const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::FieldParam >& - fields() const; - - // repeated .suvlim.grpc.KeyValuePair extra_params = 4; - int extra_params_size() const; - void clear_extra_params(); - static const int kExtraParamsFieldNumber = 4; - const ::suvlim::grpc::KeyValuePair& extra_params(int index) const; - ::suvlim::grpc::KeyValuePair* mutable_extra_params(int index); - ::suvlim::grpc::KeyValuePair* add_extra_params(); - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* - mutable_extra_params(); - const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& - extra_params() const; - - // @@protoc_insertion_point(class_scope:suvlim.grpc.Mapping) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::suvlim::grpc::Status* status_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::FieldParam > fields_; - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair > extra_params_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static Mapping* default_instance_; -}; -// ------------------------------------------------------------------- - -class MappingList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.MappingList) */ { - public: - MappingList(); - virtual ~MappingList(); - - MappingList(const MappingList& from); - - inline MappingList& operator=(const MappingList& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const MappingList& default_instance(); - - void Swap(MappingList* other); - - // implements Message ---------------------------------------------- - - inline MappingList* New() const { return New(NULL); } - - MappingList* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MappingList& from); - void MergeFrom(const MappingList& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(MappingList* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .suvlim.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - static const int kStatusFieldNumber = 1; - const ::suvlim::grpc::Status& status() const; - ::suvlim::grpc::Status* mutable_status(); - ::suvlim::grpc::Status* release_status(); - void set_allocated_status(::suvlim::grpc::Status* status); - - // repeated .suvlim.grpc.Mapping mapping_list = 2; - int mapping_list_size() const; - void clear_mapping_list(); - static const int kMappingListFieldNumber = 2; - const ::suvlim::grpc::Mapping& mapping_list(int index) const; - ::suvlim::grpc::Mapping* mutable_mapping_list(int index); - ::suvlim::grpc::Mapping* add_mapping_list(); - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::Mapping >* - mutable_mapping_list(); - const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::Mapping >& - mapping_list() const; - - // @@protoc_insertion_point(class_scope:suvlim.grpc.MappingList) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::suvlim::grpc::Status* status_; - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::Mapping > mapping_list_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static MappingList* default_instance_; -}; -// ------------------------------------------------------------------- - -class PartitionParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.PartitionParam) */ { - public: - PartitionParam(); - virtual ~PartitionParam(); - - PartitionParam(const PartitionParam& from); - - inline PartitionParam& operator=(const PartitionParam& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const PartitionParam& default_instance(); - - void Swap(PartitionParam* other); - - // implements Message ---------------------------------------------- - - inline PartitionParam* New() const { return New(NULL); } - - PartitionParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const PartitionParam& from); - void MergeFrom(const PartitionParam& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(PartitionParam* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string collection_name = 1; - void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); - - // optional string tag = 2; - void clear_tag(); - static const int kTagFieldNumber = 2; - const ::std::string& tag() const; - void set_tag(const ::std::string& value); - void set_tag(const char* value); - void set_tag(const char* value, size_t size); - ::std::string* mutable_tag(); - ::std::string* release_tag(); - void set_allocated_tag(::std::string* tag); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.PartitionParam) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - ::google::protobuf::internal::ArenaStringPtr tag_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static PartitionParam* default_instance_; -}; -// ------------------------------------------------------------------- - -class PartitionList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.PartitionList) */ { - public: - PartitionList(); - virtual ~PartitionList(); - - PartitionList(const PartitionList& from); - - inline PartitionList& operator=(const PartitionList& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const PartitionList& default_instance(); - - void Swap(PartitionList* other); - - // implements Message ---------------------------------------------- - - inline PartitionList* New() const { return New(NULL); } - - PartitionList* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const PartitionList& from); - void MergeFrom(const PartitionList& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(PartitionList* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .suvlim.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - static const int kStatusFieldNumber = 1; - const ::suvlim::grpc::Status& status() const; - ::suvlim::grpc::Status* mutable_status(); - ::suvlim::grpc::Status* release_status(); - void set_allocated_status(::suvlim::grpc::Status* status); - - // repeated string partition_tag_array = 2; - int partition_tag_array_size() const; - void clear_partition_tag_array(); - static const int kPartitionTagArrayFieldNumber = 2; - const ::std::string& partition_tag_array(int index) const; - ::std::string* mutable_partition_tag_array(int index); - void set_partition_tag_array(int index, const ::std::string& value); - void set_partition_tag_array(int index, const char* value); - void set_partition_tag_array(int index, const char* value, size_t size); - ::std::string* add_partition_tag_array(); - void add_partition_tag_array(const ::std::string& value); - void add_partition_tag_array(const char* value); - void add_partition_tag_array(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& partition_tag_array() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_partition_tag_array(); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.PartitionList) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::suvlim::grpc::Status* status_; - ::google::protobuf::RepeatedPtrField< ::std::string> partition_tag_array_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static PartitionList* default_instance_; -}; -// ------------------------------------------------------------------- - -class VectorRowRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.VectorRowRecord) */ { - public: - VectorRowRecord(); - virtual ~VectorRowRecord(); - - VectorRowRecord(const VectorRowRecord& from); - - inline VectorRowRecord& operator=(const VectorRowRecord& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const VectorRowRecord& default_instance(); - - void Swap(VectorRowRecord* other); - - // implements Message ---------------------------------------------- - - inline VectorRowRecord* New() const { return New(NULL); } - - VectorRowRecord* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const VectorRowRecord& from); - void MergeFrom(const VectorRowRecord& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(VectorRowRecord* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated float float_data = 1; - int float_data_size() const; - void clear_float_data(); - static const int kFloatDataFieldNumber = 1; - float float_data(int index) const; - void set_float_data(int index, float value); - void add_float_data(float value); - const ::google::protobuf::RepeatedField< float >& - float_data() const; - ::google::protobuf::RepeatedField< float >* - mutable_float_data(); - - // optional bytes binary_data = 2; - void clear_binary_data(); - static const int kBinaryDataFieldNumber = 2; - const ::std::string& binary_data() const; - void set_binary_data(const ::std::string& value); - void set_binary_data(const char* value); - void set_binary_data(const void* value, size_t size); - ::std::string* mutable_binary_data(); - ::std::string* release_binary_data(); - void set_allocated_binary_data(::std::string* binary_data); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.VectorRowRecord) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::RepeatedField< float > float_data_; - mutable int _float_data_cached_byte_size_; - ::google::protobuf::internal::ArenaStringPtr binary_data_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static VectorRowRecord* default_instance_; -}; -// ------------------------------------------------------------------- - -class EntityIds : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.EntityIds) */ { - public: - EntityIds(); - virtual ~EntityIds(); - - EntityIds(const EntityIds& from); - - inline EntityIds& operator=(const EntityIds& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const EntityIds& default_instance(); - - void Swap(EntityIds* other); - - // implements Message ---------------------------------------------- - - inline EntityIds* New() const { return New(NULL); } - - EntityIds* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const EntityIds& from); - void MergeFrom(const EntityIds& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(EntityIds* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .suvlim.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - static const int kStatusFieldNumber = 1; - const ::suvlim::grpc::Status& status() const; - ::suvlim::grpc::Status* mutable_status(); - ::suvlim::grpc::Status* release_status(); - void set_allocated_status(::suvlim::grpc::Status* status); - - // repeated int64 entity_id_array = 2; - int entity_id_array_size() const; - void clear_entity_id_array(); - static const int kEntityIdArrayFieldNumber = 2; - ::google::protobuf::int64 entity_id_array(int index) const; - void set_entity_id_array(int index, ::google::protobuf::int64 value); - void add_entity_id_array(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - entity_id_array() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_entity_id_array(); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.EntityIds) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::suvlim::grpc::Status* status_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > entity_id_array_; - mutable int _entity_id_array_cached_byte_size_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static EntityIds* default_instance_; -}; -// ------------------------------------------------------------------- - -class VectorRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.VectorRecord) */ { - public: - VectorRecord(); - virtual ~VectorRecord(); - - VectorRecord(const VectorRecord& from); - - inline VectorRecord& operator=(const VectorRecord& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const VectorRecord& default_instance(); - - void Swap(VectorRecord* other); - - // implements Message ---------------------------------------------- - - inline VectorRecord* New() const { return New(NULL); } - - VectorRecord* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const VectorRecord& from); - void MergeFrom(const VectorRecord& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(VectorRecord* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .suvlim.grpc.VectorRowRecord records = 1; - int records_size() const; - void clear_records(); - static const int kRecordsFieldNumber = 1; - const ::suvlim::grpc::VectorRowRecord& records(int index) const; - ::suvlim::grpc::VectorRowRecord* mutable_records(int index); - ::suvlim::grpc::VectorRowRecord* add_records(); - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorRowRecord >* - mutable_records(); - const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorRowRecord >& - records() const; - - // @@protoc_insertion_point(class_scope:suvlim.grpc.VectorRecord) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorRowRecord > records_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static VectorRecord* default_instance_; -}; -// ------------------------------------------------------------------- - -class VectorParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.VectorParam) */ { - public: - VectorParam(); - virtual ~VectorParam(); - - VectorParam(const VectorParam& from); - - inline VectorParam& operator=(const VectorParam& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const VectorParam& default_instance(); - - void Swap(VectorParam* other); - - // implements Message ---------------------------------------------- - - inline VectorParam* New() const { return New(NULL); } - - VectorParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const VectorParam& from); - void MergeFrom(const VectorParam& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(VectorParam* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string json = 1; - void clear_json(); - static const int kJsonFieldNumber = 1; - const ::std::string& json() const; - void set_json(const ::std::string& value); - void set_json(const char* value); - void set_json(const char* value, size_t size); - ::std::string* mutable_json(); - ::std::string* release_json(); - void set_allocated_json(::std::string* json); - - // optional .suvlim.grpc.VectorRecord row_record = 2; - bool has_row_record() const; - void clear_row_record(); - static const int kRowRecordFieldNumber = 2; - const ::suvlim::grpc::VectorRecord& row_record() const; - ::suvlim::grpc::VectorRecord* mutable_row_record(); - ::suvlim::grpc::VectorRecord* release_row_record(); - void set_allocated_row_record(::suvlim::grpc::VectorRecord* row_record); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.VectorParam) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr json_; - ::suvlim::grpc::VectorRecord* row_record_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static VectorParam* default_instance_; -}; -// ------------------------------------------------------------------- - -class FieldMeta : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.FieldMeta) */ { - public: - FieldMeta(); - virtual ~FieldMeta(); - - FieldMeta(const FieldMeta& from); - - inline FieldMeta& operator=(const FieldMeta& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const FieldMeta& default_instance(); - - void Swap(FieldMeta* other); - - // implements Message ---------------------------------------------- - - inline FieldMeta* New() const { return New(NULL); } - - FieldMeta* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const FieldMeta& from); - void MergeFrom(const FieldMeta& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(FieldMeta* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string field_name = 1; - void clear_field_name(); - static const int kFieldNameFieldNumber = 1; - const ::std::string& field_name() const; - void set_field_name(const ::std::string& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - ::std::string* mutable_field_name(); - ::std::string* release_field_name(); - void set_allocated_field_name(::std::string* field_name); - - // optional .suvlim.grpc.DataType type = 2; - void clear_type(); - static const int kTypeFieldNumber = 2; - ::suvlim::grpc::DataType type() const; - void set_type(::suvlim::grpc::DataType value); - - // optional int64 dim = 3; - void clear_dim(); - static const int kDimFieldNumber = 3; - ::google::protobuf::int64 dim() const; - void set_dim(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.FieldMeta) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr field_name_; - ::google::protobuf::int64 dim_; - int type_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static FieldMeta* default_instance_; -}; -// ------------------------------------------------------------------- - -class Schema : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.Schema) */ { - public: - Schema(); - virtual ~Schema(); - - Schema(const Schema& from); - - inline Schema& operator=(const Schema& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const Schema& default_instance(); - - void Swap(Schema* other); - - // implements Message ---------------------------------------------- - - inline Schema* New() const { return New(NULL); } - - Schema* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Schema& from); - void MergeFrom(const Schema& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Schema* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .suvlim.grpc.FieldMeta field_metas = 1; - int field_metas_size() const; - void clear_field_metas(); - static const int kFieldMetasFieldNumber = 1; - const ::suvlim::grpc::FieldMeta& field_metas(int index) const; - ::suvlim::grpc::FieldMeta* mutable_field_metas(int index); - ::suvlim::grpc::FieldMeta* add_field_metas(); - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::FieldMeta >* - mutable_field_metas(); - const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::FieldMeta >& - field_metas() const; - - // @@protoc_insertion_point(class_scope:suvlim.grpc.Schema) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::FieldMeta > field_metas_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static Schema* default_instance_; -}; -// ------------------------------------------------------------------- - -class RowData : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.RowData) */ { - public: - RowData(); - virtual ~RowData(); - - RowData(const RowData& from); - - inline RowData& operator=(const RowData& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const RowData& default_instance(); - - void Swap(RowData* other); - - // implements Message ---------------------------------------------- - - inline RowData* New() const { return New(NULL); } - - RowData* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RowData& from); - void MergeFrom(const RowData& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(RowData* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional bytes blob = 1; - void clear_blob(); - static const int kBlobFieldNumber = 1; - const ::std::string& blob() const; - void set_blob(const ::std::string& value); - void set_blob(const char* value); - void set_blob(const void* value, size_t size); - ::std::string* mutable_blob(); - ::std::string* release_blob(); - void set_allocated_blob(::std::string* blob); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.RowData) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr blob_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static RowData* default_instance_; -}; -// ------------------------------------------------------------------- - -class InsertParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.InsertParam) */ { - public: - InsertParam(); - virtual ~InsertParam(); - - InsertParam(const InsertParam& from); - - inline InsertParam& operator=(const InsertParam& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const InsertParam& default_instance(); - - void Swap(InsertParam* other); - - // implements Message ---------------------------------------------- - - inline InsertParam* New() const { return New(NULL); } - - InsertParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const InsertParam& from); - void MergeFrom(const InsertParam& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(InsertParam* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string collection_name = 1; - void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); - - // optional .suvlim.grpc.Schema schema = 2; - bool has_schema() const; - void clear_schema(); - static const int kSchemaFieldNumber = 2; - const ::suvlim::grpc::Schema& schema() const; - ::suvlim::grpc::Schema* mutable_schema(); - ::suvlim::grpc::Schema* release_schema(); - void set_allocated_schema(::suvlim::grpc::Schema* schema); - - // repeated .suvlim.grpc.RowData rows_data = 3; - int rows_data_size() const; - void clear_rows_data(); - static const int kRowsDataFieldNumber = 3; - const ::suvlim::grpc::RowData& rows_data(int index) const; - ::suvlim::grpc::RowData* mutable_rows_data(int index); - ::suvlim::grpc::RowData* add_rows_data(); - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::RowData >* - mutable_rows_data(); - const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::RowData >& - rows_data() const; - - // repeated int64 entity_id_array = 4; - int entity_id_array_size() const; - void clear_entity_id_array(); - static const int kEntityIdArrayFieldNumber = 4; - ::google::protobuf::int64 entity_id_array(int index) const; - void set_entity_id_array(int index, ::google::protobuf::int64 value); - void add_entity_id_array(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - entity_id_array() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_entity_id_array(); - - // optional string partition_tag = 5; - void clear_partition_tag(); - static const int kPartitionTagFieldNumber = 5; - const ::std::string& partition_tag() const; - void set_partition_tag(const ::std::string& value); - void set_partition_tag(const char* value); - void set_partition_tag(const char* value, size_t size); - ::std::string* mutable_partition_tag(); - ::std::string* release_partition_tag(); - void set_allocated_partition_tag(::std::string* partition_tag); - - // repeated .suvlim.grpc.KeyValuePair extra_params = 6; - int extra_params_size() const; - void clear_extra_params(); - static const int kExtraParamsFieldNumber = 6; - const ::suvlim::grpc::KeyValuePair& extra_params(int index) const; - ::suvlim::grpc::KeyValuePair* mutable_extra_params(int index); - ::suvlim::grpc::KeyValuePair* add_extra_params(); - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* - mutable_extra_params(); - const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& - extra_params() const; - - // @@protoc_insertion_point(class_scope:suvlim.grpc.InsertParam) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - ::suvlim::grpc::Schema* schema_; - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::RowData > rows_data_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > entity_id_array_; - mutable int _entity_id_array_cached_byte_size_; - ::google::protobuf::internal::ArenaStringPtr partition_tag_; - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair > extra_params_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static InsertParam* default_instance_; -}; -// ------------------------------------------------------------------- - -class SearchParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.SearchParam) */ { - public: - SearchParam(); - virtual ~SearchParam(); - - SearchParam(const SearchParam& from); - - inline SearchParam& operator=(const SearchParam& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const SearchParam& default_instance(); - - void Swap(SearchParam* other); - - // implements Message ---------------------------------------------- - - inline SearchParam* New() const { return New(NULL); } - - SearchParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SearchParam& from); - void MergeFrom(const SearchParam& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SearchParam* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string collection_name = 1; - void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); - - // repeated .suvlim.grpc.VectorParam vector_param = 2; - int vector_param_size() const; - void clear_vector_param(); - static const int kVectorParamFieldNumber = 2; - const ::suvlim::grpc::VectorParam& vector_param(int index) const; - ::suvlim::grpc::VectorParam* mutable_vector_param(int index); - ::suvlim::grpc::VectorParam* add_vector_param(); - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorParam >* - mutable_vector_param(); - const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorParam >& - vector_param() const; - - // optional string dsl = 3; - void clear_dsl(); - static const int kDslFieldNumber = 3; - const ::std::string& dsl() const; - void set_dsl(const ::std::string& value); - void set_dsl(const char* value); - void set_dsl(const char* value, size_t size); - ::std::string* mutable_dsl(); - ::std::string* release_dsl(); - void set_allocated_dsl(::std::string* dsl); - - // repeated string partition_tag = 4; - int partition_tag_size() const; - void clear_partition_tag(); - static const int kPartitionTagFieldNumber = 4; - const ::std::string& partition_tag(int index) const; - ::std::string* mutable_partition_tag(int index); - void set_partition_tag(int index, const ::std::string& value); - void set_partition_tag(int index, const char* value); - void set_partition_tag(int index, const char* value, size_t size); - ::std::string* add_partition_tag(); - void add_partition_tag(const ::std::string& value); - void add_partition_tag(const char* value); - void add_partition_tag(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& partition_tag() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_partition_tag(); - - // repeated .suvlim.grpc.KeyValuePair extra_params = 5; - int extra_params_size() const; - void clear_extra_params(); - static const int kExtraParamsFieldNumber = 5; - const ::suvlim::grpc::KeyValuePair& extra_params(int index) const; - ::suvlim::grpc::KeyValuePair* mutable_extra_params(int index); - ::suvlim::grpc::KeyValuePair* add_extra_params(); - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* - mutable_extra_params(); - const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& - extra_params() const; - - // @@protoc_insertion_point(class_scope:suvlim.grpc.SearchParam) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorParam > vector_param_; - ::google::protobuf::internal::ArenaStringPtr dsl_; - ::google::protobuf::RepeatedPtrField< ::std::string> partition_tag_; - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair > extra_params_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static SearchParam* default_instance_; -}; -// ------------------------------------------------------------------- - -class SearchInSegmentParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.SearchInSegmentParam) */ { - public: - SearchInSegmentParam(); - virtual ~SearchInSegmentParam(); - - SearchInSegmentParam(const SearchInSegmentParam& from); - - inline SearchInSegmentParam& operator=(const SearchInSegmentParam& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const SearchInSegmentParam& default_instance(); - - void Swap(SearchInSegmentParam* other); - - // implements Message ---------------------------------------------- - - inline SearchInSegmentParam* New() const { return New(NULL); } - - SearchInSegmentParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SearchInSegmentParam& from); - void MergeFrom(const SearchInSegmentParam& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SearchInSegmentParam* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated string file_id_array = 1; - int file_id_array_size() const; - void clear_file_id_array(); - static const int kFileIdArrayFieldNumber = 1; - const ::std::string& file_id_array(int index) const; - ::std::string* mutable_file_id_array(int index); - void set_file_id_array(int index, const ::std::string& value); - void set_file_id_array(int index, const char* value); - void set_file_id_array(int index, const char* value, size_t size); - ::std::string* add_file_id_array(); - void add_file_id_array(const ::std::string& value); - void add_file_id_array(const char* value); - void add_file_id_array(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& file_id_array() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_file_id_array(); - - // optional .suvlim.grpc.SearchParam search_param = 2; - bool has_search_param() const; - void clear_search_param(); - static const int kSearchParamFieldNumber = 2; - const ::suvlim::grpc::SearchParam& search_param() const; - ::suvlim::grpc::SearchParam* mutable_search_param(); - ::suvlim::grpc::SearchParam* release_search_param(); - void set_allocated_search_param(::suvlim::grpc::SearchParam* search_param); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.SearchInSegmentParam) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::RepeatedPtrField< ::std::string> file_id_array_; - ::suvlim::grpc::SearchParam* search_param_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static SearchInSegmentParam* default_instance_; -}; -// ------------------------------------------------------------------- - -class Entities : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.Entities) */ { - public: - Entities(); - virtual ~Entities(); - - Entities(const Entities& from); - - inline Entities& operator=(const Entities& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const Entities& default_instance(); - - void Swap(Entities* other); - - // implements Message ---------------------------------------------- - - inline Entities* New() const { return New(NULL); } - - Entities* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Entities& from); - void MergeFrom(const Entities& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Entities* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .suvlim.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - static const int kStatusFieldNumber = 1; - const ::suvlim::grpc::Status& status() const; - ::suvlim::grpc::Status* mutable_status(); - ::suvlim::grpc::Status* release_status(); - void set_allocated_status(::suvlim::grpc::Status* status); - - // repeated int64 ids = 2; - int ids_size() const; - void clear_ids(); - static const int kIdsFieldNumber = 2; - ::google::protobuf::int64 ids(int index) const; - void set_ids(int index, ::google::protobuf::int64 value); - void add_ids(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - ids() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_ids(); - - // repeated bool valid_row = 3; - int valid_row_size() const; - void clear_valid_row(); - static const int kValidRowFieldNumber = 3; - bool valid_row(int index) const; - void set_valid_row(int index, bool value); - void add_valid_row(bool value); - const ::google::protobuf::RepeatedField< bool >& - valid_row() const; - ::google::protobuf::RepeatedField< bool >* - mutable_valid_row(); - - // repeated .suvlim.grpc.RowData rows_data = 4; - int rows_data_size() const; - void clear_rows_data(); - static const int kRowsDataFieldNumber = 4; - const ::suvlim::grpc::RowData& rows_data(int index) const; - ::suvlim::grpc::RowData* mutable_rows_data(int index); - ::suvlim::grpc::RowData* add_rows_data(); - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::RowData >* - mutable_rows_data(); - const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::RowData >& - rows_data() const; - - // @@protoc_insertion_point(class_scope:suvlim.grpc.Entities) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::suvlim::grpc::Status* status_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > ids_; - mutable int _ids_cached_byte_size_; - ::google::protobuf::RepeatedField< bool > valid_row_; - mutable int _valid_row_cached_byte_size_; - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::RowData > rows_data_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static Entities* default_instance_; -}; -// ------------------------------------------------------------------- - -class QueryResult : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.QueryResult) */ { - public: - QueryResult(); - virtual ~QueryResult(); - - QueryResult(const QueryResult& from); - - inline QueryResult& operator=(const QueryResult& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const QueryResult& default_instance(); - - void Swap(QueryResult* other); - - // implements Message ---------------------------------------------- - - inline QueryResult* New() const { return New(NULL); } - - QueryResult* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const QueryResult& from); - void MergeFrom(const QueryResult& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(QueryResult* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .suvlim.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - static const int kStatusFieldNumber = 1; - const ::suvlim::grpc::Status& status() const; - ::suvlim::grpc::Status* mutable_status(); - ::suvlim::grpc::Status* release_status(); - void set_allocated_status(::suvlim::grpc::Status* status); - - // optional .suvlim.grpc.Entities entities = 2; - bool has_entities() const; - void clear_entities(); - static const int kEntitiesFieldNumber = 2; - const ::suvlim::grpc::Entities& entities() const; - ::suvlim::grpc::Entities* mutable_entities(); - ::suvlim::grpc::Entities* release_entities(); - void set_allocated_entities(::suvlim::grpc::Entities* entities); - - // optional int64 row_num = 3; - void clear_row_num(); - static const int kRowNumFieldNumber = 3; - ::google::protobuf::int64 row_num() const; - void set_row_num(::google::protobuf::int64 value); - - // repeated float scores = 4; - int scores_size() const; - void clear_scores(); - static const int kScoresFieldNumber = 4; - float scores(int index) const; - void set_scores(int index, float value); - void add_scores(float value); - const ::google::protobuf::RepeatedField< float >& - scores() const; - ::google::protobuf::RepeatedField< float >* - mutable_scores(); - - // repeated float distances = 5; - int distances_size() const; - void clear_distances(); - static const int kDistancesFieldNumber = 5; - float distances(int index) const; - void set_distances(int index, float value); - void add_distances(float value); - const ::google::protobuf::RepeatedField< float >& - distances() const; - ::google::protobuf::RepeatedField< float >* - mutable_distances(); - - // repeated .suvlim.grpc.KeyValuePair extra_params = 6; - int extra_params_size() const; - void clear_extra_params(); - static const int kExtraParamsFieldNumber = 6; - const ::suvlim::grpc::KeyValuePair& extra_params(int index) const; - ::suvlim::grpc::KeyValuePair* mutable_extra_params(int index); - ::suvlim::grpc::KeyValuePair* add_extra_params(); - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* - mutable_extra_params(); - const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& - extra_params() const; - - // @@protoc_insertion_point(class_scope:suvlim.grpc.QueryResult) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::suvlim::grpc::Status* status_; - ::suvlim::grpc::Entities* entities_; - ::google::protobuf::int64 row_num_; - ::google::protobuf::RepeatedField< float > scores_; - mutable int _scores_cached_byte_size_; - ::google::protobuf::RepeatedField< float > distances_; - mutable int _distances_cached_byte_size_; - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair > extra_params_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static QueryResult* default_instance_; -}; -// ------------------------------------------------------------------- - -class StringReply : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.StringReply) */ { - public: - StringReply(); - virtual ~StringReply(); - - StringReply(const StringReply& from); - - inline StringReply& operator=(const StringReply& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const StringReply& default_instance(); - - void Swap(StringReply* other); - - // implements Message ---------------------------------------------- - - inline StringReply* New() const { return New(NULL); } - - StringReply* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const StringReply& from); - void MergeFrom(const StringReply& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(StringReply* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .suvlim.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - static const int kStatusFieldNumber = 1; - const ::suvlim::grpc::Status& status() const; - ::suvlim::grpc::Status* mutable_status(); - ::suvlim::grpc::Status* release_status(); - void set_allocated_status(::suvlim::grpc::Status* status); - - // optional string string_reply = 2; - void clear_string_reply(); - static const int kStringReplyFieldNumber = 2; - const ::std::string& string_reply() const; - void set_string_reply(const ::std::string& value); - void set_string_reply(const char* value); - void set_string_reply(const char* value, size_t size); - ::std::string* mutable_string_reply(); - ::std::string* release_string_reply(); - void set_allocated_string_reply(::std::string* string_reply); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.StringReply) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::suvlim::grpc::Status* status_; - ::google::protobuf::internal::ArenaStringPtr string_reply_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static StringReply* default_instance_; -}; -// ------------------------------------------------------------------- - -class BoolReply : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.BoolReply) */ { - public: - BoolReply(); - virtual ~BoolReply(); - - BoolReply(const BoolReply& from); - - inline BoolReply& operator=(const BoolReply& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const BoolReply& default_instance(); - - void Swap(BoolReply* other); - - // implements Message ---------------------------------------------- - - inline BoolReply* New() const { return New(NULL); } - - BoolReply* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const BoolReply& from); - void MergeFrom(const BoolReply& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BoolReply* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .suvlim.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - static const int kStatusFieldNumber = 1; - const ::suvlim::grpc::Status& status() const; - ::suvlim::grpc::Status* mutable_status(); - ::suvlim::grpc::Status* release_status(); - void set_allocated_status(::suvlim::grpc::Status* status); - - // optional bool bool_reply = 2; - void clear_bool_reply(); - static const int kBoolReplyFieldNumber = 2; - bool bool_reply() const; - void set_bool_reply(bool value); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.BoolReply) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::suvlim::grpc::Status* status_; - bool bool_reply_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static BoolReply* default_instance_; -}; -// ------------------------------------------------------------------- - -class CollectionRowCount : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.CollectionRowCount) */ { - public: - CollectionRowCount(); - virtual ~CollectionRowCount(); - - CollectionRowCount(const CollectionRowCount& from); - - inline CollectionRowCount& operator=(const CollectionRowCount& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const CollectionRowCount& default_instance(); - - void Swap(CollectionRowCount* other); - - // implements Message ---------------------------------------------- - - inline CollectionRowCount* New() const { return New(NULL); } - - CollectionRowCount* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CollectionRowCount& from); - void MergeFrom(const CollectionRowCount& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(CollectionRowCount* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .suvlim.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - static const int kStatusFieldNumber = 1; - const ::suvlim::grpc::Status& status() const; - ::suvlim::grpc::Status* mutable_status(); - ::suvlim::grpc::Status* release_status(); - void set_allocated_status(::suvlim::grpc::Status* status); - - // optional int64 collection_row_count = 2; - void clear_collection_row_count(); - static const int kCollectionRowCountFieldNumber = 2; - ::google::protobuf::int64 collection_row_count() const; - void set_collection_row_count(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.CollectionRowCount) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::suvlim::grpc::Status* status_; - ::google::protobuf::int64 collection_row_count_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static CollectionRowCount* default_instance_; -}; -// ------------------------------------------------------------------- - -class Command : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.Command) */ { - public: - Command(); - virtual ~Command(); - - Command(const Command& from); - - inline Command& operator=(const Command& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const Command& default_instance(); - - void Swap(Command* other); - - // implements Message ---------------------------------------------- - - inline Command* New() const { return New(NULL); } - - Command* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Command& from); - void MergeFrom(const Command& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Command* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string cmd = 1; - void clear_cmd(); - static const int kCmdFieldNumber = 1; - const ::std::string& cmd() const; - void set_cmd(const ::std::string& value); - void set_cmd(const char* value); - void set_cmd(const char* value, size_t size); - ::std::string* mutable_cmd(); - ::std::string* release_cmd(); - void set_allocated_cmd(::std::string* cmd); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.Command) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr cmd_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static Command* default_instance_; -}; -// ------------------------------------------------------------------- - -class IndexParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.IndexParam) */ { - public: - IndexParam(); - virtual ~IndexParam(); - - IndexParam(const IndexParam& from); - - inline IndexParam& operator=(const IndexParam& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const IndexParam& default_instance(); - - void Swap(IndexParam* other); - - // implements Message ---------------------------------------------- - - inline IndexParam* New() const { return New(NULL); } - - IndexParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const IndexParam& from); - void MergeFrom(const IndexParam& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(IndexParam* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .suvlim.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - static const int kStatusFieldNumber = 1; - const ::suvlim::grpc::Status& status() const; - ::suvlim::grpc::Status* mutable_status(); - ::suvlim::grpc::Status* release_status(); - void set_allocated_status(::suvlim::grpc::Status* status); - - // optional string collection_name = 2; - void clear_collection_name(); - static const int kCollectionNameFieldNumber = 2; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); - - // optional string field_name = 3; - void clear_field_name(); - static const int kFieldNameFieldNumber = 3; - const ::std::string& field_name() const; - void set_field_name(const ::std::string& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - ::std::string* mutable_field_name(); - ::std::string* release_field_name(); - void set_allocated_field_name(::std::string* field_name); - - // optional string index_name = 4; - void clear_index_name(); - static const int kIndexNameFieldNumber = 4; - const ::std::string& index_name() const; - void set_index_name(const ::std::string& value); - void set_index_name(const char* value); - void set_index_name(const char* value, size_t size); - ::std::string* mutable_index_name(); - ::std::string* release_index_name(); - void set_allocated_index_name(::std::string* index_name); - - // repeated .suvlim.grpc.KeyValuePair extra_params = 5; - int extra_params_size() const; - void clear_extra_params(); - static const int kExtraParamsFieldNumber = 5; - const ::suvlim::grpc::KeyValuePair& extra_params(int index) const; - ::suvlim::grpc::KeyValuePair* mutable_extra_params(int index); - ::suvlim::grpc::KeyValuePair* add_extra_params(); - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* - mutable_extra_params(); - const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& - extra_params() const; - - // @@protoc_insertion_point(class_scope:suvlim.grpc.IndexParam) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::suvlim::grpc::Status* status_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - ::google::protobuf::internal::ArenaStringPtr field_name_; - ::google::protobuf::internal::ArenaStringPtr index_name_; - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair > extra_params_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static IndexParam* default_instance_; -}; -// ------------------------------------------------------------------- - -class FlushParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.FlushParam) */ { - public: - FlushParam(); - virtual ~FlushParam(); - - FlushParam(const FlushParam& from); - - inline FlushParam& operator=(const FlushParam& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const FlushParam& default_instance(); - - void Swap(FlushParam* other); - - // implements Message ---------------------------------------------- - - inline FlushParam* New() const { return New(NULL); } - - FlushParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const FlushParam& from); - void MergeFrom(const FlushParam& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(FlushParam* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated string collection_name_array = 1; - int collection_name_array_size() const; - void clear_collection_name_array(); - static const int kCollectionNameArrayFieldNumber = 1; - const ::std::string& collection_name_array(int index) const; - ::std::string* mutable_collection_name_array(int index); - void set_collection_name_array(int index, const ::std::string& value); - void set_collection_name_array(int index, const char* value); - void set_collection_name_array(int index, const char* value, size_t size); - ::std::string* add_collection_name_array(); - void add_collection_name_array(const ::std::string& value); - void add_collection_name_array(const char* value); - void add_collection_name_array(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& collection_name_array() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_collection_name_array(); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.FlushParam) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::RepeatedPtrField< ::std::string> collection_name_array_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static FlushParam* default_instance_; -}; -// ------------------------------------------------------------------- - -class CompactParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.CompactParam) */ { - public: - CompactParam(); - virtual ~CompactParam(); - - CompactParam(const CompactParam& from); - - inline CompactParam& operator=(const CompactParam& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const CompactParam& default_instance(); - - void Swap(CompactParam* other); - - // implements Message ---------------------------------------------- - - inline CompactParam* New() const { return New(NULL); } - - CompactParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CompactParam& from); - void MergeFrom(const CompactParam& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(CompactParam* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string collection_name = 1; - void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); - - // optional double threshold = 2; - void clear_threshold(); - static const int kThresholdFieldNumber = 2; - double threshold() const; - void set_threshold(double value); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.CompactParam) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - double threshold_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static CompactParam* default_instance_; -}; -// ------------------------------------------------------------------- - -class DeleteByIDParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.DeleteByIDParam) */ { - public: - DeleteByIDParam(); - virtual ~DeleteByIDParam(); - - DeleteByIDParam(const DeleteByIDParam& from); - - inline DeleteByIDParam& operator=(const DeleteByIDParam& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const DeleteByIDParam& default_instance(); - - void Swap(DeleteByIDParam* other); - - // implements Message ---------------------------------------------- - - inline DeleteByIDParam* New() const { return New(NULL); } - - DeleteByIDParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const DeleteByIDParam& from); - void MergeFrom(const DeleteByIDParam& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(DeleteByIDParam* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string collection_name = 1; - void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); - - // repeated int64 id_array = 2; - int id_array_size() const; - void clear_id_array(); - static const int kIdArrayFieldNumber = 2; - ::google::protobuf::int64 id_array(int index) const; - void set_id_array(int index, ::google::protobuf::int64 value); - void add_id_array(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - id_array() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_id_array(); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.DeleteByIDParam) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > id_array_; - mutable int _id_array_cached_byte_size_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static DeleteByIDParam* default_instance_; -}; -// ------------------------------------------------------------------- - -class CollectionInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.CollectionInfo) */ { - public: - CollectionInfo(); - virtual ~CollectionInfo(); - - CollectionInfo(const CollectionInfo& from); - - inline CollectionInfo& operator=(const CollectionInfo& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const CollectionInfo& default_instance(); - - void Swap(CollectionInfo* other); - - // implements Message ---------------------------------------------- - - inline CollectionInfo* New() const { return New(NULL); } - - CollectionInfo* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CollectionInfo& from); - void MergeFrom(const CollectionInfo& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(CollectionInfo* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .suvlim.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - static const int kStatusFieldNumber = 1; - const ::suvlim::grpc::Status& status() const; - ::suvlim::grpc::Status* mutable_status(); - ::suvlim::grpc::Status* release_status(); - void set_allocated_status(::suvlim::grpc::Status* status); - - // optional string json_info = 2; - void clear_json_info(); - static const int kJsonInfoFieldNumber = 2; - const ::std::string& json_info() const; - void set_json_info(const ::std::string& value); - void set_json_info(const char* value); - void set_json_info(const char* value, size_t size); - ::std::string* mutable_json_info(); - ::std::string* release_json_info(); - void set_allocated_json_info(::std::string* json_info); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.CollectionInfo) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::suvlim::grpc::Status* status_; - ::google::protobuf::internal::ArenaStringPtr json_info_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static CollectionInfo* default_instance_; -}; -// ------------------------------------------------------------------- - -class GetEntityIDsParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.GetEntityIDsParam) */ { - public: - GetEntityIDsParam(); - virtual ~GetEntityIDsParam(); - - GetEntityIDsParam(const GetEntityIDsParam& from); - - inline GetEntityIDsParam& operator=(const GetEntityIDsParam& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const GetEntityIDsParam& default_instance(); - - void Swap(GetEntityIDsParam* other); - - // implements Message ---------------------------------------------- - - inline GetEntityIDsParam* New() const { return New(NULL); } - - GetEntityIDsParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GetEntityIDsParam& from); - void MergeFrom(const GetEntityIDsParam& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(GetEntityIDsParam* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string collection_name = 1; - void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); - - // optional int64 segment_id = 2; - void clear_segment_id(); - static const int kSegmentIdFieldNumber = 2; - ::google::protobuf::int64 segment_id() const; - void set_segment_id(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.GetEntityIDsParam) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - ::google::protobuf::int64 segment_id_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static GetEntityIDsParam* default_instance_; -}; -// ------------------------------------------------------------------- - -class EntityIdentity : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.EntityIdentity) */ { - public: - EntityIdentity(); - virtual ~EntityIdentity(); - - EntityIdentity(const EntityIdentity& from); - - inline EntityIdentity& operator=(const EntityIdentity& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const EntityIdentity& default_instance(); - - void Swap(EntityIdentity* other); - - // implements Message ---------------------------------------------- - - inline EntityIdentity* New() const { return New(NULL); } - - EntityIdentity* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const EntityIdentity& from); - void MergeFrom(const EntityIdentity& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(EntityIdentity* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string collection_name = 1; - void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); - - // repeated int64 id_array = 2; - int id_array_size() const; - void clear_id_array(); - static const int kIdArrayFieldNumber = 2; - ::google::protobuf::int64 id_array(int index) const; - void set_id_array(int index, ::google::protobuf::int64 value); - void add_id_array(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - id_array() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_id_array(); - - // repeated string field_names = 3; - int field_names_size() const; - void clear_field_names(); - static const int kFieldNamesFieldNumber = 3; - const ::std::string& field_names(int index) const; - ::std::string* mutable_field_names(int index); - void set_field_names(int index, const ::std::string& value); - void set_field_names(int index, const char* value); - void set_field_names(int index, const char* value, size_t size); - ::std::string* add_field_names(); - void add_field_names(const ::std::string& value); - void add_field_names(const char* value); - void add_field_names(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& field_names() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_field_names(); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.EntityIdentity) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > id_array_; - mutable int _id_array_cached_byte_size_; - ::google::protobuf::RepeatedPtrField< ::std::string> field_names_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static EntityIdentity* default_instance_; -}; -// ------------------------------------------------------------------- - -class VectorFieldParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.VectorFieldParam) */ { - public: - VectorFieldParam(); - virtual ~VectorFieldParam(); - - VectorFieldParam(const VectorFieldParam& from); - - inline VectorFieldParam& operator=(const VectorFieldParam& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const VectorFieldParam& default_instance(); - - void Swap(VectorFieldParam* other); - - // implements Message ---------------------------------------------- - - inline VectorFieldParam* New() const { return New(NULL); } - - VectorFieldParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const VectorFieldParam& from); - void MergeFrom(const VectorFieldParam& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(VectorFieldParam* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional int64 dimension = 1; - void clear_dimension(); - static const int kDimensionFieldNumber = 1; - ::google::protobuf::int64 dimension() const; - void set_dimension(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.VectorFieldParam) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::int64 dimension_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static VectorFieldParam* default_instance_; -}; -// ------------------------------------------------------------------- - -class FieldType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.FieldType) */ { - public: - FieldType(); - virtual ~FieldType(); - - FieldType(const FieldType& from); - - inline FieldType& operator=(const FieldType& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const FieldType& default_instance(); - - enum ValueCase { - kDataType = 1, - kVectorParam = 2, - VALUE_NOT_SET = 0, - }; - - void Swap(FieldType* other); - - // implements Message ---------------------------------------------- - - inline FieldType* New() const { return New(NULL); } - - FieldType* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const FieldType& from); - void MergeFrom(const FieldType& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(FieldType* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .suvlim.grpc.DataType data_type = 1; - private: - bool has_data_type() const; - public: - void clear_data_type(); - static const int kDataTypeFieldNumber = 1; - ::suvlim::grpc::DataType data_type() const; - void set_data_type(::suvlim::grpc::DataType value); - - // optional .suvlim.grpc.VectorFieldParam vector_param = 2; - bool has_vector_param() const; - void clear_vector_param(); - static const int kVectorParamFieldNumber = 2; - const ::suvlim::grpc::VectorFieldParam& vector_param() const; - ::suvlim::grpc::VectorFieldParam* mutable_vector_param(); - ::suvlim::grpc::VectorFieldParam* release_vector_param(); - void set_allocated_vector_param(::suvlim::grpc::VectorFieldParam* vector_param); - - ValueCase value_case() const; - // @@protoc_insertion_point(class_scope:suvlim.grpc.FieldType) - private: - inline void set_has_data_type(); - inline void set_has_vector_param(); - - inline bool has_value() const; - void clear_value(); - inline void clear_has_value(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - union ValueUnion { - ValueUnion() {} - int data_type_; - ::suvlim::grpc::VectorFieldParam* vector_param_; - } value_; - mutable int _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static FieldType* default_instance_; -}; -// ------------------------------------------------------------------- - -class FieldParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.FieldParam) */ { - public: - FieldParam(); - virtual ~FieldParam(); - - FieldParam(const FieldParam& from); - - inline FieldParam& operator=(const FieldParam& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const FieldParam& default_instance(); - - void Swap(FieldParam* other); - - // implements Message ---------------------------------------------- - - inline FieldParam* New() const { return New(NULL); } - - FieldParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const FieldParam& from); - void MergeFrom(const FieldParam& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(FieldParam* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional uint64 id = 1; - void clear_id(); - static const int kIdFieldNumber = 1; - ::google::protobuf::uint64 id() const; - void set_id(::google::protobuf::uint64 value); - - // optional string name = 2; - void clear_name(); - static const int kNameFieldNumber = 2; - const ::std::string& name() const; - void set_name(const ::std::string& value); - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // optional .suvlim.grpc.DataType type = 3; - void clear_type(); - static const int kTypeFieldNumber = 3; - ::suvlim::grpc::DataType type() const; - void set_type(::suvlim::grpc::DataType value); - - // repeated .suvlim.grpc.KeyValuePair index_params = 4; - int index_params_size() const; - void clear_index_params(); - static const int kIndexParamsFieldNumber = 4; - const ::suvlim::grpc::KeyValuePair& index_params(int index) const; - ::suvlim::grpc::KeyValuePair* mutable_index_params(int index); - ::suvlim::grpc::KeyValuePair* add_index_params(); - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* - mutable_index_params(); - const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& - index_params() const; - - // repeated .suvlim.grpc.KeyValuePair extra_params = 5; - int extra_params_size() const; - void clear_extra_params(); - static const int kExtraParamsFieldNumber = 5; - const ::suvlim::grpc::KeyValuePair& extra_params(int index) const; - ::suvlim::grpc::KeyValuePair* mutable_extra_params(int index); - ::suvlim::grpc::KeyValuePair* add_extra_params(); - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* - mutable_extra_params(); - const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& - extra_params() const; - - // @@protoc_insertion_point(class_scope:suvlim.grpc.FieldParam) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::uint64 id_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair > index_params_; - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair > extra_params_; - int type_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static FieldParam* default_instance_; -}; -// ------------------------------------------------------------------- - -class VectorFieldRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.VectorFieldRecord) */ { - public: - VectorFieldRecord(); - virtual ~VectorFieldRecord(); - - VectorFieldRecord(const VectorFieldRecord& from); - - inline VectorFieldRecord& operator=(const VectorFieldRecord& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const VectorFieldRecord& default_instance(); - - void Swap(VectorFieldRecord* other); - - // implements Message ---------------------------------------------- - - inline VectorFieldRecord* New() const { return New(NULL); } - - VectorFieldRecord* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const VectorFieldRecord& from); - void MergeFrom(const VectorFieldRecord& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(VectorFieldRecord* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .suvlim.grpc.VectorRowRecord value = 1; - int value_size() const; - void clear_value(); - static const int kValueFieldNumber = 1; - const ::suvlim::grpc::VectorRowRecord& value(int index) const; - ::suvlim::grpc::VectorRowRecord* mutable_value(int index); - ::suvlim::grpc::VectorRowRecord* add_value(); - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorRowRecord >* - mutable_value(); - const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorRowRecord >& - value() const; - - // @@protoc_insertion_point(class_scope:suvlim.grpc.VectorFieldRecord) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorRowRecord > value_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static VectorFieldRecord* default_instance_; -}; -// ------------------------------------------------------------------- - -class TermQuery : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.TermQuery) */ { - public: - TermQuery(); - virtual ~TermQuery(); - - TermQuery(const TermQuery& from); - - inline TermQuery& operator=(const TermQuery& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const TermQuery& default_instance(); - - void Swap(TermQuery* other); - - // implements Message ---------------------------------------------- - - inline TermQuery* New() const { return New(NULL); } - - TermQuery* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const TermQuery& from); - void MergeFrom(const TermQuery& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(TermQuery* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string field_name = 1; - void clear_field_name(); - static const int kFieldNameFieldNumber = 1; - const ::std::string& field_name() const; - void set_field_name(const ::std::string& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - ::std::string* mutable_field_name(); - ::std::string* release_field_name(); - void set_allocated_field_name(::std::string* field_name); - - // repeated int64 int_value = 2; - int int_value_size() const; - void clear_int_value(); - static const int kIntValueFieldNumber = 2; - ::google::protobuf::int64 int_value(int index) const; - void set_int_value(int index, ::google::protobuf::int64 value); - void add_int_value(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - int_value() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_int_value(); - - // repeated double double_value = 3; - int double_value_size() const; - void clear_double_value(); - static const int kDoubleValueFieldNumber = 3; - double double_value(int index) const; - void set_double_value(int index, double value); - void add_double_value(double value); - const ::google::protobuf::RepeatedField< double >& - double_value() const; - ::google::protobuf::RepeatedField< double >* - mutable_double_value(); - - // optional int64 value_num = 4; - void clear_value_num(); - static const int kValueNumFieldNumber = 4; - ::google::protobuf::int64 value_num() const; - void set_value_num(::google::protobuf::int64 value); - - // optional float boost = 5; - void clear_boost(); - static const int kBoostFieldNumber = 5; - float boost() const; - void set_boost(float value); - - // repeated .suvlim.grpc.KeyValuePair extra_params = 6; - int extra_params_size() const; - void clear_extra_params(); - static const int kExtraParamsFieldNumber = 6; - const ::suvlim::grpc::KeyValuePair& extra_params(int index) const; - ::suvlim::grpc::KeyValuePair* mutable_extra_params(int index); - ::suvlim::grpc::KeyValuePair* add_extra_params(); - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* - mutable_extra_params(); - const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& - extra_params() const; - - // @@protoc_insertion_point(class_scope:suvlim.grpc.TermQuery) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr field_name_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > int_value_; - mutable int _int_value_cached_byte_size_; - ::google::protobuf::RepeatedField< double > double_value_; - mutable int _double_value_cached_byte_size_; - ::google::protobuf::int64 value_num_; - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair > extra_params_; - float boost_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static TermQuery* default_instance_; -}; -// ------------------------------------------------------------------- - -class CompareExpr : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.CompareExpr) */ { - public: - CompareExpr(); - virtual ~CompareExpr(); - - CompareExpr(const CompareExpr& from); - - inline CompareExpr& operator=(const CompareExpr& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const CompareExpr& default_instance(); - - void Swap(CompareExpr* other); - - // implements Message ---------------------------------------------- - - inline CompareExpr* New() const { return New(NULL); } - - CompareExpr* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CompareExpr& from); - void MergeFrom(const CompareExpr& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(CompareExpr* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .suvlim.grpc.CompareOperator operator = 1; - void clear_operator_(); - static const int kOperatorFieldNumber = 1; - ::suvlim::grpc::CompareOperator operator_() const; - void set_operator_(::suvlim::grpc::CompareOperator value); - - // optional string operand = 2; - void clear_operand(); - static const int kOperandFieldNumber = 2; - const ::std::string& operand() const; - void set_operand(const ::std::string& value); - void set_operand(const char* value); - void set_operand(const char* value, size_t size); - ::std::string* mutable_operand(); - ::std::string* release_operand(); - void set_allocated_operand(::std::string* operand); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.CompareExpr) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr operand_; - int operator__; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static CompareExpr* default_instance_; -}; -// ------------------------------------------------------------------- - -class RangeQuery : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.RangeQuery) */ { - public: - RangeQuery(); - virtual ~RangeQuery(); - - RangeQuery(const RangeQuery& from); - - inline RangeQuery& operator=(const RangeQuery& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const RangeQuery& default_instance(); - - void Swap(RangeQuery* other); - - // implements Message ---------------------------------------------- - - inline RangeQuery* New() const { return New(NULL); } - - RangeQuery* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const RangeQuery& from); - void MergeFrom(const RangeQuery& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(RangeQuery* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string field_name = 1; - void clear_field_name(); - static const int kFieldNameFieldNumber = 1; - const ::std::string& field_name() const; - void set_field_name(const ::std::string& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - ::std::string* mutable_field_name(); - ::std::string* release_field_name(); - void set_allocated_field_name(::std::string* field_name); - - // repeated .suvlim.grpc.CompareExpr operand = 2; - int operand_size() const; - void clear_operand(); - static const int kOperandFieldNumber = 2; - const ::suvlim::grpc::CompareExpr& operand(int index) const; - ::suvlim::grpc::CompareExpr* mutable_operand(int index); - ::suvlim::grpc::CompareExpr* add_operand(); - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::CompareExpr >* - mutable_operand(); - const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::CompareExpr >& - operand() const; - - // optional float boost = 3; - void clear_boost(); - static const int kBoostFieldNumber = 3; - float boost() const; - void set_boost(float value); - - // repeated .suvlim.grpc.KeyValuePair extra_params = 4; - int extra_params_size() const; - void clear_extra_params(); - static const int kExtraParamsFieldNumber = 4; - const ::suvlim::grpc::KeyValuePair& extra_params(int index) const; - ::suvlim::grpc::KeyValuePair* mutable_extra_params(int index); - ::suvlim::grpc::KeyValuePair* add_extra_params(); - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* - mutable_extra_params(); - const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& - extra_params() const; - - // @@protoc_insertion_point(class_scope:suvlim.grpc.RangeQuery) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr field_name_; - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::CompareExpr > operand_; - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair > extra_params_; - float boost_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static RangeQuery* default_instance_; -}; -// ------------------------------------------------------------------- - -class VectorQuery : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.VectorQuery) */ { - public: - VectorQuery(); - virtual ~VectorQuery(); - - VectorQuery(const VectorQuery& from); - - inline VectorQuery& operator=(const VectorQuery& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const VectorQuery& default_instance(); - - void Swap(VectorQuery* other); - - // implements Message ---------------------------------------------- - - inline VectorQuery* New() const { return New(NULL); } - - VectorQuery* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const VectorQuery& from); - void MergeFrom(const VectorQuery& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(VectorQuery* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string field_name = 1; - void clear_field_name(); - static const int kFieldNameFieldNumber = 1; - const ::std::string& field_name() const; - void set_field_name(const ::std::string& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - ::std::string* mutable_field_name(); - ::std::string* release_field_name(); - void set_allocated_field_name(::std::string* field_name); - - // optional float query_boost = 2; - void clear_query_boost(); - static const int kQueryBoostFieldNumber = 2; - float query_boost() const; - void set_query_boost(float value); - - // repeated .suvlim.grpc.VectorRowRecord records = 3; - int records_size() const; - void clear_records(); - static const int kRecordsFieldNumber = 3; - const ::suvlim::grpc::VectorRowRecord& records(int index) const; - ::suvlim::grpc::VectorRowRecord* mutable_records(int index); - ::suvlim::grpc::VectorRowRecord* add_records(); - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorRowRecord >* - mutable_records(); - const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorRowRecord >& - records() const; - - // optional int64 topk = 4; - void clear_topk(); - static const int kTopkFieldNumber = 4; - ::google::protobuf::int64 topk() const; - void set_topk(::google::protobuf::int64 value); - - // repeated .suvlim.grpc.KeyValuePair extra_params = 5; - int extra_params_size() const; - void clear_extra_params(); - static const int kExtraParamsFieldNumber = 5; - const ::suvlim::grpc::KeyValuePair& extra_params(int index) const; - ::suvlim::grpc::KeyValuePair* mutable_extra_params(int index); - ::suvlim::grpc::KeyValuePair* add_extra_params(); - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* - mutable_extra_params(); - const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& - extra_params() const; - - // @@protoc_insertion_point(class_scope:suvlim.grpc.VectorQuery) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr field_name_; - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorRowRecord > records_; - ::google::protobuf::int64 topk_; - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair > extra_params_; - float query_boost_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static VectorQuery* default_instance_; -}; -// ------------------------------------------------------------------- - -class BooleanQuery : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.BooleanQuery) */ { - public: - BooleanQuery(); - virtual ~BooleanQuery(); - - BooleanQuery(const BooleanQuery& from); - - inline BooleanQuery& operator=(const BooleanQuery& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const BooleanQuery& default_instance(); - - void Swap(BooleanQuery* other); - - // implements Message ---------------------------------------------- - - inline BooleanQuery* New() const { return New(NULL); } - - BooleanQuery* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const BooleanQuery& from); - void MergeFrom(const BooleanQuery& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BooleanQuery* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .suvlim.grpc.Occur occur = 1; - void clear_occur(); - static const int kOccurFieldNumber = 1; - ::suvlim::grpc::Occur occur() const; - void set_occur(::suvlim::grpc::Occur value); - - // repeated .suvlim.grpc.GeneralQuery general_query = 2; - int general_query_size() const; - void clear_general_query(); - static const int kGeneralQueryFieldNumber = 2; - const ::suvlim::grpc::GeneralQuery& general_query(int index) const; - ::suvlim::grpc::GeneralQuery* mutable_general_query(int index); - ::suvlim::grpc::GeneralQuery* add_general_query(); - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::GeneralQuery >* - mutable_general_query(); - const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::GeneralQuery >& - general_query() const; - - // @@protoc_insertion_point(class_scope:suvlim.grpc.BooleanQuery) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::GeneralQuery > general_query_; - int occur_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static BooleanQuery* default_instance_; -}; -// ------------------------------------------------------------------- - -class GeneralQuery : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.GeneralQuery) */ { - public: - GeneralQuery(); - virtual ~GeneralQuery(); - - GeneralQuery(const GeneralQuery& from); - - inline GeneralQuery& operator=(const GeneralQuery& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const GeneralQuery& default_instance(); - - enum QueryCase { - kBooleanQuery = 1, - kTermQuery = 2, - kRangeQuery = 3, - kVectorQuery = 4, - QUERY_NOT_SET = 0, - }; - - void Swap(GeneralQuery* other); - - // implements Message ---------------------------------------------- - - inline GeneralQuery* New() const { return New(NULL); } - - GeneralQuery* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GeneralQuery& from); - void MergeFrom(const GeneralQuery& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(GeneralQuery* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .suvlim.grpc.BooleanQuery boolean_query = 1; - bool has_boolean_query() const; - void clear_boolean_query(); - static const int kBooleanQueryFieldNumber = 1; - const ::suvlim::grpc::BooleanQuery& boolean_query() const; - ::suvlim::grpc::BooleanQuery* mutable_boolean_query(); - ::suvlim::grpc::BooleanQuery* release_boolean_query(); - void set_allocated_boolean_query(::suvlim::grpc::BooleanQuery* boolean_query); - - // optional .suvlim.grpc.TermQuery term_query = 2; - bool has_term_query() const; - void clear_term_query(); - static const int kTermQueryFieldNumber = 2; - const ::suvlim::grpc::TermQuery& term_query() const; - ::suvlim::grpc::TermQuery* mutable_term_query(); - ::suvlim::grpc::TermQuery* release_term_query(); - void set_allocated_term_query(::suvlim::grpc::TermQuery* term_query); - - // optional .suvlim.grpc.RangeQuery range_query = 3; - bool has_range_query() const; - void clear_range_query(); - static const int kRangeQueryFieldNumber = 3; - const ::suvlim::grpc::RangeQuery& range_query() const; - ::suvlim::grpc::RangeQuery* mutable_range_query(); - ::suvlim::grpc::RangeQuery* release_range_query(); - void set_allocated_range_query(::suvlim::grpc::RangeQuery* range_query); - - // optional .suvlim.grpc.VectorQuery vector_query = 4; - bool has_vector_query() const; - void clear_vector_query(); - static const int kVectorQueryFieldNumber = 4; - const ::suvlim::grpc::VectorQuery& vector_query() const; - ::suvlim::grpc::VectorQuery* mutable_vector_query(); - ::suvlim::grpc::VectorQuery* release_vector_query(); - void set_allocated_vector_query(::suvlim::grpc::VectorQuery* vector_query); - - QueryCase query_case() const; - // @@protoc_insertion_point(class_scope:suvlim.grpc.GeneralQuery) - private: - inline void set_has_boolean_query(); - inline void set_has_term_query(); - inline void set_has_range_query(); - inline void set_has_vector_query(); - - inline bool has_query() const; - void clear_query(); - inline void clear_has_query(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - union QueryUnion { - QueryUnion() {} - ::suvlim::grpc::BooleanQuery* boolean_query_; - ::suvlim::grpc::TermQuery* term_query_; - ::suvlim::grpc::RangeQuery* range_query_; - ::suvlim::grpc::VectorQuery* vector_query_; - } query_; - mutable int _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static GeneralQuery* default_instance_; -}; -// ------------------------------------------------------------------- - -class SearchParamPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.SearchParamPB) */ { - public: - SearchParamPB(); - virtual ~SearchParamPB(); - - SearchParamPB(const SearchParamPB& from); - - inline SearchParamPB& operator=(const SearchParamPB& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const SearchParamPB& default_instance(); - - void Swap(SearchParamPB* other); - - // implements Message ---------------------------------------------- - - inline SearchParamPB* New() const { return New(NULL); } - - SearchParamPB* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SearchParamPB& from); - void MergeFrom(const SearchParamPB& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SearchParamPB* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string collection_name = 1; - void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); - - // repeated string partition_tag_array = 2; - int partition_tag_array_size() const; - void clear_partition_tag_array(); - static const int kPartitionTagArrayFieldNumber = 2; - const ::std::string& partition_tag_array(int index) const; - ::std::string* mutable_partition_tag_array(int index); - void set_partition_tag_array(int index, const ::std::string& value); - void set_partition_tag_array(int index, const char* value); - void set_partition_tag_array(int index, const char* value, size_t size); - ::std::string* add_partition_tag_array(); - void add_partition_tag_array(const ::std::string& value); - void add_partition_tag_array(const char* value); - void add_partition_tag_array(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& partition_tag_array() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_partition_tag_array(); - - // optional .suvlim.grpc.GeneralQuery general_query = 3; - bool has_general_query() const; - void clear_general_query(); - static const int kGeneralQueryFieldNumber = 3; - const ::suvlim::grpc::GeneralQuery& general_query() const; - ::suvlim::grpc::GeneralQuery* mutable_general_query(); - ::suvlim::grpc::GeneralQuery* release_general_query(); - void set_allocated_general_query(::suvlim::grpc::GeneralQuery* general_query); - - // repeated .suvlim.grpc.KeyValuePair extra_params = 4; - int extra_params_size() const; - void clear_extra_params(); - static const int kExtraParamsFieldNumber = 4; - const ::suvlim::grpc::KeyValuePair& extra_params(int index) const; - ::suvlim::grpc::KeyValuePair* mutable_extra_params(int index); - ::suvlim::grpc::KeyValuePair* add_extra_params(); - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* - mutable_extra_params(); - const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& - extra_params() const; - - // @@protoc_insertion_point(class_scope:suvlim.grpc.SearchParamPB) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - ::google::protobuf::RepeatedPtrField< ::std::string> partition_tag_array_; - ::suvlim::grpc::GeneralQuery* general_query_; - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair > extra_params_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static SearchParamPB* default_instance_; -}; -// ------------------------------------------------------------------- - -class InsertOrDeleteMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.InsertOrDeleteMsg) */ { - public: - InsertOrDeleteMsg(); - virtual ~InsertOrDeleteMsg(); - - InsertOrDeleteMsg(const InsertOrDeleteMsg& from); - - inline InsertOrDeleteMsg& operator=(const InsertOrDeleteMsg& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const InsertOrDeleteMsg& default_instance(); - - void Swap(InsertOrDeleteMsg* other); - - // implements Message ---------------------------------------------- - - inline InsertOrDeleteMsg* New() const { return New(NULL); } - - InsertOrDeleteMsg* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const InsertOrDeleteMsg& from); - void MergeFrom(const InsertOrDeleteMsg& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(InsertOrDeleteMsg* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string collection_name = 1; - void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); - - // optional .suvlim.grpc.RowData rows_data = 2; - bool has_rows_data() const; - void clear_rows_data(); - static const int kRowsDataFieldNumber = 2; - const ::suvlim::grpc::RowData& rows_data() const; - ::suvlim::grpc::RowData* mutable_rows_data(); - ::suvlim::grpc::RowData* release_rows_data(); - void set_allocated_rows_data(::suvlim::grpc::RowData* rows_data); - - // optional int64 uid = 3; - void clear_uid(); - static const int kUidFieldNumber = 3; - ::google::protobuf::int64 uid() const; - void set_uid(::google::protobuf::int64 value); - - // optional string partition_tag = 4; - void clear_partition_tag(); - static const int kPartitionTagFieldNumber = 4; - const ::std::string& partition_tag() const; - void set_partition_tag(const ::std::string& value); - void set_partition_tag(const char* value); - void set_partition_tag(const char* value, size_t size); - ::std::string* mutable_partition_tag(); - ::std::string* release_partition_tag(); - void set_allocated_partition_tag(::std::string* partition_tag); - - // optional int64 timestamp = 5; - void clear_timestamp(); - static const int kTimestampFieldNumber = 5; - ::google::protobuf::int64 timestamp() const; - void set_timestamp(::google::protobuf::int64 value); - - // optional int64 segment_id = 6; - void clear_segment_id(); - static const int kSegmentIdFieldNumber = 6; - ::google::protobuf::int64 segment_id() const; - void set_segment_id(::google::protobuf::int64 value); - - // optional int64 channel_id = 7; - void clear_channel_id(); - static const int kChannelIdFieldNumber = 7; - ::google::protobuf::int64 channel_id() const; - void set_channel_id(::google::protobuf::int64 value); - - // optional .suvlim.grpc.OpType op = 8; - void clear_op(); - static const int kOpFieldNumber = 8; - ::suvlim::grpc::OpType op() const; - void set_op(::suvlim::grpc::OpType value); - - // optional int64 client_id = 9; - void clear_client_id(); - static const int kClientIdFieldNumber = 9; - ::google::protobuf::int64 client_id() const; - void set_client_id(::google::protobuf::int64 value); - - // repeated .suvlim.grpc.KeyValuePair extra_params = 10; - int extra_params_size() const; - void clear_extra_params(); - static const int kExtraParamsFieldNumber = 10; - const ::suvlim::grpc::KeyValuePair& extra_params(int index) const; - ::suvlim::grpc::KeyValuePair* mutable_extra_params(int index); - ::suvlim::grpc::KeyValuePair* add_extra_params(); - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* - mutable_extra_params(); - const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& - extra_params() const; - - // @@protoc_insertion_point(class_scope:suvlim.grpc.InsertOrDeleteMsg) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - ::suvlim::grpc::RowData* rows_data_; - ::google::protobuf::int64 uid_; - ::google::protobuf::internal::ArenaStringPtr partition_tag_; - ::google::protobuf::int64 timestamp_; - ::google::protobuf::int64 segment_id_; - ::google::protobuf::int64 channel_id_; - ::google::protobuf::int64 client_id_; - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair > extra_params_; - int op_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static InsertOrDeleteMsg* default_instance_; -}; -// ------------------------------------------------------------------- - -class SearchMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.SearchMsg) */ { - public: - SearchMsg(); - virtual ~SearchMsg(); - - SearchMsg(const SearchMsg& from); - - inline SearchMsg& operator=(const SearchMsg& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const SearchMsg& default_instance(); - - void Swap(SearchMsg* other); - - // implements Message ---------------------------------------------- - - inline SearchMsg* New() const { return New(NULL); } - - SearchMsg* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SearchMsg& from); - void MergeFrom(const SearchMsg& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SearchMsg* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string collection_name = 1; - void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); - - // optional .suvlim.grpc.VectorRowRecord records = 2; - bool has_records() const; - void clear_records(); - static const int kRecordsFieldNumber = 2; - const ::suvlim::grpc::VectorRowRecord& records() const; - ::suvlim::grpc::VectorRowRecord* mutable_records(); - ::suvlim::grpc::VectorRowRecord* release_records(); - void set_allocated_records(::suvlim::grpc::VectorRowRecord* records); - - // optional string partition_tag = 3; - void clear_partition_tag(); - static const int kPartitionTagFieldNumber = 3; - const ::std::string& partition_tag() const; - void set_partition_tag(const ::std::string& value); - void set_partition_tag(const char* value); - void set_partition_tag(const char* value, size_t size); - ::std::string* mutable_partition_tag(); - ::std::string* release_partition_tag(); - void set_allocated_partition_tag(::std::string* partition_tag); - - // optional int64 uid = 4; - void clear_uid(); - static const int kUidFieldNumber = 4; - ::google::protobuf::int64 uid() const; - void set_uid(::google::protobuf::int64 value); - - // optional int64 timestamp = 5; - void clear_timestamp(); - static const int kTimestampFieldNumber = 5; - ::google::protobuf::int64 timestamp() const; - void set_timestamp(::google::protobuf::int64 value); - - // optional int64 client_id = 6; - void clear_client_id(); - static const int kClientIdFieldNumber = 6; - ::google::protobuf::int64 client_id() const; - void set_client_id(::google::protobuf::int64 value); - - // repeated .suvlim.grpc.KeyValuePair extra_params = 7; - int extra_params_size() const; - void clear_extra_params(); - static const int kExtraParamsFieldNumber = 7; - const ::suvlim::grpc::KeyValuePair& extra_params(int index) const; - ::suvlim::grpc::KeyValuePair* mutable_extra_params(int index); - ::suvlim::grpc::KeyValuePair* add_extra_params(); - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* - mutable_extra_params(); - const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& - extra_params() const; - - // @@protoc_insertion_point(class_scope:suvlim.grpc.SearchMsg) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - ::suvlim::grpc::VectorRowRecord* records_; - ::google::protobuf::internal::ArenaStringPtr partition_tag_; - ::google::protobuf::int64 uid_; - ::google::protobuf::int64 timestamp_; - ::google::protobuf::int64 client_id_; - ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair > extra_params_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static SearchMsg* default_instance_; -}; -// ------------------------------------------------------------------- - -class TimeSyncMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.TimeSyncMsg) */ { - public: - TimeSyncMsg(); - virtual ~TimeSyncMsg(); - - TimeSyncMsg(const TimeSyncMsg& from); - - inline TimeSyncMsg& operator=(const TimeSyncMsg& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const TimeSyncMsg& default_instance(); - - void Swap(TimeSyncMsg* other); - - // implements Message ---------------------------------------------- - - inline TimeSyncMsg* New() const { return New(NULL); } - - TimeSyncMsg* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const TimeSyncMsg& from); - void MergeFrom(const TimeSyncMsg& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(TimeSyncMsg* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional int64 ClientId = 1; - void clear_clientid(); - static const int kClientIdFieldNumber = 1; - ::google::protobuf::int64 clientid() const; - void set_clientid(::google::protobuf::int64 value); - - // optional int64 Timestamp = 2; - void clear_timestamp(); - static const int kTimestampFieldNumber = 2; - ::google::protobuf::int64 timestamp() const; - void set_timestamp(::google::protobuf::int64 value); - - // optional .suvlim.grpc.OpType MsgType = 3; - void clear_msgtype(); - static const int kMsgTypeFieldNumber = 3; - ::suvlim::grpc::OpType msgtype() const; - void set_msgtype(::suvlim::grpc::OpType value); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.TimeSyncMsg) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::int64 clientid_; - ::google::protobuf::int64 timestamp_; - int msgtype_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static TimeSyncMsg* default_instance_; -}; -// ------------------------------------------------------------------- - -class SegmentRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.SegmentRecord) */ { - public: - SegmentRecord(); - virtual ~SegmentRecord(); - - SegmentRecord(const SegmentRecord& from); - - inline SegmentRecord& operator=(const SegmentRecord& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const SegmentRecord& default_instance(); - - void Swap(SegmentRecord* other); - - // implements Message ---------------------------------------------- - - inline SegmentRecord* New() const { return New(NULL); } - - SegmentRecord* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SegmentRecord& from); - void MergeFrom(const SegmentRecord& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SegmentRecord* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional int64 uid = 1; - void clear_uid(); - static const int kUidFieldNumber = 1; - ::google::protobuf::int64 uid() const; - void set_uid(::google::protobuf::int64 value); - - // repeated int64 segment_id = 2; - int segment_id_size() const; - void clear_segment_id(); - static const int kSegmentIdFieldNumber = 2; - ::google::protobuf::int64 segment_id(int index) const; - void set_segment_id(int index, ::google::protobuf::int64 value); - void add_segment_id(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - segment_id() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_segment_id(); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.SegmentRecord) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::int64 uid_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > segment_id_; - mutable int _segment_id_cached_byte_size_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static SegmentRecord* default_instance_; -}; -// ------------------------------------------------------------------- - -class Key2SegMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:suvlim.grpc.Key2SegMsg) */ { - public: - Key2SegMsg(); - virtual ~Key2SegMsg(); - - Key2SegMsg(const Key2SegMsg& from); - - inline Key2SegMsg& operator=(const Key2SegMsg& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const Key2SegMsg& default_instance(); - - void Swap(Key2SegMsg* other); - - // implements Message ---------------------------------------------- - - inline Key2SegMsg* New() const { return New(NULL); } - - Key2SegMsg* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Key2SegMsg& from); - void MergeFrom(const Key2SegMsg& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Key2SegMsg* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional int64 client_id = 1; - void clear_client_id(); - static const int kClientIdFieldNumber = 1; - ::google::protobuf::int64 client_id() const; - void set_client_id(::google::protobuf::int64 value); - - // optional .suvlim.grpc.SegmentRecord records = 2; - bool has_records() const; - void clear_records(); - static const int kRecordsFieldNumber = 2; - const ::suvlim::grpc::SegmentRecord& records() const; - ::suvlim::grpc::SegmentRecord* mutable_records(); - ::suvlim::grpc::SegmentRecord* release_records(); - void set_allocated_records(::suvlim::grpc::SegmentRecord* records); - - // optional .suvlim.grpc.OpType msg_type = 3; - void clear_msg_type(); - static const int kMsgTypeFieldNumber = 3; - ::suvlim::grpc::OpType msg_type() const; - void set_msg_type(::suvlim::grpc::OpType value); - - // @@protoc_insertion_point(class_scope:suvlim.grpc.Key2SegMsg) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::int64 client_id_; - ::suvlim::grpc::SegmentRecord* records_; - int msg_type_; - mutable int _cached_size_; - friend void protobuf_AddDesc_suvlim_2eproto(); - friend void protobuf_AssignDesc_suvlim_2eproto(); - friend void protobuf_ShutdownFile_suvlim_2eproto(); - - void InitAsDefaultInstance(); - static Key2SegMsg* default_instance_; -}; -// =================================================================== - - -// =================================================================== - -#if !PROTOBUF_INLINE_NOT_IN_HEADERS -// Status - -// optional .suvlim.grpc.ErrorCode error_code = 1; -inline void Status::clear_error_code() { - error_code_ = 0; -} -inline ::suvlim::grpc::ErrorCode Status::error_code() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Status.error_code) - return static_cast< ::suvlim::grpc::ErrorCode >(error_code_); -} -inline void Status::set_error_code(::suvlim::grpc::ErrorCode value) { - - error_code_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.Status.error_code) -} - -// optional string reason = 2; -inline void Status::clear_reason() { - reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Status::reason() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Status.reason) - return reason_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Status::set_reason(const ::std::string& value) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.Status.reason) -} -inline void Status::set_reason(const char* value) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.Status.reason) -} -inline void Status::set_reason(const char* value, size_t size) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.Status.reason) -} -inline ::std::string* Status::mutable_reason() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.Status.reason) - return reason_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Status::release_reason() { - // @@protoc_insertion_point(field_release:suvlim.grpc.Status.reason) - - return reason_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Status::set_allocated_reason(::std::string* reason) { - if (reason != NULL) { - - } else { - - } - reason_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reason); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.Status.reason) -} - -// ------------------------------------------------------------------- - -// KeyValuePair - -// optional string key = 1; -inline void KeyValuePair::clear_key() { - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& KeyValuePair::key() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.KeyValuePair.key) - return key_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void KeyValuePair::set_key(const ::std::string& value) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.KeyValuePair.key) -} -inline void KeyValuePair::set_key(const char* value) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.KeyValuePair.key) -} -inline void KeyValuePair::set_key(const char* value, size_t size) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.KeyValuePair.key) -} -inline ::std::string* KeyValuePair::mutable_key() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.KeyValuePair.key) - return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* KeyValuePair::release_key() { - // @@protoc_insertion_point(field_release:suvlim.grpc.KeyValuePair.key) - - return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void KeyValuePair::set_allocated_key(::std::string* key) { - if (key != NULL) { - - } else { - - } - key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.KeyValuePair.key) -} - -// optional string value = 2; -inline void KeyValuePair::clear_value() { - value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& KeyValuePair::value() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.KeyValuePair.value) - return value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void KeyValuePair::set_value(const ::std::string& value) { - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.KeyValuePair.value) -} -inline void KeyValuePair::set_value(const char* value) { - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.KeyValuePair.value) -} -inline void KeyValuePair::set_value(const char* value, size_t size) { - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.KeyValuePair.value) -} -inline ::std::string* KeyValuePair::mutable_value() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.KeyValuePair.value) - return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* KeyValuePair::release_value() { - // @@protoc_insertion_point(field_release:suvlim.grpc.KeyValuePair.value) - - return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void KeyValuePair::set_allocated_value(::std::string* value) { - if (value != NULL) { - - } else { - - } - value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.KeyValuePair.value) -} - -// ------------------------------------------------------------------- - -// CollectionName - -// optional string collection_name = 1; -inline void CollectionName::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CollectionName::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.CollectionName.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CollectionName::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.CollectionName.collection_name) -} -inline void CollectionName::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.CollectionName.collection_name) -} -inline void CollectionName::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.CollectionName.collection_name) -} -inline ::std::string* CollectionName::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.CollectionName.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CollectionName::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.CollectionName.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CollectionName::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.CollectionName.collection_name) -} - -// ------------------------------------------------------------------- - -// CollectionNameList - -// optional .suvlim.grpc.Status status = 1; -inline bool CollectionNameList::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -inline void CollectionNameList::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -inline const ::suvlim::grpc::Status& CollectionNameList::status() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.CollectionNameList.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::suvlim::grpc::Status* CollectionNameList::mutable_status() { - - if (status_ == NULL) { - status_ = new ::suvlim::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.CollectionNameList.status) - return status_; -} -inline ::suvlim::grpc::Status* CollectionNameList::release_status() { - // @@protoc_insertion_point(field_release:suvlim.grpc.CollectionNameList.status) - - ::suvlim::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -inline void CollectionNameList::set_allocated_status(::suvlim::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.CollectionNameList.status) -} - -// repeated string collection_names = 2; -inline int CollectionNameList::collection_names_size() const { - return collection_names_.size(); -} -inline void CollectionNameList::clear_collection_names() { - collection_names_.Clear(); -} -inline const ::std::string& CollectionNameList::collection_names(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.CollectionNameList.collection_names) - return collection_names_.Get(index); -} -inline ::std::string* CollectionNameList::mutable_collection_names(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.CollectionNameList.collection_names) - return collection_names_.Mutable(index); -} -inline void CollectionNameList::set_collection_names(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:suvlim.grpc.CollectionNameList.collection_names) - collection_names_.Mutable(index)->assign(value); -} -inline void CollectionNameList::set_collection_names(int index, const char* value) { - collection_names_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.CollectionNameList.collection_names) -} -inline void CollectionNameList::set_collection_names(int index, const char* value, size_t size) { - collection_names_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.CollectionNameList.collection_names) -} -inline ::std::string* CollectionNameList::add_collection_names() { - // @@protoc_insertion_point(field_add_mutable:suvlim.grpc.CollectionNameList.collection_names) - return collection_names_.Add(); -} -inline void CollectionNameList::add_collection_names(const ::std::string& value) { - collection_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.CollectionNameList.collection_names) -} -inline void CollectionNameList::add_collection_names(const char* value) { - collection_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:suvlim.grpc.CollectionNameList.collection_names) -} -inline void CollectionNameList::add_collection_names(const char* value, size_t size) { - collection_names_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:suvlim.grpc.CollectionNameList.collection_names) -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -CollectionNameList::collection_names() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.CollectionNameList.collection_names) - return collection_names_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -CollectionNameList::mutable_collection_names() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.CollectionNameList.collection_names) - return &collection_names_; -} - -// ------------------------------------------------------------------- - -// FieldName - -// optional string collection_name = 1; -inline void FieldName::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& FieldName::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FieldName.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void FieldName::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.FieldName.collection_name) -} -inline void FieldName::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.FieldName.collection_name) -} -inline void FieldName::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.FieldName.collection_name) -} -inline ::std::string* FieldName::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.FieldName.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* FieldName::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.FieldName.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void FieldName::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.FieldName.collection_name) -} - -// optional string field_name = 2; -inline void FieldName::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& FieldName::field_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FieldName.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void FieldName::set_field_name(const ::std::string& value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.FieldName.field_name) -} -inline void FieldName::set_field_name(const char* value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.FieldName.field_name) -} -inline void FieldName::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.FieldName.field_name) -} -inline ::std::string* FieldName::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.FieldName.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* FieldName::release_field_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.FieldName.field_name) - - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void FieldName::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.FieldName.field_name) -} - -// ------------------------------------------------------------------- - -// Mapping - -// optional .suvlim.grpc.Status status = 1; -inline bool Mapping::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -inline void Mapping::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -inline const ::suvlim::grpc::Status& Mapping::status() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Mapping.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::suvlim::grpc::Status* Mapping::mutable_status() { - - if (status_ == NULL) { - status_ = new ::suvlim::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.Mapping.status) - return status_; -} -inline ::suvlim::grpc::Status* Mapping::release_status() { - // @@protoc_insertion_point(field_release:suvlim.grpc.Mapping.status) - - ::suvlim::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -inline void Mapping::set_allocated_status(::suvlim::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.Mapping.status) -} - -// optional string collection_name = 2; -inline void Mapping::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Mapping::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Mapping.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Mapping::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.Mapping.collection_name) -} -inline void Mapping::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.Mapping.collection_name) -} -inline void Mapping::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.Mapping.collection_name) -} -inline ::std::string* Mapping::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.Mapping.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Mapping::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.Mapping.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Mapping::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.Mapping.collection_name) -} - -// repeated .suvlim.grpc.FieldParam fields = 3; -inline int Mapping::fields_size() const { - return fields_.size(); -} -inline void Mapping::clear_fields() { - fields_.Clear(); -} -inline const ::suvlim::grpc::FieldParam& Mapping::fields(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Mapping.fields) - return fields_.Get(index); -} -inline ::suvlim::grpc::FieldParam* Mapping::mutable_fields(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.Mapping.fields) - return fields_.Mutable(index); -} -inline ::suvlim::grpc::FieldParam* Mapping::add_fields() { - // @@protoc_insertion_point(field_add:suvlim.grpc.Mapping.fields) - return fields_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::FieldParam >* -Mapping::mutable_fields() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.Mapping.fields) - return &fields_; -} -inline const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::FieldParam >& -Mapping::fields() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.Mapping.fields) - return fields_; -} - -// repeated .suvlim.grpc.KeyValuePair extra_params = 4; -inline int Mapping::extra_params_size() const { - return extra_params_.size(); -} -inline void Mapping::clear_extra_params() { - extra_params_.Clear(); -} -inline const ::suvlim::grpc::KeyValuePair& Mapping::extra_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Mapping.extra_params) - return extra_params_.Get(index); -} -inline ::suvlim::grpc::KeyValuePair* Mapping::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.Mapping.extra_params) - return extra_params_.Mutable(index); -} -inline ::suvlim::grpc::KeyValuePair* Mapping::add_extra_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.Mapping.extra_params) - return extra_params_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -Mapping::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.Mapping.extra_params) - return &extra_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -Mapping::extra_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.Mapping.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// MappingList - -// optional .suvlim.grpc.Status status = 1; -inline bool MappingList::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -inline void MappingList::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -inline const ::suvlim::grpc::Status& MappingList::status() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.MappingList.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::suvlim::grpc::Status* MappingList::mutable_status() { - - if (status_ == NULL) { - status_ = new ::suvlim::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.MappingList.status) - return status_; -} -inline ::suvlim::grpc::Status* MappingList::release_status() { - // @@protoc_insertion_point(field_release:suvlim.grpc.MappingList.status) - - ::suvlim::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -inline void MappingList::set_allocated_status(::suvlim::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.MappingList.status) -} - -// repeated .suvlim.grpc.Mapping mapping_list = 2; -inline int MappingList::mapping_list_size() const { - return mapping_list_.size(); -} -inline void MappingList::clear_mapping_list() { - mapping_list_.Clear(); -} -inline const ::suvlim::grpc::Mapping& MappingList::mapping_list(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.MappingList.mapping_list) - return mapping_list_.Get(index); -} -inline ::suvlim::grpc::Mapping* MappingList::mutable_mapping_list(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.MappingList.mapping_list) - return mapping_list_.Mutable(index); -} -inline ::suvlim::grpc::Mapping* MappingList::add_mapping_list() { - // @@protoc_insertion_point(field_add:suvlim.grpc.MappingList.mapping_list) - return mapping_list_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::Mapping >* -MappingList::mutable_mapping_list() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.MappingList.mapping_list) - return &mapping_list_; -} -inline const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::Mapping >& -MappingList::mapping_list() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.MappingList.mapping_list) - return mapping_list_; -} - -// ------------------------------------------------------------------- - -// PartitionParam - -// optional string collection_name = 1; -inline void PartitionParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& PartitionParam::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.PartitionParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PartitionParam::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.PartitionParam.collection_name) -} -inline void PartitionParam::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.PartitionParam.collection_name) -} -inline void PartitionParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.PartitionParam.collection_name) -} -inline ::std::string* PartitionParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.PartitionParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* PartitionParam::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.PartitionParam.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PartitionParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.PartitionParam.collection_name) -} - -// optional string tag = 2; -inline void PartitionParam::clear_tag() { - tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& PartitionParam::tag() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.PartitionParam.tag) - return tag_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PartitionParam::set_tag(const ::std::string& value) { - - tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.PartitionParam.tag) -} -inline void PartitionParam::set_tag(const char* value) { - - tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.PartitionParam.tag) -} -inline void PartitionParam::set_tag(const char* value, size_t size) { - - tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.PartitionParam.tag) -} -inline ::std::string* PartitionParam::mutable_tag() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.PartitionParam.tag) - return tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* PartitionParam::release_tag() { - // @@protoc_insertion_point(field_release:suvlim.grpc.PartitionParam.tag) - - return tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PartitionParam::set_allocated_tag(::std::string* tag) { - if (tag != NULL) { - - } else { - - } - tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tag); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.PartitionParam.tag) -} - -// ------------------------------------------------------------------- - -// PartitionList - -// optional .suvlim.grpc.Status status = 1; -inline bool PartitionList::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -inline void PartitionList::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -inline const ::suvlim::grpc::Status& PartitionList::status() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.PartitionList.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::suvlim::grpc::Status* PartitionList::mutable_status() { - - if (status_ == NULL) { - status_ = new ::suvlim::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.PartitionList.status) - return status_; -} -inline ::suvlim::grpc::Status* PartitionList::release_status() { - // @@protoc_insertion_point(field_release:suvlim.grpc.PartitionList.status) - - ::suvlim::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -inline void PartitionList::set_allocated_status(::suvlim::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.PartitionList.status) -} - -// repeated string partition_tag_array = 2; -inline int PartitionList::partition_tag_array_size() const { - return partition_tag_array_.size(); -} -inline void PartitionList::clear_partition_tag_array() { - partition_tag_array_.Clear(); -} -inline const ::std::string& PartitionList::partition_tag_array(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.PartitionList.partition_tag_array) - return partition_tag_array_.Get(index); -} -inline ::std::string* PartitionList::mutable_partition_tag_array(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.PartitionList.partition_tag_array) - return partition_tag_array_.Mutable(index); -} -inline void PartitionList::set_partition_tag_array(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:suvlim.grpc.PartitionList.partition_tag_array) - partition_tag_array_.Mutable(index)->assign(value); -} -inline void PartitionList::set_partition_tag_array(int index, const char* value) { - partition_tag_array_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.PartitionList.partition_tag_array) -} -inline void PartitionList::set_partition_tag_array(int index, const char* value, size_t size) { - partition_tag_array_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.PartitionList.partition_tag_array) -} -inline ::std::string* PartitionList::add_partition_tag_array() { - // @@protoc_insertion_point(field_add_mutable:suvlim.grpc.PartitionList.partition_tag_array) - return partition_tag_array_.Add(); -} -inline void PartitionList::add_partition_tag_array(const ::std::string& value) { - partition_tag_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.PartitionList.partition_tag_array) -} -inline void PartitionList::add_partition_tag_array(const char* value) { - partition_tag_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:suvlim.grpc.PartitionList.partition_tag_array) -} -inline void PartitionList::add_partition_tag_array(const char* value, size_t size) { - partition_tag_array_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:suvlim.grpc.PartitionList.partition_tag_array) -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -PartitionList::partition_tag_array() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.PartitionList.partition_tag_array) - return partition_tag_array_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -PartitionList::mutable_partition_tag_array() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.PartitionList.partition_tag_array) - return &partition_tag_array_; -} - -// ------------------------------------------------------------------- - -// VectorRowRecord - -// repeated float float_data = 1; -inline int VectorRowRecord::float_data_size() const { - return float_data_.size(); -} -inline void VectorRowRecord::clear_float_data() { - float_data_.Clear(); -} -inline float VectorRowRecord::float_data(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.VectorRowRecord.float_data) - return float_data_.Get(index); -} -inline void VectorRowRecord::set_float_data(int index, float value) { - float_data_.Set(index, value); - // @@protoc_insertion_point(field_set:suvlim.grpc.VectorRowRecord.float_data) -} -inline void VectorRowRecord::add_float_data(float value) { - float_data_.Add(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.VectorRowRecord.float_data) -} -inline const ::google::protobuf::RepeatedField< float >& -VectorRowRecord::float_data() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.VectorRowRecord.float_data) - return float_data_; -} -inline ::google::protobuf::RepeatedField< float >* -VectorRowRecord::mutable_float_data() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.VectorRowRecord.float_data) - return &float_data_; -} - -// optional bytes binary_data = 2; -inline void VectorRowRecord::clear_binary_data() { - binary_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& VectorRowRecord::binary_data() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.VectorRowRecord.binary_data) - return binary_data_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void VectorRowRecord::set_binary_data(const ::std::string& value) { - - binary_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.VectorRowRecord.binary_data) -} -inline void VectorRowRecord::set_binary_data(const char* value) { - - binary_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.VectorRowRecord.binary_data) -} -inline void VectorRowRecord::set_binary_data(const void* value, size_t size) { - - binary_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.VectorRowRecord.binary_data) -} -inline ::std::string* VectorRowRecord::mutable_binary_data() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.VectorRowRecord.binary_data) - return binary_data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* VectorRowRecord::release_binary_data() { - // @@protoc_insertion_point(field_release:suvlim.grpc.VectorRowRecord.binary_data) - - return binary_data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void VectorRowRecord::set_allocated_binary_data(::std::string* binary_data) { - if (binary_data != NULL) { - - } else { - - } - binary_data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), binary_data); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.VectorRowRecord.binary_data) -} - -// ------------------------------------------------------------------- - -// EntityIds - -// optional .suvlim.grpc.Status status = 1; -inline bool EntityIds::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -inline void EntityIds::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -inline const ::suvlim::grpc::Status& EntityIds::status() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.EntityIds.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::suvlim::grpc::Status* EntityIds::mutable_status() { - - if (status_ == NULL) { - status_ = new ::suvlim::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.EntityIds.status) - return status_; -} -inline ::suvlim::grpc::Status* EntityIds::release_status() { - // @@protoc_insertion_point(field_release:suvlim.grpc.EntityIds.status) - - ::suvlim::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -inline void EntityIds::set_allocated_status(::suvlim::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.EntityIds.status) -} - -// repeated int64 entity_id_array = 2; -inline int EntityIds::entity_id_array_size() const { - return entity_id_array_.size(); -} -inline void EntityIds::clear_entity_id_array() { - entity_id_array_.Clear(); -} -inline ::google::protobuf::int64 EntityIds::entity_id_array(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.EntityIds.entity_id_array) - return entity_id_array_.Get(index); -} -inline void EntityIds::set_entity_id_array(int index, ::google::protobuf::int64 value) { - entity_id_array_.Set(index, value); - // @@protoc_insertion_point(field_set:suvlim.grpc.EntityIds.entity_id_array) -} -inline void EntityIds::add_entity_id_array(::google::protobuf::int64 value) { - entity_id_array_.Add(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.EntityIds.entity_id_array) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -EntityIds::entity_id_array() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.EntityIds.entity_id_array) - return entity_id_array_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -EntityIds::mutable_entity_id_array() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.EntityIds.entity_id_array) - return &entity_id_array_; -} - -// ------------------------------------------------------------------- - -// VectorRecord - -// repeated .suvlim.grpc.VectorRowRecord records = 1; -inline int VectorRecord::records_size() const { - return records_.size(); -} -inline void VectorRecord::clear_records() { - records_.Clear(); -} -inline const ::suvlim::grpc::VectorRowRecord& VectorRecord::records(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.VectorRecord.records) - return records_.Get(index); -} -inline ::suvlim::grpc::VectorRowRecord* VectorRecord::mutable_records(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.VectorRecord.records) - return records_.Mutable(index); -} -inline ::suvlim::grpc::VectorRowRecord* VectorRecord::add_records() { - // @@protoc_insertion_point(field_add:suvlim.grpc.VectorRecord.records) - return records_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorRowRecord >* -VectorRecord::mutable_records() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.VectorRecord.records) - return &records_; -} -inline const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorRowRecord >& -VectorRecord::records() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.VectorRecord.records) - return records_; -} - -// ------------------------------------------------------------------- - -// VectorParam - -// optional string json = 1; -inline void VectorParam::clear_json() { - json_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& VectorParam::json() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.VectorParam.json) - return json_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void VectorParam::set_json(const ::std::string& value) { - - json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.VectorParam.json) -} -inline void VectorParam::set_json(const char* value) { - - json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.VectorParam.json) -} -inline void VectorParam::set_json(const char* value, size_t size) { - - json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.VectorParam.json) -} -inline ::std::string* VectorParam::mutable_json() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.VectorParam.json) - return json_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* VectorParam::release_json() { - // @@protoc_insertion_point(field_release:suvlim.grpc.VectorParam.json) - - return json_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void VectorParam::set_allocated_json(::std::string* json) { - if (json != NULL) { - - } else { - - } - json_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.VectorParam.json) -} - -// optional .suvlim.grpc.VectorRecord row_record = 2; -inline bool VectorParam::has_row_record() const { - return !_is_default_instance_ && row_record_ != NULL; -} -inline void VectorParam::clear_row_record() { - if (GetArenaNoVirtual() == NULL && row_record_ != NULL) delete row_record_; - row_record_ = NULL; -} -inline const ::suvlim::grpc::VectorRecord& VectorParam::row_record() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.VectorParam.row_record) - return row_record_ != NULL ? *row_record_ : *default_instance_->row_record_; -} -inline ::suvlim::grpc::VectorRecord* VectorParam::mutable_row_record() { - - if (row_record_ == NULL) { - row_record_ = new ::suvlim::grpc::VectorRecord; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.VectorParam.row_record) - return row_record_; -} -inline ::suvlim::grpc::VectorRecord* VectorParam::release_row_record() { - // @@protoc_insertion_point(field_release:suvlim.grpc.VectorParam.row_record) - - ::suvlim::grpc::VectorRecord* temp = row_record_; - row_record_ = NULL; - return temp; -} -inline void VectorParam::set_allocated_row_record(::suvlim::grpc::VectorRecord* row_record) { - delete row_record_; - row_record_ = row_record; - if (row_record) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.VectorParam.row_record) -} - -// ------------------------------------------------------------------- - -// FieldMeta - -// optional string field_name = 1; -inline void FieldMeta::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& FieldMeta::field_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FieldMeta.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void FieldMeta::set_field_name(const ::std::string& value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.FieldMeta.field_name) -} -inline void FieldMeta::set_field_name(const char* value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.FieldMeta.field_name) -} -inline void FieldMeta::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.FieldMeta.field_name) -} -inline ::std::string* FieldMeta::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.FieldMeta.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* FieldMeta::release_field_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.FieldMeta.field_name) - - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void FieldMeta::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.FieldMeta.field_name) -} - -// optional .suvlim.grpc.DataType type = 2; -inline void FieldMeta::clear_type() { - type_ = 0; -} -inline ::suvlim::grpc::DataType FieldMeta::type() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FieldMeta.type) - return static_cast< ::suvlim::grpc::DataType >(type_); -} -inline void FieldMeta::set_type(::suvlim::grpc::DataType value) { - - type_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.FieldMeta.type) -} - -// optional int64 dim = 3; -inline void FieldMeta::clear_dim() { - dim_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 FieldMeta::dim() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FieldMeta.dim) - return dim_; -} -inline void FieldMeta::set_dim(::google::protobuf::int64 value) { - - dim_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.FieldMeta.dim) -} - -// ------------------------------------------------------------------- - -// Schema - -// repeated .suvlim.grpc.FieldMeta field_metas = 1; -inline int Schema::field_metas_size() const { - return field_metas_.size(); -} -inline void Schema::clear_field_metas() { - field_metas_.Clear(); -} -inline const ::suvlim::grpc::FieldMeta& Schema::field_metas(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Schema.field_metas) - return field_metas_.Get(index); -} -inline ::suvlim::grpc::FieldMeta* Schema::mutable_field_metas(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.Schema.field_metas) - return field_metas_.Mutable(index); -} -inline ::suvlim::grpc::FieldMeta* Schema::add_field_metas() { - // @@protoc_insertion_point(field_add:suvlim.grpc.Schema.field_metas) - return field_metas_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::FieldMeta >* -Schema::mutable_field_metas() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.Schema.field_metas) - return &field_metas_; -} -inline const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::FieldMeta >& -Schema::field_metas() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.Schema.field_metas) - return field_metas_; -} - -// ------------------------------------------------------------------- - -// RowData - -// optional bytes blob = 1; -inline void RowData::clear_blob() { - blob_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& RowData::blob() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.RowData.blob) - return blob_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void RowData::set_blob(const ::std::string& value) { - - blob_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.RowData.blob) -} -inline void RowData::set_blob(const char* value) { - - blob_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.RowData.blob) -} -inline void RowData::set_blob(const void* value, size_t size) { - - blob_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.RowData.blob) -} -inline ::std::string* RowData::mutable_blob() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.RowData.blob) - return blob_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* RowData::release_blob() { - // @@protoc_insertion_point(field_release:suvlim.grpc.RowData.blob) - - return blob_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void RowData::set_allocated_blob(::std::string* blob) { - if (blob != NULL) { - - } else { - - } - blob_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), blob); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.RowData.blob) -} - -// ------------------------------------------------------------------- - -// InsertParam - -// optional string collection_name = 1; -inline void InsertParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& InsertParam::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void InsertParam::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.InsertParam.collection_name) -} -inline void InsertParam::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.InsertParam.collection_name) -} -inline void InsertParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.InsertParam.collection_name) -} -inline ::std::string* InsertParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.InsertParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* InsertParam::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.InsertParam.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void InsertParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.InsertParam.collection_name) -} - -// optional .suvlim.grpc.Schema schema = 2; -inline bool InsertParam::has_schema() const { - return !_is_default_instance_ && schema_ != NULL; -} -inline void InsertParam::clear_schema() { - if (GetArenaNoVirtual() == NULL && schema_ != NULL) delete schema_; - schema_ = NULL; -} -inline const ::suvlim::grpc::Schema& InsertParam::schema() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertParam.schema) - return schema_ != NULL ? *schema_ : *default_instance_->schema_; -} -inline ::suvlim::grpc::Schema* InsertParam::mutable_schema() { - - if (schema_ == NULL) { - schema_ = new ::suvlim::grpc::Schema; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.InsertParam.schema) - return schema_; -} -inline ::suvlim::grpc::Schema* InsertParam::release_schema() { - // @@protoc_insertion_point(field_release:suvlim.grpc.InsertParam.schema) - - ::suvlim::grpc::Schema* temp = schema_; - schema_ = NULL; - return temp; -} -inline void InsertParam::set_allocated_schema(::suvlim::grpc::Schema* schema) { - delete schema_; - schema_ = schema; - if (schema) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.InsertParam.schema) -} - -// repeated .suvlim.grpc.RowData rows_data = 3; -inline int InsertParam::rows_data_size() const { - return rows_data_.size(); -} -inline void InsertParam::clear_rows_data() { - rows_data_.Clear(); -} -inline const ::suvlim::grpc::RowData& InsertParam::rows_data(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertParam.rows_data) - return rows_data_.Get(index); -} -inline ::suvlim::grpc::RowData* InsertParam::mutable_rows_data(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.InsertParam.rows_data) - return rows_data_.Mutable(index); -} -inline ::suvlim::grpc::RowData* InsertParam::add_rows_data() { - // @@protoc_insertion_point(field_add:suvlim.grpc.InsertParam.rows_data) - return rows_data_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::RowData >* -InsertParam::mutable_rows_data() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.InsertParam.rows_data) - return &rows_data_; -} -inline const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::RowData >& -InsertParam::rows_data() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.InsertParam.rows_data) - return rows_data_; -} - -// repeated int64 entity_id_array = 4; -inline int InsertParam::entity_id_array_size() const { - return entity_id_array_.size(); -} -inline void InsertParam::clear_entity_id_array() { - entity_id_array_.Clear(); -} -inline ::google::protobuf::int64 InsertParam::entity_id_array(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertParam.entity_id_array) - return entity_id_array_.Get(index); -} -inline void InsertParam::set_entity_id_array(int index, ::google::protobuf::int64 value) { - entity_id_array_.Set(index, value); - // @@protoc_insertion_point(field_set:suvlim.grpc.InsertParam.entity_id_array) -} -inline void InsertParam::add_entity_id_array(::google::protobuf::int64 value) { - entity_id_array_.Add(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.InsertParam.entity_id_array) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -InsertParam::entity_id_array() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.InsertParam.entity_id_array) - return entity_id_array_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -InsertParam::mutable_entity_id_array() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.InsertParam.entity_id_array) - return &entity_id_array_; -} - -// optional string partition_tag = 5; -inline void InsertParam::clear_partition_tag() { - partition_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& InsertParam::partition_tag() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertParam.partition_tag) - return partition_tag_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void InsertParam::set_partition_tag(const ::std::string& value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.InsertParam.partition_tag) -} -inline void InsertParam::set_partition_tag(const char* value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.InsertParam.partition_tag) -} -inline void InsertParam::set_partition_tag(const char* value, size_t size) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.InsertParam.partition_tag) -} -inline ::std::string* InsertParam::mutable_partition_tag() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.InsertParam.partition_tag) - return partition_tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* InsertParam::release_partition_tag() { - // @@protoc_insertion_point(field_release:suvlim.grpc.InsertParam.partition_tag) - - return partition_tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void InsertParam::set_allocated_partition_tag(::std::string* partition_tag) { - if (partition_tag != NULL) { - - } else { - - } - partition_tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), partition_tag); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.InsertParam.partition_tag) -} - -// repeated .suvlim.grpc.KeyValuePair extra_params = 6; -inline int InsertParam::extra_params_size() const { - return extra_params_.size(); -} -inline void InsertParam::clear_extra_params() { - extra_params_.Clear(); -} -inline const ::suvlim::grpc::KeyValuePair& InsertParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertParam.extra_params) - return extra_params_.Get(index); -} -inline ::suvlim::grpc::KeyValuePair* InsertParam::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.InsertParam.extra_params) - return extra_params_.Mutable(index); -} -inline ::suvlim::grpc::KeyValuePair* InsertParam::add_extra_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.InsertParam.extra_params) - return extra_params_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -InsertParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.InsertParam.extra_params) - return &extra_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -InsertParam::extra_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.InsertParam.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// SearchParam - -// optional string collection_name = 1; -inline void SearchParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SearchParam::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SearchParam::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.SearchParam.collection_name) -} -inline void SearchParam::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.SearchParam.collection_name) -} -inline void SearchParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.SearchParam.collection_name) -} -inline ::std::string* SearchParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SearchParam::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.SearchParam.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SearchParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.SearchParam.collection_name) -} - -// repeated .suvlim.grpc.VectorParam vector_param = 2; -inline int SearchParam::vector_param_size() const { - return vector_param_.size(); -} -inline void SearchParam::clear_vector_param() { - vector_param_.Clear(); -} -inline const ::suvlim::grpc::VectorParam& SearchParam::vector_param(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchParam.vector_param) - return vector_param_.Get(index); -} -inline ::suvlim::grpc::VectorParam* SearchParam::mutable_vector_param(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchParam.vector_param) - return vector_param_.Mutable(index); -} -inline ::suvlim::grpc::VectorParam* SearchParam::add_vector_param() { - // @@protoc_insertion_point(field_add:suvlim.grpc.SearchParam.vector_param) - return vector_param_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorParam >* -SearchParam::mutable_vector_param() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.SearchParam.vector_param) - return &vector_param_; -} -inline const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorParam >& -SearchParam::vector_param() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.SearchParam.vector_param) - return vector_param_; -} - -// optional string dsl = 3; -inline void SearchParam::clear_dsl() { - dsl_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SearchParam::dsl() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchParam.dsl) - return dsl_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SearchParam::set_dsl(const ::std::string& value) { - - dsl_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.SearchParam.dsl) -} -inline void SearchParam::set_dsl(const char* value) { - - dsl_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.SearchParam.dsl) -} -inline void SearchParam::set_dsl(const char* value, size_t size) { - - dsl_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.SearchParam.dsl) -} -inline ::std::string* SearchParam::mutable_dsl() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchParam.dsl) - return dsl_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SearchParam::release_dsl() { - // @@protoc_insertion_point(field_release:suvlim.grpc.SearchParam.dsl) - - return dsl_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SearchParam::set_allocated_dsl(::std::string* dsl) { - if (dsl != NULL) { - - } else { - - } - dsl_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), dsl); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.SearchParam.dsl) -} - -// repeated string partition_tag = 4; -inline int SearchParam::partition_tag_size() const { - return partition_tag_.size(); -} -inline void SearchParam::clear_partition_tag() { - partition_tag_.Clear(); -} -inline const ::std::string& SearchParam::partition_tag(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchParam.partition_tag) - return partition_tag_.Get(index); -} -inline ::std::string* SearchParam::mutable_partition_tag(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchParam.partition_tag) - return partition_tag_.Mutable(index); -} -inline void SearchParam::set_partition_tag(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:suvlim.grpc.SearchParam.partition_tag) - partition_tag_.Mutable(index)->assign(value); -} -inline void SearchParam::set_partition_tag(int index, const char* value) { - partition_tag_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.SearchParam.partition_tag) -} -inline void SearchParam::set_partition_tag(int index, const char* value, size_t size) { - partition_tag_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.SearchParam.partition_tag) -} -inline ::std::string* SearchParam::add_partition_tag() { - // @@protoc_insertion_point(field_add_mutable:suvlim.grpc.SearchParam.partition_tag) - return partition_tag_.Add(); -} -inline void SearchParam::add_partition_tag(const ::std::string& value) { - partition_tag_.Add()->assign(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.SearchParam.partition_tag) -} -inline void SearchParam::add_partition_tag(const char* value) { - partition_tag_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:suvlim.grpc.SearchParam.partition_tag) -} -inline void SearchParam::add_partition_tag(const char* value, size_t size) { - partition_tag_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:suvlim.grpc.SearchParam.partition_tag) -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -SearchParam::partition_tag() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.SearchParam.partition_tag) - return partition_tag_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -SearchParam::mutable_partition_tag() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.SearchParam.partition_tag) - return &partition_tag_; -} - -// repeated .suvlim.grpc.KeyValuePair extra_params = 5; -inline int SearchParam::extra_params_size() const { - return extra_params_.size(); -} -inline void SearchParam::clear_extra_params() { - extra_params_.Clear(); -} -inline const ::suvlim::grpc::KeyValuePair& SearchParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchParam.extra_params) - return extra_params_.Get(index); -} -inline ::suvlim::grpc::KeyValuePair* SearchParam::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchParam.extra_params) - return extra_params_.Mutable(index); -} -inline ::suvlim::grpc::KeyValuePair* SearchParam::add_extra_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.SearchParam.extra_params) - return extra_params_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -SearchParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.SearchParam.extra_params) - return &extra_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -SearchParam::extra_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.SearchParam.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// SearchInSegmentParam - -// repeated string file_id_array = 1; -inline int SearchInSegmentParam::file_id_array_size() const { - return file_id_array_.size(); -} -inline void SearchInSegmentParam::clear_file_id_array() { - file_id_array_.Clear(); -} -inline const ::std::string& SearchInSegmentParam::file_id_array(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchInSegmentParam.file_id_array) - return file_id_array_.Get(index); -} -inline ::std::string* SearchInSegmentParam::mutable_file_id_array(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchInSegmentParam.file_id_array) - return file_id_array_.Mutable(index); -} -inline void SearchInSegmentParam::set_file_id_array(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:suvlim.grpc.SearchInSegmentParam.file_id_array) - file_id_array_.Mutable(index)->assign(value); -} -inline void SearchInSegmentParam::set_file_id_array(int index, const char* value) { - file_id_array_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.SearchInSegmentParam.file_id_array) -} -inline void SearchInSegmentParam::set_file_id_array(int index, const char* value, size_t size) { - file_id_array_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.SearchInSegmentParam.file_id_array) -} -inline ::std::string* SearchInSegmentParam::add_file_id_array() { - // @@protoc_insertion_point(field_add_mutable:suvlim.grpc.SearchInSegmentParam.file_id_array) - return file_id_array_.Add(); -} -inline void SearchInSegmentParam::add_file_id_array(const ::std::string& value) { - file_id_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.SearchInSegmentParam.file_id_array) -} -inline void SearchInSegmentParam::add_file_id_array(const char* value) { - file_id_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:suvlim.grpc.SearchInSegmentParam.file_id_array) -} -inline void SearchInSegmentParam::add_file_id_array(const char* value, size_t size) { - file_id_array_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:suvlim.grpc.SearchInSegmentParam.file_id_array) -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -SearchInSegmentParam::file_id_array() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.SearchInSegmentParam.file_id_array) - return file_id_array_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -SearchInSegmentParam::mutable_file_id_array() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.SearchInSegmentParam.file_id_array) - return &file_id_array_; -} - -// optional .suvlim.grpc.SearchParam search_param = 2; -inline bool SearchInSegmentParam::has_search_param() const { - return !_is_default_instance_ && search_param_ != NULL; -} -inline void SearchInSegmentParam::clear_search_param() { - if (GetArenaNoVirtual() == NULL && search_param_ != NULL) delete search_param_; - search_param_ = NULL; -} -inline const ::suvlim::grpc::SearchParam& SearchInSegmentParam::search_param() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchInSegmentParam.search_param) - return search_param_ != NULL ? *search_param_ : *default_instance_->search_param_; -} -inline ::suvlim::grpc::SearchParam* SearchInSegmentParam::mutable_search_param() { - - if (search_param_ == NULL) { - search_param_ = new ::suvlim::grpc::SearchParam; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchInSegmentParam.search_param) - return search_param_; -} -inline ::suvlim::grpc::SearchParam* SearchInSegmentParam::release_search_param() { - // @@protoc_insertion_point(field_release:suvlim.grpc.SearchInSegmentParam.search_param) - - ::suvlim::grpc::SearchParam* temp = search_param_; - search_param_ = NULL; - return temp; -} -inline void SearchInSegmentParam::set_allocated_search_param(::suvlim::grpc::SearchParam* search_param) { - delete search_param_; - search_param_ = search_param; - if (search_param) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.SearchInSegmentParam.search_param) -} - -// ------------------------------------------------------------------- - -// Entities - -// optional .suvlim.grpc.Status status = 1; -inline bool Entities::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -inline void Entities::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -inline const ::suvlim::grpc::Status& Entities::status() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Entities.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::suvlim::grpc::Status* Entities::mutable_status() { - - if (status_ == NULL) { - status_ = new ::suvlim::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.Entities.status) - return status_; -} -inline ::suvlim::grpc::Status* Entities::release_status() { - // @@protoc_insertion_point(field_release:suvlim.grpc.Entities.status) - - ::suvlim::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -inline void Entities::set_allocated_status(::suvlim::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.Entities.status) -} - -// repeated int64 ids = 2; -inline int Entities::ids_size() const { - return ids_.size(); -} -inline void Entities::clear_ids() { - ids_.Clear(); -} -inline ::google::protobuf::int64 Entities::ids(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Entities.ids) - return ids_.Get(index); -} -inline void Entities::set_ids(int index, ::google::protobuf::int64 value) { - ids_.Set(index, value); - // @@protoc_insertion_point(field_set:suvlim.grpc.Entities.ids) -} -inline void Entities::add_ids(::google::protobuf::int64 value) { - ids_.Add(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.Entities.ids) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -Entities::ids() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.Entities.ids) - return ids_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -Entities::mutable_ids() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.Entities.ids) - return &ids_; -} - -// repeated bool valid_row = 3; -inline int Entities::valid_row_size() const { - return valid_row_.size(); -} -inline void Entities::clear_valid_row() { - valid_row_.Clear(); -} -inline bool Entities::valid_row(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Entities.valid_row) - return valid_row_.Get(index); -} -inline void Entities::set_valid_row(int index, bool value) { - valid_row_.Set(index, value); - // @@protoc_insertion_point(field_set:suvlim.grpc.Entities.valid_row) -} -inline void Entities::add_valid_row(bool value) { - valid_row_.Add(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.Entities.valid_row) -} -inline const ::google::protobuf::RepeatedField< bool >& -Entities::valid_row() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.Entities.valid_row) - return valid_row_; -} -inline ::google::protobuf::RepeatedField< bool >* -Entities::mutable_valid_row() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.Entities.valid_row) - return &valid_row_; -} - -// repeated .suvlim.grpc.RowData rows_data = 4; -inline int Entities::rows_data_size() const { - return rows_data_.size(); -} -inline void Entities::clear_rows_data() { - rows_data_.Clear(); -} -inline const ::suvlim::grpc::RowData& Entities::rows_data(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Entities.rows_data) - return rows_data_.Get(index); -} -inline ::suvlim::grpc::RowData* Entities::mutable_rows_data(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.Entities.rows_data) - return rows_data_.Mutable(index); -} -inline ::suvlim::grpc::RowData* Entities::add_rows_data() { - // @@protoc_insertion_point(field_add:suvlim.grpc.Entities.rows_data) - return rows_data_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::RowData >* -Entities::mutable_rows_data() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.Entities.rows_data) - return &rows_data_; -} -inline const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::RowData >& -Entities::rows_data() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.Entities.rows_data) - return rows_data_; -} - -// ------------------------------------------------------------------- - -// QueryResult - -// optional .suvlim.grpc.Status status = 1; -inline bool QueryResult::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -inline void QueryResult::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -inline const ::suvlim::grpc::Status& QueryResult::status() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.QueryResult.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::suvlim::grpc::Status* QueryResult::mutable_status() { - - if (status_ == NULL) { - status_ = new ::suvlim::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.QueryResult.status) - return status_; -} -inline ::suvlim::grpc::Status* QueryResult::release_status() { - // @@protoc_insertion_point(field_release:suvlim.grpc.QueryResult.status) - - ::suvlim::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -inline void QueryResult::set_allocated_status(::suvlim::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.QueryResult.status) -} - -// optional .suvlim.grpc.Entities entities = 2; -inline bool QueryResult::has_entities() const { - return !_is_default_instance_ && entities_ != NULL; -} -inline void QueryResult::clear_entities() { - if (GetArenaNoVirtual() == NULL && entities_ != NULL) delete entities_; - entities_ = NULL; -} -inline const ::suvlim::grpc::Entities& QueryResult::entities() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.QueryResult.entities) - return entities_ != NULL ? *entities_ : *default_instance_->entities_; -} -inline ::suvlim::grpc::Entities* QueryResult::mutable_entities() { - - if (entities_ == NULL) { - entities_ = new ::suvlim::grpc::Entities; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.QueryResult.entities) - return entities_; -} -inline ::suvlim::grpc::Entities* QueryResult::release_entities() { - // @@protoc_insertion_point(field_release:suvlim.grpc.QueryResult.entities) - - ::suvlim::grpc::Entities* temp = entities_; - entities_ = NULL; - return temp; -} -inline void QueryResult::set_allocated_entities(::suvlim::grpc::Entities* entities) { - delete entities_; - entities_ = entities; - if (entities) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.QueryResult.entities) -} - -// optional int64 row_num = 3; -inline void QueryResult::clear_row_num() { - row_num_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 QueryResult::row_num() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.QueryResult.row_num) - return row_num_; -} -inline void QueryResult::set_row_num(::google::protobuf::int64 value) { - - row_num_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.QueryResult.row_num) -} - -// repeated float scores = 4; -inline int QueryResult::scores_size() const { - return scores_.size(); -} -inline void QueryResult::clear_scores() { - scores_.Clear(); -} -inline float QueryResult::scores(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.QueryResult.scores) - return scores_.Get(index); -} -inline void QueryResult::set_scores(int index, float value) { - scores_.Set(index, value); - // @@protoc_insertion_point(field_set:suvlim.grpc.QueryResult.scores) -} -inline void QueryResult::add_scores(float value) { - scores_.Add(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.QueryResult.scores) -} -inline const ::google::protobuf::RepeatedField< float >& -QueryResult::scores() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.QueryResult.scores) - return scores_; -} -inline ::google::protobuf::RepeatedField< float >* -QueryResult::mutable_scores() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.QueryResult.scores) - return &scores_; -} - -// repeated float distances = 5; -inline int QueryResult::distances_size() const { - return distances_.size(); -} -inline void QueryResult::clear_distances() { - distances_.Clear(); -} -inline float QueryResult::distances(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.QueryResult.distances) - return distances_.Get(index); -} -inline void QueryResult::set_distances(int index, float value) { - distances_.Set(index, value); - // @@protoc_insertion_point(field_set:suvlim.grpc.QueryResult.distances) -} -inline void QueryResult::add_distances(float value) { - distances_.Add(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.QueryResult.distances) -} -inline const ::google::protobuf::RepeatedField< float >& -QueryResult::distances() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.QueryResult.distances) - return distances_; -} -inline ::google::protobuf::RepeatedField< float >* -QueryResult::mutable_distances() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.QueryResult.distances) - return &distances_; -} - -// repeated .suvlim.grpc.KeyValuePair extra_params = 6; -inline int QueryResult::extra_params_size() const { - return extra_params_.size(); -} -inline void QueryResult::clear_extra_params() { - extra_params_.Clear(); -} -inline const ::suvlim::grpc::KeyValuePair& QueryResult::extra_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.QueryResult.extra_params) - return extra_params_.Get(index); -} -inline ::suvlim::grpc::KeyValuePair* QueryResult::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.QueryResult.extra_params) - return extra_params_.Mutable(index); -} -inline ::suvlim::grpc::KeyValuePair* QueryResult::add_extra_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.QueryResult.extra_params) - return extra_params_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -QueryResult::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.QueryResult.extra_params) - return &extra_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -QueryResult::extra_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.QueryResult.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// StringReply - -// optional .suvlim.grpc.Status status = 1; -inline bool StringReply::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -inline void StringReply::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -inline const ::suvlim::grpc::Status& StringReply::status() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.StringReply.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::suvlim::grpc::Status* StringReply::mutable_status() { - - if (status_ == NULL) { - status_ = new ::suvlim::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.StringReply.status) - return status_; -} -inline ::suvlim::grpc::Status* StringReply::release_status() { - // @@protoc_insertion_point(field_release:suvlim.grpc.StringReply.status) - - ::suvlim::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -inline void StringReply::set_allocated_status(::suvlim::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.StringReply.status) -} - -// optional string string_reply = 2; -inline void StringReply::clear_string_reply() { - string_reply_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& StringReply::string_reply() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.StringReply.string_reply) - return string_reply_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void StringReply::set_string_reply(const ::std::string& value) { - - string_reply_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.StringReply.string_reply) -} -inline void StringReply::set_string_reply(const char* value) { - - string_reply_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.StringReply.string_reply) -} -inline void StringReply::set_string_reply(const char* value, size_t size) { - - string_reply_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.StringReply.string_reply) -} -inline ::std::string* StringReply::mutable_string_reply() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.StringReply.string_reply) - return string_reply_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* StringReply::release_string_reply() { - // @@protoc_insertion_point(field_release:suvlim.grpc.StringReply.string_reply) - - return string_reply_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void StringReply::set_allocated_string_reply(::std::string* string_reply) { - if (string_reply != NULL) { - - } else { - - } - string_reply_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), string_reply); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.StringReply.string_reply) -} - -// ------------------------------------------------------------------- - -// BoolReply - -// optional .suvlim.grpc.Status status = 1; -inline bool BoolReply::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -inline void BoolReply::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -inline const ::suvlim::grpc::Status& BoolReply::status() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.BoolReply.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::suvlim::grpc::Status* BoolReply::mutable_status() { - - if (status_ == NULL) { - status_ = new ::suvlim::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.BoolReply.status) - return status_; -} -inline ::suvlim::grpc::Status* BoolReply::release_status() { - // @@protoc_insertion_point(field_release:suvlim.grpc.BoolReply.status) - - ::suvlim::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -inline void BoolReply::set_allocated_status(::suvlim::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.BoolReply.status) -} - -// optional bool bool_reply = 2; -inline void BoolReply::clear_bool_reply() { - bool_reply_ = false; -} -inline bool BoolReply::bool_reply() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.BoolReply.bool_reply) - return bool_reply_; -} -inline void BoolReply::set_bool_reply(bool value) { - - bool_reply_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.BoolReply.bool_reply) -} - -// ------------------------------------------------------------------- - -// CollectionRowCount - -// optional .suvlim.grpc.Status status = 1; -inline bool CollectionRowCount::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -inline void CollectionRowCount::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -inline const ::suvlim::grpc::Status& CollectionRowCount::status() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.CollectionRowCount.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::suvlim::grpc::Status* CollectionRowCount::mutable_status() { - - if (status_ == NULL) { - status_ = new ::suvlim::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.CollectionRowCount.status) - return status_; -} -inline ::suvlim::grpc::Status* CollectionRowCount::release_status() { - // @@protoc_insertion_point(field_release:suvlim.grpc.CollectionRowCount.status) - - ::suvlim::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -inline void CollectionRowCount::set_allocated_status(::suvlim::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.CollectionRowCount.status) -} - -// optional int64 collection_row_count = 2; -inline void CollectionRowCount::clear_collection_row_count() { - collection_row_count_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 CollectionRowCount::collection_row_count() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.CollectionRowCount.collection_row_count) - return collection_row_count_; -} -inline void CollectionRowCount::set_collection_row_count(::google::protobuf::int64 value) { - - collection_row_count_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.CollectionRowCount.collection_row_count) -} - -// ------------------------------------------------------------------- - -// Command - -// optional string cmd = 1; -inline void Command::clear_cmd() { - cmd_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Command::cmd() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Command.cmd) - return cmd_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Command::set_cmd(const ::std::string& value) { - - cmd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.Command.cmd) -} -inline void Command::set_cmd(const char* value) { - - cmd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.Command.cmd) -} -inline void Command::set_cmd(const char* value, size_t size) { - - cmd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.Command.cmd) -} -inline ::std::string* Command::mutable_cmd() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.Command.cmd) - return cmd_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Command::release_cmd() { - // @@protoc_insertion_point(field_release:suvlim.grpc.Command.cmd) - - return cmd_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Command::set_allocated_cmd(::std::string* cmd) { - if (cmd != NULL) { - - } else { - - } - cmd_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cmd); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.Command.cmd) -} - -// ------------------------------------------------------------------- - -// IndexParam - -// optional .suvlim.grpc.Status status = 1; -inline bool IndexParam::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -inline void IndexParam::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -inline const ::suvlim::grpc::Status& IndexParam::status() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.IndexParam.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::suvlim::grpc::Status* IndexParam::mutable_status() { - - if (status_ == NULL) { - status_ = new ::suvlim::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.IndexParam.status) - return status_; -} -inline ::suvlim::grpc::Status* IndexParam::release_status() { - // @@protoc_insertion_point(field_release:suvlim.grpc.IndexParam.status) - - ::suvlim::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -inline void IndexParam::set_allocated_status(::suvlim::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.IndexParam.status) -} - -// optional string collection_name = 2; -inline void IndexParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& IndexParam::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.IndexParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void IndexParam::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.IndexParam.collection_name) -} -inline void IndexParam::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.IndexParam.collection_name) -} -inline void IndexParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.IndexParam.collection_name) -} -inline ::std::string* IndexParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.IndexParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* IndexParam::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.IndexParam.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void IndexParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.IndexParam.collection_name) -} - -// optional string field_name = 3; -inline void IndexParam::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& IndexParam::field_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.IndexParam.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void IndexParam::set_field_name(const ::std::string& value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.IndexParam.field_name) -} -inline void IndexParam::set_field_name(const char* value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.IndexParam.field_name) -} -inline void IndexParam::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.IndexParam.field_name) -} -inline ::std::string* IndexParam::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.IndexParam.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* IndexParam::release_field_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.IndexParam.field_name) - - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void IndexParam::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.IndexParam.field_name) -} - -// optional string index_name = 4; -inline void IndexParam::clear_index_name() { - index_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& IndexParam::index_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.IndexParam.index_name) - return index_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void IndexParam::set_index_name(const ::std::string& value) { - - index_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.IndexParam.index_name) -} -inline void IndexParam::set_index_name(const char* value) { - - index_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.IndexParam.index_name) -} -inline void IndexParam::set_index_name(const char* value, size_t size) { - - index_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.IndexParam.index_name) -} -inline ::std::string* IndexParam::mutable_index_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.IndexParam.index_name) - return index_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* IndexParam::release_index_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.IndexParam.index_name) - - return index_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void IndexParam::set_allocated_index_name(::std::string* index_name) { - if (index_name != NULL) { - - } else { - - } - index_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), index_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.IndexParam.index_name) -} - -// repeated .suvlim.grpc.KeyValuePair extra_params = 5; -inline int IndexParam::extra_params_size() const { - return extra_params_.size(); -} -inline void IndexParam::clear_extra_params() { - extra_params_.Clear(); -} -inline const ::suvlim::grpc::KeyValuePair& IndexParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.IndexParam.extra_params) - return extra_params_.Get(index); -} -inline ::suvlim::grpc::KeyValuePair* IndexParam::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.IndexParam.extra_params) - return extra_params_.Mutable(index); -} -inline ::suvlim::grpc::KeyValuePair* IndexParam::add_extra_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.IndexParam.extra_params) - return extra_params_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -IndexParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.IndexParam.extra_params) - return &extra_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -IndexParam::extra_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.IndexParam.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// FlushParam - -// repeated string collection_name_array = 1; -inline int FlushParam::collection_name_array_size() const { - return collection_name_array_.size(); -} -inline void FlushParam::clear_collection_name_array() { - collection_name_array_.Clear(); -} -inline const ::std::string& FlushParam::collection_name_array(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FlushParam.collection_name_array) - return collection_name_array_.Get(index); -} -inline ::std::string* FlushParam::mutable_collection_name_array(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.FlushParam.collection_name_array) - return collection_name_array_.Mutable(index); -} -inline void FlushParam::set_collection_name_array(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:suvlim.grpc.FlushParam.collection_name_array) - collection_name_array_.Mutable(index)->assign(value); -} -inline void FlushParam::set_collection_name_array(int index, const char* value) { - collection_name_array_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.FlushParam.collection_name_array) -} -inline void FlushParam::set_collection_name_array(int index, const char* value, size_t size) { - collection_name_array_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.FlushParam.collection_name_array) -} -inline ::std::string* FlushParam::add_collection_name_array() { - // @@protoc_insertion_point(field_add_mutable:suvlim.grpc.FlushParam.collection_name_array) - return collection_name_array_.Add(); -} -inline void FlushParam::add_collection_name_array(const ::std::string& value) { - collection_name_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.FlushParam.collection_name_array) -} -inline void FlushParam::add_collection_name_array(const char* value) { - collection_name_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:suvlim.grpc.FlushParam.collection_name_array) -} -inline void FlushParam::add_collection_name_array(const char* value, size_t size) { - collection_name_array_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:suvlim.grpc.FlushParam.collection_name_array) -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -FlushParam::collection_name_array() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.FlushParam.collection_name_array) - return collection_name_array_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -FlushParam::mutable_collection_name_array() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.FlushParam.collection_name_array) - return &collection_name_array_; -} - -// ------------------------------------------------------------------- - -// CompactParam - -// optional string collection_name = 1; -inline void CompactParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CompactParam::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.CompactParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CompactParam::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.CompactParam.collection_name) -} -inline void CompactParam::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.CompactParam.collection_name) -} -inline void CompactParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.CompactParam.collection_name) -} -inline ::std::string* CompactParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.CompactParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CompactParam::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.CompactParam.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CompactParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.CompactParam.collection_name) -} - -// optional double threshold = 2; -inline void CompactParam::clear_threshold() { - threshold_ = 0; -} -inline double CompactParam::threshold() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.CompactParam.threshold) - return threshold_; -} -inline void CompactParam::set_threshold(double value) { - - threshold_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.CompactParam.threshold) -} - -// ------------------------------------------------------------------- - -// DeleteByIDParam - -// optional string collection_name = 1; -inline void DeleteByIDParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DeleteByIDParam::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.DeleteByIDParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DeleteByIDParam::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.DeleteByIDParam.collection_name) -} -inline void DeleteByIDParam::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.DeleteByIDParam.collection_name) -} -inline void DeleteByIDParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.DeleteByIDParam.collection_name) -} -inline ::std::string* DeleteByIDParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.DeleteByIDParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DeleteByIDParam::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.DeleteByIDParam.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DeleteByIDParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.DeleteByIDParam.collection_name) -} - -// repeated int64 id_array = 2; -inline int DeleteByIDParam::id_array_size() const { - return id_array_.size(); -} -inline void DeleteByIDParam::clear_id_array() { - id_array_.Clear(); -} -inline ::google::protobuf::int64 DeleteByIDParam::id_array(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.DeleteByIDParam.id_array) - return id_array_.Get(index); -} -inline void DeleteByIDParam::set_id_array(int index, ::google::protobuf::int64 value) { - id_array_.Set(index, value); - // @@protoc_insertion_point(field_set:suvlim.grpc.DeleteByIDParam.id_array) -} -inline void DeleteByIDParam::add_id_array(::google::protobuf::int64 value) { - id_array_.Add(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.DeleteByIDParam.id_array) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -DeleteByIDParam::id_array() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.DeleteByIDParam.id_array) - return id_array_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -DeleteByIDParam::mutable_id_array() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.DeleteByIDParam.id_array) - return &id_array_; -} - -// ------------------------------------------------------------------- - -// CollectionInfo - -// optional .suvlim.grpc.Status status = 1; -inline bool CollectionInfo::has_status() const { - return !_is_default_instance_ && status_ != NULL; -} -inline void CollectionInfo::clear_status() { - if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; - status_ = NULL; -} -inline const ::suvlim::grpc::Status& CollectionInfo::status() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.CollectionInfo.status) - return status_ != NULL ? *status_ : *default_instance_->status_; -} -inline ::suvlim::grpc::Status* CollectionInfo::mutable_status() { - - if (status_ == NULL) { - status_ = new ::suvlim::grpc::Status; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.CollectionInfo.status) - return status_; -} -inline ::suvlim::grpc::Status* CollectionInfo::release_status() { - // @@protoc_insertion_point(field_release:suvlim.grpc.CollectionInfo.status) - - ::suvlim::grpc::Status* temp = status_; - status_ = NULL; - return temp; -} -inline void CollectionInfo::set_allocated_status(::suvlim::grpc::Status* status) { - delete status_; - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.CollectionInfo.status) -} - -// optional string json_info = 2; -inline void CollectionInfo::clear_json_info() { - json_info_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CollectionInfo::json_info() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.CollectionInfo.json_info) - return json_info_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CollectionInfo::set_json_info(const ::std::string& value) { - - json_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.CollectionInfo.json_info) -} -inline void CollectionInfo::set_json_info(const char* value) { - - json_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.CollectionInfo.json_info) -} -inline void CollectionInfo::set_json_info(const char* value, size_t size) { - - json_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.CollectionInfo.json_info) -} -inline ::std::string* CollectionInfo::mutable_json_info() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.CollectionInfo.json_info) - return json_info_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CollectionInfo::release_json_info() { - // @@protoc_insertion_point(field_release:suvlim.grpc.CollectionInfo.json_info) - - return json_info_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CollectionInfo::set_allocated_json_info(::std::string* json_info) { - if (json_info != NULL) { - - } else { - - } - json_info_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json_info); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.CollectionInfo.json_info) -} - -// ------------------------------------------------------------------- - -// GetEntityIDsParam - -// optional string collection_name = 1; -inline void GetEntityIDsParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& GetEntityIDsParam::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.GetEntityIDsParam.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void GetEntityIDsParam::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.GetEntityIDsParam.collection_name) -} -inline void GetEntityIDsParam::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.GetEntityIDsParam.collection_name) -} -inline void GetEntityIDsParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.GetEntityIDsParam.collection_name) -} -inline ::std::string* GetEntityIDsParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.GetEntityIDsParam.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* GetEntityIDsParam::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.GetEntityIDsParam.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void GetEntityIDsParam::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.GetEntityIDsParam.collection_name) -} - -// optional int64 segment_id = 2; -inline void GetEntityIDsParam::clear_segment_id() { - segment_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 GetEntityIDsParam::segment_id() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.GetEntityIDsParam.segment_id) - return segment_id_; -} -inline void GetEntityIDsParam::set_segment_id(::google::protobuf::int64 value) { - - segment_id_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.GetEntityIDsParam.segment_id) -} - -// ------------------------------------------------------------------- - -// EntityIdentity - -// optional string collection_name = 1; -inline void EntityIdentity::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& EntityIdentity::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.EntityIdentity.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void EntityIdentity::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.EntityIdentity.collection_name) -} -inline void EntityIdentity::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.EntityIdentity.collection_name) -} -inline void EntityIdentity::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.EntityIdentity.collection_name) -} -inline ::std::string* EntityIdentity::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.EntityIdentity.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* EntityIdentity::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.EntityIdentity.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void EntityIdentity::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.EntityIdentity.collection_name) -} - -// repeated int64 id_array = 2; -inline int EntityIdentity::id_array_size() const { - return id_array_.size(); -} -inline void EntityIdentity::clear_id_array() { - id_array_.Clear(); -} -inline ::google::protobuf::int64 EntityIdentity::id_array(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.EntityIdentity.id_array) - return id_array_.Get(index); -} -inline void EntityIdentity::set_id_array(int index, ::google::protobuf::int64 value) { - id_array_.Set(index, value); - // @@protoc_insertion_point(field_set:suvlim.grpc.EntityIdentity.id_array) -} -inline void EntityIdentity::add_id_array(::google::protobuf::int64 value) { - id_array_.Add(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.EntityIdentity.id_array) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -EntityIdentity::id_array() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.EntityIdentity.id_array) - return id_array_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -EntityIdentity::mutable_id_array() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.EntityIdentity.id_array) - return &id_array_; -} - -// repeated string field_names = 3; -inline int EntityIdentity::field_names_size() const { - return field_names_.size(); -} -inline void EntityIdentity::clear_field_names() { - field_names_.Clear(); -} -inline const ::std::string& EntityIdentity::field_names(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.EntityIdentity.field_names) - return field_names_.Get(index); -} -inline ::std::string* EntityIdentity::mutable_field_names(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.EntityIdentity.field_names) - return field_names_.Mutable(index); -} -inline void EntityIdentity::set_field_names(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:suvlim.grpc.EntityIdentity.field_names) - field_names_.Mutable(index)->assign(value); -} -inline void EntityIdentity::set_field_names(int index, const char* value) { - field_names_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.EntityIdentity.field_names) -} -inline void EntityIdentity::set_field_names(int index, const char* value, size_t size) { - field_names_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.EntityIdentity.field_names) -} -inline ::std::string* EntityIdentity::add_field_names() { - // @@protoc_insertion_point(field_add_mutable:suvlim.grpc.EntityIdentity.field_names) - return field_names_.Add(); -} -inline void EntityIdentity::add_field_names(const ::std::string& value) { - field_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.EntityIdentity.field_names) -} -inline void EntityIdentity::add_field_names(const char* value) { - field_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:suvlim.grpc.EntityIdentity.field_names) -} -inline void EntityIdentity::add_field_names(const char* value, size_t size) { - field_names_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:suvlim.grpc.EntityIdentity.field_names) -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -EntityIdentity::field_names() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.EntityIdentity.field_names) - return field_names_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -EntityIdentity::mutable_field_names() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.EntityIdentity.field_names) - return &field_names_; -} - -// ------------------------------------------------------------------- - -// VectorFieldParam - -// optional int64 dimension = 1; -inline void VectorFieldParam::clear_dimension() { - dimension_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 VectorFieldParam::dimension() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.VectorFieldParam.dimension) - return dimension_; -} -inline void VectorFieldParam::set_dimension(::google::protobuf::int64 value) { - - dimension_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.VectorFieldParam.dimension) -} - -// ------------------------------------------------------------------- - -// FieldType - -// optional .suvlim.grpc.DataType data_type = 1; -inline bool FieldType::has_data_type() const { - return value_case() == kDataType; -} -inline void FieldType::set_has_data_type() { - _oneof_case_[0] = kDataType; -} -inline void FieldType::clear_data_type() { - if (has_data_type()) { - value_.data_type_ = 0; - clear_has_value(); - } -} -inline ::suvlim::grpc::DataType FieldType::data_type() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FieldType.data_type) - if (has_data_type()) { - return static_cast< ::suvlim::grpc::DataType >(value_.data_type_); - } - return static_cast< ::suvlim::grpc::DataType >(0); -} -inline void FieldType::set_data_type(::suvlim::grpc::DataType value) { - if (!has_data_type()) { - clear_value(); - set_has_data_type(); - } - value_.data_type_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.FieldType.data_type) -} - -// optional .suvlim.grpc.VectorFieldParam vector_param = 2; -inline bool FieldType::has_vector_param() const { - return value_case() == kVectorParam; -} -inline void FieldType::set_has_vector_param() { - _oneof_case_[0] = kVectorParam; -} -inline void FieldType::clear_vector_param() { - if (has_vector_param()) { - delete value_.vector_param_; - clear_has_value(); - } -} -inline const ::suvlim::grpc::VectorFieldParam& FieldType::vector_param() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FieldType.vector_param) - return has_vector_param() - ? *value_.vector_param_ - : ::suvlim::grpc::VectorFieldParam::default_instance(); -} -inline ::suvlim::grpc::VectorFieldParam* FieldType::mutable_vector_param() { - if (!has_vector_param()) { - clear_value(); - set_has_vector_param(); - value_.vector_param_ = new ::suvlim::grpc::VectorFieldParam; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.FieldType.vector_param) - return value_.vector_param_; -} -inline ::suvlim::grpc::VectorFieldParam* FieldType::release_vector_param() { - // @@protoc_insertion_point(field_release:suvlim.grpc.FieldType.vector_param) - if (has_vector_param()) { - clear_has_value(); - ::suvlim::grpc::VectorFieldParam* temp = value_.vector_param_; - value_.vector_param_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void FieldType::set_allocated_vector_param(::suvlim::grpc::VectorFieldParam* vector_param) { - clear_value(); - if (vector_param) { - set_has_vector_param(); - value_.vector_param_ = vector_param; - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.FieldType.vector_param) -} - -inline bool FieldType::has_value() const { - return value_case() != VALUE_NOT_SET; -} -inline void FieldType::clear_has_value() { - _oneof_case_[0] = VALUE_NOT_SET; -} -inline FieldType::ValueCase FieldType::value_case() const { - return FieldType::ValueCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// FieldParam - -// optional uint64 id = 1; -inline void FieldParam::clear_id() { - id_ = GOOGLE_ULONGLONG(0); -} -inline ::google::protobuf::uint64 FieldParam::id() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FieldParam.id) - return id_; -} -inline void FieldParam::set_id(::google::protobuf::uint64 value) { - - id_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.FieldParam.id) -} - -// optional string name = 2; -inline void FieldParam::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& FieldParam::name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FieldParam.name) - return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void FieldParam::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.FieldParam.name) -} -inline void FieldParam::set_name(const char* value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.FieldParam.name) -} -inline void FieldParam::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.FieldParam.name) -} -inline ::std::string* FieldParam::mutable_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.FieldParam.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* FieldParam::release_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.FieldParam.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void FieldParam::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.FieldParam.name) -} - -// optional .suvlim.grpc.DataType type = 3; -inline void FieldParam::clear_type() { - type_ = 0; -} -inline ::suvlim::grpc::DataType FieldParam::type() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FieldParam.type) - return static_cast< ::suvlim::grpc::DataType >(type_); -} -inline void FieldParam::set_type(::suvlim::grpc::DataType value) { - - type_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.FieldParam.type) -} - -// repeated .suvlim.grpc.KeyValuePair index_params = 4; -inline int FieldParam::index_params_size() const { - return index_params_.size(); -} -inline void FieldParam::clear_index_params() { - index_params_.Clear(); -} -inline const ::suvlim::grpc::KeyValuePair& FieldParam::index_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FieldParam.index_params) - return index_params_.Get(index); -} -inline ::suvlim::grpc::KeyValuePair* FieldParam::mutable_index_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.FieldParam.index_params) - return index_params_.Mutable(index); -} -inline ::suvlim::grpc::KeyValuePair* FieldParam::add_index_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.FieldParam.index_params) - return index_params_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -FieldParam::mutable_index_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.FieldParam.index_params) - return &index_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -FieldParam::index_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.FieldParam.index_params) - return index_params_; -} - -// repeated .suvlim.grpc.KeyValuePair extra_params = 5; -inline int FieldParam::extra_params_size() const { - return extra_params_.size(); -} -inline void FieldParam::clear_extra_params() { - extra_params_.Clear(); -} -inline const ::suvlim::grpc::KeyValuePair& FieldParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.FieldParam.extra_params) - return extra_params_.Get(index); -} -inline ::suvlim::grpc::KeyValuePair* FieldParam::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.FieldParam.extra_params) - return extra_params_.Mutable(index); -} -inline ::suvlim::grpc::KeyValuePair* FieldParam::add_extra_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.FieldParam.extra_params) - return extra_params_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -FieldParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.FieldParam.extra_params) - return &extra_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -FieldParam::extra_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.FieldParam.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// VectorFieldRecord - -// repeated .suvlim.grpc.VectorRowRecord value = 1; -inline int VectorFieldRecord::value_size() const { - return value_.size(); -} -inline void VectorFieldRecord::clear_value() { - value_.Clear(); -} -inline const ::suvlim::grpc::VectorRowRecord& VectorFieldRecord::value(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.VectorFieldRecord.value) - return value_.Get(index); -} -inline ::suvlim::grpc::VectorRowRecord* VectorFieldRecord::mutable_value(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.VectorFieldRecord.value) - return value_.Mutable(index); -} -inline ::suvlim::grpc::VectorRowRecord* VectorFieldRecord::add_value() { - // @@protoc_insertion_point(field_add:suvlim.grpc.VectorFieldRecord.value) - return value_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorRowRecord >* -VectorFieldRecord::mutable_value() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.VectorFieldRecord.value) - return &value_; -} -inline const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorRowRecord >& -VectorFieldRecord::value() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.VectorFieldRecord.value) - return value_; -} - -// ------------------------------------------------------------------- - -// TermQuery - -// optional string field_name = 1; -inline void TermQuery::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TermQuery::field_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.TermQuery.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TermQuery::set_field_name(const ::std::string& value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.TermQuery.field_name) -} -inline void TermQuery::set_field_name(const char* value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.TermQuery.field_name) -} -inline void TermQuery::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.TermQuery.field_name) -} -inline ::std::string* TermQuery::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.TermQuery.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TermQuery::release_field_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.TermQuery.field_name) - - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TermQuery::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.TermQuery.field_name) -} - -// repeated int64 int_value = 2; -inline int TermQuery::int_value_size() const { - return int_value_.size(); -} -inline void TermQuery::clear_int_value() { - int_value_.Clear(); -} -inline ::google::protobuf::int64 TermQuery::int_value(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.TermQuery.int_value) - return int_value_.Get(index); -} -inline void TermQuery::set_int_value(int index, ::google::protobuf::int64 value) { - int_value_.Set(index, value); - // @@protoc_insertion_point(field_set:suvlim.grpc.TermQuery.int_value) -} -inline void TermQuery::add_int_value(::google::protobuf::int64 value) { - int_value_.Add(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.TermQuery.int_value) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -TermQuery::int_value() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.TermQuery.int_value) - return int_value_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -TermQuery::mutable_int_value() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.TermQuery.int_value) - return &int_value_; -} - -// repeated double double_value = 3; -inline int TermQuery::double_value_size() const { - return double_value_.size(); -} -inline void TermQuery::clear_double_value() { - double_value_.Clear(); -} -inline double TermQuery::double_value(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.TermQuery.double_value) - return double_value_.Get(index); -} -inline void TermQuery::set_double_value(int index, double value) { - double_value_.Set(index, value); - // @@protoc_insertion_point(field_set:suvlim.grpc.TermQuery.double_value) -} -inline void TermQuery::add_double_value(double value) { - double_value_.Add(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.TermQuery.double_value) -} -inline const ::google::protobuf::RepeatedField< double >& -TermQuery::double_value() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.TermQuery.double_value) - return double_value_; -} -inline ::google::protobuf::RepeatedField< double >* -TermQuery::mutable_double_value() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.TermQuery.double_value) - return &double_value_; -} - -// optional int64 value_num = 4; -inline void TermQuery::clear_value_num() { - value_num_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 TermQuery::value_num() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.TermQuery.value_num) - return value_num_; -} -inline void TermQuery::set_value_num(::google::protobuf::int64 value) { - - value_num_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.TermQuery.value_num) -} - -// optional float boost = 5; -inline void TermQuery::clear_boost() { - boost_ = 0; -} -inline float TermQuery::boost() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.TermQuery.boost) - return boost_; -} -inline void TermQuery::set_boost(float value) { - - boost_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.TermQuery.boost) -} - -// repeated .suvlim.grpc.KeyValuePair extra_params = 6; -inline int TermQuery::extra_params_size() const { - return extra_params_.size(); -} -inline void TermQuery::clear_extra_params() { - extra_params_.Clear(); -} -inline const ::suvlim::grpc::KeyValuePair& TermQuery::extra_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.TermQuery.extra_params) - return extra_params_.Get(index); -} -inline ::suvlim::grpc::KeyValuePair* TermQuery::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.TermQuery.extra_params) - return extra_params_.Mutable(index); -} -inline ::suvlim::grpc::KeyValuePair* TermQuery::add_extra_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.TermQuery.extra_params) - return extra_params_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -TermQuery::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.TermQuery.extra_params) - return &extra_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -TermQuery::extra_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.TermQuery.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// CompareExpr - -// optional .suvlim.grpc.CompareOperator operator = 1; -inline void CompareExpr::clear_operator_() { - operator__ = 0; -} -inline ::suvlim::grpc::CompareOperator CompareExpr::operator_() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.CompareExpr.operator) - return static_cast< ::suvlim::grpc::CompareOperator >(operator__); -} -inline void CompareExpr::set_operator_(::suvlim::grpc::CompareOperator value) { - - operator__ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.CompareExpr.operator) -} - -// optional string operand = 2; -inline void CompareExpr::clear_operand() { - operand_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CompareExpr::operand() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.CompareExpr.operand) - return operand_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CompareExpr::set_operand(const ::std::string& value) { - - operand_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.CompareExpr.operand) -} -inline void CompareExpr::set_operand(const char* value) { - - operand_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.CompareExpr.operand) -} -inline void CompareExpr::set_operand(const char* value, size_t size) { - - operand_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.CompareExpr.operand) -} -inline ::std::string* CompareExpr::mutable_operand() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.CompareExpr.operand) - return operand_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CompareExpr::release_operand() { - // @@protoc_insertion_point(field_release:suvlim.grpc.CompareExpr.operand) - - return operand_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CompareExpr::set_allocated_operand(::std::string* operand) { - if (operand != NULL) { - - } else { - - } - operand_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), operand); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.CompareExpr.operand) -} - -// ------------------------------------------------------------------- - -// RangeQuery - -// optional string field_name = 1; -inline void RangeQuery::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& RangeQuery::field_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.RangeQuery.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void RangeQuery::set_field_name(const ::std::string& value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.RangeQuery.field_name) -} -inline void RangeQuery::set_field_name(const char* value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.RangeQuery.field_name) -} -inline void RangeQuery::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.RangeQuery.field_name) -} -inline ::std::string* RangeQuery::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.RangeQuery.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* RangeQuery::release_field_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.RangeQuery.field_name) - - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void RangeQuery::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.RangeQuery.field_name) -} - -// repeated .suvlim.grpc.CompareExpr operand = 2; -inline int RangeQuery::operand_size() const { - return operand_.size(); -} -inline void RangeQuery::clear_operand() { - operand_.Clear(); -} -inline const ::suvlim::grpc::CompareExpr& RangeQuery::operand(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.RangeQuery.operand) - return operand_.Get(index); -} -inline ::suvlim::grpc::CompareExpr* RangeQuery::mutable_operand(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.RangeQuery.operand) - return operand_.Mutable(index); -} -inline ::suvlim::grpc::CompareExpr* RangeQuery::add_operand() { - // @@protoc_insertion_point(field_add:suvlim.grpc.RangeQuery.operand) - return operand_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::CompareExpr >* -RangeQuery::mutable_operand() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.RangeQuery.operand) - return &operand_; -} -inline const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::CompareExpr >& -RangeQuery::operand() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.RangeQuery.operand) - return operand_; -} - -// optional float boost = 3; -inline void RangeQuery::clear_boost() { - boost_ = 0; -} -inline float RangeQuery::boost() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.RangeQuery.boost) - return boost_; -} -inline void RangeQuery::set_boost(float value) { - - boost_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.RangeQuery.boost) -} - -// repeated .suvlim.grpc.KeyValuePair extra_params = 4; -inline int RangeQuery::extra_params_size() const { - return extra_params_.size(); -} -inline void RangeQuery::clear_extra_params() { - extra_params_.Clear(); -} -inline const ::suvlim::grpc::KeyValuePair& RangeQuery::extra_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.RangeQuery.extra_params) - return extra_params_.Get(index); -} -inline ::suvlim::grpc::KeyValuePair* RangeQuery::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.RangeQuery.extra_params) - return extra_params_.Mutable(index); -} -inline ::suvlim::grpc::KeyValuePair* RangeQuery::add_extra_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.RangeQuery.extra_params) - return extra_params_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -RangeQuery::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.RangeQuery.extra_params) - return &extra_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -RangeQuery::extra_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.RangeQuery.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// VectorQuery - -// optional string field_name = 1; -inline void VectorQuery::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& VectorQuery::field_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.VectorQuery.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void VectorQuery::set_field_name(const ::std::string& value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.VectorQuery.field_name) -} -inline void VectorQuery::set_field_name(const char* value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.VectorQuery.field_name) -} -inline void VectorQuery::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.VectorQuery.field_name) -} -inline ::std::string* VectorQuery::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.VectorQuery.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* VectorQuery::release_field_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.VectorQuery.field_name) - - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void VectorQuery::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.VectorQuery.field_name) -} - -// optional float query_boost = 2; -inline void VectorQuery::clear_query_boost() { - query_boost_ = 0; -} -inline float VectorQuery::query_boost() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.VectorQuery.query_boost) - return query_boost_; -} -inline void VectorQuery::set_query_boost(float value) { - - query_boost_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.VectorQuery.query_boost) -} - -// repeated .suvlim.grpc.VectorRowRecord records = 3; -inline int VectorQuery::records_size() const { - return records_.size(); -} -inline void VectorQuery::clear_records() { - records_.Clear(); -} -inline const ::suvlim::grpc::VectorRowRecord& VectorQuery::records(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.VectorQuery.records) - return records_.Get(index); -} -inline ::suvlim::grpc::VectorRowRecord* VectorQuery::mutable_records(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.VectorQuery.records) - return records_.Mutable(index); -} -inline ::suvlim::grpc::VectorRowRecord* VectorQuery::add_records() { - // @@protoc_insertion_point(field_add:suvlim.grpc.VectorQuery.records) - return records_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorRowRecord >* -VectorQuery::mutable_records() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.VectorQuery.records) - return &records_; -} -inline const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::VectorRowRecord >& -VectorQuery::records() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.VectorQuery.records) - return records_; -} - -// optional int64 topk = 4; -inline void VectorQuery::clear_topk() { - topk_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 VectorQuery::topk() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.VectorQuery.topk) - return topk_; -} -inline void VectorQuery::set_topk(::google::protobuf::int64 value) { - - topk_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.VectorQuery.topk) -} - -// repeated .suvlim.grpc.KeyValuePair extra_params = 5; -inline int VectorQuery::extra_params_size() const { - return extra_params_.size(); -} -inline void VectorQuery::clear_extra_params() { - extra_params_.Clear(); -} -inline const ::suvlim::grpc::KeyValuePair& VectorQuery::extra_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.VectorQuery.extra_params) - return extra_params_.Get(index); -} -inline ::suvlim::grpc::KeyValuePair* VectorQuery::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.VectorQuery.extra_params) - return extra_params_.Mutable(index); -} -inline ::suvlim::grpc::KeyValuePair* VectorQuery::add_extra_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.VectorQuery.extra_params) - return extra_params_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -VectorQuery::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.VectorQuery.extra_params) - return &extra_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -VectorQuery::extra_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.VectorQuery.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// BooleanQuery - -// optional .suvlim.grpc.Occur occur = 1; -inline void BooleanQuery::clear_occur() { - occur_ = 0; -} -inline ::suvlim::grpc::Occur BooleanQuery::occur() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.BooleanQuery.occur) - return static_cast< ::suvlim::grpc::Occur >(occur_); -} -inline void BooleanQuery::set_occur(::suvlim::grpc::Occur value) { - - occur_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.BooleanQuery.occur) -} - -// repeated .suvlim.grpc.GeneralQuery general_query = 2; -inline int BooleanQuery::general_query_size() const { - return general_query_.size(); -} -inline void BooleanQuery::clear_general_query() { - general_query_.Clear(); -} -inline const ::suvlim::grpc::GeneralQuery& BooleanQuery::general_query(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.BooleanQuery.general_query) - return general_query_.Get(index); -} -inline ::suvlim::grpc::GeneralQuery* BooleanQuery::mutable_general_query(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.BooleanQuery.general_query) - return general_query_.Mutable(index); -} -inline ::suvlim::grpc::GeneralQuery* BooleanQuery::add_general_query() { - // @@protoc_insertion_point(field_add:suvlim.grpc.BooleanQuery.general_query) - return general_query_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::GeneralQuery >* -BooleanQuery::mutable_general_query() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.BooleanQuery.general_query) - return &general_query_; -} -inline const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::GeneralQuery >& -BooleanQuery::general_query() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.BooleanQuery.general_query) - return general_query_; -} - -// ------------------------------------------------------------------- - -// GeneralQuery - -// optional .suvlim.grpc.BooleanQuery boolean_query = 1; -inline bool GeneralQuery::has_boolean_query() const { - return query_case() == kBooleanQuery; -} -inline void GeneralQuery::set_has_boolean_query() { - _oneof_case_[0] = kBooleanQuery; -} -inline void GeneralQuery::clear_boolean_query() { - if (has_boolean_query()) { - delete query_.boolean_query_; - clear_has_query(); - } -} -inline const ::suvlim::grpc::BooleanQuery& GeneralQuery::boolean_query() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.GeneralQuery.boolean_query) - return has_boolean_query() - ? *query_.boolean_query_ - : ::suvlim::grpc::BooleanQuery::default_instance(); -} -inline ::suvlim::grpc::BooleanQuery* GeneralQuery::mutable_boolean_query() { - if (!has_boolean_query()) { - clear_query(); - set_has_boolean_query(); - query_.boolean_query_ = new ::suvlim::grpc::BooleanQuery; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.GeneralQuery.boolean_query) - return query_.boolean_query_; -} -inline ::suvlim::grpc::BooleanQuery* GeneralQuery::release_boolean_query() { - // @@protoc_insertion_point(field_release:suvlim.grpc.GeneralQuery.boolean_query) - if (has_boolean_query()) { - clear_has_query(); - ::suvlim::grpc::BooleanQuery* temp = query_.boolean_query_; - query_.boolean_query_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void GeneralQuery::set_allocated_boolean_query(::suvlim::grpc::BooleanQuery* boolean_query) { - clear_query(); - if (boolean_query) { - set_has_boolean_query(); - query_.boolean_query_ = boolean_query; - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.GeneralQuery.boolean_query) -} - -// optional .suvlim.grpc.TermQuery term_query = 2; -inline bool GeneralQuery::has_term_query() const { - return query_case() == kTermQuery; -} -inline void GeneralQuery::set_has_term_query() { - _oneof_case_[0] = kTermQuery; -} -inline void GeneralQuery::clear_term_query() { - if (has_term_query()) { - delete query_.term_query_; - clear_has_query(); - } -} -inline const ::suvlim::grpc::TermQuery& GeneralQuery::term_query() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.GeneralQuery.term_query) - return has_term_query() - ? *query_.term_query_ - : ::suvlim::grpc::TermQuery::default_instance(); -} -inline ::suvlim::grpc::TermQuery* GeneralQuery::mutable_term_query() { - if (!has_term_query()) { - clear_query(); - set_has_term_query(); - query_.term_query_ = new ::suvlim::grpc::TermQuery; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.GeneralQuery.term_query) - return query_.term_query_; -} -inline ::suvlim::grpc::TermQuery* GeneralQuery::release_term_query() { - // @@protoc_insertion_point(field_release:suvlim.grpc.GeneralQuery.term_query) - if (has_term_query()) { - clear_has_query(); - ::suvlim::grpc::TermQuery* temp = query_.term_query_; - query_.term_query_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void GeneralQuery::set_allocated_term_query(::suvlim::grpc::TermQuery* term_query) { - clear_query(); - if (term_query) { - set_has_term_query(); - query_.term_query_ = term_query; - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.GeneralQuery.term_query) -} - -// optional .suvlim.grpc.RangeQuery range_query = 3; -inline bool GeneralQuery::has_range_query() const { - return query_case() == kRangeQuery; -} -inline void GeneralQuery::set_has_range_query() { - _oneof_case_[0] = kRangeQuery; -} -inline void GeneralQuery::clear_range_query() { - if (has_range_query()) { - delete query_.range_query_; - clear_has_query(); - } -} -inline const ::suvlim::grpc::RangeQuery& GeneralQuery::range_query() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.GeneralQuery.range_query) - return has_range_query() - ? *query_.range_query_ - : ::suvlim::grpc::RangeQuery::default_instance(); -} -inline ::suvlim::grpc::RangeQuery* GeneralQuery::mutable_range_query() { - if (!has_range_query()) { - clear_query(); - set_has_range_query(); - query_.range_query_ = new ::suvlim::grpc::RangeQuery; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.GeneralQuery.range_query) - return query_.range_query_; -} -inline ::suvlim::grpc::RangeQuery* GeneralQuery::release_range_query() { - // @@protoc_insertion_point(field_release:suvlim.grpc.GeneralQuery.range_query) - if (has_range_query()) { - clear_has_query(); - ::suvlim::grpc::RangeQuery* temp = query_.range_query_; - query_.range_query_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void GeneralQuery::set_allocated_range_query(::suvlim::grpc::RangeQuery* range_query) { - clear_query(); - if (range_query) { - set_has_range_query(); - query_.range_query_ = range_query; - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.GeneralQuery.range_query) -} - -// optional .suvlim.grpc.VectorQuery vector_query = 4; -inline bool GeneralQuery::has_vector_query() const { - return query_case() == kVectorQuery; -} -inline void GeneralQuery::set_has_vector_query() { - _oneof_case_[0] = kVectorQuery; -} -inline void GeneralQuery::clear_vector_query() { - if (has_vector_query()) { - delete query_.vector_query_; - clear_has_query(); - } -} -inline const ::suvlim::grpc::VectorQuery& GeneralQuery::vector_query() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.GeneralQuery.vector_query) - return has_vector_query() - ? *query_.vector_query_ - : ::suvlim::grpc::VectorQuery::default_instance(); -} -inline ::suvlim::grpc::VectorQuery* GeneralQuery::mutable_vector_query() { - if (!has_vector_query()) { - clear_query(); - set_has_vector_query(); - query_.vector_query_ = new ::suvlim::grpc::VectorQuery; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.GeneralQuery.vector_query) - return query_.vector_query_; -} -inline ::suvlim::grpc::VectorQuery* GeneralQuery::release_vector_query() { - // @@protoc_insertion_point(field_release:suvlim.grpc.GeneralQuery.vector_query) - if (has_vector_query()) { - clear_has_query(); - ::suvlim::grpc::VectorQuery* temp = query_.vector_query_; - query_.vector_query_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void GeneralQuery::set_allocated_vector_query(::suvlim::grpc::VectorQuery* vector_query) { - clear_query(); - if (vector_query) { - set_has_vector_query(); - query_.vector_query_ = vector_query; - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.GeneralQuery.vector_query) -} - -inline bool GeneralQuery::has_query() const { - return query_case() != QUERY_NOT_SET; -} -inline void GeneralQuery::clear_has_query() { - _oneof_case_[0] = QUERY_NOT_SET; -} -inline GeneralQuery::QueryCase GeneralQuery::query_case() const { - return GeneralQuery::QueryCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// SearchParamPB - -// optional string collection_name = 1; -inline void SearchParamPB::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SearchParamPB::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchParamPB.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SearchParamPB::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.SearchParamPB.collection_name) -} -inline void SearchParamPB::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.SearchParamPB.collection_name) -} -inline void SearchParamPB::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.SearchParamPB.collection_name) -} -inline ::std::string* SearchParamPB::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchParamPB.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SearchParamPB::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.SearchParamPB.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SearchParamPB::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.SearchParamPB.collection_name) -} - -// repeated string partition_tag_array = 2; -inline int SearchParamPB::partition_tag_array_size() const { - return partition_tag_array_.size(); -} -inline void SearchParamPB::clear_partition_tag_array() { - partition_tag_array_.Clear(); -} -inline const ::std::string& SearchParamPB::partition_tag_array(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchParamPB.partition_tag_array) - return partition_tag_array_.Get(index); -} -inline ::std::string* SearchParamPB::mutable_partition_tag_array(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchParamPB.partition_tag_array) - return partition_tag_array_.Mutable(index); -} -inline void SearchParamPB::set_partition_tag_array(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:suvlim.grpc.SearchParamPB.partition_tag_array) - partition_tag_array_.Mutable(index)->assign(value); -} -inline void SearchParamPB::set_partition_tag_array(int index, const char* value) { - partition_tag_array_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.SearchParamPB.partition_tag_array) -} -inline void SearchParamPB::set_partition_tag_array(int index, const char* value, size_t size) { - partition_tag_array_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.SearchParamPB.partition_tag_array) -} -inline ::std::string* SearchParamPB::add_partition_tag_array() { - // @@protoc_insertion_point(field_add_mutable:suvlim.grpc.SearchParamPB.partition_tag_array) - return partition_tag_array_.Add(); -} -inline void SearchParamPB::add_partition_tag_array(const ::std::string& value) { - partition_tag_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.SearchParamPB.partition_tag_array) -} -inline void SearchParamPB::add_partition_tag_array(const char* value) { - partition_tag_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:suvlim.grpc.SearchParamPB.partition_tag_array) -} -inline void SearchParamPB::add_partition_tag_array(const char* value, size_t size) { - partition_tag_array_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:suvlim.grpc.SearchParamPB.partition_tag_array) -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -SearchParamPB::partition_tag_array() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.SearchParamPB.partition_tag_array) - return partition_tag_array_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -SearchParamPB::mutable_partition_tag_array() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.SearchParamPB.partition_tag_array) - return &partition_tag_array_; -} - -// optional .suvlim.grpc.GeneralQuery general_query = 3; -inline bool SearchParamPB::has_general_query() const { - return !_is_default_instance_ && general_query_ != NULL; -} -inline void SearchParamPB::clear_general_query() { - if (GetArenaNoVirtual() == NULL && general_query_ != NULL) delete general_query_; - general_query_ = NULL; -} -inline const ::suvlim::grpc::GeneralQuery& SearchParamPB::general_query() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchParamPB.general_query) - return general_query_ != NULL ? *general_query_ : *default_instance_->general_query_; -} -inline ::suvlim::grpc::GeneralQuery* SearchParamPB::mutable_general_query() { - - if (general_query_ == NULL) { - general_query_ = new ::suvlim::grpc::GeneralQuery; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchParamPB.general_query) - return general_query_; -} -inline ::suvlim::grpc::GeneralQuery* SearchParamPB::release_general_query() { - // @@protoc_insertion_point(field_release:suvlim.grpc.SearchParamPB.general_query) - - ::suvlim::grpc::GeneralQuery* temp = general_query_; - general_query_ = NULL; - return temp; -} -inline void SearchParamPB::set_allocated_general_query(::suvlim::grpc::GeneralQuery* general_query) { - delete general_query_; - general_query_ = general_query; - if (general_query) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.SearchParamPB.general_query) -} - -// repeated .suvlim.grpc.KeyValuePair extra_params = 4; -inline int SearchParamPB::extra_params_size() const { - return extra_params_.size(); -} -inline void SearchParamPB::clear_extra_params() { - extra_params_.Clear(); -} -inline const ::suvlim::grpc::KeyValuePair& SearchParamPB::extra_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchParamPB.extra_params) - return extra_params_.Get(index); -} -inline ::suvlim::grpc::KeyValuePair* SearchParamPB::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchParamPB.extra_params) - return extra_params_.Mutable(index); -} -inline ::suvlim::grpc::KeyValuePair* SearchParamPB::add_extra_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.SearchParamPB.extra_params) - return extra_params_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -SearchParamPB::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.SearchParamPB.extra_params) - return &extra_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -SearchParamPB::extra_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.SearchParamPB.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// InsertOrDeleteMsg - -// optional string collection_name = 1; -inline void InsertOrDeleteMsg::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& InsertOrDeleteMsg::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertOrDeleteMsg.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void InsertOrDeleteMsg::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.InsertOrDeleteMsg.collection_name) -} -inline void InsertOrDeleteMsg::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.InsertOrDeleteMsg.collection_name) -} -inline void InsertOrDeleteMsg::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.InsertOrDeleteMsg.collection_name) -} -inline ::std::string* InsertOrDeleteMsg::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.InsertOrDeleteMsg.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* InsertOrDeleteMsg::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.InsertOrDeleteMsg.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void InsertOrDeleteMsg::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.InsertOrDeleteMsg.collection_name) -} - -// optional .suvlim.grpc.RowData rows_data = 2; -inline bool InsertOrDeleteMsg::has_rows_data() const { - return !_is_default_instance_ && rows_data_ != NULL; -} -inline void InsertOrDeleteMsg::clear_rows_data() { - if (GetArenaNoVirtual() == NULL && rows_data_ != NULL) delete rows_data_; - rows_data_ = NULL; -} -inline const ::suvlim::grpc::RowData& InsertOrDeleteMsg::rows_data() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertOrDeleteMsg.rows_data) - return rows_data_ != NULL ? *rows_data_ : *default_instance_->rows_data_; -} -inline ::suvlim::grpc::RowData* InsertOrDeleteMsg::mutable_rows_data() { - - if (rows_data_ == NULL) { - rows_data_ = new ::suvlim::grpc::RowData; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.InsertOrDeleteMsg.rows_data) - return rows_data_; -} -inline ::suvlim::grpc::RowData* InsertOrDeleteMsg::release_rows_data() { - // @@protoc_insertion_point(field_release:suvlim.grpc.InsertOrDeleteMsg.rows_data) - - ::suvlim::grpc::RowData* temp = rows_data_; - rows_data_ = NULL; - return temp; -} -inline void InsertOrDeleteMsg::set_allocated_rows_data(::suvlim::grpc::RowData* rows_data) { - delete rows_data_; - rows_data_ = rows_data; - if (rows_data) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.InsertOrDeleteMsg.rows_data) -} - -// optional int64 uid = 3; -inline void InsertOrDeleteMsg::clear_uid() { - uid_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 InsertOrDeleteMsg::uid() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertOrDeleteMsg.uid) - return uid_; -} -inline void InsertOrDeleteMsg::set_uid(::google::protobuf::int64 value) { - - uid_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.InsertOrDeleteMsg.uid) -} - -// optional string partition_tag = 4; -inline void InsertOrDeleteMsg::clear_partition_tag() { - partition_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& InsertOrDeleteMsg::partition_tag() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertOrDeleteMsg.partition_tag) - return partition_tag_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void InsertOrDeleteMsg::set_partition_tag(const ::std::string& value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.InsertOrDeleteMsg.partition_tag) -} -inline void InsertOrDeleteMsg::set_partition_tag(const char* value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.InsertOrDeleteMsg.partition_tag) -} -inline void InsertOrDeleteMsg::set_partition_tag(const char* value, size_t size) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.InsertOrDeleteMsg.partition_tag) -} -inline ::std::string* InsertOrDeleteMsg::mutable_partition_tag() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.InsertOrDeleteMsg.partition_tag) - return partition_tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* InsertOrDeleteMsg::release_partition_tag() { - // @@protoc_insertion_point(field_release:suvlim.grpc.InsertOrDeleteMsg.partition_tag) - - return partition_tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void InsertOrDeleteMsg::set_allocated_partition_tag(::std::string* partition_tag) { - if (partition_tag != NULL) { - - } else { - - } - partition_tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), partition_tag); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.InsertOrDeleteMsg.partition_tag) -} - -// optional int64 timestamp = 5; -inline void InsertOrDeleteMsg::clear_timestamp() { - timestamp_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 InsertOrDeleteMsg::timestamp() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertOrDeleteMsg.timestamp) - return timestamp_; -} -inline void InsertOrDeleteMsg::set_timestamp(::google::protobuf::int64 value) { - - timestamp_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.InsertOrDeleteMsg.timestamp) -} - -// optional int64 segment_id = 6; -inline void InsertOrDeleteMsg::clear_segment_id() { - segment_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 InsertOrDeleteMsg::segment_id() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertOrDeleteMsg.segment_id) - return segment_id_; -} -inline void InsertOrDeleteMsg::set_segment_id(::google::protobuf::int64 value) { - - segment_id_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.InsertOrDeleteMsg.segment_id) -} - -// optional int64 channel_id = 7; -inline void InsertOrDeleteMsg::clear_channel_id() { - channel_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 InsertOrDeleteMsg::channel_id() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertOrDeleteMsg.channel_id) - return channel_id_; -} -inline void InsertOrDeleteMsg::set_channel_id(::google::protobuf::int64 value) { - - channel_id_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.InsertOrDeleteMsg.channel_id) -} - -// optional .suvlim.grpc.OpType op = 8; -inline void InsertOrDeleteMsg::clear_op() { - op_ = 0; -} -inline ::suvlim::grpc::OpType InsertOrDeleteMsg::op() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertOrDeleteMsg.op) - return static_cast< ::suvlim::grpc::OpType >(op_); -} -inline void InsertOrDeleteMsg::set_op(::suvlim::grpc::OpType value) { - - op_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.InsertOrDeleteMsg.op) -} - -// optional int64 client_id = 9; -inline void InsertOrDeleteMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 InsertOrDeleteMsg::client_id() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertOrDeleteMsg.client_id) - return client_id_; -} -inline void InsertOrDeleteMsg::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.InsertOrDeleteMsg.client_id) -} - -// repeated .suvlim.grpc.KeyValuePair extra_params = 10; -inline int InsertOrDeleteMsg::extra_params_size() const { - return extra_params_.size(); -} -inline void InsertOrDeleteMsg::clear_extra_params() { - extra_params_.Clear(); -} -inline const ::suvlim::grpc::KeyValuePair& InsertOrDeleteMsg::extra_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.InsertOrDeleteMsg.extra_params) - return extra_params_.Get(index); -} -inline ::suvlim::grpc::KeyValuePair* InsertOrDeleteMsg::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.InsertOrDeleteMsg.extra_params) - return extra_params_.Mutable(index); -} -inline ::suvlim::grpc::KeyValuePair* InsertOrDeleteMsg::add_extra_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.InsertOrDeleteMsg.extra_params) - return extra_params_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -InsertOrDeleteMsg::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.InsertOrDeleteMsg.extra_params) - return &extra_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -InsertOrDeleteMsg::extra_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.InsertOrDeleteMsg.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// SearchMsg - -// optional string collection_name = 1; -inline void SearchMsg::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SearchMsg::collection_name() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchMsg.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SearchMsg::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.SearchMsg.collection_name) -} -inline void SearchMsg::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.SearchMsg.collection_name) -} -inline void SearchMsg::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.SearchMsg.collection_name) -} -inline ::std::string* SearchMsg::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchMsg.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SearchMsg::release_collection_name() { - // @@protoc_insertion_point(field_release:suvlim.grpc.SearchMsg.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SearchMsg::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.SearchMsg.collection_name) -} - -// optional .suvlim.grpc.VectorRowRecord records = 2; -inline bool SearchMsg::has_records() const { - return !_is_default_instance_ && records_ != NULL; -} -inline void SearchMsg::clear_records() { - if (GetArenaNoVirtual() == NULL && records_ != NULL) delete records_; - records_ = NULL; -} -inline const ::suvlim::grpc::VectorRowRecord& SearchMsg::records() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchMsg.records) - return records_ != NULL ? *records_ : *default_instance_->records_; -} -inline ::suvlim::grpc::VectorRowRecord* SearchMsg::mutable_records() { - - if (records_ == NULL) { - records_ = new ::suvlim::grpc::VectorRowRecord; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchMsg.records) - return records_; -} -inline ::suvlim::grpc::VectorRowRecord* SearchMsg::release_records() { - // @@protoc_insertion_point(field_release:suvlim.grpc.SearchMsg.records) - - ::suvlim::grpc::VectorRowRecord* temp = records_; - records_ = NULL; - return temp; -} -inline void SearchMsg::set_allocated_records(::suvlim::grpc::VectorRowRecord* records) { - delete records_; - records_ = records; - if (records) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.SearchMsg.records) -} - -// optional string partition_tag = 3; -inline void SearchMsg::clear_partition_tag() { - partition_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SearchMsg::partition_tag() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchMsg.partition_tag) - return partition_tag_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SearchMsg::set_partition_tag(const ::std::string& value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:suvlim.grpc.SearchMsg.partition_tag) -} -inline void SearchMsg::set_partition_tag(const char* value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:suvlim.grpc.SearchMsg.partition_tag) -} -inline void SearchMsg::set_partition_tag(const char* value, size_t size) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:suvlim.grpc.SearchMsg.partition_tag) -} -inline ::std::string* SearchMsg::mutable_partition_tag() { - - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchMsg.partition_tag) - return partition_tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SearchMsg::release_partition_tag() { - // @@protoc_insertion_point(field_release:suvlim.grpc.SearchMsg.partition_tag) - - return partition_tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SearchMsg::set_allocated_partition_tag(::std::string* partition_tag) { - if (partition_tag != NULL) { - - } else { - - } - partition_tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), partition_tag); - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.SearchMsg.partition_tag) -} - -// optional int64 uid = 4; -inline void SearchMsg::clear_uid() { - uid_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 SearchMsg::uid() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchMsg.uid) - return uid_; -} -inline void SearchMsg::set_uid(::google::protobuf::int64 value) { - - uid_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.SearchMsg.uid) -} - -// optional int64 timestamp = 5; -inline void SearchMsg::clear_timestamp() { - timestamp_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 SearchMsg::timestamp() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchMsg.timestamp) - return timestamp_; -} -inline void SearchMsg::set_timestamp(::google::protobuf::int64 value) { - - timestamp_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.SearchMsg.timestamp) -} - -// optional int64 client_id = 6; -inline void SearchMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 SearchMsg::client_id() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchMsg.client_id) - return client_id_; -} -inline void SearchMsg::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.SearchMsg.client_id) -} - -// repeated .suvlim.grpc.KeyValuePair extra_params = 7; -inline int SearchMsg::extra_params_size() const { - return extra_params_.size(); -} -inline void SearchMsg::clear_extra_params() { - extra_params_.Clear(); -} -inline const ::suvlim::grpc::KeyValuePair& SearchMsg::extra_params(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SearchMsg.extra_params) - return extra_params_.Get(index); -} -inline ::suvlim::grpc::KeyValuePair* SearchMsg::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:suvlim.grpc.SearchMsg.extra_params) - return extra_params_.Mutable(index); -} -inline ::suvlim::grpc::KeyValuePair* SearchMsg::add_extra_params() { - // @@protoc_insertion_point(field_add:suvlim.grpc.SearchMsg.extra_params) - return extra_params_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >* -SearchMsg::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.SearchMsg.extra_params) - return &extra_params_; -} -inline const ::google::protobuf::RepeatedPtrField< ::suvlim::grpc::KeyValuePair >& -SearchMsg::extra_params() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.SearchMsg.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// TimeSyncMsg - -// optional int64 ClientId = 1; -inline void TimeSyncMsg::clear_clientid() { - clientid_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 TimeSyncMsg::clientid() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.TimeSyncMsg.ClientId) - return clientid_; -} -inline void TimeSyncMsg::set_clientid(::google::protobuf::int64 value) { - - clientid_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.TimeSyncMsg.ClientId) -} - -// optional int64 Timestamp = 2; -inline void TimeSyncMsg::clear_timestamp() { - timestamp_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 TimeSyncMsg::timestamp() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.TimeSyncMsg.Timestamp) - return timestamp_; -} -inline void TimeSyncMsg::set_timestamp(::google::protobuf::int64 value) { - - timestamp_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.TimeSyncMsg.Timestamp) -} - -// optional .suvlim.grpc.OpType MsgType = 3; -inline void TimeSyncMsg::clear_msgtype() { - msgtype_ = 0; -} -inline ::suvlim::grpc::OpType TimeSyncMsg::msgtype() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.TimeSyncMsg.MsgType) - return static_cast< ::suvlim::grpc::OpType >(msgtype_); -} -inline void TimeSyncMsg::set_msgtype(::suvlim::grpc::OpType value) { - - msgtype_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.TimeSyncMsg.MsgType) -} - -// ------------------------------------------------------------------- - -// SegmentRecord - -// optional int64 uid = 1; -inline void SegmentRecord::clear_uid() { - uid_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 SegmentRecord::uid() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SegmentRecord.uid) - return uid_; -} -inline void SegmentRecord::set_uid(::google::protobuf::int64 value) { - - uid_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.SegmentRecord.uid) -} - -// repeated int64 segment_id = 2; -inline int SegmentRecord::segment_id_size() const { - return segment_id_.size(); -} -inline void SegmentRecord::clear_segment_id() { - segment_id_.Clear(); -} -inline ::google::protobuf::int64 SegmentRecord::segment_id(int index) const { - // @@protoc_insertion_point(field_get:suvlim.grpc.SegmentRecord.segment_id) - return segment_id_.Get(index); -} -inline void SegmentRecord::set_segment_id(int index, ::google::protobuf::int64 value) { - segment_id_.Set(index, value); - // @@protoc_insertion_point(field_set:suvlim.grpc.SegmentRecord.segment_id) -} -inline void SegmentRecord::add_segment_id(::google::protobuf::int64 value) { - segment_id_.Add(value); - // @@protoc_insertion_point(field_add:suvlim.grpc.SegmentRecord.segment_id) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -SegmentRecord::segment_id() const { - // @@protoc_insertion_point(field_list:suvlim.grpc.SegmentRecord.segment_id) - return segment_id_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -SegmentRecord::mutable_segment_id() { - // @@protoc_insertion_point(field_mutable_list:suvlim.grpc.SegmentRecord.segment_id) - return &segment_id_; -} - -// ------------------------------------------------------------------- - -// Key2SegMsg - -// optional int64 client_id = 1; -inline void Key2SegMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 Key2SegMsg::client_id() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Key2SegMsg.client_id) - return client_id_; -} -inline void Key2SegMsg::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.Key2SegMsg.client_id) -} - -// optional .suvlim.grpc.SegmentRecord records = 2; -inline bool Key2SegMsg::has_records() const { - return !_is_default_instance_ && records_ != NULL; -} -inline void Key2SegMsg::clear_records() { - if (GetArenaNoVirtual() == NULL && records_ != NULL) delete records_; - records_ = NULL; -} -inline const ::suvlim::grpc::SegmentRecord& Key2SegMsg::records() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Key2SegMsg.records) - return records_ != NULL ? *records_ : *default_instance_->records_; -} -inline ::suvlim::grpc::SegmentRecord* Key2SegMsg::mutable_records() { - - if (records_ == NULL) { - records_ = new ::suvlim::grpc::SegmentRecord; - } - // @@protoc_insertion_point(field_mutable:suvlim.grpc.Key2SegMsg.records) - return records_; -} -inline ::suvlim::grpc::SegmentRecord* Key2SegMsg::release_records() { - // @@protoc_insertion_point(field_release:suvlim.grpc.Key2SegMsg.records) - - ::suvlim::grpc::SegmentRecord* temp = records_; - records_ = NULL; - return temp; -} -inline void Key2SegMsg::set_allocated_records(::suvlim::grpc::SegmentRecord* records) { - delete records_; - records_ = records; - if (records) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:suvlim.grpc.Key2SegMsg.records) -} - -// optional .suvlim.grpc.OpType msg_type = 3; -inline void Key2SegMsg::clear_msg_type() { - msg_type_ = 0; -} -inline ::suvlim::grpc::OpType Key2SegMsg::msg_type() const { - // @@protoc_insertion_point(field_get:suvlim.grpc.Key2SegMsg.msg_type) - return static_cast< ::suvlim::grpc::OpType >(msg_type_); -} -inline void Key2SegMsg::set_msg_type(::suvlim::grpc::OpType value) { - - msg_type_ = value; - // @@protoc_insertion_point(field_set:suvlim.grpc.Key2SegMsg.msg_type) -} - -#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace grpc -} // namespace suvlim - -#ifndef SWIG -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::suvlim::grpc::ErrorCode> : ::google::protobuf::internal::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::suvlim::grpc::ErrorCode>() { - return ::suvlim::grpc::ErrorCode_descriptor(); -} -template <> struct is_proto_enum< ::suvlim::grpc::DataType> : ::google::protobuf::internal::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::suvlim::grpc::DataType>() { - return ::suvlim::grpc::DataType_descriptor(); -} -template <> struct is_proto_enum< ::suvlim::grpc::CompareOperator> : ::google::protobuf::internal::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::suvlim::grpc::CompareOperator>() { - return ::suvlim::grpc::CompareOperator_descriptor(); -} -template <> struct is_proto_enum< ::suvlim::grpc::Occur> : ::google::protobuf::internal::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::suvlim::grpc::Occur>() { - return ::suvlim::grpc::Occur_descriptor(); -} -template <> struct is_proto_enum< ::suvlim::grpc::OpType> : ::google::protobuf::internal::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::suvlim::grpc::OpType>() { - return ::suvlim::grpc::OpType_descriptor(); -} - -} // namespace protobuf -} // namespace google -#endif // SWIG - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_suvlim_2eproto__INCLUDED diff --git a/proxy/src/pulsar/message_client/pb/suvlim.proto b/proxy/src/pulsar/message_client/pb/suvlim.proto deleted file mode 100644 index e89bcd9502..0000000000 --- a/proxy/src/pulsar/message_client/pb/suvlim.proto +++ /dev/null @@ -1,715 +0,0 @@ -syntax = "proto3"; - -package suvlim.grpc; - -enum ErrorCode { - 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; -} - -message Status { - ErrorCode error_code = 1; - string reason = 2; -} - -/** - * @brief Field data type - */ -enum DataType { - NONE = 0; - BOOL = 1; - INT8 = 2; - INT16 = 3; - INT32 = 4; - INT64 = 5; - - FLOAT = 10; - DOUBLE = 11; - - STRING = 20; - - VECTOR_BINARY = 100; - VECTOR_FLOAT = 101; -} - -/** - * @brief General usage - */ -message KeyValuePair { - string key = 1; - string value = 2; -} - -/** - * @brief Collection name - */ -message CollectionName { - string collection_name = 1; -} - -/** - * @brief Collection name list - */ -message CollectionNameList { - Status status = 1; - repeated string collection_names = 2; -} - -/** - * @brief Field name - */ -message FieldName { - string collection_name = 1; - string field_name = 2; -} - -/** - * @brief Collection mapping - * @extra_params: key-value pair for extra parameters of the collection - * typically usage: - * extra_params["params"] = {segment_row_count: 1000000, auto_id: true} - * Note: - * the segment_row_count specify segment row count limit for merging - * the auto_id = true means entity id is auto-generated by milvus - */ -message Mapping { - Status status = 1; - string collection_name = 2; - repeated FieldParam fields = 3; - repeated KeyValuePair extra_params = 4; -} - -/** - * @brief Collection mapping list - */ -message MappingList { - Status status = 1; - repeated Mapping mapping_list = 2; -} - -/** - * @brief Parameters of partition - */ -message PartitionParam { - string collection_name = 1; - string tag = 2; -} - -/** - * @brief Partition list - */ -message PartitionList { - Status status = 1; - repeated string partition_tag_array = 2; -} - -/** - * @brief Vector row record - */ -message VectorRowRecord { - repeated float float_data = 1; //float vector data - bytes binary_data = 2; //binary vector data -} - -message EntityIds { - Status status = 1; - repeated int64 entity_id_array = 2; -} - -message VectorRecord { - repeated VectorRowRecord records = 1; -} - -message VectorParam { - string json = 1; - VectorRecord row_record = 2; -} - -//////////////////////////row schema and data/////////////////////////////////// -/** - * @brief schema - */ -message FieldMeta { - string field_name = 1; - DataType type = 2; - int64 dim = 3; -} - -message Schema { - repeated FieldMeta field_metas = 1; -} - -message RowData { - bytes blob = 1; -} - -//////////////////////suvlim-proxy/////////////////////////////////// -message InsertParam { - string collection_name = 1; - Schema schema = 2; - repeated RowData rows_data = 3; - repeated int64 entity_id_array = 4; //optional - string partition_tag = 5; - repeated KeyValuePair extra_params = 6; -} - -message SearchParam { - string collection_name = 1; - repeated VectorParam vector_param = 2; - string dsl = 3; //optional - repeated string partition_tag = 4; //why - repeated KeyValuePair extra_params = 5; -} - -message SearchInSegmentParam { - repeated string file_id_array = 1; - SearchParam search_param = 2; -} - -message Entities { - Status status = 1; - repeated int64 ids = 2; - repeated bool valid_row = 3; - repeated RowData rows_data = 4; -} - - -///////////////////////////milvus-server/////////////////////////// -/** - * @brief Query result - */ -message QueryResult { - Status status = 1; - Entities entities = 2; - int64 row_num = 3; - repeated float scores = 4; - repeated float distances = 5; - repeated KeyValuePair extra_params = 6; -} - -/** - * @brief Server string Reply - */ -message StringReply { - Status status = 1; - string string_reply = 2; -} - -/** - * @brief Server bool Reply - */ -message BoolReply { - Status status = 1; - bool bool_reply = 2; -} - -/** - * @brief Return collection row count - */ -message CollectionRowCount { - Status status = 1; - int64 collection_row_count = 2; -} - -/** - * @brief Server command parameters - */ -message Command { - string cmd = 1; -} - -/** - * @brief Index params - * @collection_name: target collection - * @field_name: target field - * @index_name: a name for index provided by user, unique within this field - * @extra_params: index parameters in json format - * for vector field: - * extra_params["index_type"] = one of the values: FLAT, IVF_LAT, IVF_SQ8, NSGMIX, IVFSQ8H, - * PQ, HNSW, HNSW_SQ8NM, ANNOY - * extra_params["metric_type"] = one of the values: L2, IP, HAMMING, JACCARD, TANIMOTO - * SUBSTRUCTURE, SUPERSTRUCTURE - * extra_params["params"] = extra parameters for index, for example ivflat: {nlist: 2048} - * for structured field: - * extra_params["index_type"] = one of the values: SORTED - */ -message IndexParam { - Status status = 1; - string collection_name = 2; - string field_name = 3; - string index_name = 4; - repeated KeyValuePair extra_params = 5; -} - -/** - * @brief Parameters for flush action - */ -message FlushParam { - repeated string collection_name_array = 1; -} - -/** - * @brief Parameters for flush action - */ -message CompactParam { - string collection_name = 1; - double threshold = 2; -} - -/** - * @brief Parameters for deleting entities by id - */ -message DeleteByIDParam { - string collection_name = 1; - repeated int64 id_array = 2; -} - -/** - * @brief Return collection stats - * @json_info: collection stats in json format, typically, the format is like: - * { - * row_count: xxx, - * data_size: xxx, - * partitions: [ - * { - * tag: xxx, - * id: xxx, - * row_count: xxx, - * data_size: xxx, - * segments: [ - * { - * id: xxx, - * row_count: xxx, - * data_size: xxx, - * files: [ - * { - * field: xxx, - * name: xxx, - * index_type: xxx, - * path: xxx, - * data_size: xxx, - * } - * ] - * } - * ] - * } - * ] - * } - */ -message CollectionInfo { - Status status = 1; - string json_info = 2; -} - -/** - * @brief Parameters for returning entities id of a segment - */ -message GetEntityIDsParam { - string collection_name = 1; - int64 segment_id = 2; -} - -/** - * @brief Entities identity - */ -message EntityIdentity { - string collection_name = 1; - repeated int64 id_array = 2; - repeated string field_names = 3; -} - -/********************************************SearchPB interface***************************************************/ -/** - * @brief Vector field parameters - */ -message VectorFieldParam { - int64 dimension = 1; -} - -/** - * @brief Field type - */ -message FieldType { - oneof value { - DataType data_type = 1; - VectorFieldParam vector_param = 2; - } -} - -/** - * @brief Field parameters - */ -message FieldParam { - uint64 id = 1; - string name = 2; - DataType type = 3; - repeated KeyValuePair index_params = 4; - repeated KeyValuePair extra_params = 5; -} - -/** - * @brief Vector field record - */ -message VectorFieldRecord { - repeated VectorRowRecord value = 1; -} - -/////////////////////////////////////////////////////////////////// - -message TermQuery { - string field_name = 1; - repeated int64 int_value = 2; - repeated double double_value = 3; - int64 value_num = 4; - float boost = 5; - repeated KeyValuePair extra_params = 6; -} - -enum CompareOperator { - LT = 0; - LTE = 1; - EQ = 2; - GT = 3; - GTE = 4; - NE = 5; -} - -message CompareExpr { - CompareOperator operator = 1; - string operand = 2; -} - -message RangeQuery { - string field_name = 1; - repeated CompareExpr operand = 2; - float boost = 3; - repeated KeyValuePair extra_params = 4; -} - -message VectorQuery { - string field_name = 1; - float query_boost = 2; - repeated VectorRowRecord records = 3; - int64 topk = 4; - repeated KeyValuePair extra_params = 5; -} - -enum Occur { - INVALID = 0; - MUST = 1; - SHOULD = 2; - MUST_NOT = 3; -} - -message BooleanQuery { - Occur occur = 1; - repeated GeneralQuery general_query = 2; -} - -message GeneralQuery { - oneof query { - BooleanQuery boolean_query = 1; - TermQuery term_query = 2; - RangeQuery range_query = 3; - VectorQuery vector_query = 4; - } -} - -message SearchParamPB { - string collection_name = 1; - repeated string partition_tag_array = 2; - GeneralQuery general_query = 3; - repeated KeyValuePair extra_params = 4; -} - -service MilvusService { - /** - * @brief This method is used to create collection - * - * @param CollectionSchema, use to provide collection information to be created. - * - * @return Status - */ - rpc CreateCollection(Mapping) returns (Status){} - - /** - * @brief This method is used to test collection existence. - * - * @param CollectionName, collection name is going to be tested. - * - * @return BoolReply - */ - rpc HasCollection(CollectionName) returns (BoolReply) {} - - /** - * @brief This method is used to get collection schema. - * - * @param CollectionName, target collection name. - * - * @return CollectionSchema - */ - rpc DescribeCollection(CollectionName) returns (Mapping) {} - - /** - * @brief This method is used to get collection schema. - * - * @param CollectionName, target collection name. - * - * @return CollectionRowCount - */ - rpc CountCollection(CollectionName) returns (CollectionRowCount) {} - - /** - * @brief This method is used to list all collections. - * - * @param Command, dummy parameter. - * - * @return CollectionNameList - */ - rpc ShowCollections(Command) returns (CollectionNameList) {} - - /** - * @brief This method is used to get collection detail information. - * - * @param CollectionName, target collection name. - * - * @return CollectionInfo - */ - rpc ShowCollectionInfo(CollectionName) returns (CollectionInfo) {} - - /** - * @brief This method is used to delete collection. - * - * @param CollectionName, collection name is going to be deleted. - * - * @return Status - */ - rpc DropCollection(CollectionName) returns (Status) {} - - /** - * @brief This method is used to build index by collection in sync mode. - * - * @param IndexParam, index paramters. - * - * @return Status - */ - rpc CreateIndex(IndexParam) returns (Status) {} - - /** - * @brief This method is used to describe index - * - * @param IndexParam, target index. - * - * @return IndexParam - */ - rpc DescribeIndex(IndexParam) returns (IndexParam) {} - - /** - * @brief This method is used to drop index - * - * @param IndexParam, target field. if the IndexParam.field_name is empty, will drop all index of the collection - * - * @return Status - */ - rpc DropIndex(IndexParam) returns (Status) {} - - /** - * @brief This method is used to create partition - * - * @param PartitionParam, partition parameters. - * - * @return Status - */ - rpc CreatePartition(PartitionParam) returns (Status) {} - - /** - * @brief This method is used to test partition existence. - * - * @param PartitionParam, target partition. - * - * @return BoolReply - */ - rpc HasPartition(PartitionParam) returns (BoolReply) {} - - /** - * @brief This method is used to show partition information - * - * @param CollectionName, target collection name. - * - * @return PartitionList - */ - rpc ShowPartitions(CollectionName) returns (PartitionList) {} - - /** - * @brief This method is used to drop partition - * - * @param PartitionParam, target partition. - * - * @return Status - */ - rpc DropPartition(PartitionParam) returns (Status) {} - - /** - * @brief This method is used to add vector array to collection. - * - * @param InsertParam, insert parameters. - * - * @return VectorIds - */ - rpc Insert(InsertParam) returns (EntityIds) {} - - /** - * @brief This method is used to get entities data by id array. - * - * @param EntitiesIdentity, target entity id array. - * - * @return EntitiesData - */ - rpc GetEntityByID(EntityIdentity) returns (Entities) {} - - /** - * @brief This method is used to get vector ids from a segment - * - * @param GetVectorIDsParam, target collection and segment - * - * @return VectorIds - */ - rpc GetEntityIDs(GetEntityIDsParam) returns (EntityIds) {} - - /** - * @brief This method is used to query vector in collection. - * - * @param SearchParam, search parameters. - * - * @return KQueryResult - */ - rpc Search(SearchParam) returns (QueryResult) {} - - /** - * @brief This method is used to query vector in specified files. - * - * @param SearchInSegmentParam, target segments to search. - * - * @return TopKQueryResult - */ - rpc SearchInSegment(SearchInSegmentParam) returns (QueryResult) {} - - /** - * @brief This method is used to give the server status. - * - * @param Command, command string - * - * @return StringReply - */ - rpc Cmd(Command) returns (StringReply) {} - - /** - * @brief This method is used to delete vector by id - * - * @param DeleteByIDParam, delete parameters. - * - * @return status - */ - rpc DeleteByID(DeleteByIDParam) returns (Status) {} - - /** - * @brief This method is used to preload collection - * - * @param CollectionName, target collection name. - * - * @return Status - */ - rpc PreloadCollection(CollectionName) returns (Status) {} - - /** - * @brief This method is used to flush buffer into storage. - * - * @param FlushParam, flush parameters - * - * @return Status - */ - rpc Flush(FlushParam) returns (Status) {} - - /** - * @brief This method is used to compact collection - * - * @param CompactParam, compact parameters - * - * @return Status - */ - rpc Compact(CompactParam) returns (Status) {} - - /********************************New Interface********************************************/ - - rpc SearchPB(SearchParamPB) returns (QueryResult) {} -} - -////////////////////pulsar////////////////////////////////////// -enum OpType { - INSERT = 0; - DELETE = 1; - SEARCH = 2; - SEARCH_RESULT = 3; -} - -message InsertOrDeleteMsg { - string collection_name = 1; - RowData rows_data = 2; - int64 uid = 3; //optional - string partition_tag = 4; - int64 timestamp =5; - int64 segment_id = 6; - int64 channel_id = 7; - OpType op = 8; - int64 client_id = 9; - repeated KeyValuePair extra_params = 10; -} - -message SearchMsg { - string collection_name = 1; - VectorRowRecord records = 2; - string partition_tag = 3; - int64 uid = 4; - int64 timestamp =5; - int64 client_id = 6; - repeated KeyValuePair extra_params = 7; -} - -message TimeSyncMsg{ - int64 ClientId = 1; - int64 Timestamp = 2; - OpType MsgType = 3; -} - -message SegmentRecord { - int64 uid = 1; - repeated int64 segment_id = 2; -} - -message Key2SegMsg { - int64 client_id = 1; - SegmentRecord records = 2; - OpType msg_type = 3; -} diff --git a/proxy/src/server/CMakeLists.txt b/proxy/src/server/CMakeLists.txt index 974b2f71dd..d7065c76c6 100644 --- a/proxy/src/server/CMakeLists.txt +++ b/proxy/src/server/CMakeLists.txt @@ -11,8 +11,8 @@ # or implied. See the License for the specific language governing permissions and limitations under the License. #------------------------------------------------------------------------------- -set( GRPC_SERVICE_FILES ${MILVUS_ENGINE_SRC}/grpc/gen-milvus/milvus.grpc.pb.cc - ${MILVUS_ENGINE_SRC}/grpc/gen-milvus/milvus.pb.cc +set( GRPC_SERVICE_FILES ${MILVUS_ENGINE_SRC}/grpc/gen-milvus/suvlim.grpc.pb.cc + ${MILVUS_ENGINE_SRC}/grpc/gen-milvus/suvlim.pb.cc ${MILVUS_ENGINE_SRC}/grpc/gen-status/status.grpc.pb.cc ${MILVUS_ENGINE_SRC}/grpc/gen-status/status.pb.cc ${MILVUS_ENGINE_SRC}/grpc/gen-milvus/hello.grpc.pb.cc diff --git a/proxy/src/server/delivery/request/Types.h b/proxy/src/server/delivery/request/Types.h index bf6e0cd339..c3679e168d 100644 --- a/proxy/src/server/delivery/request/Types.h +++ b/proxy/src/server/delivery/request/Types.h @@ -12,7 +12,7 @@ #pragma once #include "db/Types.h" -#include "grpc/gen-milvus/milvus.grpc.pb.h" +#include "grpc/gen-milvus/suvlim.grpc.pb.h" #include "grpc/gen-status/status.grpc.pb.h" #include "grpc/gen-status/status.pb.h" #include "query/GeneralQuery.h" diff --git a/proxy/src/server/grpc_impl/GrpcRequestHandler.cpp b/proxy/src/server/grpc_impl/GrpcRequestHandler.cpp index aac83006eb..e218639d2e 100644 --- a/proxy/src/server/grpc_impl/GrpcRequestHandler.cpp +++ b/proxy/src/server/grpc_impl/GrpcRequestHandler.cpp @@ -213,6 +213,10 @@ GrpcRequestHandler::GrpcRequestHandler(const std::shared_ptr(0, pulsar_server_address); + msg_client_->Init("topic-mut", "topic-query", "topic-result"); } void @@ -722,6 +726,8 @@ GrpcRequestHandler::Insert(::grpc::ServerContext* context, const ::milvus::grpc: CHECK_NULLPTR_RETURN(request); LOG_SERVER_INFO_ << LogOut("Request [%s] %s begin.", GetContext(context)->ReqID().c_str(), __func__); + + // TODO: add pulsar message proucer return ::grpc::Status::OK; } diff --git a/proxy/src/server/grpc_impl/GrpcRequestHandler.h b/proxy/src/server/grpc_impl/GrpcRequestHandler.h index 847ae7119d..54222a4485 100644 --- a/proxy/src/server/grpc_impl/GrpcRequestHandler.h +++ b/proxy/src/server/grpc_impl/GrpcRequestHandler.h @@ -20,13 +20,16 @@ #include #include #include "query/BinaryQuery.h" -#include "grpc/gen-milvus/milvus.grpc.pb.h" +#include "grpc/gen-milvus/suvlim.grpc.pb.h" #include "grpc/gen-status/status.pb.h" #include "opentracing/tracer.h" #include "server/context/Context.h" #include "server/delivery/ReqHandler.h" #include "server/grpc_impl/interceptor/GrpcInterceptorHookHandler.h" #include "src/utils/Status.h" +#include "pulsar/message_client/Consumer.h" +#include "pulsar/message_client/Producer.h" +#include "pulsar/message_client/ClientV2.h" namespace milvus { namespace server { @@ -331,8 +334,12 @@ class GrpcRequestHandler final : public ::milvus::grpc::MilvusService::Service, ProcessLeafQueryJson(const nlohmann::json& json, query::BooleanQueryPtr& query, std::string& field_name); private: + // May remove req_handler ? ReqHandler req_handler_; + // delivery and receive pulsar message + std::shared_ptr msg_client_; + std::unordered_map> context_map_; std::shared_ptr tracer_; diff --git a/proxy/src/server/grpc_impl/GrpcServer.cpp b/proxy/src/server/grpc_impl/GrpcServer.cpp index ed77ae2b48..49119e77da 100644 --- a/proxy/src/server/grpc_impl/GrpcServer.cpp +++ b/proxy/src/server/grpc_impl/GrpcServer.cpp @@ -99,7 +99,7 @@ GrpcServer::StartService() { HelloService helloService; builder.RegisterService(&helloService); - // report address to mmaster + // report address to master auto reportClient = new ReportClient(::grpc::CreateChannel("192.168.2.28:50051", ::grpc::InsecureChannelCredentials())); auto status = reportClient->ReportAddress(); diff --git a/proxy/src/version.h b/proxy/src/version.h index 093ee7afb0..d55216cbc6 100644 --- a/proxy/src/version.h +++ b/proxy/src/version.h @@ -13,4 +13,4 @@ #define BUILD_TYPE "Debug" #define BUILD_TIME "2020-09-03 16:41.13" -#define LAST_COMMIT_ID "a97d3e925e993f4a2a7409a9734dcc788f109767" +#define LAST_COMMIT_ID "a97d3e925e993f4a2a7409a9734dcc788f109767" \ No newline at end of file