diff --git a/proto/suvlim.proto b/proto/suvlim.proto index 6dfcf37c65..532807f007 100644 --- a/proto/suvlim.proto +++ b/proto/suvlim.proto @@ -670,8 +670,6 @@ service MilvusService { enum OpType { INSERT = 0; DELETE = 1; - SEARCH = 2; - SEARCH_RESULT = 3; } message InsertOrDeleteMsg { @@ -697,10 +695,14 @@ message SearchMsg { repeated KeyValuePair extra_params = 7; } +enum SyncType { + READ = 0; + WRITE = 1; +} message TimeSyncMsg{ - int64 ClientId = 1; - int64 Timestamp = 2; - OpType MsgType = 3; + int64 peer_Id = 1; + int64 Timestamp = 2; + SyncType sync_type = 3; } message SegmentRecord { @@ -709,7 +711,6 @@ message SegmentRecord { } message Key2SegMsg { - int64 client_id = 1; - SegmentRecord records = 2; - OpType msg_type = 3; -} + int64 client_id = 1; + SegmentRecord records = 2; +} \ No newline at end of file diff --git a/proxy/src/grpc/cpp_gen.sh b/proxy/src/grpc/cpp_gen.sh index 04e66ef5eb..6fae0d540f 100755 --- a/proxy/src/grpc/cpp_gen.sh +++ b/proxy/src/grpc/cpp_gen.sh @@ -1,18 +1,18 @@ #!/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 \ No newline at end of file diff --git a/proxy/src/grpc/gen-milvus/suvlim.pb.cc b/proxy/src/grpc/gen-milvus/suvlim.pb.cc new file mode 100644 index 0000000000..85db1ac49a --- /dev/null +++ b/proxy/src/grpc/gen-milvus/suvlim.pb.cc @@ -0,0 +1,21739 @@ +// 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 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 { + 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 { + 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; + 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); +} + +// 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: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* SyncType_descriptor() { + protobuf_AssignDescriptorsOnce(); + return SyncType_descriptor_; +} +bool SyncType_IsValid(int value) { + switch(value) { + case 0: + case 1: + 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:milvus.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: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 + +KeyValuePair::KeyValuePair() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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()); +} + +KeyValuePair::~KeyValuePair() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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, + "milvus.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, + "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) { + goto success; + } + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + 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_ +} + +void KeyValuePair::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.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, + "milvus.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, + "milvus.grpc.KeyValuePair.value"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->value(), output); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.KeyValuePair) +} + +::google::protobuf::uint8* KeyValuePair::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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, + "milvus.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, + "milvus.grpc.KeyValuePair.value"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->value(), target); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.KeyValuePair) + return target; +} + +int KeyValuePair::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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:milvus.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:milvus.grpc.KeyValuePair) + ::google::protobuf::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) + 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: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::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: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 + +CollectionName::CollectionName() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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()); +} + +CollectionName::~CollectionName() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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, + "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) { + goto success; + } + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + 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_ +} + +void CollectionName::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.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, + "milvus.grpc.CollectionName.collection_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->collection_name(), output); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.CollectionName) +} + +::google::protobuf::uint8* CollectionName::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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, + "milvus.grpc.CollectionName.collection_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->collection_name(), target); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.CollectionName) + return target; +} + +int CollectionName::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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:milvus.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:milvus.grpc.CollectionName) + ::google::protobuf::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) + 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: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::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: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 + +CollectionNameList::CollectionNameList() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@protoc_insertion_point(copy_constructor:milvus.grpc.CollectionNameList) +} + +void CollectionNameList::SharedCtor() { + _is_default_instance_ = false; + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; + status_ = NULL; +} + +CollectionNameList::~CollectionNameList() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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 .milvus.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, + "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) { + goto success; + } + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + 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_ +} + +void CollectionNameList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.CollectionNameList) + // optional .milvus.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, + "milvus.grpc.CollectionNameList.collection_names"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->collection_names(i), output); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.CollectionNameList) +} + +::google::protobuf::uint8* CollectionNameList::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.CollectionNameList) + // optional .milvus.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, + "milvus.grpc.CollectionNameList.collection_names"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(2, this->collection_names(i), target); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.CollectionNameList) + return target; +} + +int CollectionNameList::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.CollectionNameList) + int total_size = 0; + + // optional .milvus.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:milvus.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:milvus.grpc.CollectionNameList) + ::google::protobuf::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) + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } + 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) { +// @@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::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 .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 + +FieldName::FieldName() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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()); +} + +FieldName::~FieldName() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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, + "milvus.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, + "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) { + goto success; + } + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + 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_ +} + +void FieldName::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.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, + "milvus.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, + "milvus.grpc.FieldName.field_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->field_name(), output); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.FieldName) +} + +::google::protobuf::uint8* FieldName::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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, + "milvus.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, + "milvus.grpc.FieldName.field_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->field_name(), target); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.FieldName) + return target; +} + +int FieldName::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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:milvus.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:milvus.grpc.FieldName) + ::google::protobuf::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) + 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: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::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: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 + +Mapping::Mapping() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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()); +} + +Mapping::~Mapping() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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 .milvus.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, + "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( + 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( + 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:milvus.grpc.Mapping) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.Mapping) + return false; +#undef DO_ +} + +void Mapping::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.Mapping) + // optional .milvus.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, + "milvus.grpc.Mapping.collection_name"); + ::google::protobuf::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); + } + + // 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); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.Mapping) +} + +::google::protobuf::uint8* Mapping::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Mapping) + // optional .milvus.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, + "milvus.grpc.Mapping.collection_name"); + target = + ::google::protobuf::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); + } + + // 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); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Mapping) + return target; +} + +int Mapping::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.Mapping) + int 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()); + } + + // 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)); + } + + // 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)); + } + + 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:milvus.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:milvus.grpc.Mapping) + ::google::protobuf::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) + 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()->::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) { +// @@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::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 .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 + +MappingList::MappingList() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@protoc_insertion_point(copy_constructor:milvus.grpc.MappingList) +} + +void MappingList::SharedCtor() { + _is_default_instance_ = false; + _cached_size_ = 0; + status_ = NULL; +} + +MappingList::~MappingList() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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 .milvus.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 .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( + 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:milvus.grpc.MappingList) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.MappingList) + return false; +#undef DO_ +} + +void MappingList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.MappingList) + // optional .milvus.grpc.Status status = 1; + if (this->has_status()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->status_, 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); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.MappingList) +} + +::google::protobuf::uint8* MappingList::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.MappingList) + // optional .milvus.grpc.Status status = 1; + if (this->has_status()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *this->status_, false, 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); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.MappingList) + return target; +} + +int MappingList::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.MappingList) + int total_size = 0; + + // optional .milvus.grpc.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->status_); + } + + // 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)); + } + + 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:milvus.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:milvus.grpc.MappingList) + ::google::protobuf::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) + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } + 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) { +// @@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::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 .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 + +PartitionParam::PartitionParam() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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()); +} + +PartitionParam::~PartitionParam() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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, + "milvus.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, + "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) { + goto success; + } + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + 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_ +} + +void PartitionParam::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.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, + "milvus.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, + "milvus.grpc.PartitionParam.tag"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->tag(), output); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.PartitionParam) +} + +::google::protobuf::uint8* PartitionParam::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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, + "milvus.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, + "milvus.grpc.PartitionParam.tag"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->tag(), target); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.PartitionParam) + return target; +} + +int PartitionParam::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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:milvus.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:milvus.grpc.PartitionParam) + ::google::protobuf::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) + 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: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::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: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 + +PartitionList::PartitionList() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@protoc_insertion_point(copy_constructor:milvus.grpc.PartitionList) +} + +void PartitionList::SharedCtor() { + _is_default_instance_ = false; + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; + status_ = NULL; +} + +PartitionList::~PartitionList() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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 .milvus.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, + "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) { + goto success; + } + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + 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_ +} + +void PartitionList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.PartitionList) + // optional .milvus.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, + "milvus.grpc.PartitionList.partition_tag_array"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->partition_tag_array(i), output); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.PartitionList) +} + +::google::protobuf::uint8* PartitionList::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.PartitionList) + // optional .milvus.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, + "milvus.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:milvus.grpc.PartitionList) + return target; +} + +int PartitionList::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.PartitionList) + int total_size = 0; + + // optional .milvus.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:milvus.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:milvus.grpc.PartitionList) + ::google::protobuf::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) + 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()->::milvus::grpc::Status::MergeFrom(from.status()); + } +} + +void PartitionList::CopyFrom(const ::google::protobuf::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::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 .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 + +VectorRowRecord::VectorRowRecord() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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()); +} + +VectorRowRecord::~VectorRowRecord() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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:milvus.grpc.VectorRowRecord) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.VectorRowRecord) + return false; +#undef DO_ +} + +void VectorRowRecord::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.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:milvus.grpc.VectorRowRecord) +} + +::google::protobuf::uint8* VectorRowRecord::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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:milvus.grpc.VectorRowRecord) + return target; +} + +int VectorRowRecord::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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:milvus.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:milvus.grpc.VectorRowRecord) + ::google::protobuf::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) + 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: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::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: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 + +EntityIds::EntityIds() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@protoc_insertion_point(copy_constructor:milvus.grpc.EntityIds) +} + +void EntityIds::SharedCtor() { + _is_default_instance_ = false; + _cached_size_ = 0; + status_ = NULL; +} + +EntityIds::~EntityIds() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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 .milvus.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:milvus.grpc.EntityIds) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.EntityIds) + return false; +#undef DO_ +} + +void EntityIds::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.EntityIds) + // optional .milvus.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:milvus.grpc.EntityIds) +} + +::google::protobuf::uint8* EntityIds::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.EntityIds) + // optional .milvus.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:milvus.grpc.EntityIds) + return target; +} + +int EntityIds::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.EntityIds) + int total_size = 0; + + // optional .milvus.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:milvus.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:milvus.grpc.EntityIds) + ::google::protobuf::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) + 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()->::milvus::grpc::Status::MergeFrom(from.status()); + } +} + +void EntityIds::CopyFrom(const ::google::protobuf::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::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 .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 + +VectorRecord::VectorRecord() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@protoc_insertion_point(copy_constructor:milvus.grpc.VectorRecord) +} + +void VectorRecord::SharedCtor() { + _is_default_instance_ = false; + _cached_size_ = 0; +} + +VectorRecord::~VectorRecord() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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 .milvus.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:milvus.grpc.VectorRecord) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.VectorRecord) + return false; +#undef DO_ +} + +void VectorRecord::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.VectorRecord) + // 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); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.VectorRecord) +} + +::google::protobuf::uint8* VectorRecord::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.VectorRecord) + // 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); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.VectorRecord) + return target; +} + +int VectorRecord::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.VectorRecord) + int total_size = 0; + + // 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)); + } + + 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:milvus.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:milvus.grpc.VectorRecord) + ::google::protobuf::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) + 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: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::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 .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 + +VectorParam::VectorParam() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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; +} + +VectorParam::~VectorParam() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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, + "milvus.grpc.VectorParam.json")); + } else { + goto handle_unusual; + } + if (input->ExpectTag(18)) goto parse_row_record; + break; + } + + // optional .milvus.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:milvus.grpc.VectorParam) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.VectorParam) + return false; +#undef DO_ +} + +void VectorParam::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.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, + "milvus.grpc.VectorParam.json"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->json(), output); + } + + // optional .milvus.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:milvus.grpc.VectorParam) +} + +::google::protobuf::uint8* VectorParam::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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, + "milvus.grpc.VectorParam.json"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->json(), target); + } + + // optional .milvus.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:milvus.grpc.VectorParam) + return target; +} + +int VectorParam::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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 .milvus.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:milvus.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:milvus.grpc.VectorParam) + ::google::protobuf::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) + 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()->::milvus::grpc::VectorRecord::MergeFrom(from.row_record()); + } +} + +void VectorParam::CopyFrom(const ::google::protobuf::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::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: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 + +FieldMeta::FieldMeta() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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); +} + +FieldMeta::~FieldMeta() { + // @@protoc_insertion_point(destructor:milvus.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: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_ + +} + +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:milvus.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, + "milvus.grpc.FieldMeta.field_name")); + } else { + goto handle_unusual; + } + if (input->ExpectTag(16)) goto parse_type; + break; + } + + // optional .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>( + 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; + 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:milvus.grpc.FieldMeta) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.FieldMeta) + return false; +#undef DO_ +} + +void FieldMeta::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.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, + "milvus.grpc.FieldMeta.field_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->field_name(), output); + } + + // optional .milvus.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:milvus.grpc.FieldMeta) +} + +::google::protobuf::uint8* FieldMeta::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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, + "milvus.grpc.FieldMeta.field_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->field_name(), target); + } + + // optional .milvus.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:milvus.grpc.FieldMeta) + return target; +} + +int FieldMeta::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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 .milvus.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:milvus.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:milvus.grpc.FieldMeta) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.FieldMeta) + MergeFrom(*source); + } +} + +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__); + } + 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:milvus.grpc.FieldMeta) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FieldMeta::CopyFrom(const FieldMeta& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.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: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 + +Schema::Schema() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@protoc_insertion_point(copy_constructor:milvus.grpc.Schema) +} + +void Schema::SharedCtor() { + _is_default_instance_ = false; + _cached_size_ = 0; +} + +Schema::~Schema() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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 .milvus.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:milvus.grpc.Schema) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.Schema) + return false; +#undef DO_ +} + +void Schema::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.Schema) + // 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); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.Schema) +} + +::google::protobuf::uint8* Schema::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Schema) + // 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); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Schema) + return target; +} + +int Schema::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.Schema) + int total_size = 0; + + // 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)); + } + + 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:milvus.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:milvus.grpc.Schema) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Schema) + MergeFrom(*source); + } +} + +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__); + } + field_metas_.MergeFrom(from.field_metas_); +} + +void Schema::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Schema) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Schema::CopyFrom(const Schema& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.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 .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 + +RowData::RowData() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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()); +} + +RowData::~RowData() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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:milvus.grpc.RowData) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.RowData) + return false; +#undef DO_ +} + +void RowData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.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:milvus.grpc.RowData) +} + +::google::protobuf::uint8* RowData::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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:milvus.grpc.RowData) + return target; +} + +int RowData::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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:milvus.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:milvus.grpc.RowData) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.RowData) + MergeFrom(*source); + } +} + +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__); + } + 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:milvus.grpc.RowData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RowData::CopyFrom(const RowData& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.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: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 + +InsertParam::InsertParam() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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()); +} + +InsertParam::~InsertParam() { + // @@protoc_insertion_point(destructor:milvus.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: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()); + 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:milvus.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, + "milvus.grpc.InsertParam.collection_name")); + } else { + goto handle_unusual; + } + if (input->ExpectTag(18)) goto parse_schema; + break; + } + + // optional .milvus.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 .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( + 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, + "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( + 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:milvus.grpc.InsertParam) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.InsertParam) + return false; +#undef DO_ +} + +void InsertParam::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.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, + "milvus.grpc.InsertParam.collection_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->collection_name(), output); + } + + // optional .milvus.grpc.Schema schema = 2; + if (this->has_schema()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->schema_, 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); + } + + // 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, + "milvus.grpc.InsertParam.partition_tag"); + ::google::protobuf::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); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.InsertParam) +} + +::google::protobuf::uint8* InsertParam::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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, + "milvus.grpc.InsertParam.collection_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->collection_name(), target); + } + + // optional .milvus.grpc.Schema schema = 2; + if (this->has_schema()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 2, *this->schema_, false, 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); + } + + // 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, + "milvus.grpc.InsertParam.partition_tag"); + target = + ::google::protobuf::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); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.InsertParam) + return target; +} + +int InsertParam::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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 .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()); + } + + // 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)); + } + + // 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 .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)); + } + + 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:milvus.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:milvus.grpc.InsertParam) + ::google::protobuf::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) + 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()->::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) { +// @@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::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: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 + +SearchParam::SearchParam() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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()); +} + +SearchParam::~SearchParam() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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, + "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( + 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, + "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( + 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, + "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( + 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:milvus.grpc.SearchParam) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.SearchParam) + return false; +#undef DO_ +} + +void SearchParam::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.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, + "milvus.grpc.SearchParam.collection_name"); + ::google::protobuf::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); + } + + // 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, + "milvus.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, + "milvus.grpc.SearchParam.partition_tag"); + ::google::protobuf::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); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.SearchParam) +} + +::google::protobuf::uint8* SearchParam::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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, + "milvus.grpc.SearchParam.collection_name"); + target = + ::google::protobuf::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); + } + + // 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, + "milvus.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, + "milvus.grpc.SearchParam.partition_tag"); + target = ::google::protobuf::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); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SearchParam) + return target; +} + +int SearchParam::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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 .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)); + } + + // 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 .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)); + } + + 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:milvus.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:milvus.grpc.SearchParam) + ::google::protobuf::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) + 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: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::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: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 + +SearchInSegmentParam::SearchInSegmentParam() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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; +} + +SearchInSegmentParam::~SearchInSegmentParam() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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, + "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; + 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:milvus.grpc.SearchInSegmentParam) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.SearchInSegmentParam) + return false; +#undef DO_ +} + +void SearchInSegmentParam::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.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, + "milvus.grpc.SearchInSegmentParam.file_id_array"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->file_id_array(i), output); + } + + // optional .milvus.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:milvus.grpc.SearchInSegmentParam) +} + +::google::protobuf::uint8* SearchInSegmentParam::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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, + "milvus.grpc.SearchInSegmentParam.file_id_array"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(1, this->file_id_array(i), target); + } + + // optional .milvus.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:milvus.grpc.SearchInSegmentParam) + return target; +} + +int SearchInSegmentParam::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.SearchInSegmentParam) + int 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_); + } + + // 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:milvus.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:milvus.grpc.SearchInSegmentParam) + ::google::protobuf::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) + 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()->::milvus::grpc::SearchParam::MergeFrom(from.search_param()); + } +} + +void SearchInSegmentParam::CopyFrom(const ::google::protobuf::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::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: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 + +Entities::Entities() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@protoc_insertion_point(copy_constructor:milvus.grpc.Entities) +} + +void Entities::SharedCtor() { + _is_default_instance_ = false; + _cached_size_ = 0; + status_ = NULL; +} + +Entities::~Entities() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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 .milvus.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 .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( + 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:milvus.grpc.Entities) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.Entities) + return false; +#undef DO_ +} + +void Entities::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.Entities) + // optional .milvus.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 .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); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.Entities) +} + +::google::protobuf::uint8* Entities::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Entities) + // optional .milvus.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 .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); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Entities) + return target; +} + +int Entities::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.Entities) + int total_size = 0; + + // optional .milvus.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 .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)); + } + + 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:milvus.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:milvus.grpc.Entities) + ::google::protobuf::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) + 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()->::milvus::grpc::Status::MergeFrom(from.status()); + } +} + +void Entities::CopyFrom(const ::google::protobuf::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::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 .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 + +QueryResult::QueryResult() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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); +} + +QueryResult::~QueryResult() { + // @@protoc_insertion_point(destructor:milvus.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: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); + 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:milvus.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 .milvus.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 .milvus.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 .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( + 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:milvus.grpc.QueryResult) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.QueryResult) + return false; +#undef DO_ +} + +void QueryResult::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.QueryResult) + // optional .milvus.grpc.Status status = 1; + if (this->has_status()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->status_, output); + } + + // optional .milvus.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 .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); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.QueryResult) +} + +::google::protobuf::uint8* QueryResult::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.QueryResult) + // optional .milvus.grpc.Status status = 1; + if (this->has_status()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *this->status_, false, target); + } + + // optional .milvus.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 .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); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.QueryResult) + return target; +} + +int QueryResult::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.QueryResult) + int 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()); + } + + // 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 .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)); + } + + 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:milvus.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:milvus.grpc.QueryResult) + ::google::protobuf::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) + 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()->::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 ::google::protobuf::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::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 .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 + +StringReply::StringReply() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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()); +} + +StringReply::~StringReply() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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 .milvus.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, + "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) { + goto success; + } + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + 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_ +} + +void StringReply::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.StringReply) + // optional .milvus.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, + "milvus.grpc.StringReply.string_reply"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->string_reply(), output); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.StringReply) +} + +::google::protobuf::uint8* StringReply::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.StringReply) + // optional .milvus.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, + "milvus.grpc.StringReply.string_reply"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->string_reply(), target); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.StringReply) + return target; +} + +int StringReply::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.StringReply) + int 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 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:milvus.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:milvus.grpc.StringReply) + ::google::protobuf::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) + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } + 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) { +// @@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::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 .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 + +BoolReply::BoolReply() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@protoc_insertion_point(copy_constructor:milvus.grpc.BoolReply) +} + +void BoolReply::SharedCtor() { + _is_default_instance_ = false; + _cached_size_ = 0; + status_ = NULL; + bool_reply_ = false; +} + +BoolReply::~BoolReply() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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 .milvus.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:milvus.grpc.BoolReply) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.BoolReply) + return false; +#undef DO_ +} + +void BoolReply::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.BoolReply) + // optional .milvus.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:milvus.grpc.BoolReply) +} + +::google::protobuf::uint8* BoolReply::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.BoolReply) + // optional .milvus.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:milvus.grpc.BoolReply) + return target; +} + +int BoolReply::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.BoolReply) + int total_size = 0; + + // optional .milvus.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:milvus.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:milvus.grpc.BoolReply) + ::google::protobuf::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) + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } + 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 ::google::protobuf::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::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 .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 + +CollectionRowCount::CollectionRowCount() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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); +} + +CollectionRowCount::~CollectionRowCount() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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 .milvus.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:milvus.grpc.CollectionRowCount) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.CollectionRowCount) + return false; +#undef DO_ +} + +void CollectionRowCount::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.CollectionRowCount) + // optional .milvus.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:milvus.grpc.CollectionRowCount) +} + +::google::protobuf::uint8* CollectionRowCount::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.CollectionRowCount) + // optional .milvus.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:milvus.grpc.CollectionRowCount) + return target; +} + +int CollectionRowCount::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.CollectionRowCount) + int total_size = 0; + + // optional .milvus.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:milvus.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:milvus.grpc.CollectionRowCount) + ::google::protobuf::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) + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } + 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 ::google::protobuf::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::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 .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 + +Command::Command() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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()); +} + +Command::~Command() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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, + "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) { + goto success; + } + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + 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_ +} + +void Command::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.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, + "milvus.grpc.Command.cmd"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->cmd(), output); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.Command) +} + +::google::protobuf::uint8* Command::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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, + "milvus.grpc.Command.cmd"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->cmd(), target); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Command) + return target; +} + +int Command::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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:milvus.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:milvus.grpc.Command) + ::google::protobuf::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) + 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: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::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: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 + +IndexParam::IndexParam() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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()); +} + +IndexParam::~IndexParam() { + // @@protoc_insertion_point(destructor:milvus.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: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()); + 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:milvus.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 .milvus.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, + "milvus.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, + "milvus.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, + "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( + 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:milvus.grpc.IndexParam) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.IndexParam) + return false; +#undef DO_ +} + +void IndexParam::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.IndexParam) + // optional .milvus.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, + "milvus.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, + "milvus.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, + "milvus.grpc.IndexParam.index_name"); + ::google::protobuf::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); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.IndexParam) +} + +::google::protobuf::uint8* IndexParam::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.IndexParam) + // optional .milvus.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, + "milvus.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, + "milvus.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, + "milvus.grpc.IndexParam.index_name"); + target = + ::google::protobuf::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); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.IndexParam) + return target; +} + +int IndexParam::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.IndexParam) + int 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()); + } + + // 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 .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)); + } + + 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:milvus.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:milvus.grpc.IndexParam) + ::google::protobuf::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) + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } + 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_); + } + 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: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::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 .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 + +FlushParam::FlushParam() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@protoc_insertion_point(copy_constructor:milvus.grpc.FlushParam) +} + +void FlushParam::SharedCtor() { + _is_default_instance_ = false; + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; +} + +FlushParam::~FlushParam() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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, + "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) { + goto success; + } + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + 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_ +} + +void FlushParam::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.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, + "milvus.grpc.FlushParam.collection_name_array"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->collection_name_array(i), output); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.FlushParam) +} + +::google::protobuf::uint8* FlushParam::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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, + "milvus.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:milvus.grpc.FlushParam) + return target; +} + +int FlushParam::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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:milvus.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:milvus.grpc.FlushParam) + ::google::protobuf::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) + 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: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::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: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 + +CompactParam::CompactParam() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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()); + threshold_ = 0; +} + +CompactParam::~CompactParam() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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, + "milvus.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:milvus.grpc.CompactParam) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.CompactParam) + return false; +#undef DO_ +} + +void CompactParam::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.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, + "milvus.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:milvus.grpc.CompactParam) +} + +::google::protobuf::uint8* CompactParam::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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, + "milvus.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:milvus.grpc.CompactParam) + return target; +} + +int CompactParam::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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:milvus.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:milvus.grpc.CompactParam) + ::google::protobuf::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) + 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: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::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: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 + +DeleteByIDParam::DeleteByIDParam() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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()); +} + +DeleteByIDParam::~DeleteByIDParam() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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, + "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>( + 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:milvus.grpc.DeleteByIDParam) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.DeleteByIDParam) + return false; +#undef DO_ +} + +void DeleteByIDParam::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.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, + "milvus.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:milvus.grpc.DeleteByIDParam) +} + +::google::protobuf::uint8* DeleteByIDParam::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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, + "milvus.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:milvus.grpc.DeleteByIDParam) + return target; +} + +int DeleteByIDParam::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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:milvus.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:milvus.grpc.DeleteByIDParam) + ::google::protobuf::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) + 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: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::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: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 + +CollectionInfo::CollectionInfo() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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()); +} + +CollectionInfo::~CollectionInfo() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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 .milvus.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, + "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) { + goto success; + } + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + 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_ +} + +void CollectionInfo::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.CollectionInfo) + // optional .milvus.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, + "milvus.grpc.CollectionInfo.json_info"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->json_info(), output); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.CollectionInfo) +} + +::google::protobuf::uint8* CollectionInfo::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.CollectionInfo) + // optional .milvus.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, + "milvus.grpc.CollectionInfo.json_info"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->json_info(), target); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.CollectionInfo) + return target; +} + +int CollectionInfo::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.CollectionInfo) + int 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 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:milvus.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:milvus.grpc.CollectionInfo) + ::google::protobuf::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) + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } + 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) { +// @@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::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 .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 + +GetEntityIDsParam::GetEntityIDsParam() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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); +} + +GetEntityIDsParam::~GetEntityIDsParam() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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, + "milvus.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:milvus.grpc.GetEntityIDsParam) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.GetEntityIDsParam) + return false; +#undef DO_ +} + +void GetEntityIDsParam::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.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, + "milvus.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:milvus.grpc.GetEntityIDsParam) +} + +::google::protobuf::uint8* GetEntityIDsParam::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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, + "milvus.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:milvus.grpc.GetEntityIDsParam) + return target; +} + +int GetEntityIDsParam::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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:milvus.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:milvus.grpc.GetEntityIDsParam) + ::google::protobuf::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) + 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: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::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: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 + +EntityIdentity::EntityIdentity() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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()); +} + +EntityIdentity::~EntityIdentity() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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, + "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>( + 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, + "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) { + goto success; + } + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + 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_ +} + +void EntityIdentity::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.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, + "milvus.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, + "milvus.grpc.EntityIdentity.field_names"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->field_names(i), output); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.EntityIdentity) +} + +::google::protobuf::uint8* EntityIdentity::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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, + "milvus.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, + "milvus.grpc.EntityIdentity.field_names"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(3, this->field_names(i), target); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.EntityIdentity) + return target; +} + +int EntityIdentity::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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:milvus.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:milvus.grpc.EntityIdentity) + ::google::protobuf::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) + 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: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::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: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 + +VectorFieldParam::VectorFieldParam() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@protoc_insertion_point(copy_constructor:milvus.grpc.VectorFieldParam) +} + +void VectorFieldParam::SharedCtor() { + _is_default_instance_ = false; + _cached_size_ = 0; + dimension_ = GOOGLE_LONGLONG(0); +} + +VectorFieldParam::~VectorFieldParam() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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:milvus.grpc.VectorFieldParam) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.VectorFieldParam) + return false; +#undef DO_ +} + +void VectorFieldParam::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.VectorFieldParam) + // optional int64 dimension = 1; + if (this->dimension() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->dimension(), output); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.VectorFieldParam) +} + +::google::protobuf::uint8* VectorFieldParam::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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:milvus.grpc.VectorFieldParam) + return target; +} + +int VectorFieldParam::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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:milvus.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:milvus.grpc.VectorFieldParam) + ::google::protobuf::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) + 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: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::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: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 + +FieldType::FieldType() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@protoc_insertion_point(copy_constructor:milvus.grpc.FieldType) +} + +void FieldType::SharedCtor() { + _is_default_instance_ = false; + _cached_size_ = 0; + clear_has_value(); +} + +FieldType::~FieldType() { + // @@protoc_insertion_point(destructor:milvus.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: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) + 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:milvus.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 .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>( + 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; + 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:milvus.grpc.FieldType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.FieldType) + return false; +#undef DO_ +} + +void FieldType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.FieldType) + // optional .milvus.grpc.DataType data_type = 1; + if (has_data_type()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->data_type(), output); + } + + // optional .milvus.grpc.VectorFieldParam vector_param = 2; + if (has_vector_param()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *value_.vector_param_, output); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.FieldType) +} + +::google::protobuf::uint8* FieldType::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.FieldType) + // optional .milvus.grpc.DataType data_type = 1; + if (has_data_type()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->data_type(), target); + } + + // optional .milvus.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:milvus.grpc.FieldType) + return target; +} + +int FieldType::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.FieldType) + int total_size = 0; + + switch (value_case()) { + // optional .milvus.grpc.DataType data_type = 1; + case kDataType: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->data_type()); + break; + } + // optional .milvus.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:milvus.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:milvus.grpc.FieldType) + ::google::protobuf::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) + 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()->::milvus::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: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::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 .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 + +FieldParam::FieldParam() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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; +} + +FieldParam::~FieldParam() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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, + "milvus.grpc.FieldParam.name")); + } else { + goto handle_unusual; + } + if (input->ExpectTag(24)) goto parse_type; + break; + } + + // optional .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>( + 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( + 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( + 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:milvus.grpc.FieldParam) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.FieldParam) + return false; +#undef DO_ +} + +void FieldParam::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.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, + "milvus.grpc.FieldParam.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->name(), output); + } + + // optional .milvus.grpc.DataType type = 3; + if (this->type() != 0) { + ::google::protobuf::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); + } + + // 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); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.FieldParam) +} + +::google::protobuf::uint8* FieldParam::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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, + "milvus.grpc.FieldParam.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->name(), target); + } + + // optional .milvus.grpc.DataType type = 3; + if (this->type() != 0) { + target = ::google::protobuf::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); + } + + // 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); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.FieldParam) + return target; +} + +int FieldParam::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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 .milvus.grpc.DataType type = 3; + if (this->type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + } + + // 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)); + } + + // 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)); + } + + 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:milvus.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:milvus.grpc.FieldParam) + ::google::protobuf::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) + 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: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::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: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 + +VectorFieldRecord::VectorFieldRecord() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@protoc_insertion_point(copy_constructor:milvus.grpc.VectorFieldRecord) +} + +void VectorFieldRecord::SharedCtor() { + _is_default_instance_ = false; + _cached_size_ = 0; +} + +VectorFieldRecord::~VectorFieldRecord() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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 .milvus.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:milvus.grpc.VectorFieldRecord) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.VectorFieldRecord) + return false; +#undef DO_ +} + +void VectorFieldRecord::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.VectorFieldRecord) + // 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); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.VectorFieldRecord) +} + +::google::protobuf::uint8* VectorFieldRecord::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.VectorFieldRecord) + // 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); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.VectorFieldRecord) + return target; +} + +int VectorFieldRecord::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.VectorFieldRecord) + int total_size = 0; + + // 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)); + } + + 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:milvus.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:milvus.grpc.VectorFieldRecord) + ::google::protobuf::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) + 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: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::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 .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 + +TermQuery::TermQuery() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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; +} + +TermQuery::~TermQuery() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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, + "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>( + 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 .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( + 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:milvus.grpc.TermQuery) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.TermQuery) + return false; +#undef DO_ +} + +void TermQuery::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.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, + "milvus.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 .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); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.TermQuery) +} + +::google::protobuf::uint8* TermQuery::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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, + "milvus.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 .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); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.TermQuery) + return target; +} + +int TermQuery::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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 .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)); + } + + 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:milvus.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:milvus.grpc.TermQuery) + ::google::protobuf::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) + 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: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::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: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 + +CompareExpr::CompareExpr() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@protoc_insertion_point(copy_constructor:milvus.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:milvus.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:milvus.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:milvus.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 .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>( + 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; + 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, + "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) { + goto success; + } + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + 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_ +} + +void CompareExpr::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.CompareExpr) + // optional .milvus.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, + "milvus.grpc.CompareExpr.operand"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->operand(), output); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.CompareExpr) +} + +::google::protobuf::uint8* CompareExpr::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.CompareExpr) + // optional .milvus.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, + "milvus.grpc.CompareExpr.operand"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->operand(), target); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.CompareExpr) + return target; +} + +int CompareExpr::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.CompareExpr) + int total_size = 0; + + // optional .milvus.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:milvus.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:milvus.grpc.CompareExpr) + ::google::protobuf::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) + 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: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::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 .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 + +RangeQuery::RangeQuery() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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()); + boost_ = 0; +} + +RangeQuery::~RangeQuery() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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, + "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( + 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 .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( + 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:milvus.grpc.RangeQuery) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.RangeQuery) + return false; +#undef DO_ +} + +void RangeQuery::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.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, + "milvus.grpc.RangeQuery.field_name"); + ::google::protobuf::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); + } + + // optional float boost = 3; + if (this->boost() != 0) { + ::google::protobuf::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); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.RangeQuery) +} + +::google::protobuf::uint8* RangeQuery::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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, + "milvus.grpc.RangeQuery.field_name"); + target = + ::google::protobuf::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); + } + + // optional float boost = 3; + if (this->boost() != 0) { + target = ::google::protobuf::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); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.RangeQuery) + return target; +} + +int RangeQuery::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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 .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)); + } + + // 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)); + } + + 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:milvus.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:milvus.grpc.RangeQuery) + ::google::protobuf::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) + 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: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::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: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 + +VectorQuery::VectorQuery() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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); +} + +VectorQuery::~VectorQuery() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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, + "milvus.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 .milvus.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 .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( + 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:milvus.grpc.VectorQuery) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.VectorQuery) + return false; +#undef DO_ +} + +void VectorQuery::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.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, + "milvus.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 .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); + } + + // optional int64 topk = 4; + if (this->topk() != 0) { + ::google::protobuf::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); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.VectorQuery) +} + +::google::protobuf::uint8* VectorQuery::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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, + "milvus.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 .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); + } + + // optional int64 topk = 4; + if (this->topk() != 0) { + target = ::google::protobuf::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); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.VectorQuery) + return target; +} + +int VectorQuery::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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 .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)); + } + + // 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)); + } + + 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:milvus.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:milvus.grpc.VectorQuery) + ::google::protobuf::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) + 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: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::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: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 + +BooleanQuery::BooleanQuery() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@protoc_insertion_point(copy_constructor:milvus.grpc.BooleanQuery) +} + +void BooleanQuery::SharedCtor() { + _is_default_instance_ = false; + _cached_size_ = 0; + occur_ = 0; +} + +BooleanQuery::~BooleanQuery() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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 .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>( + 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( + 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:milvus.grpc.BooleanQuery) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.BooleanQuery) + return false; +#undef DO_ +} + +void BooleanQuery::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.BooleanQuery) + // optional .milvus.grpc.Occur occur = 1; + if (this->occur() != 0) { + ::google::protobuf::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); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.BooleanQuery) +} + +::google::protobuf::uint8* BooleanQuery::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.BooleanQuery) + // optional .milvus.grpc.Occur occur = 1; + if (this->occur() != 0) { + target = ::google::protobuf::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); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.BooleanQuery) + return target; +} + +int BooleanQuery::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.BooleanQuery) + int total_size = 0; + + // optional .milvus.grpc.Occur occur = 1; + if (this->occur() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->occur()); + } + + // 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)); + } + + 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:milvus.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:milvus.grpc.BooleanQuery) + ::google::protobuf::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) + 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: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::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 .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 + +GeneralQuery::GeneralQuery() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@protoc_insertion_point(copy_constructor:milvus.grpc.GeneralQuery) +} + +void GeneralQuery::SharedCtor() { + _is_default_instance_ = false; + _cached_size_ = 0; + clear_has_query(); +} + +GeneralQuery::~GeneralQuery() { + // @@protoc_insertion_point(destructor:milvus.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: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) + 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:milvus.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 .milvus.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 .milvus.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 .milvus.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 .milvus.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:milvus.grpc.GeneralQuery) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.GeneralQuery) + return false; +#undef DO_ +} + +void GeneralQuery::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.GeneralQuery) + // optional .milvus.grpc.BooleanQuery boolean_query = 1; + if (has_boolean_query()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *query_.boolean_query_, output); + } + + // optional .milvus.grpc.TermQuery term_query = 2; + if (has_term_query()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *query_.term_query_, output); + } + + // optional .milvus.grpc.RangeQuery range_query = 3; + if (has_range_query()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *query_.range_query_, output); + } + + // optional .milvus.grpc.VectorQuery vector_query = 4; + if (has_vector_query()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *query_.vector_query_, output); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.GeneralQuery) +} + +::google::protobuf::uint8* GeneralQuery::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.GeneralQuery) + // optional .milvus.grpc.BooleanQuery boolean_query = 1; + if (has_boolean_query()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *query_.boolean_query_, false, target); + } + + // optional .milvus.grpc.TermQuery term_query = 2; + if (has_term_query()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 2, *query_.term_query_, false, target); + } + + // optional .milvus.grpc.RangeQuery range_query = 3; + if (has_range_query()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 3, *query_.range_query_, false, target); + } + + // optional .milvus.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:milvus.grpc.GeneralQuery) + return target; +} + +int GeneralQuery::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.GeneralQuery) + int total_size = 0; + + switch (query_case()) { + // optional .milvus.grpc.BooleanQuery boolean_query = 1; + case kBooleanQuery: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *query_.boolean_query_); + break; + } + // optional .milvus.grpc.TermQuery term_query = 2; + case kTermQuery: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *query_.term_query_); + break; + } + // optional .milvus.grpc.RangeQuery range_query = 3; + case kRangeQuery: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *query_.range_query_); + break; + } + // optional .milvus.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:milvus.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:milvus.grpc.GeneralQuery) + ::google::protobuf::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) + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } + 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 ::google::protobuf::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::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 .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 + +SearchParamPB::SearchParamPB() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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; +} + +SearchParamPB::~SearchParamPB() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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, + "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( + 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, + "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; + 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 .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( + 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:milvus.grpc.SearchParamPB) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.SearchParamPB) + return false; +#undef DO_ +} + +void SearchParamPB::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.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, + "milvus.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, + "milvus.grpc.SearchParamPB.partition_tag_array"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->partition_tag_array(i), output); + } + + // optional .milvus.grpc.GeneralQuery general_query = 3; + if (this->has_general_query()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *this->general_query_, 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); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.SearchParamPB) +} + +::google::protobuf::uint8* SearchParamPB::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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, + "milvus.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, + "milvus.grpc.SearchParamPB.partition_tag_array"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(2, this->partition_tag_array(i), target); + } + + // optional .milvus.grpc.GeneralQuery general_query = 3; + if (this->has_general_query()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 3, *this->general_query_, false, 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); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SearchParamPB) + return target; +} + +int SearchParamPB::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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 .milvus.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 .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)); + } + + 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:milvus.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:milvus.grpc.SearchParamPB) + ::google::protobuf::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) + 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()->::milvus::grpc::GeneralQuery::MergeFrom(from.general_query()); + } +} + +void SearchParamPB::CopyFrom(const ::google::protobuf::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::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: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 + +InsertOrDeleteMsg::InsertOrDeleteMsg() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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); +} + +InsertOrDeleteMsg::~InsertOrDeleteMsg() { + // @@protoc_insertion_point(destructor:milvus.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: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_ + + 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:milvus.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, + "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; + 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, + "milvus.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 .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>( + 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; + 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 .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( + 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:milvus.grpc.InsertOrDeleteMsg) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.InsertOrDeleteMsg) + return false; +#undef DO_ +} + +void InsertOrDeleteMsg::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.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, + "milvus.grpc.InsertOrDeleteMsg.collection_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->collection_name(), output); + } + + // optional .milvus.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, + "milvus.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 .milvus.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 .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); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.InsertOrDeleteMsg) +} + +::google::protobuf::uint8* InsertOrDeleteMsg::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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, + "milvus.grpc.InsertOrDeleteMsg.collection_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->collection_name(), target); + } + + // optional .milvus.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, + "milvus.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 .milvus.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 .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); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.InsertOrDeleteMsg) + return target; +} + +int InsertOrDeleteMsg::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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 .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; + 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 .milvus.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 .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)); + } + + 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:milvus.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:milvus.grpc.InsertOrDeleteMsg) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.InsertOrDeleteMsg) + MergeFrom(*source); + } +} + +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__); + } + 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()->::milvus::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:milvus.grpc.InsertOrDeleteMsg) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void InsertOrDeleteMsg::CopyFrom(const InsertOrDeleteMsg& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.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: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 + +SearchMsg::SearchMsg() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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); +} + +SearchMsg::~SearchMsg() { + // @@protoc_insertion_point(destructor:milvus.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: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_ + + 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:milvus.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, + "milvus.grpc.SearchMsg.collection_name")); + } else { + goto handle_unusual; + } + if (input->ExpectTag(18)) goto parse_records; + break; + } + + // optional .milvus.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, + "milvus.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 .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( + 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:milvus.grpc.SearchMsg) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.SearchMsg) + return false; +#undef DO_ +} + +void SearchMsg::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.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, + "milvus.grpc.SearchMsg.collection_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->collection_name(), output); + } + + // optional .milvus.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, + "milvus.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 .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); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.SearchMsg) +} + +::google::protobuf::uint8* SearchMsg::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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, + "milvus.grpc.SearchMsg.collection_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->collection_name(), target); + } + + // optional .milvus.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, + "milvus.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 .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); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SearchMsg) + return target; +} + +int SearchMsg::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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 .milvus.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 .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(); + return total_size; +} + +void SearchMsg::MergeFrom(const ::google::protobuf::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( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.SearchMsg) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SearchMsg) + MergeFrom(*source); + } +} + +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__); + } + 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()); + } + 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:milvus.grpc.SearchMsg) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SearchMsg::CopyFrom(const SearchMsg& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.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: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 + +TimeSyncMsg::TimeSyncMsg() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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; +} + +TimeSyncMsg::~TimeSyncMsg() { + // @@protoc_insertion_point(destructor:milvus.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: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_ + +} + +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:milvus.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 peer_Id = 1; + case 1: { + if (tag == 8) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &peer_id_))); + + } 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_sync_type; + break; + } + + // optional .milvus.grpc.SyncType sync_type = 3; + case 3: { + if (tag == 24) { + parse_sync_type: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_sync_type(static_cast< ::milvus::grpc::SyncType >(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:milvus.grpc.TimeSyncMsg) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.TimeSyncMsg) + return false; +#undef DO_ +} + +void TimeSyncMsg::SerializeWithCachedSizes( + ::google::protobuf::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); + } + + // optional int64 Timestamp = 2; + if (this->timestamp() != 0) { + ::google::protobuf::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); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.TimeSyncMsg) +} + +::google::protobuf::uint8* TimeSyncMsg::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::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); + } + + // optional int64 Timestamp = 2; + if (this->timestamp() != 0) { + target = ::google::protobuf::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); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.TimeSyncMsg) + return target; +} + +int TimeSyncMsg::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.TimeSyncMsg) + int total_size = 0; + + // optional int64 peer_Id = 1; + if (this->peer_id() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->peer_id()); + } + + // optional int64 Timestamp = 2; + if (this->timestamp() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->timestamp()); + } + + // optional .milvus.grpc.SyncType sync_type = 3; + if (this->sync_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->sync_type()); + } + + 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:milvus.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:milvus.grpc.TimeSyncMsg) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.TimeSyncMsg) + MergeFrom(*source); + } +} + +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()); + } + if (from.timestamp() != 0) { + set_timestamp(from.timestamp()); + } + if (from.sync_type() != 0) { + set_sync_type(from.sync_type()); + } +} + +void TimeSyncMsg::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.TimeSyncMsg) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TimeSyncMsg::CopyFrom(const TimeSyncMsg& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.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(peer_id_, other->peer_id_); + std::swap(timestamp_, other->timestamp_); + std::swap(sync_type_, other->sync_type_); + _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 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 + +SegmentRecord::SegmentRecord() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@protoc_insertion_point(copy_constructor:milvus.grpc.SegmentRecord) +} + +void SegmentRecord::SharedCtor() { + _is_default_instance_ = false; + _cached_size_ = 0; + uid_ = GOOGLE_LONGLONG(0); +} + +SegmentRecord::~SegmentRecord() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.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:milvus.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:milvus.grpc.SegmentRecord) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.SegmentRecord) + return false; +#undef DO_ +} + +void SegmentRecord::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.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:milvus.grpc.SegmentRecord) +} + +::google::protobuf::uint8* SegmentRecord::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.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:milvus.grpc.SegmentRecord) + return target; +} + +int SegmentRecord::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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:milvus.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:milvus.grpc.SegmentRecord) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SegmentRecord) + MergeFrom(*source); + } +} + +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__); + } + 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:milvus.grpc.SegmentRecord) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SegmentRecord::CopyFrom(const SegmentRecord& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.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: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 + +Key2SegMsg::Key2SegMsg() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + 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); + // @@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; +} + +Key2SegMsg::~Key2SegMsg() { + // @@protoc_insertion_point(destructor:milvus.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:milvus.grpc.Key2SegMsg) + client_id_ = GOOGLE_LONGLONG(0); + if (GetArenaNoVirtual() == NULL && records_ != NULL) delete records_; + records_ = NULL; +} + +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:milvus.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 .milvus.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->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.Key2SegMsg) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.Key2SegMsg) + return false; +#undef DO_ +} + +void Key2SegMsg::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.Key2SegMsg) + // optional int64 client_id = 1; + if (this->client_id() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->client_id(), output); + } + + // optional .milvus.grpc.SegmentRecord records = 2; + if (this->has_records()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->records_, output); + } + + // @@protoc_insertion_point(serialize_end:milvus.grpc.Key2SegMsg) +} + +::google::protobuf::uint8* Key2SegMsg::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Key2SegMsg) + // optional int64 client_id = 1; + if (this->client_id() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->client_id(), target); + } + + // optional .milvus.grpc.SegmentRecord records = 2; + if (this->has_records()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 2, *this->records_, false, target); + } + + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Key2SegMsg) + return target; +} + +int Key2SegMsg::ByteSize() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.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 .milvus.grpc.SegmentRecord records = 2; + if (this->has_records()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->records_); + } + + 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:milvus.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:milvus.grpc.Key2SegMsg) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Key2SegMsg) + MergeFrom(*source); + } +} + +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__); + } + if (from.client_id() != 0) { + set_client_id(from.client_id()); + } + if (from.has_records()) { + mutable_records()->::milvus::grpc::SegmentRecord::MergeFrom(from.records()); + } +} + +void Key2SegMsg::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Key2SegMsg) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Key2SegMsg::CopyFrom(const Key2SegMsg& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.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_); + _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: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 + +// @@protoc_insertion_point(global_scope) diff --git a/proxy/src/grpc/gen-milvus/suvlim.pb.h b/proxy/src/grpc/gen-milvus/suvlim.pb.h new file mode 100644 index 0000000000..5d0c358ccc --- /dev/null +++ b/proxy/src/grpc/gen-milvus/suvlim.pb.h @@ -0,0 +1,10346 @@ +// 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 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 { + 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, + 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 = DELETE; +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); +} +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) */ { + 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:milvus.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:milvus.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:milvus.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:milvus.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 .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); + + // 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:milvus.grpc.CollectionNameList) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + bool _is_default_instance_; + ::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_; +}; +// ------------------------------------------------------------------- + +class FieldName : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.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:milvus.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:milvus.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 .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); + + // 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 >* + mutable_fields(); + const ::google::protobuf::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 >* + mutable_extra_params(); + const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& + extra_params() const; + + // @@protoc_insertion_point(class_scope:milvus.grpc.Mapping) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + bool _is_default_instance_; + ::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_; +}; +// ------------------------------------------------------------------- + +class MappingList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.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 .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); + + // 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 >* + mutable_mapping_list(); + const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::Mapping >& + mapping_list() const; + + // @@protoc_insertion_point(class_scope:milvus.grpc.MappingList) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + bool _is_default_instance_; + ::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_; +}; +// ------------------------------------------------------------------- + +class PartitionParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.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:milvus.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:milvus.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 .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); + + // 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:milvus.grpc.PartitionList) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + bool _is_default_instance_; + ::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_; +}; +// ------------------------------------------------------------------- + +class VectorRowRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.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:milvus.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:milvus.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 .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); + + // 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:milvus.grpc.EntityIds) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + bool _is_default_instance_; + ::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_; +}; +// ------------------------------------------------------------------- + +class VectorRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.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 .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 >* + mutable_records(); + const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& + records() const; + + // @@protoc_insertion_point(class_scope:milvus.grpc.VectorRecord) + private: + + ::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_; +}; +// ------------------------------------------------------------------- + +class VectorParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.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 .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(); + void set_allocated_row_record(::milvus::grpc::VectorRecord* row_record); + + // @@protoc_insertion_point(class_scope:milvus.grpc.VectorParam) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + bool _is_default_instance_; + ::google::protobuf::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_; +}; +// ------------------------------------------------------------------- + +class FieldMeta : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.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 .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: + + ::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:milvus.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 .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 >* + mutable_field_metas(); + const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::FieldMeta >& + field_metas() const; + + // @@protoc_insertion_point(class_scope:milvus.grpc.Schema) + private: + + ::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_; +}; +// ------------------------------------------------------------------- + +class RowData : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.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:milvus.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:milvus.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 .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); + + // 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 >* + mutable_rows_data(); + const ::google::protobuf::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 >& + 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 .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 >* + mutable_extra_params(); + const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& + extra_params() const; + + // @@protoc_insertion_point(class_scope:milvus.grpc.InsertParam) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + bool _is_default_instance_; + ::google::protobuf::internal::ArenaStringPtr collection_name_; + ::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_; +}; +// ------------------------------------------------------------------- + +class SearchParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.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 .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 >* + mutable_vector_param(); + const ::google::protobuf::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); + 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 .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 >* + mutable_extra_params(); + const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& + extra_params() const; + + // @@protoc_insertion_point(class_scope:milvus.grpc.SearchParam) + private: + + ::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_; +}; +// ------------------------------------------------------------------- + +class SearchInSegmentParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.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 .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(); + void set_allocated_search_param(::milvus::grpc::SearchParam* search_param); + + // @@protoc_insertion_point(class_scope:milvus.grpc.SearchInSegmentParam) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + bool _is_default_instance_; + ::google::protobuf::RepeatedPtrField< ::std::string> 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_; +}; +// ------------------------------------------------------------------- + +class Entities : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.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 .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); + + // 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 .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 >* + mutable_rows_data(); + const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowData >& + rows_data() const; + + // @@protoc_insertion_point(class_scope:milvus.grpc.Entities) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + bool _is_default_instance_; + ::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_; +}; +// ------------------------------------------------------------------- + +class QueryResult : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.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 .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); + + // 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 .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 >* + mutable_extra_params(); + const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& + extra_params() const; + + // @@protoc_insertion_point(class_scope:milvus.grpc.QueryResult) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + bool _is_default_instance_; + ::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_; +}; +// ------------------------------------------------------------------- + +class StringReply : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.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 .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; + 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:milvus.grpc.StringReply) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + bool _is_default_instance_; + ::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_; +}; +// ------------------------------------------------------------------- + +class BoolReply : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.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 .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 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: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + bool _is_default_instance_; + ::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_; +}; +// ------------------------------------------------------------------- + +class CollectionRowCount : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.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 .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 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:milvus.grpc.CollectionRowCount) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + bool _is_default_instance_; + ::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_; +}; +// ------------------------------------------------------------------- + +class Command : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.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:milvus.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:milvus.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 .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); + + // 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 >* + mutable_extra_params(); + const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& + extra_params() const; + + // @@protoc_insertion_point(class_scope:milvus.grpc.IndexParam) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + bool _is_default_instance_; + ::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_; +}; +// ------------------------------------------------------------------- + +class FlushParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.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:milvus.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:milvus.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:milvus.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:milvus.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:milvus.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:milvus.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 .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; + 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:milvus.grpc.CollectionInfo) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + bool _is_default_instance_; + ::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_; +}; +// ------------------------------------------------------------------- + +class GetEntityIDsParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.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:milvus.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:milvus.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:milvus.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:milvus.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:milvus.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:milvus.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 .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; + 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(); + void set_allocated_vector_param(::milvus::grpc::VectorFieldParam* vector_param); + + 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(); + + 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_; + ::milvus::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:milvus.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 .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); + + // 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 >* + mutable_index_params(); + const ::google::protobuf::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 >* + mutable_extra_params(); + const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& + extra_params() const; + + // @@protoc_insertion_point(class_scope:milvus.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< ::milvus::grpc::KeyValuePair > index_params_; + ::google::protobuf::RepeatedPtrField< ::milvus::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:milvus.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 .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 >* + mutable_value(); + const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& + value() const; + + // @@protoc_insertion_point(class_scope:milvus.grpc.VectorFieldRecord) + private: + + ::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_; +}; +// ------------------------------------------------------------------- + +class TermQuery : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.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 .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 >* + mutable_extra_params(); + const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& + extra_params() const; + + // @@protoc_insertion_point(class_scope:milvus.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< ::milvus::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:milvus.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 .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: + + ::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:milvus.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 .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 >* + mutable_operand(); + const ::google::protobuf::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 >* + mutable_extra_params(); + const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& + extra_params() const; + + // @@protoc_insertion_point(class_scope:milvus.grpc.RangeQuery) + private: + + ::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_; + 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:milvus.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 .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 >* + mutable_records(); + const ::google::protobuf::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 >* + mutable_extra_params(); + const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& + extra_params() const; + + // @@protoc_insertion_point(class_scope:milvus.grpc.VectorQuery) + private: + + ::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_; + 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:milvus.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 .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); + + // 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 >* + mutable_general_query(); + const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::GeneralQuery >& + general_query() const; + + // @@protoc_insertion_point(class_scope:milvus.grpc.BooleanQuery) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + bool _is_default_instance_; + ::google::protobuf::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_; +}; +// ------------------------------------------------------------------- + +class GeneralQuery : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.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 .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(); + void set_allocated_boolean_query(::milvus::grpc::BooleanQuery* boolean_query); + + // optional .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(); + void set_allocated_term_query(::milvus::grpc::TermQuery* term_query); + + // optional .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(); + void set_allocated_range_query(::milvus::grpc::RangeQuery* range_query); + + // optional .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(); + void set_allocated_vector_query(::milvus::grpc::VectorQuery* vector_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(); + + 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() {} + ::milvus::grpc::BooleanQuery* boolean_query_; + ::milvus::grpc::TermQuery* term_query_; + ::milvus::grpc::RangeQuery* range_query_; + ::milvus::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:milvus.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 .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); + + // 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 >* + mutable_extra_params(); + const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& + extra_params() const; + + // @@protoc_insertion_point(class_scope:milvus.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_; + ::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_; +}; +// ------------------------------------------------------------------- + +class InsertOrDeleteMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.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 .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); + + // 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 >* + mutable_extra_params(); + const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& + extra_params() const; + + // @@protoc_insertion_point(class_scope:milvus.grpc.InsertOrDeleteMsg) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + bool _is_default_instance_; + ::google::protobuf::internal::ArenaStringPtr collection_name_; + ::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_; + 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:milvus.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 .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); + + // 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 >* + mutable_extra_params(); + const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& + extra_params() const; + + // @@protoc_insertion_point(class_scope:milvus.grpc.SearchMsg) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + bool _is_default_instance_; + ::google::protobuf::internal::ArenaStringPtr collection_name_; + ::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_; +}; +// ------------------------------------------------------------------- + +class TimeSyncMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.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 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); + + // 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 .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); + + // @@protoc_insertion_point(class_scope:milvus.grpc.TimeSyncMsg) + private: + + ::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_; +}; +// ------------------------------------------------------------------- + +class SegmentRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.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:milvus.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:milvus.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 .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(); + void set_allocated_records(::milvus::grpc::SegmentRecord* records); + + // @@protoc_insertion_point(class_scope:milvus.grpc.Key2SegMsg) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + bool _is_default_instance_; + ::google::protobuf::int64 client_id_; + ::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_; +}; +// =================================================================== + + +// =================================================================== + +#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) +} + +// ------------------------------------------------------------------- + +// 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:milvus.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:milvus.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:milvus.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:milvus.grpc.KeyValuePair.key) +} +inline ::std::string* KeyValuePair::mutable_key() { + + // @@protoc_insertion_point(field_mutable:milvus.grpc.KeyValuePair.key) + return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* KeyValuePair::release_key() { + // @@protoc_insertion_point(field_release:milvus.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:milvus.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:milvus.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:milvus.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:milvus.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:milvus.grpc.KeyValuePair.value) +} +inline ::std::string* KeyValuePair::mutable_value() { + + // @@protoc_insertion_point(field_mutable:milvus.grpc.KeyValuePair.value) + return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* KeyValuePair::release_value() { + // @@protoc_insertion_point(field_release:milvus.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:milvus.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:milvus.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:milvus.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:milvus.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: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(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +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()); +} +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:milvus.grpc.CollectionName.collection_name) +} + +// ------------------------------------------------------------------- + +// CollectionNameList + +// optional .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; +} +inline const ::milvus::grpc::Status& CollectionNameList::status() const { + // @@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_; +} +inline ::milvus::grpc::Status* CollectionNameList::release_status() { + // @@protoc_insertion_point(field_release:milvus.grpc.CollectionNameList.status) + + ::milvus::grpc::Status* temp = status_; + status_ = NULL; + return temp; +} +inline 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; +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, const char* value) { + 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(const char* value) { + 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 ::google::protobuf::RepeatedPtrField< ::std::string>& +CollectionNameList::collection_names() const { + // @@protoc_insertion_point(field_list:milvus.grpc.CollectionNameList.collection_names) + return collection_names_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +CollectionNameList::mutable_collection_names() { + // @@protoc_insertion_point(field_mutable_list:milvus.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:milvus.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:milvus.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:milvus.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: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(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +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()); +} +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:milvus.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:milvus.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:milvus.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:milvus.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: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(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +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()); +} +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:milvus.grpc.FieldName.field_name) +} + +// ------------------------------------------------------------------- + +// Mapping + +// optional .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; +} +inline const ::milvus::grpc::Status& Mapping::status() const { + // @@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_; +} +inline ::milvus::grpc::Status* Mapping::release_status() { + // @@protoc_insertion_point(field_release:milvus.grpc.Mapping.status) + + ::milvus::grpc::Status* temp = status_; + status_ = NULL; + return temp; +} +inline 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; +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:milvus.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:milvus.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:milvus.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: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(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +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()); +} +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: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 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 ::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 >& +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 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 ::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 >& +Mapping::extra_params() const { + // @@protoc_insertion_point(field_list:milvus.grpc.Mapping.extra_params) + return extra_params_; +} + +// ------------------------------------------------------------------- + +// MappingList + +// optional .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; +} +inline const ::milvus::grpc::Status& MappingList::status() const { + // @@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_; +} +inline ::milvus::grpc::Status* MappingList::release_status() { + // @@protoc_insertion_point(field_release:milvus.grpc.MappingList.status) + + ::milvus::grpc::Status* temp = status_; + status_ = NULL; + return temp; +} +inline 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; +inline int MappingList::mapping_list_size() const { + return mapping_list_.size(); +} +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 ::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 >& +MappingList::mapping_list() const { + // @@protoc_insertion_point(field_list:milvus.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:milvus.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:milvus.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:milvus.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: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(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +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()); +} +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:milvus.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:milvus.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:milvus.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:milvus.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:milvus.grpc.PartitionParam.tag) +} +inline ::std::string* PartitionParam::mutable_tag() { + + // @@protoc_insertion_point(field_mutable:milvus.grpc.PartitionParam.tag) + return tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* PartitionParam::release_tag() { + // @@protoc_insertion_point(field_release:milvus.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:milvus.grpc.PartitionParam.tag) +} + +// ------------------------------------------------------------------- + +// PartitionList + +// optional .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; +} +inline const ::milvus::grpc::Status& PartitionList::status() const { + // @@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_; +} +inline ::milvus::grpc::Status* PartitionList::release_status() { + // @@protoc_insertion_point(field_release:milvus.grpc.PartitionList.status) + + ::milvus::grpc::Status* temp = status_; + status_ = NULL; + return temp; +} +inline 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; +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, const char* value) { + 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(const char* value) { + 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 ::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_; +} +inline ::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_; +} + +// ------------------------------------------------------------------- + +// 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 ::google::protobuf::RepeatedField< float >& +VectorRowRecord::float_data() const { + // @@protoc_insertion_point(field_list:milvus.grpc.VectorRowRecord.float_data) + return float_data_; +} +inline ::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; +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:milvus.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:milvus.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:milvus.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: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(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +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()); +} +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:milvus.grpc.VectorRowRecord.binary_data) +} + +// ------------------------------------------------------------------- + +// EntityIds + +// optional .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; +} +inline const ::milvus::grpc::Status& EntityIds::status() const { + // @@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_; +} +inline ::milvus::grpc::Status* EntityIds::release_status() { + // @@protoc_insertion_point(field_release:milvus.grpc.EntityIds.status) + + ::milvus::grpc::Status* temp = status_; + status_ = NULL; + return temp; +} +inline 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; +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: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) { + 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) { + entity_id_array_.Add(value); + // @@protoc_insertion_point(field_add:milvus.grpc.EntityIds.entity_id_array) +} +inline 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_; +} +inline ::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_; +} + +// ------------------------------------------------------------------- + +// VectorRecord + +// repeated .milvus.grpc.VectorRowRecord records = 1; +inline int VectorRecord::records_size() const { + return records_.size(); +} +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 ::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 >& +VectorRecord::records() const { + // @@protoc_insertion_point(field_list:milvus.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:milvus.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:milvus.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:milvus.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:milvus.grpc.VectorParam.json) +} +inline ::std::string* VectorParam::mutable_json() { + + // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorParam.json) + return json_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* VectorParam::release_json() { + // @@protoc_insertion_point(field_release:milvus.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:milvus.grpc.VectorParam.json) +} + +// optional .milvus.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 ::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_; +} +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_; +} +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; + return temp; +} +inline 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) +} + +// ------------------------------------------------------------------- + +// 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:milvus.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:milvus.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:milvus.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:milvus.grpc.FieldMeta.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()); +} +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()); +} +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:milvus.grpc.FieldMeta.field_name) +} + +// optional .milvus.grpc.DataType type = 2; +inline void FieldMeta::clear_type() { + type_ = 0; +} +inline ::milvus::grpc::DataType FieldMeta::type() const { + // @@protoc_insertion_point(field_get:milvus.grpc.FieldMeta.type) + return static_cast< ::milvus::grpc::DataType >(type_); +} +inline void FieldMeta::set_type(::milvus::grpc::DataType value) { + + type_ = value; + // @@protoc_insertion_point(field_set:milvus.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:milvus.grpc.FieldMeta.dim) + return dim_; +} +inline void FieldMeta::set_dim(::google::protobuf::int64 value) { + + dim_ = value; + // @@protoc_insertion_point(field_set:milvus.grpc.FieldMeta.dim) +} + +// ------------------------------------------------------------------- + +// Schema + +// repeated .milvus.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 ::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 ::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 >& +Schema::field_metas() const { + // @@protoc_insertion_point(field_list:milvus.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:milvus.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:milvus.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:milvus.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:milvus.grpc.RowData.blob) +} +inline ::std::string* RowData::mutable_blob() { + + // @@protoc_insertion_point(field_mutable:milvus.grpc.RowData.blob) + return blob_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* RowData::release_blob() { + // @@protoc_insertion_point(field_release:milvus.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:milvus.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:milvus.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:milvus.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:milvus.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: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(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +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()); +} +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:milvus.grpc.InsertParam.collection_name) +} + +// optional .milvus.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 ::milvus::grpc::Schema& InsertParam::schema() const { + // @@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_; +} +inline ::milvus::grpc::Schema* InsertParam::release_schema() { + // @@protoc_insertion_point(field_release:milvus.grpc.InsertParam.schema) + + ::milvus::grpc::Schema* temp = schema_; + schema_ = NULL; + return temp; +} +inline 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; +inline int InsertParam::rows_data_size() const { + return rows_data_.size(); +} +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 ::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 >& +InsertParam::rows_data() const { + // @@protoc_insertion_point(field_list:milvus.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: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) { + 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) { + entity_id_array_.Add(value); + // @@protoc_insertion_point(field_add:milvus.grpc.InsertParam.entity_id_array) +} +inline 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_; +} +inline ::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; +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:milvus.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:milvus.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:milvus.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: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(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +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()); +} +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:milvus.grpc.InsertParam.partition_tag) +} + +// repeated .milvus.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 ::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 ::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 >& +InsertParam::extra_params() const { + // @@protoc_insertion_point(field_list:milvus.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:milvus.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:milvus.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:milvus.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: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(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +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()); +} +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:milvus.grpc.SearchParam.collection_name) +} + +// repeated .milvus.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 ::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 ::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 >& +SearchParam::vector_param() const { + // @@protoc_insertion_point(field_list:milvus.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:milvus.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:milvus.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:milvus.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:milvus.grpc.SearchParam.dsl) +} +inline ::std::string* SearchParam::mutable_dsl() { + + // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParam.dsl) + return dsl_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SearchParam::release_dsl() { + // @@protoc_insertion_point(field_release:milvus.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:milvus.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:milvus.grpc.SearchParam.partition_tag) + return partition_tag_.Get(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) { + // @@protoc_insertion_point(field_set:milvus.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:milvus.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:milvus.grpc.SearchParam.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) { + partition_tag_.Add()->assign(value); + // @@protoc_insertion_point(field_add:milvus.grpc.SearchParam.partition_tag) +} +inline void SearchParam::add_partition_tag(const char* value) { + partition_tag_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:milvus.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:milvus.grpc.SearchParam.partition_tag) +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +SearchParam::partition_tag() const { + // @@protoc_insertion_point(field_list:milvus.grpc.SearchParam.partition_tag) + return partition_tag_; +} +inline ::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; +inline int SearchParam::extra_params_size() const { + return extra_params_.size(); +} +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 ::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 >& +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, const char* value) { + 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(const char* value) { + 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 ::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_; +} +inline ::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; +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 ::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_; +} +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_; +} +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; + return temp; +} +inline 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) +} + +// ------------------------------------------------------------------- + +// Entities + +// optional .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; +} +inline const ::milvus::grpc::Status& Entities::status() const { + // @@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_; +} +inline ::milvus::grpc::Status* Entities::release_status() { + // @@protoc_insertion_point(field_release:milvus.grpc.Entities.status) + + ::milvus::grpc::Status* temp = status_; + status_ = NULL; + return temp; +} +inline 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; +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:milvus.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:milvus.grpc.Entities.ids) +} +inline void Entities::add_ids(::google::protobuf::int64 value) { + ids_.Add(value); + // @@protoc_insertion_point(field_add:milvus.grpc.Entities.ids) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& +Entities::ids() const { + // @@protoc_insertion_point(field_list:milvus.grpc.Entities.ids) + return ids_; +} +inline ::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; +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 ::google::protobuf::RepeatedField< bool >& +Entities::valid_row() const { + // @@protoc_insertion_point(field_list:milvus.grpc.Entities.valid_row) + return valid_row_; +} +inline ::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; +inline int Entities::rows_data_size() const { + return rows_data_.size(); +} +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 ::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 >& +Entities::rows_data() const { + // @@protoc_insertion_point(field_list:milvus.grpc.Entities.rows_data) + return rows_data_; +} + +// ------------------------------------------------------------------- + +// QueryResult + +// optional .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; +} +inline const ::milvus::grpc::Status& QueryResult::status() const { + // @@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_; +} +inline ::milvus::grpc::Status* QueryResult::release_status() { + // @@protoc_insertion_point(field_release:milvus.grpc.QueryResult.status) + + ::milvus::grpc::Status* temp = status_; + status_ = NULL; + return temp; +} +inline 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; +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 ::milvus::grpc::Entities& QueryResult::entities() const { + // @@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_; +} +inline ::milvus::grpc::Entities* QueryResult::release_entities() { + // @@protoc_insertion_point(field_release:milvus.grpc.QueryResult.entities) + + ::milvus::grpc::Entities* temp = entities_; + entities_ = NULL; + return temp; +} +inline 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; +inline void QueryResult::clear_row_num() { + row_num_ = GOOGLE_LONGLONG(0); +} +inline ::google::protobuf::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) { + + 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 ::google::protobuf::RepeatedField< float >& +QueryResult::scores() const { + // @@protoc_insertion_point(field_list:milvus.grpc.QueryResult.scores) + return scores_; +} +inline ::google::protobuf::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 ::google::protobuf::RepeatedField< float >& +QueryResult::distances() const { + // @@protoc_insertion_point(field_list:milvus.grpc.QueryResult.distances) + return distances_; +} +inline ::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; +inline int QueryResult::extra_params_size() const { + return extra_params_.size(); +} +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 ::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 >& +QueryResult::extra_params() const { + // @@protoc_insertion_point(field_list:milvus.grpc.QueryResult.extra_params) + return extra_params_; +} + +// ------------------------------------------------------------------- + +// StringReply + +// optional .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; +} +inline const ::milvus::grpc::Status& StringReply::status() const { + // @@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_; +} +inline ::milvus::grpc::Status* StringReply::release_status() { + // @@protoc_insertion_point(field_release:milvus.grpc.StringReply.status) + + ::milvus::grpc::Status* temp = status_; + status_ = NULL; + return temp; +} +inline 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; +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:milvus.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:milvus.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:milvus.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: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(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +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()); +} +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:milvus.grpc.StringReply.string_reply) +} + +// ------------------------------------------------------------------- + +// BoolReply + +// optional .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; +} +inline const ::milvus::grpc::Status& BoolReply::status() const { + // @@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_; +} +inline ::milvus::grpc::Status* BoolReply::release_status() { + // @@protoc_insertion_point(field_release:milvus.grpc.BoolReply.status) + + ::milvus::grpc::Status* temp = status_; + status_ = NULL; + return temp; +} +inline 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; +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 + +// optional .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; +} +inline const ::milvus::grpc::Status& CollectionRowCount::status() const { + // @@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_; +} +inline ::milvus::grpc::Status* CollectionRowCount::release_status() { + // @@protoc_insertion_point(field_release:milvus.grpc.CollectionRowCount.status) + + ::milvus::grpc::Status* temp = status_; + status_ = NULL; + return temp; +} +inline 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; +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:milvus.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:milvus.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:milvus.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:milvus.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:milvus.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:milvus.grpc.Command.cmd) +} +inline ::std::string* Command::mutable_cmd() { + + // @@protoc_insertion_point(field_mutable:milvus.grpc.Command.cmd) + return cmd_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Command::release_cmd() { + // @@protoc_insertion_point(field_release:milvus.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:milvus.grpc.Command.cmd) +} + +// ------------------------------------------------------------------- + +// IndexParam + +// optional .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; +} +inline const ::milvus::grpc::Status& IndexParam::status() const { + // @@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_; +} +inline ::milvus::grpc::Status* IndexParam::release_status() { + // @@protoc_insertion_point(field_release:milvus.grpc.IndexParam.status) + + ::milvus::grpc::Status* temp = status_; + status_ = NULL; + return temp; +} +inline 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; +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:milvus.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:milvus.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:milvus.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: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(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +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()); +} +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:milvus.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:milvus.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:milvus.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:milvus.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: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(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +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()); +} +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:milvus.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:milvus.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:milvus.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:milvus.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: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(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +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()); +} +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: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 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 ::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 >& +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, const char* value) { + 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(const char* value) { + 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 ::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_; +} +inline ::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_; +} + +// ------------------------------------------------------------------- + +// 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:milvus.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:milvus.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:milvus.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: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(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +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()); +} +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:milvus.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: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 + +// 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:milvus.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:milvus.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:milvus.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: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(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +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()); +} +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: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 ::google::protobuf::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) { + 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) { + id_array_.Add(value); + // @@protoc_insertion_point(field_add:milvus.grpc.DeleteByIDParam.id_array) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::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 >* +DeleteByIDParam::mutable_id_array() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.DeleteByIDParam.id_array) + return &id_array_; +} + +// ------------------------------------------------------------------- + +// CollectionInfo + +// optional .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; +} +inline const ::milvus::grpc::Status& CollectionInfo::status() const { + // @@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_; +} +inline ::milvus::grpc::Status* CollectionInfo::release_status() { + // @@protoc_insertion_point(field_release:milvus.grpc.CollectionInfo.status) + + ::milvus::grpc::Status* temp = status_; + status_ = NULL; + return temp; +} +inline 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; +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:milvus.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:milvus.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:milvus.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: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(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +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()); +} +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:milvus.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:milvus.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:milvus.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:milvus.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: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(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +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()); +} +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:milvus.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:milvus.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:milvus.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:milvus.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:milvus.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:milvus.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: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(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +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()); +} +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: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 ::google::protobuf::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) { + 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) { + id_array_.Add(value); + // @@protoc_insertion_point(field_add:milvus.grpc.EntityIdentity.id_array) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::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 >* +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, const char* value) { + 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(const char* value) { + 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 ::google::protobuf::RepeatedPtrField< ::std::string>& +EntityIdentity::field_names() const { + // @@protoc_insertion_point(field_list:milvus.grpc.EntityIdentity.field_names) + return field_names_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +EntityIdentity::mutable_field_names() { + // @@protoc_insertion_point(field_mutable_list:milvus.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:milvus.grpc.VectorFieldParam.dimension) + return dimension_; +} +inline void VectorFieldParam::set_dimension(::google::protobuf::int64 value) { + + dimension_ = value; + // @@protoc_insertion_point(field_set:milvus.grpc.VectorFieldParam.dimension) +} + +// ------------------------------------------------------------------- + +// FieldType + +// optional .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) +} + +// optional .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 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(); +} +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; + } + // @@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; +} +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:milvus.grpc.FieldParam.id) + return id_; +} +inline void FieldParam::set_id(::google::protobuf::uint64 value) { + + id_ = value; + // @@protoc_insertion_point(field_set:milvus.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:milvus.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:milvus.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:milvus.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:milvus.grpc.FieldParam.name) +} +inline ::std::string* FieldParam::mutable_name() { + + // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldParam.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* FieldParam::release_name() { + // @@protoc_insertion_point(field_release:milvus.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:milvus.grpc.FieldParam.name) +} + +// optional .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 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 ::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 >& +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 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 ::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 >& +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 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 ::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 >& +VectorFieldRecord::value() const { + // @@protoc_insertion_point(field_list:milvus.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:milvus.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:milvus.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:milvus.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: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(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +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()); +} +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: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 ::google::protobuf::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) { + 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) { + int_value_.Add(value); + // @@protoc_insertion_point(field_add:milvus.grpc.TermQuery.int_value) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::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 >* +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 ::google::protobuf::RepeatedField< double >& +TermQuery::double_value() const { + // @@protoc_insertion_point(field_list:milvus.grpc.TermQuery.double_value) + return double_value_; +} +inline ::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; +inline void TermQuery::clear_value_num() { + value_num_ = GOOGLE_LONGLONG(0); +} +inline ::google::protobuf::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) { + + value_num_ = value; + // @@protoc_insertion_point(field_set:milvus.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: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 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 ::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 >& +TermQuery::extra_params() const { + // @@protoc_insertion_point(field_list:milvus.grpc.TermQuery.extra_params) + return extra_params_; +} + +// ------------------------------------------------------------------- + +// CompareExpr + +// optional .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) +} + +// 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:milvus.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:milvus.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:milvus.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:milvus.grpc.CompareExpr.operand) +} +inline ::std::string* CompareExpr::mutable_operand() { + + // @@protoc_insertion_point(field_mutable:milvus.grpc.CompareExpr.operand) + return operand_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CompareExpr::release_operand() { + // @@protoc_insertion_point(field_release:milvus.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:milvus.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:milvus.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:milvus.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:milvus.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: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(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +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()); +} +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: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 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 ::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 >& +RangeQuery::operand() const { + // @@protoc_insertion_point(field_list:milvus.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: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 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 ::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 >& +RangeQuery::extra_params() const { + // @@protoc_insertion_point(field_list:milvus.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:milvus.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:milvus.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:milvus.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: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(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +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()); +} +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:milvus.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: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 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 ::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 >& +VectorQuery::records() const { + // @@protoc_insertion_point(field_list:milvus.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:milvus.grpc.VectorQuery.topk) + return topk_; +} +inline 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; +inline int VectorQuery::extra_params_size() const { + return extra_params_.size(); +} +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 ::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 >& +VectorQuery::extra_params() const { + // @@protoc_insertion_point(field_list:milvus.grpc.VectorQuery.extra_params) + return extra_params_; +} + +// ------------------------------------------------------------------- + +// BooleanQuery + +// optional .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 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 ::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 >& +BooleanQuery::general_query() const { + // @@protoc_insertion_point(field_list:milvus.grpc.BooleanQuery.general_query) + return general_query_; +} + +// ------------------------------------------------------------------- + +// GeneralQuery + +// optional .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 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(); +} +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; + } + // @@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; +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 ::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(); +} +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; + } + // @@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; +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 ::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(); +} +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; + } + // @@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; +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 ::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(); +} +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; + } + // @@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; +} +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:milvus.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:milvus.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:milvus.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: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(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +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()); +} +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: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, const char* value) { + 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(const char* value) { + 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 ::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_; +} +inline ::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; +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 ::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_; +} +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_; +} +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; + return temp; +} +inline 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; +inline int SearchParamPB::extra_params_size() const { + return extra_params_.size(); +} +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 ::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 >& +SearchParamPB::extra_params() const { + // @@protoc_insertion_point(field_list:milvus.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:milvus.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:milvus.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:milvus.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:milvus.grpc.InsertOrDeleteMsg.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()); +} +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()); +} +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:milvus.grpc.InsertOrDeleteMsg.collection_name) +} + +// optional .milvus.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 ::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_; +} +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_; +} +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; + return temp; +} +inline 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; +inline void InsertOrDeleteMsg::clear_uid() { + uid_ = GOOGLE_LONGLONG(0); +} +inline ::google::protobuf::int64 InsertOrDeleteMsg::uid() const { + // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.uid) + return uid_; +} +inline void InsertOrDeleteMsg::set_uid(::google::protobuf::int64 value) { + + uid_ = value; + // @@protoc_insertion_point(field_set:milvus.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:milvus.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:milvus.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:milvus.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:milvus.grpc.InsertOrDeleteMsg.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()); +} +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()); +} +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:milvus.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:milvus.grpc.InsertOrDeleteMsg.timestamp) + return timestamp_; +} +inline void InsertOrDeleteMsg::set_timestamp(::google::protobuf::int64 value) { + + timestamp_ = value; + // @@protoc_insertion_point(field_set:milvus.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:milvus.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:milvus.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:milvus.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:milvus.grpc.InsertOrDeleteMsg.channel_id) +} + +// optional .milvus.grpc.OpType op = 8; +inline void InsertOrDeleteMsg::clear_op() { + op_ = 0; +} +inline ::milvus::grpc::OpType InsertOrDeleteMsg::op() const { + // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.op) + return static_cast< ::milvus::grpc::OpType >(op_); +} +inline void InsertOrDeleteMsg::set_op(::milvus::grpc::OpType value) { + + op_ = value; + // @@protoc_insertion_point(field_set:milvus.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:milvus.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:milvus.grpc.InsertOrDeleteMsg.client_id) +} + +// repeated .milvus.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 ::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 ::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 >& +InsertOrDeleteMsg::extra_params() const { + // @@protoc_insertion_point(field_list:milvus.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:milvus.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:milvus.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:milvus.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:milvus.grpc.SearchMsg.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()); +} +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()); +} +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:milvus.grpc.SearchMsg.collection_name) +} + +// optional .milvus.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 ::milvus::grpc::VectorRowRecord& SearchMsg::records() const { + // @@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_; +} +inline ::milvus::grpc::VectorRowRecord* SearchMsg::release_records() { + // @@protoc_insertion_point(field_release:milvus.grpc.SearchMsg.records) + + ::milvus::grpc::VectorRowRecord* temp = records_; + records_ = NULL; + return temp; +} +inline 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; +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:milvus.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:milvus.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:milvus.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:milvus.grpc.SearchMsg.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()); +} +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()); +} +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:milvus.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:milvus.grpc.SearchMsg.uid) + return uid_; +} +inline void SearchMsg::set_uid(::google::protobuf::int64 value) { + + uid_ = value; + // @@protoc_insertion_point(field_set:milvus.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:milvus.grpc.SearchMsg.timestamp) + return timestamp_; +} +inline void SearchMsg::set_timestamp(::google::protobuf::int64 value) { + + timestamp_ = value; + // @@protoc_insertion_point(field_set:milvus.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:milvus.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:milvus.grpc.SearchMsg.client_id) +} + +// repeated .milvus.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 ::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 ::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 >& +SearchMsg::extra_params() const { + // @@protoc_insertion_point(field_list:milvus.grpc.SearchMsg.extra_params) + return extra_params_; +} + +// ------------------------------------------------------------------- + +// TimeSyncMsg + +// optional int64 peer_Id = 1; +inline void TimeSyncMsg::clear_peer_id() { + peer_id_ = GOOGLE_LONGLONG(0); +} +inline ::google::protobuf::int64 TimeSyncMsg::peer_id() const { + // @@protoc_insertion_point(field_get:milvus.grpc.TimeSyncMsg.peer_Id) + return peer_id_; +} +inline 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; +inline void TimeSyncMsg::clear_timestamp() { + timestamp_ = GOOGLE_LONGLONG(0); +} +inline ::google::protobuf::int64 TimeSyncMsg::timestamp() const { + // @@protoc_insertion_point(field_get:milvus.grpc.TimeSyncMsg.Timestamp) + return timestamp_; +} +inline 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; +inline void TimeSyncMsg::clear_sync_type() { + sync_type_ = 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 void TimeSyncMsg::set_sync_type(::milvus::grpc::SyncType value) { + + sync_type_ = value; + // @@protoc_insertion_point(field_set:milvus.grpc.TimeSyncMsg.sync_type) +} + +// ------------------------------------------------------------------- + +// 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:milvus.grpc.SegmentRecord.uid) + return uid_; +} +inline void SegmentRecord::set_uid(::google::protobuf::int64 value) { + + uid_ = value; + // @@protoc_insertion_point(field_set:milvus.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:milvus.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:milvus.grpc.SegmentRecord.segment_id) +} +inline void SegmentRecord::add_segment_id(::google::protobuf::int64 value) { + segment_id_.Add(value); + // @@protoc_insertion_point(field_add:milvus.grpc.SegmentRecord.segment_id) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::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 >* +SegmentRecord::mutable_segment_id() { + // @@protoc_insertion_point(field_mutable_list:milvus.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:milvus.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:milvus.grpc.Key2SegMsg.client_id) +} + +// optional .milvus.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 ::milvus::grpc::SegmentRecord& Key2SegMsg::records() const { + // @@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_; +} +inline ::milvus::grpc::SegmentRecord* Key2SegMsg::release_records() { + // @@protoc_insertion_point(field_release:milvus.grpc.Key2SegMsg.records) + + ::milvus::grpc::SegmentRecord* temp = records_; + records_ = NULL; + return temp; +} +inline 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 + +#ifndef SWIG +namespace google { +namespace protobuf { + +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 <> +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 <> +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 <> +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 <> +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 + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_suvlim_2eproto__INCLUDED diff --git a/proxy/src/grpc/suvlim.proto b/proxy/src/grpc/suvlim.proto new file mode 100644 index 0000000000..5557c5631b --- /dev/null +++ b/proxy/src/grpc/suvlim.proto @@ -0,0 +1,716 @@ +syntax = "proto3"; + +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; +} + +/** + * @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; +} + +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; +} + +enum SyncType { + READ = 0; + WRITE = 1; +} +message TimeSyncMsg{ + int64 peer_Id = 1; + int64 Timestamp = 2; + SyncType sync_type = 3; +} + +message SegmentRecord { + int64 uid = 1; + repeated int64 segment_id = 2; +} + +message Key2SegMsg { + int64 client_id = 1; + SegmentRecord records = 2; +} diff --git a/proxy/src/pulsar/message_client/CMakeLists.txt b/proxy/src/pulsar/message_client/CMakeLists.txt index 38909784b8..50997b48c1 100644 --- a/proxy/src/pulsar/message_client/CMakeLists.txt +++ b/proxy/src/pulsar/message_client/CMakeLists.txt @@ -2,7 +2,7 @@ set(src-cpp Client.cpp Consumer.cpp Producer.cpp - pb/pulsar.pb.cc) + pb/suvlim.pb.cc) add_library(message_client_cpp SHARED ${src-cpp} diff --git a/proxy/src/pulsar/message_client/Producer.h b/proxy/src/pulsar/message_client/Producer.h index 8d3f4d21af..f3b192fe68 100644 --- a/proxy/src/pulsar/message_client/Producer.h +++ b/proxy/src/pulsar/message_client/Producer.h @@ -2,6 +2,7 @@ #include "pulsar/Producer.h" #include "Client.h" +#include "pb/suvlim.pb.h" namespace message_client { @@ -15,6 +16,9 @@ public: 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 close(); const Producer& diff --git a/proxy/src/pulsar/message_client/pb/build.sh b/proxy/src/pulsar/message_client/pb/build.sh index 1f52491d1a..05ccdadf88 100755 --- a/proxy/src/pulsar/message_client/pb/build.sh +++ b/proxy/src/pulsar/message_client/pb/build.sh @@ -1,3 +1,4 @@ #!/usr/bin/env bash -../../../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I=./ --cpp_out=./ pulsar.proto \ No newline at end of file +#../../../../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/pulsar.pb.cc b/proxy/src/pulsar/message_client/pb/pulsar.pb.cc index bc31f78853..9016039faf 100644 --- a/proxy/src/pulsar/message_client/pb/pulsar.pb.cc +++ b/proxy/src/pulsar/message_client/pb/pulsar.pb.cc @@ -1,558 +1,534 @@ // 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 #include #include // @@protoc_insertion_point(includes) -#include -extern PROTOBUF_INTERNAL_EXPORT_pulsar_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AttrRecord_pulsar_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pulsar_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Cell_pulsar_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pulsar_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_FieldValue_pulsar_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pulsar_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SegmentRecord_pulsar_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pulsar_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_VectorParam_pulsar_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pulsar_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_VectorRecord_pulsar_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pulsar_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VectorRowRecord_pulsar_2eproto; + namespace pb { -class StatusDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Status_default_instance_; -class SegmentRecordDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SegmentRecord_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 VectorParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _VectorParam_default_instance_; -class FieldValueDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _FieldValue_default_instance_; -class CellDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; - ::PROTOBUF_NAMESPACE_ID::int32 int32_value_; - ::PROTOBUF_NAMESPACE_ID::int64 int64_value_; + +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_; -} _Cell_default_instance_; -class RowValueDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _RowValue_default_instance_; -class PulsarMessageDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PulsarMessage_default_instance_; -class TestDataDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _TestData_default_instance_; -class InsertMsgDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _InsertMsg_default_instance_; -class DeleteMsgDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _DeleteMsg_default_instance_; -class SearchMsgDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SearchMsg_default_instance_; -class SearchResultMsgDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SearchResultMsg_default_instance_; -} // namespace pb -static void InitDefaultsscc_info_AttrRecord_pulsar_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; + 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; - { - void* ptr = &::pb::_AttrRecord_default_instance_; - new (ptr) ::pb::AttrRecord(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::pb::AttrRecord::InitAsDefaultInstance(); +} // 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); } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AttrRecord_pulsar_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_AttrRecord_pulsar_2eproto}, {}}; +namespace { -static void InitDefaultsscc_info_Cell_pulsar_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::pb::_Cell_default_instance_; - new (ptr) ::pb::Cell(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::pb::Cell::InitAsDefaultInstance(); +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_pulsar_2eproto); } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Cell_pulsar_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_Cell_pulsar_2eproto}, {}}; - -static void InitDefaultsscc_info_DeleteMsg_pulsar_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::pb::_DeleteMsg_default_instance_; - new (ptr) ::pb::DeleteMsg(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::pb::DeleteMsg::InitAsDefaultInstance(); +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()); } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DeleteMsg_pulsar_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_DeleteMsg_pulsar_2eproto}, {}}; +} // namespace -static void InitDefaultsscc_info_FieldValue_pulsar_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::pb::_FieldValue_default_instance_; - new (ptr) ::pb::FieldValue(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::pb::FieldValue::InitAsDefaultInstance(); +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_; } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_FieldValue_pulsar_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_FieldValue_pulsar_2eproto}, { - &scc_info_AttrRecord_pulsar_2eproto.base, - &scc_info_VectorRecord_pulsar_2eproto.base,}}; - -static void InitDefaultsscc_info_InsertMsg_pulsar_2eproto() { +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; - { - void* ptr = &::pb::_InsertMsg_default_instance_; - new (ptr) ::pb::InsertMsg(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::pb::InsertMsg::InitAsDefaultInstance(); + ::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); } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_InsertMsg_pulsar_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_InsertMsg_pulsar_2eproto}, {}}; - -static void InitDefaultsscc_info_PulsarMessage_pulsar_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::pb::_PulsarMessage_default_instance_; - new (ptr) ::pb::PulsarMessage(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_pulsar_2eproto { + StaticDescriptorInitializer_pulsar_2eproto() { + protobuf_AddDesc_pulsar_2eproto(); } - ::pb::PulsarMessage::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_PulsarMessage_pulsar_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_PulsarMessage_pulsar_2eproto}, { - &scc_info_FieldValue_pulsar_2eproto.base, - &scc_info_VectorParam_pulsar_2eproto.base, - &scc_info_SegmentRecord_pulsar_2eproto.base,}}; - -static void InitDefaultsscc_info_RowValue_pulsar_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::pb::_RowValue_default_instance_; - new (ptr) ::pb::RowValue(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::pb::RowValue::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_RowValue_pulsar_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_RowValue_pulsar_2eproto}, { - &scc_info_VectorRowRecord_pulsar_2eproto.base, - &scc_info_Cell_pulsar_2eproto.base,}}; - -static void InitDefaultsscc_info_SearchMsg_pulsar_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::pb::_SearchMsg_default_instance_; - new (ptr) ::pb::SearchMsg(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::pb::SearchMsg::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SearchMsg_pulsar_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_SearchMsg_pulsar_2eproto}, {}}; - -static void InitDefaultsscc_info_SearchResultMsg_pulsar_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::pb::_SearchResultMsg_default_instance_; - new (ptr) ::pb::SearchResultMsg(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::pb::SearchResultMsg::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SearchResultMsg_pulsar_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_SearchResultMsg_pulsar_2eproto}, {}}; - -static void InitDefaultsscc_info_SegmentRecord_pulsar_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::pb::_SegmentRecord_default_instance_; - new (ptr) ::pb::SegmentRecord(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::pb::SegmentRecord::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SegmentRecord_pulsar_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_SegmentRecord_pulsar_2eproto}, {}}; - -static void InitDefaultsscc_info_Status_pulsar_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::pb::_Status_default_instance_; - new (ptr) ::pb::Status(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::pb::Status::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Status_pulsar_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_Status_pulsar_2eproto}, {}}; - -static void InitDefaultsscc_info_TestData_pulsar_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::pb::_TestData_default_instance_; - new (ptr) ::pb::TestData(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::pb::TestData::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TestData_pulsar_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_TestData_pulsar_2eproto}, {}}; - -static void InitDefaultsscc_info_VectorParam_pulsar_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::pb::_VectorParam_default_instance_; - new (ptr) ::pb::VectorParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::pb::VectorParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_VectorParam_pulsar_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_VectorParam_pulsar_2eproto}, { - &scc_info_VectorRecord_pulsar_2eproto.base,}}; - -static void InitDefaultsscc_info_VectorRecord_pulsar_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::pb::_VectorRecord_default_instance_; - new (ptr) ::pb::VectorRecord(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::pb::VectorRecord::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_VectorRecord_pulsar_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_VectorRecord_pulsar_2eproto}, { - &scc_info_VectorRowRecord_pulsar_2eproto.base,}}; - -static void InitDefaultsscc_info_VectorRowRecord_pulsar_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::pb::_VectorRowRecord_default_instance_; - new (ptr) ::pb::VectorRowRecord(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::pb::VectorRowRecord::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VectorRowRecord_pulsar_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_VectorRowRecord_pulsar_2eproto}, {}}; - -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_pulsar_2eproto[15]; -static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_pulsar_2eproto[3]; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_pulsar_2eproto = nullptr; - -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pulsar_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::pb::Status, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::pb::Status, error_code_), - PROTOBUF_FIELD_OFFSET(::pb::Status, reason_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::pb::SegmentRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::pb::SegmentRecord, seg_info_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::pb::VectorRowRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::pb::VectorRowRecord, float_data_), - PROTOBUF_FIELD_OFFSET(::pb::VectorRowRecord, binary_data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::pb::AttrRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::pb::AttrRecord, int32_value_), - PROTOBUF_FIELD_OFFSET(::pb::AttrRecord, int64_value_), - PROTOBUF_FIELD_OFFSET(::pb::AttrRecord, float_value_), - PROTOBUF_FIELD_OFFSET(::pb::AttrRecord, double_value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::pb::VectorRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::pb::VectorRecord, records_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::pb::VectorParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::pb::VectorParam, json_), - PROTOBUF_FIELD_OFFSET(::pb::VectorParam, row_record_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::pb::FieldValue, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::pb::FieldValue, field_name_), - PROTOBUF_FIELD_OFFSET(::pb::FieldValue, type_), - PROTOBUF_FIELD_OFFSET(::pb::FieldValue, attr_record_), - PROTOBUF_FIELD_OFFSET(::pb::FieldValue, vector_record_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::pb::Cell, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::pb::Cell, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::pb::CellDefaultTypeInternal, int32_value_), - offsetof(::pb::CellDefaultTypeInternal, int64_value_), - offsetof(::pb::CellDefaultTypeInternal, float_value_), - offsetof(::pb::CellDefaultTypeInternal, double_value_), - PROTOBUF_FIELD_OFFSET(::pb::Cell, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::pb::RowValue, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::pb::RowValue, vec_), - PROTOBUF_FIELD_OFFSET(::pb::RowValue, cell_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::pb::PulsarMessage, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::pb::PulsarMessage, collection_name_), - PROTOBUF_FIELD_OFFSET(::pb::PulsarMessage, fields_), - PROTOBUF_FIELD_OFFSET(::pb::PulsarMessage, entity_id_), - PROTOBUF_FIELD_OFFSET(::pb::PulsarMessage, partition_tag_), - PROTOBUF_FIELD_OFFSET(::pb::PulsarMessage, vector_param_), - PROTOBUF_FIELD_OFFSET(::pb::PulsarMessage, segments_), - PROTOBUF_FIELD_OFFSET(::pb::PulsarMessage, timestamp_), - PROTOBUF_FIELD_OFFSET(::pb::PulsarMessage, client_id_), - PROTOBUF_FIELD_OFFSET(::pb::PulsarMessage, msg_type_), - PROTOBUF_FIELD_OFFSET(::pb::PulsarMessage, topic_name_), - PROTOBUF_FIELD_OFFSET(::pb::PulsarMessage, partition_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::pb::TestData, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::pb::TestData, id_), - PROTOBUF_FIELD_OFFSET(::pb::TestData, name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::pb::InsertMsg, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::pb::InsertMsg, client_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::pb::DeleteMsg, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::pb::DeleteMsg, client_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::pb::SearchMsg, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::pb::SearchMsg, client_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::pb::SearchResultMsg, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::pb::SearchResultMsg, client_id_), -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::pb::Status)}, - { 7, -1, sizeof(::pb::SegmentRecord)}, - { 13, -1, sizeof(::pb::VectorRowRecord)}, - { 20, -1, sizeof(::pb::AttrRecord)}, - { 29, -1, sizeof(::pb::VectorRecord)}, - { 35, -1, sizeof(::pb::VectorParam)}, - { 42, -1, sizeof(::pb::FieldValue)}, - { 51, -1, sizeof(::pb::Cell)}, - { 61, -1, sizeof(::pb::RowValue)}, - { 68, -1, sizeof(::pb::PulsarMessage)}, - { 84, -1, sizeof(::pb::TestData)}, - { 91, -1, sizeof(::pb::InsertMsg)}, - { 97, -1, sizeof(::pb::DeleteMsg)}, - { 103, -1, sizeof(::pb::SearchMsg)}, - { 109, -1, sizeof(::pb::SearchResultMsg)}, -}; - -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::pb::_Status_default_instance_), - reinterpret_cast(&::pb::_SegmentRecord_default_instance_), - reinterpret_cast(&::pb::_VectorRowRecord_default_instance_), - reinterpret_cast(&::pb::_AttrRecord_default_instance_), - reinterpret_cast(&::pb::_VectorRecord_default_instance_), - reinterpret_cast(&::pb::_VectorParam_default_instance_), - reinterpret_cast(&::pb::_FieldValue_default_instance_), - reinterpret_cast(&::pb::_Cell_default_instance_), - reinterpret_cast(&::pb::_RowValue_default_instance_), - reinterpret_cast(&::pb::_PulsarMessage_default_instance_), - reinterpret_cast(&::pb::_TestData_default_instance_), - reinterpret_cast(&::pb::_InsertMsg_default_instance_), - reinterpret_cast(&::pb::_DeleteMsg_default_instance_), - reinterpret_cast(&::pb::_SearchMsg_default_instance_), - reinterpret_cast(&::pb::_SearchResultMsg_default_instance_), -}; - -const char descriptor_table_protodef_pulsar_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\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\"l\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_v" - "alue\030\003 \001(\002H\000\022\026\n\014double_value\030\004 \001(\001H\000B\007\n\005" - "value\"D\n\010RowValue\022 \n\003vec\030\001 \001(\0132\023.pb.Vect" - "orRowRecord\022\026\n\004cell\030\002 \003(\0132\010.pb.Cell\"\254\002\n\r" - "PulsarMessage\022\027\n\017collection_name\030\001 \001(\t\022\036" - "\n\006fields\030\002 \003(\0132\016.pb.FieldValue\022\021\n\tentity" - "_id\030\003 \001(\003\022\025\n\rpartition_tag\030\004 \001(\t\022%\n\014vect" - "or_param\030\005 \001(\0132\017.pb.VectorParam\022#\n\010segme" - "nts\030\006 \001(\0132\021.pb.SegmentRecord\022\021\n\ttimestam" - "p\030\007 \001(\003\022\021\n\tclient_id\030\010 \001(\003\022\034\n\010msg_type\030\t" - " \001(\0162\n.pb.OpType\022\022\n\ntopic_name\030\n \001(\t\022\024\n\014" - "partition_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\tclient_" - "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\017Sear" - "chResultMsg\022\021\n\tclient_id\030\001 \001(\003*\242\004\n\tError" - "Code\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\021ILLEGAL_DIMENSION\020\007\022\026\n\022IL" - "LEGAL_INDEX_TYPE\020\010\022\033\n\027ILLEGAL_COLLECTION" - "_NAME\020\t\022\020\n\014ILLEGAL_TOPK\020\n\022\025\n\021ILLEGAL_ROW" - "RECORD\020\013\022\025\n\021ILLEGAL_VECTOR_ID\020\014\022\031\n\025ILLEG" - "AL_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\024CAN" - "NOT_CREATE_FOLDER\020\021\022\026\n\022CANNOT_CREATE_FIL" - "E\020\022\022\030\n\024CANNOT_DELETE_FOLDER\020\023\022\026\n\022CANNOT_" - "DELETE_FILE\020\024\022\025\n\021BUILD_INDEX_ERROR\020\025\022\021\n\r" - "ILLEGAL_NLIST\020\026\022\027\n\023ILLEGAL_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\005INT" - "32\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\014VECTOR_" - "FLOAT\020e*W\n\006OpType\022\n\n\006Insert\020\000\022\n\n\006Delete\020" - "\001\022\n\n\006Search\020\002\022\014\n\010TimeSync\020\003\022\013\n\007Key2Seg\020\004" - "\022\016\n\nStatistics\020\005b\006proto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_pulsar_2eproto_deps[1] = { -}; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_pulsar_2eproto_sccs[15] = { - &scc_info_AttrRecord_pulsar_2eproto.base, - &scc_info_Cell_pulsar_2eproto.base, - &scc_info_DeleteMsg_pulsar_2eproto.base, - &scc_info_FieldValue_pulsar_2eproto.base, - &scc_info_InsertMsg_pulsar_2eproto.base, - &scc_info_PulsarMessage_pulsar_2eproto.base, - &scc_info_RowValue_pulsar_2eproto.base, - &scc_info_SearchMsg_pulsar_2eproto.base, - &scc_info_SearchResultMsg_pulsar_2eproto.base, - &scc_info_SegmentRecord_pulsar_2eproto.base, - &scc_info_Status_pulsar_2eproto.base, - &scc_info_TestData_pulsar_2eproto.base, - &scc_info_VectorParam_pulsar_2eproto.base, - &scc_info_VectorRecord_pulsar_2eproto.base, - &scc_info_VectorRowRecord_pulsar_2eproto.base, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_pulsar_2eproto_once; -static bool descriptor_table_pulsar_2eproto_initialized = false; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_pulsar_2eproto = { - &descriptor_table_pulsar_2eproto_initialized, descriptor_table_protodef_pulsar_2eproto, "pulsar.proto", 1984, - &descriptor_table_pulsar_2eproto_once, descriptor_table_pulsar_2eproto_sccs, descriptor_table_pulsar_2eproto_deps, 15, 0, - schemas, file_default_instances, TableStruct_pulsar_2eproto::offsets, - file_level_metadata_pulsar_2eproto, 15, file_level_enum_descriptors_pulsar_2eproto, file_level_service_descriptors_pulsar_2eproto, -}; - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_pulsar_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_pulsar_2eproto), true); -namespace pb { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ErrorCode_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pulsar_2eproto); - return file_level_enum_descriptors_pulsar_2eproto[0]; +} static_descriptor_initializer_pulsar_2eproto_; +const ::google::protobuf::EnumDescriptor* ErrorCode_descriptor() { + protobuf_AssignDescriptorsOnce(); + return ErrorCode_descriptor_; } bool ErrorCode_IsValid(int value) { - switch (value) { + switch(value) { case 0: case 1: case 2: @@ -583,12 +559,12 @@ bool ErrorCode_IsValid(int value) { } } -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DataType_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pulsar_2eproto); - return file_level_enum_descriptors_pulsar_2eproto[1]; +const ::google::protobuf::EnumDescriptor* DataType_descriptor() { + protobuf_AssignDescriptorsOnce(); + return DataType_descriptor_; } bool DataType_IsValid(int value) { - switch (value) { + switch(value) { case 0: case 1: case 2: @@ -606,12 +582,12 @@ bool DataType_IsValid(int value) { } } -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* OpType_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pulsar_2eproto); - return file_level_enum_descriptors_pulsar_2eproto[2]; +const ::google::protobuf::EnumDescriptor* OpType_descriptor() { + protobuf_AssignDescriptorsOnce(); + return OpType_descriptor_; } bool OpType_IsValid(int value) { - switch (value) { + switch(value) { case 0: case 1: case 2: @@ -627,33 +603,35 @@ bool OpType_IsValid(int value) { // =================================================================== -void Status::InitAsDefaultInstance() { -} -class Status::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Status::kErrorCodeFieldNumber; +const int Status::kReasonFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Status::Status() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::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) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - reason_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.reason().empty()) { - reason_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.reason_); - } - error_code_ = from.error_code_; + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + SharedCtor(); + MergeFrom(from); // @@protoc_insertion_point(copy_constructor:pb.Status) } void Status::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Status_pulsar_2eproto.base); - reason_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _is_default_instance_ = false; + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; error_code_ = 0; + reason_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } Status::~Status() { @@ -662,118 +640,92 @@ Status::~Status() { } void Status::SharedDtor() { - reason_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + reason_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != default_instance_) { + } } void Status::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const Status& Status::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Status_pulsar_2eproto.base); - return *internal_default_instance(); +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) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - reason_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); error_code_ = 0; - _internal_metadata_.Clear(); + reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Status::_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) { - // .pb.ErrorCode error_code = 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_error_code(static_cast<::pb::ErrorCode>(val)); - } else goto handle_unusual; - continue; - // string reason = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_reason(), ptr, ctx, "pb.Status.reason"); - 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 Status::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::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<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .pb.ErrorCode error_code = 1; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .pb.ErrorCode error_code = 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>( + 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; } - // string reason = 2; + // optional string reason = 2; case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + if (tag == 18) { + parse_reason: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_reason())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), static_cast(this->reason().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + 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) { + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -786,108 +738,87 @@ failure: return false; #undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void Status::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pb.Status) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .pb.ErrorCode error_code = 1; + // optional .pb.ErrorCode error_code = 1; if (this->error_code() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( + ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->error_code(), output); } - // string reason = 2; + // optional string reason = 2; if (this->reason().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), static_cast(this->reason().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->reason().data(), this->reason().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pb.Status.reason"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->reason(), output); } - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } // @@protoc_insertion_point(serialize_end:pb.Status) } -::PROTOBUF_NAMESPACE_ID::uint8* Status::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* Status::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:pb.Status) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .pb.ErrorCode error_code = 1; + // optional .pb.ErrorCode error_code = 1; if (this->error_code() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->error_code(), target); } - // string reason = 2; + // optional string reason = 2; if (this->reason().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), static_cast(this->reason().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->reason().data(), this->reason().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pb.Status.reason"); target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->reason(), 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:pb.Status) return target; } -size_t Status::ByteSizeLong() const { +int Status::ByteSize() const { // @@protoc_insertion_point(message_byte_size_start:pb.Status) - size_t total_size = 0; + int total_size = 0; - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); + // optional .pb.ErrorCode error_code = 1; + if (this->error_code() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->error_code()); } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string reason = 2; + // optional string reason = 2; if (this->reason().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + ::google::protobuf::internal::WireFormatLite::StringSize( this->reason()); } - // .pb.ErrorCode error_code = 1; - if (this->error_code() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->error_code()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void Status::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void Status::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pb.Status) - GOOGLE_DCHECK_NE(&from, this); - const Status* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } + const Status* source = + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Status) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Status) MergeFrom(*source); @@ -896,21 +827,19 @@ void Status::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { void Status::MergeFrom(const Status& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pb.Status) - 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.reason().size() > 0) { - - reason_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.reason_); + 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 ::PROTOBUF_NAMESPACE_ID::Message& from) { +void Status::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pb.Status) if (&from == this) return; Clear(); @@ -925,45 +854,120 @@ void Status::CopyFrom(const Status& from) { } bool Status::IsInitialized() const { + return true; } +void Status::Swap(Status* other) { + if (other == this) return; + InternalSwap(other); +} void Status::InternalSwap(Status* other) { - using std::swap; + std::swap(error_code_, other->error_code_); + reason_.Swap(&other->reason_); _internal_metadata_.Swap(&other->_internal_metadata_); - reason_.Swap(&other->reason_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(error_code_, other->error_code_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { - return GetMetadataStatic(); +::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 // =================================================================== -void SegmentRecord::InitAsDefaultInstance() { -} -class SegmentRecord::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SegmentRecord::kSegInfoFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SegmentRecord::SegmentRecord() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::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) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - seg_info_(from.seg_info_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + SharedCtor(); + MergeFrom(from); // @@protoc_insertion_point(copy_constructor:pb.SegmentRecord) } void SegmentRecord::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SegmentRecord_pulsar_2eproto.base); + _is_default_instance_ = false; + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; } SegmentRecord::~SegmentRecord() { @@ -972,100 +976,77 @@ SegmentRecord::~SegmentRecord() { } void SegmentRecord::SharedDtor() { + if (this != default_instance_) { + } } void SegmentRecord::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const SegmentRecord& SegmentRecord::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SegmentRecord_pulsar_2eproto.base); - return *internal_default_instance(); +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) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - seg_info_.Clear(); - _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) { - // repeated string seg_info = 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_seg_info(), ptr, ctx, "pb.SegmentRecord.seg_info"); - 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 SegmentRecord::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::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<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated string seg_info = 1; case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + if (tag == 10) { + parse_seg_info: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->add_seg_info())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->seg_info(this->seg_info_size() - 1).data(), - static_cast(this->seg_info(this->seg_info_size() - 1).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + 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) { + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -1078,90 +1059,68 @@ failure: return false; #undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SegmentRecord::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pb.SegmentRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - // repeated string seg_info = 1; - for (int i = 0, n = this->seg_info_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->seg_info(i).data(), static_cast(this->seg_info(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + 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"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( + ::google::protobuf::internal::WireFormatLite::WriteString( 1, this->seg_info(i), output); } - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } // @@protoc_insertion_point(serialize_end:pb.SegmentRecord) } -::PROTOBUF_NAMESPACE_ID::uint8* SegmentRecord::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* SegmentRecord::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:pb.SegmentRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - // repeated string seg_info = 1; - for (int i = 0, n = this->seg_info_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->seg_info(i).data(), static_cast(this->seg_info(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + 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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + target = ::google::protobuf::internal::WireFormatLite:: WriteStringToArray(1, this->seg_info(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:pb.SegmentRecord) return target; } -size_t SegmentRecord::ByteSizeLong() const { +int SegmentRecord::ByteSize() const { // @@protoc_insertion_point(message_byte_size_start:pb.SegmentRecord) - 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; + int total_size = 0; // repeated string seg_info = 1; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->seg_info_size()); - for (int i = 0, n = this->seg_info_size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + 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)); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void SegmentRecord::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SegmentRecord::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pb.SegmentRecord) - GOOGLE_DCHECK_NE(&from, this); - const SegmentRecord* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } + const SegmentRecord* source = + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.SegmentRecord) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.SegmentRecord) MergeFrom(*source); @@ -1170,15 +1129,13 @@ void SegmentRecord::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { void SegmentRecord::MergeFrom(const SegmentRecord& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pb.SegmentRecord) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } seg_info_.MergeFrom(from.seg_info_); } -void SegmentRecord::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SegmentRecord::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pb.SegmentRecord) if (&from == this) return; Clear(); @@ -1193,48 +1150,118 @@ 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) { - using std::swap; + seg_info_.UnsafeArenaSwap(&other->seg_info_); _internal_metadata_.Swap(&other->_internal_metadata_); - seg_info_.InternalSwap(CastToBase(&other->seg_info_)); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata SegmentRecord::GetMetadata() const { - return GetMetadataStatic(); +::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 // =================================================================== -void VectorRowRecord::InitAsDefaultInstance() { -} -class VectorRowRecord::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int VectorRowRecord::kFloatDataFieldNumber; +const int VectorRowRecord::kBinaryDataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 VectorRowRecord::VectorRowRecord() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::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) - : ::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_); - } + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + SharedCtor(); + MergeFrom(from); // @@protoc_insertion_point(copy_constructor:pb.VectorRowRecord) } void VectorRowRecord::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_VectorRowRecord_pulsar_2eproto.base); - binary_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _is_default_instance_ = false; + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; + binary_data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } VectorRowRecord::~VectorRowRecord() { @@ -1243,118 +1270,90 @@ VectorRowRecord::~VectorRowRecord() { } void VectorRowRecord::SharedDtor() { - binary_data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + binary_data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != default_instance_) { + } } void VectorRowRecord::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const VectorRowRecord& VectorRowRecord::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VectorRowRecord_pulsar_2eproto.base); - return *internal_default_instance(); +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) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - + binary_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 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; + ::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<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::google::protobuf::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>( + if (tag == 10) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< + float, ::google::protobuf::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 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; } - // bytes binary_data = 2; + // optional bytes binary_data = 2; case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes( + 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) { + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -1367,119 +1366,99 @@ failure: return false; #undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void VectorRowRecord::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pb.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); + ::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); } - // bytes binary_data = 2; + // optional bytes binary_data = 2; if (this->binary_data().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased( + ::google::protobuf::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:pb.VectorRowRecord) } -::PROTOBUF_NAMESPACE_ID::uint8* VectorRowRecord::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* VectorRowRecord::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:pb.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( + target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 1, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + ::google::protobuf::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); + 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); } - // bytes binary_data = 2; + // optional bytes binary_data = 2; if (this->binary_data().size() > 0) { target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesToArray( + ::google::protobuf::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:pb.VectorRowRecord) return target; } -size_t VectorRowRecord::ByteSizeLong() const { +int VectorRowRecord::ByteSize() const { // @@protoc_insertion_point(message_byte_size_start:pb.VectorRowRecord) - size_t total_size = 0; + int 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; + // optional bytes binary_data = 2; if (this->binary_data().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + ::google::protobuf::internal::WireFormatLite::BytesSize( this->binary_data()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + // 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 ::PROTOBUF_NAMESPACE_ID::Message& from) { +void VectorRowRecord::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pb.VectorRowRecord) - GOOGLE_DCHECK_NE(&from, this); - const VectorRowRecord* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } + const VectorRowRecord* source = + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.VectorRowRecord) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.VectorRowRecord) MergeFrom(*source); @@ -1488,19 +1467,17 @@ void VectorRowRecord::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { void VectorRowRecord::MergeFrom(const VectorRowRecord& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pb.VectorRowRecord) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - + 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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.binary_data_); + binary_data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.binary_data_); } } -void VectorRowRecord::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void VectorRowRecord::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pb.VectorRowRecord) if (&from == this) return; Clear(); @@ -1515,47 +1492,138 @@ 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) { - using std::swap; + float_data_.UnsafeArenaSwap(&other->float_data_); + binary_data_.Swap(&other->binary_data_); _internal_metadata_.Swap(&other->_internal_metadata_); - float_data_.InternalSwap(&other->float_data_); - binary_data_.Swap(&other->binary_data_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata VectorRowRecord::GetMetadata() const { - return GetMetadataStatic(); +::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 // =================================================================== -void AttrRecord::InitAsDefaultInstance() { -} -class AttrRecord::_Internal { - public: -}; +#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() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::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) - : ::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_); + : ::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() { @@ -1564,179 +1632,132 @@ AttrRecord::~AttrRecord() { } void AttrRecord::SharedDtor() { + if (this != default_instance_) { + } } void AttrRecord::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const AttrRecord& AttrRecord::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AttrRecord_pulsar_2eproto.base); - return *internal_default_instance(); +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) - ::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; + ::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<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::google::protobuf::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>( + 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 (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 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 (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>( + 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 (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 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 (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< - float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( + 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 (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 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 (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< - double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( + 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 (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 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) { + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -1749,214 +1770,199 @@ failure: return false; #undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void AttrRecord::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pb.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)); + ::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, n = this->int32_value_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32NoTag( + 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) { - ::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)); + ::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, n = this->int64_value_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( + 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) { - ::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); + ::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) { - ::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); + ::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); } - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } // @@protoc_insertion_point(serialize_end:pb.AttrRecord) } -::PROTOBUF_NAMESPACE_ID::uint8* AttrRecord::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* AttrRecord::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:pb.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( + target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 1, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + ::google::protobuf::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); + 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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( + target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 2, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + ::google::protobuf::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); + 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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( + target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 3, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + ::google::protobuf::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); + 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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( + target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 4, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + ::google::protobuf::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); + 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); } - 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:pb.AttrRecord) return target; } -size_t AttrRecord::ByteSizeLong() const { +int AttrRecord::ByteSize() const { // @@protoc_insertion_point(message_byte_size_start:pb.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; + int total_size = 0; // repeated int32 int32_value = 1; { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int32Size(this->int32_value_); + 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 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _int32_value_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); + 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; { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int64Size(this->int64_value_); + 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 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _int64_value_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); + 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; { - unsigned int count = static_cast(this->float_value_size()); - size_t data_size = 4UL * count; + int data_size = 0; + data_size = 4 * this->float_value_size(); if (data_size > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _float_value_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); + 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; { - unsigned int count = static_cast(this->double_value_size()); - size_t data_size = 8UL * count; + int data_size = 0; + data_size = 8 * this->double_value_size(); if (data_size > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _double_value_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _double_value_cached_byte_size_ = data_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void AttrRecord::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void AttrRecord::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pb.AttrRecord) - GOOGLE_DCHECK_NE(&from, this); - const AttrRecord* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } + const AttrRecord* source = + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.AttrRecord) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.AttrRecord) MergeFrom(*source); @@ -1965,18 +1971,16 @@ void AttrRecord::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { void AttrRecord::MergeFrom(const AttrRecord& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pb.AttrRecord) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - + 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 ::PROTOBUF_NAMESPACE_ID::Message& from) { +void AttrRecord::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pb.AttrRecord) if (&from == this) return; Clear(); @@ -1991,46 +1995,183 @@ void AttrRecord::CopyFrom(const AttrRecord& from) { } bool AttrRecord::IsInitialized() const { + return true; } +void AttrRecord::Swap(AttrRecord* other) { + if (other == this) return; + InternalSwap(other); +} void AttrRecord::InternalSwap(AttrRecord* other) { - using std::swap; + 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_); - int32_value_.InternalSwap(&other->int32_value_); - int64_value_.InternalSwap(&other->int64_value_); - float_value_.InternalSwap(&other->float_value_); - double_value_.InternalSwap(&other->double_value_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata AttrRecord::GetMetadata() const { - return GetMetadataStatic(); +::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 // =================================================================== -void VectorRecord::InitAsDefaultInstance() { -} -class VectorRecord::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int VectorRecord::kRecordsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 VectorRecord::VectorRecord() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::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) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - records_(from.records_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + SharedCtor(); + MergeFrom(from); // @@protoc_insertion_point(copy_constructor:pb.VectorRecord) } void VectorRecord::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_VectorRecord_pulsar_2eproto.base); + _is_default_instance_ = false; + _cached_size_ = 0; } VectorRecord::~VectorRecord() { @@ -2039,95 +2180,74 @@ VectorRecord::~VectorRecord() { } void VectorRecord::SharedDtor() { + if (this != default_instance_) { + } } void VectorRecord::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const VectorRecord& VectorRecord::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VectorRecord_pulsar_2eproto.base); - return *internal_default_instance(); +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) - ::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 .pb.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; + ::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<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated .pb.VectorRowRecord records = 1; case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + 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) { + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -2140,90 +2260,62 @@ failure: return false; #undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void VectorRecord::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pb.VectorRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - // repeated .pb.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); + for (unsigned int i = 0, n = this->records_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->records(i), output); } - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } // @@protoc_insertion_point(serialize_end:pb.VectorRecord) } -::PROTOBUF_NAMESPACE_ID::uint8* VectorRecord::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* VectorRecord::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:pb.VectorRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - // repeated .pb.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); + for (unsigned int i = 0, n = this->records_size(); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, this->records(i), false, 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:pb.VectorRecord) return target; } -size_t VectorRecord::ByteSizeLong() const { +int VectorRecord::ByteSize() const { // @@protoc_insertion_point(message_byte_size_start:pb.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; + int total_size = 0; // repeated .pb.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))); - } + 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)); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void VectorRecord::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void VectorRecord::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pb.VectorRecord) - GOOGLE_DCHECK_NE(&from, this); - const VectorRecord* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } + const VectorRecord* source = + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.VectorRecord) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.VectorRecord) MergeFrom(*source); @@ -2232,15 +2324,13 @@ void VectorRecord::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { void VectorRecord::MergeFrom(const VectorRecord& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pb.VectorRecord) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } records_.MergeFrom(from.records_); } -void VectorRecord::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void VectorRecord::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pb.VectorRecord) if (&from == this) return; Clear(); @@ -2255,60 +2345,95 @@ 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) { - using std::swap; + records_.UnsafeArenaSwap(&other->records_); _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&records_)->InternalSwap(CastToBase(&other->records_)); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata VectorRecord::GetMetadata() const { - return GetMetadataStatic(); +::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 // =================================================================== -void VectorParam::InitAsDefaultInstance() { - ::pb::_VectorParam_default_instance_._instance.get_mutable()->row_record_ = const_cast< ::pb::VectorRecord*>( - ::pb::VectorRecord::internal_default_instance()); -} -class VectorParam::_Internal { - public: - static const ::pb::VectorRecord& row_record(const VectorParam* msg); -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int VectorParam::kJsonFieldNumber; +const int VectorParam::kRowRecordFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::pb::VectorRecord& -VectorParam::_Internal::row_record(const VectorParam* msg) { - return *msg->row_record_; -} VectorParam::VectorParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::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) - : ::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 ::pb::VectorRecord(*from.row_record_); - } else { - row_record_ = nullptr; - } + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + SharedCtor(); + MergeFrom(from); // @@protoc_insertion_point(copy_constructor:pb.VectorParam) } void VectorParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_VectorParam_pulsar_2eproto.base); - json_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - row_record_ = nullptr; + _is_default_instance_ = false; + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; + json_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + row_record_ = NULL; } VectorParam::~VectorParam() { @@ -2317,118 +2442,91 @@ VectorParam::~VectorParam() { } void VectorParam::SharedDtor() { - json_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete row_record_; + json_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != default_instance_) { + delete row_record_; + } } void VectorParam::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const VectorParam& VectorParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VectorParam_pulsar_2eproto.base); - return *internal_default_instance(); +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) - ::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(); + json_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && row_record_ != NULL) delete row_record_; + row_record_ = NULL; } -#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, "pb.VectorParam.json"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .pb.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; + ::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<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string json = 1; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string json = 1; case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + if (tag == 10) { + DO_(::google::protobuf::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, + 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; } - // .pb.VectorRecord row_record = 2; + // optional .pb.VectorRecord row_record = 2; case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + 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) { + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -2441,110 +2539,89 @@ failure: return false; #undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void VectorParam::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pb.VectorParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string json = 1; + // optional 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, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->json().data(), this->json().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pb.VectorParam.json"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->json(), output); } - // .pb.VectorRecord row_record = 2; + // optional .pb.VectorRecord row_record = 2; if (this->has_row_record()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, _Internal::row_record(this), output); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->row_record_, output); } - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } // @@protoc_insertion_point(serialize_end:pb.VectorParam) } -::PROTOBUF_NAMESPACE_ID::uint8* VectorParam::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* VectorParam::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:pb.VectorParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string json = 1; + // optional 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, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->json().data(), this->json().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pb.VectorParam.json"); target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->json(), target); } - // .pb.VectorRecord row_record = 2; + // optional .pb.VectorRecord row_record = 2; if (this->has_row_record()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, _Internal::row_record(this), target); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 2, *this->row_record_, false, 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:pb.VectorParam) return target; } -size_t VectorParam::ByteSizeLong() const { +int VectorParam::ByteSize() const { // @@protoc_insertion_point(message_byte_size_start:pb.VectorParam) - size_t total_size = 0; + int 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; + // optional string json = 1; if (this->json().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + ::google::protobuf::internal::WireFormatLite::StringSize( this->json()); } - // .pb.VectorRecord row_record = 2; + // optional .pb.VectorRecord row_record = 2; if (this->has_row_record()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *row_record_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->row_record_); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void VectorParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void VectorParam::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pb.VectorParam) - GOOGLE_DCHECK_NE(&from, this); - const VectorParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } + const VectorParam* source = + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.VectorParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.VectorParam) MergeFrom(*source); @@ -2553,21 +2630,19 @@ void VectorParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { void VectorParam::MergeFrom(const VectorParam& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pb.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 (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } if (from.json().size() > 0) { - json_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.json_); + 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 ::PROTOBUF_NAMESPACE_ID::Message& from) { +void VectorParam::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pb.VectorParam) if (&from == this) return; Clear(); @@ -2582,77 +2657,153 @@ 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) { - using std::swap; + json_.Swap(&other->json_); + std::swap(row_record_, other->row_record_); _internal_metadata_.Swap(&other->_internal_metadata_); - json_.Swap(&other->json_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(row_record_, other->row_record_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata VectorParam::GetMetadata() const { - return GetMetadataStatic(); +::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 // =================================================================== -void FieldValue::InitAsDefaultInstance() { - ::pb::_FieldValue_default_instance_._instance.get_mutable()->attr_record_ = const_cast< ::pb::AttrRecord*>( - ::pb::AttrRecord::internal_default_instance()); - ::pb::_FieldValue_default_instance_._instance.get_mutable()->vector_record_ = const_cast< ::pb::VectorRecord*>( - ::pb::VectorRecord::internal_default_instance()); -} -class FieldValue::_Internal { - public: - static const ::pb::AttrRecord& attr_record(const FieldValue* msg); - static const ::pb::VectorRecord& vector_record(const FieldValue* msg); -}; +#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 -const ::pb::AttrRecord& -FieldValue::_Internal::attr_record(const FieldValue* msg) { - return *msg->attr_record_; -} -const ::pb::VectorRecord& -FieldValue::_Internal::vector_record(const FieldValue* msg) { - return *msg->vector_record_; -} FieldValue::FieldValue() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::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) - : ::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 ::pb::AttrRecord(*from.attr_record_); - } else { - attr_record_ = nullptr; - } - if (from.has_vector_record()) { - vector_record_ = new ::pb::VectorRecord(*from.vector_record_); - } else { - vector_record_ = nullptr; - } - type_ = from.type_; + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + SharedCtor(); + MergeFrom(from); // @@protoc_insertion_point(copy_constructor:pb.FieldValue) } void FieldValue::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FieldValue_pulsar_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_)); + _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() { @@ -2661,164 +2812,124 @@ FieldValue::~FieldValue() { } 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_; + field_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != default_instance_) { + delete attr_record_; + delete vector_record_; + } } void FieldValue::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const FieldValue& FieldValue::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FieldValue_pulsar_2eproto.base); - return *internal_default_instance(); +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) - ::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; + field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); type_ = 0; - _internal_metadata_.Clear(); + if (GetArenaNoVirtual() == NULL && attr_record_ != NULL) delete attr_record_; + attr_record_ = NULL; + if (GetArenaNoVirtual() == NULL && vector_record_ != NULL) delete vector_record_; + vector_record_ = NULL; } -#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, "pb.FieldValue.field_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .pb.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<::pb::DataType>(val)); - } else goto handle_unusual; - continue; - // .pb.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; - // .pb.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; + ::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<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string field_name = 1; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string field_name = 1; case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + if (tag == 10) { + DO_(::google::protobuf::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, + 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; } - // .pb.DataType type = 2; + // optional .pb.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>( + 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; } - // .pb.AttrRecord attr_record = 3; + // optional .pb.AttrRecord attr_record = 3; case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + 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; } - // .pb.VectorRecord vector_record = 4; + // optional .pb.VectorRecord vector_record = 4; case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + 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) { + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -2831,148 +2942,127 @@ failure: return false; #undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void FieldValue::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pb.FieldValue) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string field_name = 1; + // optional 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, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), this->field_name().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pb.FieldValue.field_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->field_name(), output); } - // .pb.DataType type = 2; + // optional .pb.DataType type = 2; if (this->type() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( + ::google::protobuf::internal::WireFormatLite::WriteEnum( 2, this->type(), output); } - // .pb.AttrRecord attr_record = 3; + // optional .pb.AttrRecord attr_record = 3; if (this->has_attr_record()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, _Internal::attr_record(this), output); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *this->attr_record_, output); } - // .pb.VectorRecord vector_record = 4; + // optional .pb.VectorRecord vector_record = 4; if (this->has_vector_record()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, _Internal::vector_record(this), output); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *this->vector_record_, output); } - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } // @@protoc_insertion_point(serialize_end:pb.FieldValue) } -::PROTOBUF_NAMESPACE_ID::uint8* FieldValue::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* FieldValue::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:pb.FieldValue) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string field_name = 1; + // optional 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, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), this->field_name().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pb.FieldValue.field_name"); target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->field_name(), target); } - // .pb.DataType type = 2; + // optional .pb.DataType type = 2; if (this->type() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 2, this->type(), target); } - // .pb.AttrRecord attr_record = 3; + // optional .pb.AttrRecord attr_record = 3; if (this->has_attr_record()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, _Internal::attr_record(this), target); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 3, *this->attr_record_, false, target); } - // .pb.VectorRecord vector_record = 4; + // optional .pb.VectorRecord vector_record = 4; if (this->has_vector_record()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, _Internal::vector_record(this), target); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 4, *this->vector_record_, false, 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:pb.FieldValue) return target; } -size_t FieldValue::ByteSizeLong() const { +int FieldValue::ByteSize() const { // @@protoc_insertion_point(message_byte_size_start:pb.FieldValue) - size_t total_size = 0; + int 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; + // optional string field_name = 1; if (this->field_name().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + ::google::protobuf::internal::WireFormatLite::StringSize( this->field_name()); } - // .pb.AttrRecord attr_record = 3; - if (this->has_attr_record()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *attr_record_); - } - - // .pb.VectorRecord vector_record = 4; - if (this->has_vector_record()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *vector_record_); - } - - // .pb.DataType type = 2; + // optional .pb.DataType type = 2; if (this->type() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->type()); + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + // 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 ::PROTOBUF_NAMESPACE_ID::Message& from) { +void FieldValue::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pb.FieldValue) - GOOGLE_DCHECK_NE(&from, this); - const FieldValue* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } + const FieldValue* source = + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.FieldValue) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.FieldValue) MergeFrom(*source); @@ -2981,14 +3071,15 @@ void FieldValue::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { void FieldValue::MergeFrom(const FieldValue& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pb.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 (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } if (from.field_name().size() > 0) { - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); + 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()); @@ -2996,12 +3087,9 @@ void FieldValue::MergeFrom(const FieldValue& from) { if (from.has_vector_record()) { mutable_vector_record()->::pb::VectorRecord::MergeFrom(from.vector_record()); } - if (from.type() != 0) { - set_type(from.type()); - } } -void FieldValue::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void FieldValue::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pb.FieldValue) if (&from == this) return; Clear(); @@ -3016,71 +3104,206 @@ void FieldValue::CopyFrom(const FieldValue& from) { } bool FieldValue::IsInitialized() const { + return true; } +void FieldValue::Swap(FieldValue* other) { + if (other == this) return; + InternalSwap(other); +} void FieldValue::InternalSwap(FieldValue* other) { - using std::swap; + 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_); - 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_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata FieldValue::GetMetadata() const { - return GetMetadataStatic(); +::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 // =================================================================== -void Cell::InitAsDefaultInstance() { - ::pb::_Cell_default_instance_.int32_value_ = 0; - ::pb::_Cell_default_instance_.int64_value_ = PROTOBUF_LONGLONG(0); - ::pb::_Cell_default_instance_.float_value_ = 0; - ::pb::_Cell_default_instance_.double_value_ = 0; -} -class Cell::_Internal { - public: -}; +#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() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::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) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_value(); - 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 VALUE_NOT_SET: { - break; - } - } + : ::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(); } @@ -3093,20 +3316,38 @@ void Cell::SharedDtor() { if (has_value()) { clear_value(); } + if (this != default_instance_) { + } } void Cell::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const Cell& Cell::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Cell_pulsar_2eproto.base); - return *internal_default_instance(); +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()) { + switch(value_case()) { case kInt32Value: { // No need to clear break; @@ -3123,6 +3364,10 @@ void Cell::clear_value() { // No need to clear break; } + case kVec: { + delete value_.vec_; + break; + } case VALUE_NOT_SET: { break; } @@ -3133,143 +3378,103 @@ void Cell::clear_value() { void Cell::Clear() { // @@protoc_insertion_point(message_clear_start:pb.Cell) - ::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* Cell::_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) { - // int32 int32_value = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - set_int32_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 int64_value = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - set_int64_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - // float float_value = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) { - set_float_value(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // double double_value = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 33)) { - set_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 Cell::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::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<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // int32 int32_value = 1; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional int32 int32_value = 1; case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { + if (tag == 8) { clear_value(); - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>( + 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; } - // int64 int64_value = 2; + // optional int64 int64_value = 2; case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + if (tag == 16) { + parse_int64_value: clear_value(); - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + 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; } - // float float_value = 3; + // optional float float_value = 3; case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (29 & 0xFF)) { + if (tag == 29) { + parse_float_value: clear_value(); - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( + 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; } - // double double_value = 4; + // optional double double_value = 4; case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (33 & 0xFF)) { + if (tag == 33) { + parse_double_value: clear_value(); - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( + 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) { + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -3282,131 +3487,130 @@ failure: return false; #undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void Cell::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pb.Cell) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int32 int32_value = 1; + // optional int32 int32_value = 1; if (has_int32_value()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(1, this->int32_value(), output); + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->int32_value(), output); } - // int64 int64_value = 2; + // optional int64 int64_value = 2; if (has_int64_value()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->int64_value(), output); + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->int64_value(), output); } - // float float_value = 3; + // optional float float_value = 3; if (has_float_value()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(3, this->float_value(), output); + ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->float_value(), output); } - // double double_value = 4; + // optional double double_value = 4; if (has_double_value()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDouble(4, this->double_value(), output); + ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->double_value(), output); } - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), 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) } -::PROTOBUF_NAMESPACE_ID::uint8* Cell::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* Cell::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:pb.Cell) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int32 int32_value = 1; + // optional int32 int32_value = 1; if (has_int32_value()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->int32_value(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->int32_value(), target); } - // int64 int64_value = 2; + // optional int64 int64_value = 2; if (has_int64_value()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->int64_value(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->int64_value(), target); } - // float float_value = 3; + // optional float float_value = 3; if (has_float_value()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->float_value(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->float_value(), target); } - // double double_value = 4; + // optional double double_value = 4; if (has_double_value()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->double_value(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->double_value(), target); } - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), 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; } -size_t Cell::ByteSizeLong() const { +int Cell::ByteSize() const { // @@protoc_insertion_point(message_byte_size_start:pb.Cell) - 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; + int total_size = 0; switch (value_case()) { - // int32 int32_value = 1; + // optional int32 int32_value = 1; case kInt32Value: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + ::google::protobuf::internal::WireFormatLite::Int32Size( this->int32_value()); break; } - // int64 int64_value = 2; + // optional int64 int64_value = 2; case kInt64Value: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + ::google::protobuf::internal::WireFormatLite::Int64Size( this->int64_value()); break; } - // float float_value = 3; + // optional float float_value = 3; case kFloatValue: { total_size += 1 + 4; break; } - // double double_value = 4; + // 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; } } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void Cell::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void Cell::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pb.Cell) - GOOGLE_DCHECK_NE(&from, this); - const Cell* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } + const Cell* source = + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Cell) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Cell) MergeFrom(*source); @@ -3415,11 +3619,9 @@ void Cell::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { void Cell::MergeFrom(const Cell& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pb.Cell) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } switch (from.value_case()) { case kInt32Value: { set_int32_value(from.int32_value()); @@ -3437,13 +3639,17 @@ void Cell::MergeFrom(const Cell& from) { 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 ::PROTOBUF_NAMESPACE_ID::Message& from) { +void Cell::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pb.Cell) if (&from == this) return; Clear(); @@ -3458,57 +3664,234 @@ void Cell::CopyFrom(const Cell& from) { } bool Cell::IsInitialized() const { + return true; } +void Cell::Swap(Cell* other) { + if (other == this) return; + InternalSwap(other); +} void Cell::InternalSwap(Cell* other) { - using std::swap; + std::swap(value_, other->value_); + std::swap(_oneof_case_[0], other->_oneof_case_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); - swap(value_, other->value_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata Cell::GetMetadata() const { - return GetMetadataStatic(); +::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 // =================================================================== -void RowValue::InitAsDefaultInstance() { - ::pb::_RowValue_default_instance_._instance.get_mutable()->vec_ = const_cast< ::pb::VectorRowRecord*>( - ::pb::VectorRowRecord::internal_default_instance()); -} -class RowValue::_Internal { - public: - static const ::pb::VectorRowRecord& vec(const RowValue* msg); -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int RowValue::kCellFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::pb::VectorRowRecord& -RowValue::_Internal::vec(const RowValue* msg) { - return *msg->vec_; -} RowValue::RowValue() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::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) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - cell_(from.cell_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_vec()) { - vec_ = new ::pb::VectorRowRecord(*from.vec_); - } else { - vec_ = nullptr; - } + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + SharedCtor(); + MergeFrom(from); // @@protoc_insertion_point(copy_constructor:pb.RowValue) } void RowValue::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RowValue_pulsar_2eproto.base); - vec_ = nullptr; + _is_default_instance_ = false; + _cached_size_ = 0; } RowValue::~RowValue() { @@ -3517,118 +3900,74 @@ RowValue::~RowValue() { } void RowValue::SharedDtor() { - if (this != internal_default_instance()) delete vec_; + if (this != default_instance_) { + } } void RowValue::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const RowValue& RowValue::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RowValue_pulsar_2eproto.base); - return *internal_default_instance(); +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) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - cell_.Clear(); - if (GetArenaNoVirtual() == nullptr && vec_ != nullptr) { - delete vec_; - } - vec_ = nullptr; - _internal_metadata_.Clear(); } -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* RowValue::_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) { - // .pb.VectorRowRecord vec = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_vec(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .pb.Cell cell = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_cell(), 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 RowValue::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::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<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .pb.VectorRowRecord vec = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_vec())); - } else { - goto handle_unusual; - } - break; - } - + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated .pb.Cell cell = 2; case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + 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) { + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -3641,110 +3980,62 @@ failure: return false; #undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void RowValue::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pb.RowValue) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .pb.VectorRowRecord vec = 1; - if (this->has_vec()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::vec(this), output); - } - // repeated .pb.Cell cell = 2; - for (unsigned int i = 0, - n = static_cast(this->cell_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, - this->cell(static_cast(i)), - output); + for (unsigned int i = 0, n = this->cell_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->cell(i), output); } - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } // @@protoc_insertion_point(serialize_end:pb.RowValue) } -::PROTOBUF_NAMESPACE_ID::uint8* RowValue::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* RowValue::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:pb.RowValue) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .pb.VectorRowRecord vec = 1; - if (this->has_vec()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::vec(this), target); - } - // repeated .pb.Cell cell = 2; - for (unsigned int i = 0, - n = static_cast(this->cell_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->cell(static_cast(i)), target); + for (unsigned int i = 0, n = this->cell_size(); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 2, this->cell(i), false, 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:pb.RowValue) return target; } -size_t RowValue::ByteSizeLong() const { +int RowValue::ByteSize() const { // @@protoc_insertion_point(message_byte_size_start:pb.RowValue) - 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; + int total_size = 0; // repeated .pb.Cell cell = 2; - { - unsigned int count = static_cast(this->cell_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->cell(static_cast(i))); - } + 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)); } - // .pb.VectorRowRecord vec = 1; - if (this->has_vec()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *vec_); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void RowValue::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void RowValue::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pb.RowValue) - GOOGLE_DCHECK_NE(&from, this); - const RowValue* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } + const RowValue* source = + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.RowValue) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.RowValue) MergeFrom(*source); @@ -3753,18 +4044,13 @@ void RowValue::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { void RowValue::MergeFrom(const RowValue& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pb.RowValue) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cell_.MergeFrom(from.cell_); - if (from.has_vec()) { - mutable_vec()->::pb::VectorRowRecord::MergeFrom(from.vec()); + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); } + cell_.MergeFrom(from.cell_); } -void RowValue::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void RowValue::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pb.RowValue) if (&from == this) return; Clear(); @@ -3779,89 +4065,113 @@ void RowValue::CopyFrom(const RowValue& from) { } bool RowValue::IsInitialized() const { + return true; } +void RowValue::Swap(RowValue* other) { + if (other == this) return; + InternalSwap(other); +} void RowValue::InternalSwap(RowValue* other) { - using std::swap; + cell_.UnsafeArenaSwap(&other->cell_); _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&cell_)->InternalSwap(CastToBase(&other->cell_)); - swap(vec_, other->vec_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata RowValue::GetMetadata() const { - return GetMetadataStatic(); +::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 // =================================================================== -void PulsarMessage::InitAsDefaultInstance() { - ::pb::_PulsarMessage_default_instance_._instance.get_mutable()->vector_param_ = const_cast< ::pb::VectorParam*>( - ::pb::VectorParam::internal_default_instance()); - ::pb::_PulsarMessage_default_instance_._instance.get_mutable()->segments_ = const_cast< ::pb::SegmentRecord*>( - ::pb::SegmentRecord::internal_default_instance()); -} -class PulsarMessage::_Internal { - public: - static const ::pb::VectorParam& vector_param(const PulsarMessage* msg); - static const ::pb::SegmentRecord& segments(const PulsarMessage* msg); -}; +#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 -const ::pb::VectorParam& -PulsarMessage::_Internal::vector_param(const PulsarMessage* msg) { - return *msg->vector_param_; -} -const ::pb::SegmentRecord& -PulsarMessage::_Internal::segments(const PulsarMessage* msg) { - return *msg->segments_; -} PulsarMessage::PulsarMessage() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::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) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - fields_(from.fields_) { - _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_); - } - topic_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.topic_name().empty()) { - topic_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.topic_name_); - } - if (from.has_vector_param()) { - vector_param_ = new ::pb::VectorParam(*from.vector_param_); - } else { - vector_param_ = nullptr; - } - if (from.has_segments()) { - segments_ = new ::pb::SegmentRecord(*from.segments_); - } else { - segments_ = nullptr; - } - ::memcpy(&entity_id_, &from.entity_id_, - static_cast(reinterpret_cast(&msg_type_) - - reinterpret_cast(&entity_id_)) + sizeof(msg_type_)); + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + SharedCtor(); + MergeFrom(from); // @@protoc_insertion_point(copy_constructor:pb.PulsarMessage) } void PulsarMessage::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PulsarMessage_pulsar_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - partition_tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - topic_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&vector_param_, 0, static_cast( - reinterpret_cast(&msg_type_) - - reinterpret_cast(&vector_param_)) + sizeof(msg_type_)); + _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() { @@ -3870,318 +4180,262 @@ PulsarMessage::~PulsarMessage() { } void PulsarMessage::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - partition_tag_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - topic_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete vector_param_; - if (this != internal_default_instance()) delete segments_; + 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 { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const PulsarMessage& PulsarMessage::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PulsarMessage_pulsar_2eproto.base); - return *internal_default_instance(); +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) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; +#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(); - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - partition_tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - topic_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && vector_param_ != nullptr) { - delete vector_param_; - } - vector_param_ = nullptr; - if (GetArenaNoVirtual() == nullptr && segments_ != nullptr) { - delete segments_; - } - segments_ = nullptr; - ::memset(&entity_id_, 0, static_cast( - reinterpret_cast(&msg_type_) - - reinterpret_cast(&entity_id_)) + sizeof(msg_type_)); - _internal_metadata_.Clear(); } -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PulsarMessage::_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, "pb.PulsarMessage.collection_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .pb.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; - // int64 entity_id = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - entity_id_ = ::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, "pb.PulsarMessage.partition_tag"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .pb.VectorParam vector_param = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr = ctx->ParseMessage(mutable_vector_param(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .pb.SegmentRecord segments = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - ptr = ctx->ParseMessage(mutable_segments(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 timestamp = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { - timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 client_id = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { - client_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .pb.OpType msg_type = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - set_msg_type(static_cast<::pb::OpType>(val)); - } else goto handle_unusual; - continue; - // string topic_name = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_topic_name(), ptr, ctx, "pb.PulsarMessage.topic_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 partition_id = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) { - partition_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 PulsarMessage::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::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<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string collection_name = 1; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string collection_name = 1; case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + if (tag == 10) { + DO_(::google::protobuf::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, + 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 (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + 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; } - // int64 entity_id = 3; + // optional int64 entity_id = 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>( + 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; } - // string partition_tag = 4; + // optional string partition_tag = 4; case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + if (tag == 34) { + parse_partition_tag: + DO_(::google::protobuf::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, + 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; } - // .pb.VectorParam vector_param = 5; + // optional .pb.VectorParam vector_param = 5; case 5: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + 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; } - // .pb.SegmentRecord segments = 6; + // optional .pb.SegmentRecord segments = 6; case 6: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + 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; } - // int64 timestamp = 7; + // optional int64 timestamp = 7; case 7: { - 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>( + 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; } - // int64 client_id = 8; + // optional int64 client_id = 8; case 8: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (64 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + 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; } - // .pb.OpType msg_type = 9; + // optional .pb.OpType msg_type = 9; case 9: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (72 & 0xFF)) { - int value = 0; - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( + 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; } - // string topic_name = 10; + // optional string topic_name = 10; case 10: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (82 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + if (tag == 82) { + parse_topic_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_topic_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->topic_name().data(), static_cast(this->topic_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + 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; } - // int64 partition_id = 11; + // optional int64 partition_id = 11; case 11: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (88 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + 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) { + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -4194,300 +4448,272 @@ failure: return false; #undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void PulsarMessage::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pb.PulsarMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; + // optional 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, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), this->collection_name().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pb.PulsarMessage.collection_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->collection_name(), output); } // repeated .pb.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); + for (unsigned int i = 0, n = this->fields_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->fields(i), output); } - // int64 entity_id = 3; + // optional int64 entity_id = 3; if (this->entity_id() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->entity_id(), output); + ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->entity_id(), output); } - // string partition_tag = 4; + // optional 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, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->partition_tag().data(), this->partition_tag().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pb.PulsarMessage.partition_tag"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 4, this->partition_tag(), output); } - // .pb.VectorParam vector_param = 5; + // optional .pb.VectorParam vector_param = 5; if (this->has_vector_param()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, _Internal::vector_param(this), output); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, *this->vector_param_, output); } - // .pb.SegmentRecord segments = 6; + // optional .pb.SegmentRecord segments = 6; if (this->has_segments()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, _Internal::segments(this), output); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, *this->segments_, output); } - // int64 timestamp = 7; + // optional int64 timestamp = 7; if (this->timestamp() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(7, this->timestamp(), output); + ::google::protobuf::internal::WireFormatLite::WriteInt64(7, this->timestamp(), output); } - // int64 client_id = 8; + // optional int64 client_id = 8; if (this->client_id() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(8, this->client_id(), output); + ::google::protobuf::internal::WireFormatLite::WriteInt64(8, this->client_id(), output); } - // .pb.OpType msg_type = 9; + // optional .pb.OpType msg_type = 9; if (this->msg_type() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( + ::google::protobuf::internal::WireFormatLite::WriteEnum( 9, this->msg_type(), output); } - // string topic_name = 10; + // optional string topic_name = 10; if (this->topic_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->topic_name().data(), static_cast(this->topic_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->topic_name().data(), this->topic_name().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pb.PulsarMessage.topic_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 10, this->topic_name(), output); } - // int64 partition_id = 11; + // optional int64 partition_id = 11; if (this->partition_id() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(11, this->partition_id(), output); + ::google::protobuf::internal::WireFormatLite::WriteInt64(11, this->partition_id(), output); } - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } // @@protoc_insertion_point(serialize_end:pb.PulsarMessage) } -::PROTOBUF_NAMESPACE_ID::uint8* PulsarMessage::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* PulsarMessage::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:pb.PulsarMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; + // optional 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, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), this->collection_name().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pb.PulsarMessage.collection_name"); target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->collection_name(), target); } // repeated .pb.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); + for (unsigned int i = 0, n = this->fields_size(); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 2, this->fields(i), false, target); } - // int64 entity_id = 3; + // optional int64 entity_id = 3; if (this->entity_id() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->entity_id(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->entity_id(), target); } - // string partition_tag = 4; + // optional 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, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->partition_tag().data(), this->partition_tag().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pb.PulsarMessage.partition_tag"); target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 4, this->partition_tag(), target); } - // .pb.VectorParam vector_param = 5; + // optional .pb.VectorParam vector_param = 5; if (this->has_vector_param()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, _Internal::vector_param(this), target); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 5, *this->vector_param_, false, target); } - // .pb.SegmentRecord segments = 6; + // optional .pb.SegmentRecord segments = 6; if (this->has_segments()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, _Internal::segments(this), target); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 6, *this->segments_, false, target); } - // int64 timestamp = 7; + // optional int64 timestamp = 7; if (this->timestamp() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(7, this->timestamp(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(7, this->timestamp(), target); } - // int64 client_id = 8; + // optional int64 client_id = 8; if (this->client_id() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(8, this->client_id(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(8, this->client_id(), target); } - // .pb.OpType msg_type = 9; + // optional .pb.OpType msg_type = 9; if (this->msg_type() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 9, this->msg_type(), target); } - // string topic_name = 10; + // optional string topic_name = 10; if (this->topic_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->topic_name().data(), static_cast(this->topic_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->topic_name().data(), this->topic_name().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pb.PulsarMessage.topic_name"); target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 10, this->topic_name(), target); } - // int64 partition_id = 11; + // optional int64 partition_id = 11; if (this->partition_id() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(11, this->partition_id(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(11, this->partition_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:pb.PulsarMessage) return target; } -size_t PulsarMessage::ByteSizeLong() const { +int PulsarMessage::ByteSize() const { // @@protoc_insertion_point(message_byte_size_start:pb.PulsarMessage) - size_t total_size = 0; + int 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 .pb.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))); - } - } - - // string collection_name = 1; + // optional string collection_name = 1; if (this->collection_name().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + ::google::protobuf::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()); - } - - // string topic_name = 10; - if (this->topic_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->topic_name()); - } - - // .pb.VectorParam vector_param = 5; - if (this->has_vector_param()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *vector_param_); - } - - // .pb.SegmentRecord segments = 6; - if (this->has_segments()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *segments_); - } - - // int64 entity_id = 3; + // optional int64 entity_id = 3; if (this->entity_id() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + ::google::protobuf::internal::WireFormatLite::Int64Size( this->entity_id()); } - // int64 timestamp = 7; + // 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 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + ::google::protobuf::internal::WireFormatLite::Int64Size( this->timestamp()); } - // int64 client_id = 8; + // optional int64 client_id = 8; if (this->client_id() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + ::google::protobuf::internal::WireFormatLite::Int64Size( this->client_id()); } - // int64 partition_id = 11; + // 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 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + ::google::protobuf::internal::WireFormatLite::Int64Size( this->partition_id()); } - // .pb.OpType msg_type = 9; - if (this->msg_type() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->msg_type()); + // 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)); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void PulsarMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void PulsarMessage::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pb.PulsarMessage) - GOOGLE_DCHECK_NE(&from, this); - const PulsarMessage* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } + const PulsarMessage* source = + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.PulsarMessage) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.PulsarMessage) MergeFrom(*source); @@ -4496,23 +4722,20 @@ void PulsarMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { void PulsarMessage::MergeFrom(const PulsarMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pb.PulsarMessage) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - + 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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + 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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); - } - if (from.topic_name().size() > 0) { - - topic_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.topic_name_); + partition_tag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); } if (from.has_vector_param()) { mutable_vector_param()->::pb::VectorParam::MergeFrom(from.vector_param()); @@ -4520,24 +4743,25 @@ void PulsarMessage::MergeFrom(const PulsarMessage& from) { if (from.has_segments()) { mutable_segments()->::pb::SegmentRecord::MergeFrom(from.segments()); } - if (from.entity_id() != 0) { - set_entity_id(from.entity_id()); - } if (from.timestamp() != 0) { set_timestamp(from.timestamp()); } if (from.client_id() != 0) { set_client_id(from.client_id()); } - if (from.partition_id() != 0) { - set_partition_id(from.partition_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 ::PROTOBUF_NAMESPACE_ID::Message& from) { +void PulsarMessage::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pb.PulsarMessage) if (&from == this) return; Clear(); @@ -4552,65 +4776,382 @@ void PulsarMessage::CopyFrom(const PulsarMessage& from) { } bool PulsarMessage::IsInitialized() const { + return true; } +void PulsarMessage::Swap(PulsarMessage* other) { + if (other == this) return; + InternalSwap(other); +} void PulsarMessage::InternalSwap(PulsarMessage* other) { - using std::swap; + 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_); - CastToBase(&fields_)->InternalSwap(CastToBase(&other->fields_)); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - partition_tag_.Swap(&other->partition_tag_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - topic_name_.Swap(&other->topic_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(vector_param_, other->vector_param_); - swap(segments_, other->segments_); - swap(entity_id_, other->entity_id_); - swap(timestamp_, other->timestamp_); - swap(client_id_, other->client_id_); - swap(partition_id_, other->partition_id_); - swap(msg_type_, other->msg_type_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata PulsarMessage::GetMetadata() const { - return GetMetadataStatic(); +::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 // =================================================================== -void TestData::InitAsDefaultInstance() { -} -class TestData::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TestData::kIdFieldNumber; +const int TestData::kNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 TestData::TestData() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::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) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.id().empty()) { - id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.id_); - } - name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.name().empty()) { - name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); - } + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + SharedCtor(); + MergeFrom(from); // @@protoc_insertion_point(copy_constructor:pb.TestData) } void TestData::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TestData_pulsar_2eproto.base); - id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _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() { @@ -4619,119 +5160,94 @@ TestData::~TestData() { } void TestData::SharedDtor() { - id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != default_instance_) { + } } void TestData::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const TestData& TestData::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TestData_pulsar_2eproto.base); - return *internal_default_instance(); +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) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); + id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TestData::_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 id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_id(), ptr, ctx, "pb.TestData.id"); - 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, "pb.TestData.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 TestData::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::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<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string id = 1; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string id = 1; case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + if (tag == 10) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_id())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + 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; } - // string name = 2; + // optional string name = 2; case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + if (tag == 18) { + parse_name: + DO_(::google::protobuf::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, + 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) { + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -4744,118 +5260,97 @@ failure: return false; #undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void TestData::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pb.TestData) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string id = 1; + // optional string id = 1; if (this->id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), this->id().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pb.TestData.id"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->id(), output); } - // string name = 2; + // optional 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, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pb.TestData.name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->name(), output); } - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } // @@protoc_insertion_point(serialize_end:pb.TestData) } -::PROTOBUF_NAMESPACE_ID::uint8* TestData::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* TestData::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:pb.TestData) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string id = 1; + // optional string id = 1; if (this->id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), this->id().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pb.TestData.id"); target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->id(), target); } - // string name = 2; + // optional 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, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pb.TestData.name"); target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->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:pb.TestData) return target; } -size_t TestData::ByteSizeLong() const { +int TestData::ByteSize() const { // @@protoc_insertion_point(message_byte_size_start:pb.TestData) - size_t total_size = 0; + int 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 id = 1; + // optional string id = 1; if (this->id().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + ::google::protobuf::internal::WireFormatLite::StringSize( this->id()); } - // string name = 2; + // optional string name = 2; if (this->name().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + ::google::protobuf::internal::WireFormatLite::StringSize( this->name()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void TestData::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void TestData::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pb.TestData) - GOOGLE_DCHECK_NE(&from, this); - const TestData* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } + const TestData* source = + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.TestData) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.TestData) MergeFrom(*source); @@ -4864,22 +5359,20 @@ void TestData::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { void TestData::MergeFrom(const TestData& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pb.TestData) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } if (from.id().size() > 0) { - id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.id_); + id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); } if (from.name().size() > 0) { - name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); } } -void TestData::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void TestData::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pb.TestData) if (&from == this) return; Clear(); @@ -4894,46 +5387,150 @@ void TestData::CopyFrom(const TestData& from) { } bool TestData::IsInitialized() const { + return true; } +void TestData::Swap(TestData* other) { + if (other == this) return; + InternalSwap(other); +} void TestData::InternalSwap(TestData* other) { - using std::swap; + id_.Swap(&other->id_); + name_.Swap(&other->name_); _internal_metadata_.Swap(&other->_internal_metadata_); - id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata TestData::GetMetadata() const { - return GetMetadataStatic(); +::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 // =================================================================== -void InsertMsg::InitAsDefaultInstance() { -} -class InsertMsg::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int InsertMsg::kClientIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 InsertMsg::InsertMsg() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::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) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - client_id_ = from.client_id_; + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + SharedCtor(); + MergeFrom(from); // @@protoc_insertion_point(copy_constructor:pb.InsertMsg) } void InsertMsg::SharedCtor() { - client_id_ = PROTOBUF_LONGLONG(0); + _is_default_instance_ = false; + _cached_size_ = 0; + client_id_ = GOOGLE_LONGLONG(0); } InsertMsg::~InsertMsg() { @@ -4942,92 +5539,72 @@ InsertMsg::~InsertMsg() { } void InsertMsg::SharedDtor() { + if (this != default_instance_) { + } } void InsertMsg::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const InsertMsg& InsertMsg::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_InsertMsg_pulsar_2eproto.base); - return *internal_default_instance(); +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) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - client_id_ = PROTOBUF_LONGLONG(0); - _internal_metadata_.Clear(); + client_id_ = GOOGLE_LONGLONG(0); } -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* InsertMsg::_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; - 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 InsertMsg::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::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<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // int64 client_id = 1; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional int64 client_id = 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>( + 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) { + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -5040,79 +5617,58 @@ failure: return false; #undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void InsertMsg::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pb.InsertMsg) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 client_id = 1; + // optional int64 client_id = 1; if (this->client_id() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->client_id(), output); + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->client_id(), output); } - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } // @@protoc_insertion_point(serialize_end:pb.InsertMsg) } -::PROTOBUF_NAMESPACE_ID::uint8* InsertMsg::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* InsertMsg::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:pb.InsertMsg) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 client_id = 1; + // optional int64 client_id = 1; if (this->client_id() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->client_id(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->client_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:pb.InsertMsg) return target; } -size_t InsertMsg::ByteSizeLong() const { +int InsertMsg::ByteSize() const { // @@protoc_insertion_point(message_byte_size_start:pb.InsertMsg) - size_t total_size = 0; + int 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 client_id = 1; + // optional int64 client_id = 1; if (this->client_id() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + ::google::protobuf::internal::WireFormatLite::Int64Size( this->client_id()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void InsertMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void InsertMsg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pb.InsertMsg) - GOOGLE_DCHECK_NE(&from, this); - const InsertMsg* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } + const InsertMsg* source = + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.InsertMsg) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.InsertMsg) MergeFrom(*source); @@ -5121,17 +5677,15 @@ void InsertMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { void InsertMsg::MergeFrom(const InsertMsg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pb.InsertMsg) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - + 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 ::PROTOBUF_NAMESPACE_ID::Message& from) { +void InsertMsg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pb.InsertMsg) if (&from == this) return; Clear(); @@ -5146,43 +5700,75 @@ void InsertMsg::CopyFrom(const InsertMsg& from) { } bool InsertMsg::IsInitialized() const { + return true; } +void InsertMsg::Swap(InsertMsg* other) { + if (other == this) return; + InternalSwap(other); +} void InsertMsg::InternalSwap(InsertMsg* other) { - using std::swap; + std::swap(client_id_, other->client_id_); _internal_metadata_.Swap(&other->_internal_metadata_); - swap(client_id_, other->client_id_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata InsertMsg::GetMetadata() const { - return GetMetadataStatic(); +::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 // =================================================================== -void DeleteMsg::InitAsDefaultInstance() { -} -class DeleteMsg::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DeleteMsg::kClientIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 DeleteMsg::DeleteMsg() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::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) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - client_id_ = from.client_id_; + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + SharedCtor(); + MergeFrom(from); // @@protoc_insertion_point(copy_constructor:pb.DeleteMsg) } void DeleteMsg::SharedCtor() { - client_id_ = PROTOBUF_LONGLONG(0); + _is_default_instance_ = false; + _cached_size_ = 0; + client_id_ = GOOGLE_LONGLONG(0); } DeleteMsg::~DeleteMsg() { @@ -5191,92 +5777,72 @@ DeleteMsg::~DeleteMsg() { } void DeleteMsg::SharedDtor() { + if (this != default_instance_) { + } } void DeleteMsg::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const DeleteMsg& DeleteMsg::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DeleteMsg_pulsar_2eproto.base); - return *internal_default_instance(); +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) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - client_id_ = PROTOBUF_LONGLONG(0); - _internal_metadata_.Clear(); + client_id_ = GOOGLE_LONGLONG(0); } -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DeleteMsg::_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; - 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 DeleteMsg::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::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<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // int64 client_id = 1; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional int64 client_id = 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>( + 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) { + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -5289,79 +5855,58 @@ failure: return false; #undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void DeleteMsg::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pb.DeleteMsg) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 client_id = 1; + // optional int64 client_id = 1; if (this->client_id() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->client_id(), output); + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->client_id(), output); } - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } // @@protoc_insertion_point(serialize_end:pb.DeleteMsg) } -::PROTOBUF_NAMESPACE_ID::uint8* DeleteMsg::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* DeleteMsg::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:pb.DeleteMsg) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 client_id = 1; + // optional int64 client_id = 1; if (this->client_id() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->client_id(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->client_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:pb.DeleteMsg) return target; } -size_t DeleteMsg::ByteSizeLong() const { +int DeleteMsg::ByteSize() const { // @@protoc_insertion_point(message_byte_size_start:pb.DeleteMsg) - size_t total_size = 0; + int 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 client_id = 1; + // optional int64 client_id = 1; if (this->client_id() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + ::google::protobuf::internal::WireFormatLite::Int64Size( this->client_id()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void DeleteMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void DeleteMsg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pb.DeleteMsg) - GOOGLE_DCHECK_NE(&from, this); - const DeleteMsg* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } + const DeleteMsg* source = + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.DeleteMsg) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.DeleteMsg) MergeFrom(*source); @@ -5370,17 +5915,15 @@ void DeleteMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { void DeleteMsg::MergeFrom(const DeleteMsg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pb.DeleteMsg) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - + 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 ::PROTOBUF_NAMESPACE_ID::Message& from) { +void DeleteMsg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pb.DeleteMsg) if (&from == this) return; Clear(); @@ -5395,43 +5938,75 @@ void DeleteMsg::CopyFrom(const DeleteMsg& from) { } bool DeleteMsg::IsInitialized() const { + return true; } +void DeleteMsg::Swap(DeleteMsg* other) { + if (other == this) return; + InternalSwap(other); +} void DeleteMsg::InternalSwap(DeleteMsg* other) { - using std::swap; + std::swap(client_id_, other->client_id_); _internal_metadata_.Swap(&other->_internal_metadata_); - swap(client_id_, other->client_id_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata DeleteMsg::GetMetadata() const { - return GetMetadataStatic(); +::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 // =================================================================== -void SearchMsg::InitAsDefaultInstance() { -} -class SearchMsg::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SearchMsg::kClientIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SearchMsg::SearchMsg() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::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) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - client_id_ = from.client_id_; + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + SharedCtor(); + MergeFrom(from); // @@protoc_insertion_point(copy_constructor:pb.SearchMsg) } void SearchMsg::SharedCtor() { - client_id_ = PROTOBUF_LONGLONG(0); + _is_default_instance_ = false; + _cached_size_ = 0; + client_id_ = GOOGLE_LONGLONG(0); } SearchMsg::~SearchMsg() { @@ -5440,92 +6015,72 @@ SearchMsg::~SearchMsg() { } void SearchMsg::SharedDtor() { + if (this != default_instance_) { + } } void SearchMsg::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const SearchMsg& SearchMsg::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchMsg_pulsar_2eproto.base); - return *internal_default_instance(); +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) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - client_id_ = PROTOBUF_LONGLONG(0); - _internal_metadata_.Clear(); + client_id_ = GOOGLE_LONGLONG(0); } -#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) { - // 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; - 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( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::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<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // int64 client_id = 1; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional int64 client_id = 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>( + 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) { + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -5538,79 +6093,58 @@ failure: return false; #undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SearchMsg::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pb.SearchMsg) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 client_id = 1; + // optional int64 client_id = 1; if (this->client_id() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->client_id(), output); + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->client_id(), output); } - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } // @@protoc_insertion_point(serialize_end:pb.SearchMsg) } -::PROTOBUF_NAMESPACE_ID::uint8* SearchMsg::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* SearchMsg::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:pb.SearchMsg) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 client_id = 1; + // optional int64 client_id = 1; if (this->client_id() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->client_id(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->client_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:pb.SearchMsg) return target; } -size_t SearchMsg::ByteSizeLong() const { +int SearchMsg::ByteSize() const { // @@protoc_insertion_point(message_byte_size_start:pb.SearchMsg) - size_t total_size = 0; + int 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 client_id = 1; + // optional int64 client_id = 1; if (this->client_id() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + ::google::protobuf::internal::WireFormatLite::Int64Size( this->client_id()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void SearchMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SearchMsg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pb.SearchMsg) - GOOGLE_DCHECK_NE(&from, this); - const SearchMsg* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } + const SearchMsg* source = + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.SearchMsg) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.SearchMsg) MergeFrom(*source); @@ -5619,17 +6153,15 @@ void SearchMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { void SearchMsg::MergeFrom(const SearchMsg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pb.SearchMsg) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - + 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 ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SearchMsg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pb.SearchMsg) if (&from == this) return; Clear(); @@ -5644,43 +6176,75 @@ 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) { - using std::swap; + std::swap(client_id_, other->client_id_); _internal_metadata_.Swap(&other->_internal_metadata_); - swap(client_id_, other->client_id_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata SearchMsg::GetMetadata() const { - return GetMetadataStatic(); +::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 // =================================================================== -void SearchResultMsg::InitAsDefaultInstance() { -} -class SearchResultMsg::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SearchResultMsg::kClientIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SearchResultMsg::SearchResultMsg() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::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) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - client_id_ = from.client_id_; + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + SharedCtor(); + MergeFrom(from); // @@protoc_insertion_point(copy_constructor:pb.SearchResultMsg) } void SearchResultMsg::SharedCtor() { - client_id_ = PROTOBUF_LONGLONG(0); + _is_default_instance_ = false; + _cached_size_ = 0; + client_id_ = GOOGLE_LONGLONG(0); } SearchResultMsg::~SearchResultMsg() { @@ -5689,92 +6253,72 @@ SearchResultMsg::~SearchResultMsg() { } void SearchResultMsg::SharedDtor() { + if (this != default_instance_) { + } } void SearchResultMsg::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const SearchResultMsg& SearchResultMsg::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchResultMsg_pulsar_2eproto.base); - return *internal_default_instance(); +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) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - client_id_ = PROTOBUF_LONGLONG(0); - _internal_metadata_.Clear(); + client_id_ = GOOGLE_LONGLONG(0); } -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SearchResultMsg::_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; - 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 SearchResultMsg::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::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<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // int64 client_id = 1; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional int64 client_id = 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>( + 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) { + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -5787,79 +6331,58 @@ failure: return false; #undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SearchResultMsg::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pb.SearchResultMsg) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 client_id = 1; + // optional int64 client_id = 1; if (this->client_id() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->client_id(), output); + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->client_id(), output); } - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } // @@protoc_insertion_point(serialize_end:pb.SearchResultMsg) } -::PROTOBUF_NAMESPACE_ID::uint8* SearchResultMsg::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* SearchResultMsg::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:pb.SearchResultMsg) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 client_id = 1; + // optional int64 client_id = 1; if (this->client_id() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->client_id(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->client_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:pb.SearchResultMsg) return target; } -size_t SearchResultMsg::ByteSizeLong() const { +int SearchResultMsg::ByteSize() const { // @@protoc_insertion_point(message_byte_size_start:pb.SearchResultMsg) - size_t total_size = 0; + int 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 client_id = 1; + // optional int64 client_id = 1; if (this->client_id() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + ::google::protobuf::internal::WireFormatLite::Int64Size( this->client_id()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void SearchResultMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SearchResultMsg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pb.SearchResultMsg) - GOOGLE_DCHECK_NE(&from, this); - const SearchResultMsg* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + if (GOOGLE_PREDICT_FALSE(&from == this)) { + ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + } + const SearchResultMsg* source = + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.SearchResultMsg) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.SearchResultMsg) MergeFrom(*source); @@ -5868,17 +6391,15 @@ void SearchResultMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { void SearchResultMsg::MergeFrom(const SearchResultMsg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pb.SearchResultMsg) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - + 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 ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SearchResultMsg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pb.SearchResultMsg) if (&from == this) return; Clear(); @@ -5893,69 +6414,49 @@ void SearchResultMsg::CopyFrom(const SearchResultMsg& from) { } bool SearchResultMsg::IsInitialized() const { + return true; } +void SearchResultMsg::Swap(SearchResultMsg* other) { + if (other == this) return; + InternalSwap(other); +} void SearchResultMsg::InternalSwap(SearchResultMsg* other) { - using std::swap; + std::swap(client_id_, other->client_id_); _internal_metadata_.Swap(&other->_internal_metadata_); - swap(client_id_, other->client_id_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata SearchResultMsg::GetMetadata() const { - return GetMetadataStatic(); +::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 -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::pb::Status* Arena::CreateMaybeMessage< ::pb::Status >(Arena* arena) { - return Arena::CreateInternal< ::pb::Status >(arena); -} -template<> PROTOBUF_NOINLINE ::pb::SegmentRecord* Arena::CreateMaybeMessage< ::pb::SegmentRecord >(Arena* arena) { - return Arena::CreateInternal< ::pb::SegmentRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::pb::VectorRowRecord* Arena::CreateMaybeMessage< ::pb::VectorRowRecord >(Arena* arena) { - return Arena::CreateInternal< ::pb::VectorRowRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::pb::AttrRecord* Arena::CreateMaybeMessage< ::pb::AttrRecord >(Arena* arena) { - return Arena::CreateInternal< ::pb::AttrRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::pb::VectorRecord* Arena::CreateMaybeMessage< ::pb::VectorRecord >(Arena* arena) { - return Arena::CreateInternal< ::pb::VectorRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::pb::VectorParam* Arena::CreateMaybeMessage< ::pb::VectorParam >(Arena* arena) { - return Arena::CreateInternal< ::pb::VectorParam >(arena); -} -template<> PROTOBUF_NOINLINE ::pb::FieldValue* Arena::CreateMaybeMessage< ::pb::FieldValue >(Arena* arena) { - return Arena::CreateInternal< ::pb::FieldValue >(arena); -} -template<> PROTOBUF_NOINLINE ::pb::Cell* Arena::CreateMaybeMessage< ::pb::Cell >(Arena* arena) { - return Arena::CreateInternal< ::pb::Cell >(arena); -} -template<> PROTOBUF_NOINLINE ::pb::RowValue* Arena::CreateMaybeMessage< ::pb::RowValue >(Arena* arena) { - return Arena::CreateInternal< ::pb::RowValue >(arena); -} -template<> PROTOBUF_NOINLINE ::pb::PulsarMessage* Arena::CreateMaybeMessage< ::pb::PulsarMessage >(Arena* arena) { - return Arena::CreateInternal< ::pb::PulsarMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::pb::TestData* Arena::CreateMaybeMessage< ::pb::TestData >(Arena* arena) { - return Arena::CreateInternal< ::pb::TestData >(arena); -} -template<> PROTOBUF_NOINLINE ::pb::InsertMsg* Arena::CreateMaybeMessage< ::pb::InsertMsg >(Arena* arena) { - return Arena::CreateInternal< ::pb::InsertMsg >(arena); -} -template<> PROTOBUF_NOINLINE ::pb::DeleteMsg* Arena::CreateMaybeMessage< ::pb::DeleteMsg >(Arena* arena) { - return Arena::CreateInternal< ::pb::DeleteMsg >(arena); -} -template<> PROTOBUF_NOINLINE ::pb::SearchMsg* Arena::CreateMaybeMessage< ::pb::SearchMsg >(Arena* arena) { - return Arena::CreateInternal< ::pb::SearchMsg >(arena); -} -template<> PROTOBUF_NOINLINE ::pb::SearchResultMsg* Arena::CreateMaybeMessage< ::pb::SearchResultMsg >(Arena* arena) { - return Arena::CreateInternal< ::pb::SearchResultMsg >(arena); -} -PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include diff --git a/proxy/src/pulsar/message_client/pb/pulsar.pb.h b/proxy/src/pulsar/message_client/pb/pulsar.pb.h index e7e0429b83..19d8811c89 100644 --- a/proxy/src/pulsar/message_client/pb/pulsar.pb.h +++ b/proxy/src/pulsar/message_client/pb/pulsar.pb.h @@ -1,127 +1,59 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: pulsar.proto -#ifndef GOOGLE_PROTOBUF_INCLUDED_pulsar_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_pulsar_2eproto +#ifndef PROTOBUF_pulsar_2eproto__INCLUDED +#define PROTOBUF_pulsar_2eproto__INCLUDED -#include #include -#include -#if PROTOBUF_VERSION < 3009000 +#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 incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3009000 < PROTOBUF_MIN_PROTOC_VERSION +#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 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 #include // @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_pulsar_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE -// Internal implementation detail -- do not use these members. -struct TableStruct_pulsar_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[15] - 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_pulsar_2eproto; 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 AttrRecordDefaultTypeInternal; -extern AttrRecordDefaultTypeInternal _AttrRecord_default_instance_; class Cell; -class CellDefaultTypeInternal; -extern CellDefaultTypeInternal _Cell_default_instance_; class DeleteMsg; -class DeleteMsgDefaultTypeInternal; -extern DeleteMsgDefaultTypeInternal _DeleteMsg_default_instance_; class FieldValue; -class FieldValueDefaultTypeInternal; -extern FieldValueDefaultTypeInternal _FieldValue_default_instance_; class InsertMsg; -class InsertMsgDefaultTypeInternal; -extern InsertMsgDefaultTypeInternal _InsertMsg_default_instance_; class PulsarMessage; -class PulsarMessageDefaultTypeInternal; -extern PulsarMessageDefaultTypeInternal _PulsarMessage_default_instance_; class RowValue; -class RowValueDefaultTypeInternal; -extern RowValueDefaultTypeInternal _RowValue_default_instance_; class SearchMsg; -class SearchMsgDefaultTypeInternal; -extern SearchMsgDefaultTypeInternal _SearchMsg_default_instance_; class SearchResultMsg; -class SearchResultMsgDefaultTypeInternal; -extern SearchResultMsgDefaultTypeInternal _SearchResultMsg_default_instance_; class SegmentRecord; -class SegmentRecordDefaultTypeInternal; -extern SegmentRecordDefaultTypeInternal _SegmentRecord_default_instance_; class Status; -class StatusDefaultTypeInternal; -extern StatusDefaultTypeInternal _Status_default_instance_; class TestData; -class TestDataDefaultTypeInternal; -extern TestDataDefaultTypeInternal _TestData_default_instance_; class VectorParam; -class VectorParamDefaultTypeInternal; -extern VectorParamDefaultTypeInternal _VectorParam_default_instance_; class VectorRecord; -class VectorRecordDefaultTypeInternal; -extern VectorRecordDefaultTypeInternal _VectorRecord_default_instance_; class VectorRowRecord; -class VectorRowRecordDefaultTypeInternal; -extern VectorRowRecordDefaultTypeInternal _VectorRowRecord_default_instance_; -} // namespace pb -PROTOBUF_NAMESPACE_OPEN -template<> ::pb::AttrRecord* Arena::CreateMaybeMessage<::pb::AttrRecord>(Arena*); -template<> ::pb::Cell* Arena::CreateMaybeMessage<::pb::Cell>(Arena*); -template<> ::pb::DeleteMsg* Arena::CreateMaybeMessage<::pb::DeleteMsg>(Arena*); -template<> ::pb::FieldValue* Arena::CreateMaybeMessage<::pb::FieldValue>(Arena*); -template<> ::pb::InsertMsg* Arena::CreateMaybeMessage<::pb::InsertMsg>(Arena*); -template<> ::pb::PulsarMessage* Arena::CreateMaybeMessage<::pb::PulsarMessage>(Arena*); -template<> ::pb::RowValue* Arena::CreateMaybeMessage<::pb::RowValue>(Arena*); -template<> ::pb::SearchMsg* Arena::CreateMaybeMessage<::pb::SearchMsg>(Arena*); -template<> ::pb::SearchResultMsg* Arena::CreateMaybeMessage<::pb::SearchResultMsg>(Arena*); -template<> ::pb::SegmentRecord* Arena::CreateMaybeMessage<::pb::SegmentRecord>(Arena*); -template<> ::pb::Status* Arena::CreateMaybeMessage<::pb::Status>(Arena*); -template<> ::pb::TestData* Arena::CreateMaybeMessage<::pb::TestData>(Arena*); -template<> ::pb::VectorParam* Arena::CreateMaybeMessage<::pb::VectorParam>(Arena*); -template<> ::pb::VectorRecord* Arena::CreateMaybeMessage<::pb::VectorRecord>(Arena*); -template<> ::pb::VectorRowRecord* Arena::CreateMaybeMessage<::pb::VectorRowRecord>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace pb { -enum ErrorCode : int { +enum ErrorCode { SUCCESS = 0, UNEXPECTED_ERROR = 1, CONNECT_FAILED = 2, @@ -146,29 +78,25 @@ enum ErrorCode : int { ILLEGAL_NLIST = 22, ILLEGAL_METRIC_TYPE = 23, OUT_OF_MEMORY = 24, - ErrorCode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - ErrorCode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() + 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); -constexpr ErrorCode ErrorCode_MIN = SUCCESS; -constexpr ErrorCode ErrorCode_MAX = OUT_OF_MEMORY; -constexpr int ErrorCode_ARRAYSIZE = ErrorCode_MAX + 1; +const ErrorCode ErrorCode_MIN = SUCCESS; +const ErrorCode ErrorCode_MAX = OUT_OF_MEMORY; +const int ErrorCode_ARRAYSIZE = ErrorCode_MAX + 1; -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ErrorCode_descriptor(); -template -inline const std::string& ErrorCode_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ErrorCode_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - ErrorCode_descriptor(), enum_t_value); +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 ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + const ::std::string& name, ErrorCode* value) { + return ::google::protobuf::internal::ParseNamedEnum( ErrorCode_descriptor(), name, value); } -enum DataType : int { +enum DataType { NONE = 0, BOOL = 1, INT8 = 2, @@ -180,1159 +108,781 @@ enum DataType : int { 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() + 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); -constexpr DataType DataType_MIN = NONE; -constexpr DataType DataType_MAX = VECTOR_FLOAT; -constexpr int DataType_ARRAYSIZE = DataType_MAX + 1; +const DataType DataType_MIN = NONE; +const DataType DataType_MAX = VECTOR_FLOAT; +const 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); +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 ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + const ::std::string& name, DataType* value) { + return ::google::protobuf::internal::ParseNamedEnum( DataType_descriptor(), name, value); } -enum OpType : int { +enum OpType { Insert = 0, Delete = 1, Search = 2, TimeSync = 3, Key2Seg = 4, Statistics = 5, - 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() + 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); -constexpr OpType OpType_MIN = Insert; -constexpr OpType OpType_MAX = Statistics; -constexpr int OpType_ARRAYSIZE = OpType_MAX + 1; +const OpType OpType_MIN = Insert; +const OpType OpType_MAX = Statistics; +const int OpType_ARRAYSIZE = OpType_MAX + 1; -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); +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 ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + const ::std::string& name, OpType* value) { + return ::google::protobuf::internal::ParseNamedEnum( OpType_descriptor(), name, value); } // =================================================================== -class Status : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pb.Status) */ { +class Status : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.Status) */ { public: Status(); virtual ~Status(); Status(const Status& from); - Status(Status&& from) noexcept - : Status() { - *this = ::std::move(from); - } inline Status& operator=(const Status& from) { CopyFrom(from); return *this; } - inline Status& operator=(Status&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const Status& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Status* internal_default_instance() { - return reinterpret_cast( - &_Status_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(Status& a, Status& b) { - a.Swap(&b); - } - inline void Swap(Status* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(Status* other); // implements Message ---------------------------------------------- - inline Status* New() const final { - return CreateMaybeMessage(nullptr); - } + inline Status* New() const { return New(NULL); } - Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + 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); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + void Clear(); + bool IsInitialized() 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 + int ByteSize() const; bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Status* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pb.Status"; + ::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: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + 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 nullptr; + return _internal_metadata_.raw_arena_ptr(); } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_pulsar_2eproto); - return ::descriptor_table_pulsar_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kReasonFieldNumber = 2, - kErrorCodeFieldNumber = 1, - }; - // string reason = 2; - void clear_reason(); - const std::string& reason() const; - void set_reason(const std::string& value); - void set_reason(std::string&& value); - void set_reason(const char* value); - void set_reason(const char* value, size_t size); - std::string* mutable_reason(); - std::string* release_reason(); - void set_allocated_reason(std::string* reason); - - // .pb.ErrorCode error_code = 1; + // 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: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reason_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + bool _is_default_instance_; + ::google::protobuf::internal::ArenaStringPtr reason_; int error_code_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_pulsar_2eproto; + 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 ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pb.SegmentRecord) */ { +class SegmentRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.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 ::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 ::google::protobuf::Descriptor* descriptor(); static const SegmentRecord& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SegmentRecord* internal_default_instance() { - return reinterpret_cast( - &_SegmentRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(SegmentRecord& a, SegmentRecord& b) { - a.Swap(&b); - } - inline void Swap(SegmentRecord* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(SegmentRecord* other); // implements Message ---------------------------------------------- - inline SegmentRecord* New() const final { - return CreateMaybeMessage(nullptr); - } + inline SegmentRecord* New() const { return New(NULL); } - 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; + 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); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + void Clear(); + bool IsInitialized() 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 + int ByteSize() const; bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); 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(SegmentRecord* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pb.SegmentRecord"; + ::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: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + 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 nullptr; + return _internal_metadata_.raw_arena_ptr(); } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_pulsar_2eproto); - return ::descriptor_table_pulsar_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kSegInfoFieldNumber = 1, - }; // repeated string seg_info = 1; int seg_info_size() const; void clear_seg_info(); - 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, std::string&& value); + 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(std::string&& value); + ::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 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& seg_info() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_seg_info(); + 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: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField seg_info_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_pulsar_2eproto; + ::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 ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pb.VectorRowRecord) */ { +class VectorRowRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.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 ::google::protobuf::Descriptor* descriptor(); 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 = - 2; - - friend void swap(VectorRowRecord& a, VectorRowRecord& b) { - a.Swap(&b); - } - inline void Swap(VectorRowRecord* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(VectorRowRecord* other); // implements Message ---------------------------------------------- - inline VectorRowRecord* New() const final { - return CreateMaybeMessage(nullptr); - } + inline VectorRowRecord* New() const { return New(NULL); } - 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; + 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); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + void Clear(); + bool IsInitialized() 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 + int ByteSize() const; bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); 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 "pb.VectorRowRecord"; + ::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: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + 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 nullptr; + return _internal_metadata_.raw_arena_ptr(); } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_pulsar_2eproto); - return ::descriptor_table_pulsar_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const; // 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 ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& + const ::google::protobuf::RepeatedField< float >& float_data() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* + ::google::protobuf::RepeatedField< float >* mutable_float_data(); - // bytes binary_data = 2; + // optional 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); + 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); + ::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: - 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_pulsar_2eproto; + ::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 ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pb.AttrRecord) */ { +class AttrRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.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 ::google::protobuf::Descriptor* descriptor(); 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 = - 3; - - friend void swap(AttrRecord& a, AttrRecord& b) { - a.Swap(&b); - } - inline void Swap(AttrRecord* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(AttrRecord* other); // implements Message ---------------------------------------------- - inline AttrRecord* New() const final { - return CreateMaybeMessage(nullptr); - } + inline AttrRecord* New() const { return New(NULL); } - 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; + 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); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + void Clear(); + bool IsInitialized() 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 + int ByteSize() const; bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); 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 "pb.AttrRecord"; + ::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: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + 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 nullptr; + return _internal_metadata_.raw_arena_ptr(); } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_pulsar_2eproto); - return ::descriptor_table_pulsar_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const; // 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 >& + 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; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* + ::google::protobuf::RepeatedField< ::google::protobuf::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 >& + 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; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* + ::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 ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& + const ::google::protobuf::RepeatedField< float >& float_value() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* + ::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 ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + const ::google::protobuf::RepeatedField< double >& double_value() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + ::google::protobuf::RepeatedField< double >* mutable_double_value(); // @@protoc_insertion_point(class_scope:pb.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_pulsar_2eproto; + ::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 ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pb.VectorRecord) */ { +class VectorRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.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 ::google::protobuf::Descriptor* descriptor(); 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 = - 4; - - friend void swap(VectorRecord& a, VectorRecord& b) { - a.Swap(&b); - } - inline void Swap(VectorRecord* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(VectorRecord* other); // implements Message ---------------------------------------------- - inline VectorRecord* New() const final { - return CreateMaybeMessage(nullptr); - } + inline VectorRecord* New() const { return New(NULL); } - 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; + 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); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + void Clear(); + bool IsInitialized() 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 + int ByteSize() const; bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); 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 "pb.VectorRecord"; + ::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: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + 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 nullptr; + return _internal_metadata_.raw_arena_ptr(); } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_pulsar_2eproto); - return ::descriptor_table_pulsar_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kRecordsFieldNumber = 1, - }; // repeated .pb.VectorRowRecord records = 1; int records_size() const; void clear_records(); - ::pb::VectorRowRecord* mutable_records(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pb::VectorRowRecord >* - mutable_records(); + static const int kRecordsFieldNumber = 1; const ::pb::VectorRowRecord& records(int index) const; + ::pb::VectorRowRecord* mutable_records(int index); ::pb::VectorRowRecord* add_records(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pb::VectorRowRecord >& + ::google::protobuf::RepeatedPtrField< ::pb::VectorRowRecord >* + mutable_records(); + const ::google::protobuf::RepeatedPtrField< ::pb::VectorRowRecord >& records() const; // @@protoc_insertion_point(class_scope:pb.VectorRecord) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pb::VectorRowRecord > records_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_pulsar_2eproto; + ::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 ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pb.VectorParam) */ { +class VectorParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.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 ::google::protobuf::Descriptor* descriptor(); 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 = - 5; - - friend void swap(VectorParam& a, VectorParam& b) { - a.Swap(&b); - } - inline void Swap(VectorParam* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(VectorParam* other); // implements Message ---------------------------------------------- - inline VectorParam* New() const final { - return CreateMaybeMessage(nullptr); - } + inline VectorParam* New() const { return New(NULL); } - 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; + 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); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + void Clear(); + bool IsInitialized() 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 + int ByteSize() const; bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); 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 "pb.VectorParam"; + ::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: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + 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 nullptr; + return _internal_metadata_.raw_arena_ptr(); } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_pulsar_2eproto); - return ::descriptor_table_pulsar_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kJsonFieldNumber = 1, - kRowRecordFieldNumber = 2, - }; - // string json = 1; + // optional string json = 1; void clear_json(); - const std::string& json() const; - void set_json(const std::string& value); - void set_json(std::string&& value); + 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); + ::std::string* mutable_json(); + ::std::string* release_json(); + void set_allocated_json(::std::string* json); - // .pb.VectorRecord row_record = 2; + // 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* release_row_record(); ::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: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr json_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + bool _is_default_instance_; + ::google::protobuf::internal::ArenaStringPtr json_; ::pb::VectorRecord* row_record_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_pulsar_2eproto; + 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 ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pb.FieldValue) */ { +class FieldValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.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 ::google::protobuf::Descriptor* descriptor(); 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 = - 6; - - friend void swap(FieldValue& a, FieldValue& b) { - a.Swap(&b); - } - inline void Swap(FieldValue* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(FieldValue* other); // implements Message ---------------------------------------------- - inline FieldValue* New() const final { - return CreateMaybeMessage(nullptr); - } + inline FieldValue* New() const { return New(NULL); } - 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; + 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); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + void Clear(); + bool IsInitialized() 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 + int ByteSize() const; bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); 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 "pb.FieldValue"; + ::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: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + 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 nullptr; + return _internal_metadata_.raw_arena_ptr(); } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_pulsar_2eproto); - return ::descriptor_table_pulsar_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kFieldNameFieldNumber = 1, - kAttrRecordFieldNumber = 3, - kVectorRecordFieldNumber = 4, - kTypeFieldNumber = 2, - }; - // string field_name = 1; + // optional 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); + 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); + ::std::string* mutable_field_name(); + ::std::string* release_field_name(); + void set_allocated_field_name(::std::string* field_name); - // .pb.AttrRecord attr_record = 3; - bool has_attr_record() const; - void clear_attr_record(); - const ::pb::AttrRecord& attr_record() const; - ::pb::AttrRecord* release_attr_record(); - ::pb::AttrRecord* mutable_attr_record(); - void set_allocated_attr_record(::pb::AttrRecord* attr_record); - - // .pb.VectorRecord vector_record = 4; - bool has_vector_record() const; - void clear_vector_record(); - const ::pb::VectorRecord& vector_record() const; - ::pb::VectorRecord* release_vector_record(); - ::pb::VectorRecord* mutable_vector_record(); - void set_allocated_vector_record(::pb::VectorRecord* vector_record); - - // .pb.DataType type = 2; + // 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: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; + ::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 ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_pulsar_2eproto; + 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 ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pb.Cell) */ { +class Cell : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.Cell) */ { public: Cell(); virtual ~Cell(); Cell(const Cell& from); - Cell(Cell&& from) noexcept - : Cell() { - *this = ::std::move(from); - } inline Cell& operator=(const Cell& from) { CopyFrom(from); return *this; } - inline Cell& operator=(Cell&& 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 ::google::protobuf::Descriptor* descriptor(); static const Cell& default_instance(); enum ValueCase { @@ -1340,1213 +890,836 @@ class Cell : kInt64Value = 2, kFloatValue = 3, kDoubleValue = 4, + kVec = 5, VALUE_NOT_SET = 0, }; - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Cell* internal_default_instance() { - return reinterpret_cast( - &_Cell_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(Cell& a, Cell& b) { - a.Swap(&b); - } - inline void Swap(Cell* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(Cell* other); // implements Message ---------------------------------------------- - inline Cell* New() const final { - return CreateMaybeMessage(nullptr); - } + inline Cell* New() const { return New(NULL); } - Cell* 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; + 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); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + void Clear(); + bool IsInitialized() 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 + int ByteSize() const; bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); 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(Cell* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pb.Cell"; + ::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: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + 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 nullptr; + return _internal_metadata_.raw_arena_ptr(); } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_pulsar_2eproto); - return ::descriptor_table_pulsar_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kInt32ValueFieldNumber = 1, - kInt64ValueFieldNumber = 2, - kFloatValueFieldNumber = 3, - kDoubleValueFieldNumber = 4, - }; - // int32 int32_value = 1; + // optional int32 int32_value = 1; private: bool has_int32_value() const; public: void clear_int32_value(); - ::PROTOBUF_NAMESPACE_ID::int32 int32_value() const; - void set_int32_value(::PROTOBUF_NAMESPACE_ID::int32 value); + static const int kInt32ValueFieldNumber = 1; + ::google::protobuf::int32 int32_value() const; + void set_int32_value(::google::protobuf::int32 value); - // int64 int64_value = 2; + // optional int64 int64_value = 2; private: bool has_int64_value() const; public: void clear_int64_value(); - ::PROTOBUF_NAMESPACE_ID::int64 int64_value() const; - void set_int64_value(::PROTOBUF_NAMESPACE_ID::int64 value); + static const int kInt64ValueFieldNumber = 2; + ::google::protobuf::int64 int64_value() const; + void set_int64_value(::google::protobuf::int64 value); - // float float_value = 3; + // 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); - // double double_value = 4; + // 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); - void clear_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: - class _Internal; - void set_has_int32_value(); - void set_has_int64_value(); - void set_has_float_value(); - void set_has_double_value(); + 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(); - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + bool _is_default_instance_; union ValueUnion { ValueUnion() {} - ::PROTOBUF_NAMESPACE_ID::int32 int32_value_; - ::PROTOBUF_NAMESPACE_ID::int64 int64_value_; + ::google::protobuf::int32 int32_value_; + ::google::protobuf::int64 int64_value_; float float_value_; double double_value_; + ::pb::VectorRowRecord* vec_; } value_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; - friend struct ::TableStruct_pulsar_2eproto; + 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 ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pb.RowValue) */ { +class RowValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.RowValue) */ { public: RowValue(); virtual ~RowValue(); RowValue(const RowValue& from); - RowValue(RowValue&& from) noexcept - : RowValue() { - *this = ::std::move(from); - } inline RowValue& operator=(const RowValue& from) { CopyFrom(from); return *this; } - inline RowValue& operator=(RowValue&& 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 ::google::protobuf::Descriptor* descriptor(); static const RowValue& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const RowValue* internal_default_instance() { - return reinterpret_cast( - &_RowValue_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(RowValue& a, RowValue& b) { - a.Swap(&b); - } - inline void Swap(RowValue* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(RowValue* other); // implements Message ---------------------------------------------- - inline RowValue* New() const final { - return CreateMaybeMessage(nullptr); - } + inline RowValue* New() const { return New(NULL); } - RowValue* 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; + 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); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + void Clear(); + bool IsInitialized() 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 + int ByteSize() const; bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); 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(RowValue* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pb.RowValue"; + ::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: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + 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 nullptr; + return _internal_metadata_.raw_arena_ptr(); } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_pulsar_2eproto); - return ::descriptor_table_pulsar_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kCellFieldNumber = 2, - kVecFieldNumber = 1, - }; // repeated .pb.Cell cell = 2; int cell_size() const; void clear_cell(); - ::pb::Cell* mutable_cell(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pb::Cell >* - mutable_cell(); + static const int kCellFieldNumber = 2; const ::pb::Cell& cell(int index) const; + ::pb::Cell* mutable_cell(int index); ::pb::Cell* add_cell(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pb::Cell >& + ::google::protobuf::RepeatedPtrField< ::pb::Cell >* + mutable_cell(); + const ::google::protobuf::RepeatedPtrField< ::pb::Cell >& cell() const; - // .pb.VectorRowRecord vec = 1; - bool has_vec() const; - void clear_vec(); - const ::pb::VectorRowRecord& vec() const; - ::pb::VectorRowRecord* release_vec(); - ::pb::VectorRowRecord* mutable_vec(); - void set_allocated_vec(::pb::VectorRowRecord* vec); - // @@protoc_insertion_point(class_scope:pb.RowValue) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pb::Cell > cell_; - ::pb::VectorRowRecord* vec_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_pulsar_2eproto; + ::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 ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pb.PulsarMessage) */ { +class PulsarMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.PulsarMessage) */ { public: PulsarMessage(); virtual ~PulsarMessage(); PulsarMessage(const PulsarMessage& from); - PulsarMessage(PulsarMessage&& from) noexcept - : PulsarMessage() { - *this = ::std::move(from); - } inline PulsarMessage& operator=(const PulsarMessage& from) { CopyFrom(from); return *this; } - inline PulsarMessage& operator=(PulsarMessage&& 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 ::google::protobuf::Descriptor* descriptor(); static const PulsarMessage& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PulsarMessage* internal_default_instance() { - return reinterpret_cast( - &_PulsarMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - friend void swap(PulsarMessage& a, PulsarMessage& b) { - a.Swap(&b); - } - inline void Swap(PulsarMessage* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(PulsarMessage* other); // implements Message ---------------------------------------------- - inline PulsarMessage* New() const final { - return CreateMaybeMessage(nullptr); - } + inline PulsarMessage* New() const { return New(NULL); } - PulsarMessage* 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; + 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); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + void Clear(); + bool IsInitialized() 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 + int ByteSize() const; bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); 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(PulsarMessage* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pb.PulsarMessage"; + ::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: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + 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 nullptr; + return _internal_metadata_.raw_arena_ptr(); } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_pulsar_2eproto); - return ::descriptor_table_pulsar_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kFieldsFieldNumber = 2, - kCollectionNameFieldNumber = 1, - kPartitionTagFieldNumber = 4, - kTopicNameFieldNumber = 10, - kVectorParamFieldNumber = 5, - kSegmentsFieldNumber = 6, - kEntityIdFieldNumber = 3, - kTimestampFieldNumber = 7, - kClientIdFieldNumber = 8, - kPartitionIdFieldNumber = 11, - kMsgTypeFieldNumber = 9, - }; + // 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(); - ::pb::FieldValue* mutable_fields(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pb::FieldValue >* - mutable_fields(); + static const int kFieldsFieldNumber = 2; const ::pb::FieldValue& fields(int index) const; + ::pb::FieldValue* mutable_fields(int index); ::pb::FieldValue* add_fields(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pb::FieldValue >& + ::google::protobuf::RepeatedPtrField< ::pb::FieldValue >* + mutable_fields(); + const ::google::protobuf::RepeatedPtrField< ::pb::FieldValue >& fields() 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); + // 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); - // string partition_tag = 4; + // optional 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); + 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); + ::std::string* mutable_partition_tag(); + ::std::string* release_partition_tag(); + void set_allocated_partition_tag(::std::string* partition_tag); - // string topic_name = 10; - void clear_topic_name(); - const std::string& topic_name() const; - void set_topic_name(const std::string& value); - void set_topic_name(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); - - // .pb.VectorParam vector_param = 5; + // 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* release_vector_param(); ::pb::VectorParam* mutable_vector_param(); + ::pb::VectorParam* release_vector_param(); void set_allocated_vector_param(::pb::VectorParam* vector_param); - // .pb.SegmentRecord segments = 6; + // optional .pb.SegmentRecord segments = 6; bool has_segments() const; void clear_segments(); + static const int kSegmentsFieldNumber = 6; const ::pb::SegmentRecord& segments() const; - ::pb::SegmentRecord* release_segments(); ::pb::SegmentRecord* mutable_segments(); + ::pb::SegmentRecord* release_segments(); void set_allocated_segments(::pb::SegmentRecord* segments); - // int64 entity_id = 3; - void clear_entity_id(); - ::PROTOBUF_NAMESPACE_ID::int64 entity_id() const; - void set_entity_id(::PROTOBUF_NAMESPACE_ID::int64 value); - - // int64 timestamp = 7; + // optional int64 timestamp = 7; void clear_timestamp(); - ::PROTOBUF_NAMESPACE_ID::int64 timestamp() const; - void set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + static const int kTimestampFieldNumber = 7; + ::google::protobuf::int64 timestamp() const; + void set_timestamp(::google::protobuf::int64 value); - // int64 client_id = 8; + // optional int64 client_id = 8; void clear_client_id(); - ::PROTOBUF_NAMESPACE_ID::int64 client_id() const; - void set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value); + static const int kClientIdFieldNumber = 8; + ::google::protobuf::int64 client_id() const; + void set_client_id(::google::protobuf::int64 value); - // int64 partition_id = 11; - void clear_partition_id(); - ::PROTOBUF_NAMESPACE_ID::int64 partition_id() const; - void set_partition_id(::PROTOBUF_NAMESPACE_ID::int64 value); - - // .pb.OpType msg_type = 9; + // 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: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pb::FieldValue > fields_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr partition_tag_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr topic_name_; + ::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_; - ::PROTOBUF_NAMESPACE_ID::int64 entity_id_; - ::PROTOBUF_NAMESPACE_ID::int64 timestamp_; - ::PROTOBUF_NAMESPACE_ID::int64 client_id_; - ::PROTOBUF_NAMESPACE_ID::int64 partition_id_; + ::google::protobuf::int64 timestamp_; + ::google::protobuf::int64 client_id_; + ::google::protobuf::internal::ArenaStringPtr topic_name_; + ::google::protobuf::int64 partition_id_; int msg_type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_pulsar_2eproto; + 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 ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pb.TestData) */ { +class TestData : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.TestData) */ { public: TestData(); virtual ~TestData(); TestData(const TestData& from); - TestData(TestData&& from) noexcept - : TestData() { - *this = ::std::move(from); - } inline TestData& operator=(const TestData& from) { CopyFrom(from); return *this; } - inline TestData& operator=(TestData&& 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 ::google::protobuf::Descriptor* descriptor(); static const TestData& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TestData* internal_default_instance() { - return reinterpret_cast( - &_TestData_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - friend void swap(TestData& a, TestData& b) { - a.Swap(&b); - } - inline void Swap(TestData* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(TestData* other); // implements Message ---------------------------------------------- - inline TestData* New() const final { - return CreateMaybeMessage(nullptr); - } + inline TestData* New() const { return New(NULL); } - TestData* 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; + 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); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + void Clear(); + bool IsInitialized() 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 + int ByteSize() const; bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); 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(TestData* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pb.TestData"; + ::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: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + 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 nullptr; + return _internal_metadata_.raw_arena_ptr(); } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_pulsar_2eproto); - return ::descriptor_table_pulsar_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kIdFieldNumber = 1, - kNameFieldNumber = 2, - }; - // string id = 1; + // optional string id = 1; void clear_id(); - const std::string& id() const; - void set_id(const std::string& value); - void set_id(std::string&& value); + 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); + ::std::string* mutable_id(); + ::std::string* release_id(); + void set_allocated_id(::std::string* id); - // string name = 2; + // optional string name = 2; void clear_name(); - const std::string& name() const; - void set_name(const std::string& value); - void set_name(std::string&& value); + 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); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); // @@protoc_insertion_point(class_scope:pb.TestData) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_pulsar_2eproto; + ::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 ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pb.InsertMsg) */ { +class InsertMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.InsertMsg) */ { public: InsertMsg(); virtual ~InsertMsg(); InsertMsg(const InsertMsg& from); - InsertMsg(InsertMsg&& from) noexcept - : InsertMsg() { - *this = ::std::move(from); - } inline InsertMsg& operator=(const InsertMsg& from) { CopyFrom(from); return *this; } - inline InsertMsg& operator=(InsertMsg&& 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 ::google::protobuf::Descriptor* descriptor(); static const InsertMsg& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const InsertMsg* internal_default_instance() { - return reinterpret_cast( - &_InsertMsg_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - friend void swap(InsertMsg& a, InsertMsg& b) { - a.Swap(&b); - } - inline void Swap(InsertMsg* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(InsertMsg* other); // implements Message ---------------------------------------------- - inline InsertMsg* New() const final { - return CreateMaybeMessage(nullptr); - } + inline InsertMsg* New() const { return New(NULL); } - InsertMsg* 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; + 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); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + void Clear(); + bool IsInitialized() 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 + int ByteSize() const; bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); 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(InsertMsg* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pb.InsertMsg"; + ::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: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + 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 nullptr; + return _internal_metadata_.raw_arena_ptr(); } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_pulsar_2eproto); - return ::descriptor_table_pulsar_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kClientIdFieldNumber = 1, - }; - // int64 client_id = 1; + // optional int64 client_id = 1; void clear_client_id(); - ::PROTOBUF_NAMESPACE_ID::int64 client_id() const; - void set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value); + 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: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::int64 client_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_pulsar_2eproto; + ::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 ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pb.DeleteMsg) */ { +class DeleteMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.DeleteMsg) */ { public: DeleteMsg(); virtual ~DeleteMsg(); DeleteMsg(const DeleteMsg& from); - DeleteMsg(DeleteMsg&& from) noexcept - : DeleteMsg() { - *this = ::std::move(from); - } inline DeleteMsg& operator=(const DeleteMsg& from) { CopyFrom(from); return *this; } - inline DeleteMsg& operator=(DeleteMsg&& 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 ::google::protobuf::Descriptor* descriptor(); static const DeleteMsg& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DeleteMsg* internal_default_instance() { - return reinterpret_cast( - &_DeleteMsg_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(DeleteMsg& a, DeleteMsg& b) { - a.Swap(&b); - } - inline void Swap(DeleteMsg* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(DeleteMsg* other); // implements Message ---------------------------------------------- - inline DeleteMsg* New() const final { - return CreateMaybeMessage(nullptr); - } + inline DeleteMsg* New() const { return New(NULL); } - DeleteMsg* 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; + 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); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + void Clear(); + bool IsInitialized() 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 + int ByteSize() const; bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); 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(DeleteMsg* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pb.DeleteMsg"; + ::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: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + 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 nullptr; + return _internal_metadata_.raw_arena_ptr(); } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_pulsar_2eproto); - return ::descriptor_table_pulsar_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kClientIdFieldNumber = 1, - }; - // int64 client_id = 1; + // optional int64 client_id = 1; void clear_client_id(); - ::PROTOBUF_NAMESPACE_ID::int64 client_id() const; - void set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value); + 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: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::int64 client_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_pulsar_2eproto; + ::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 ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pb.SearchMsg) */ { +class SearchMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.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 ::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 ::google::protobuf::Descriptor* descriptor(); static const SearchMsg& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SearchMsg* internal_default_instance() { - return reinterpret_cast( - &_SearchMsg_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - friend void swap(SearchMsg& a, SearchMsg& b) { - a.Swap(&b); - } - inline void Swap(SearchMsg* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(SearchMsg* other); // implements Message ---------------------------------------------- - inline SearchMsg* New() const final { - return CreateMaybeMessage(nullptr); - } + inline SearchMsg* New() const { return New(NULL); } - 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; + 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); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + void Clear(); + bool IsInitialized() 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 + int ByteSize() const; bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); 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(SearchMsg* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pb.SearchMsg"; + ::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: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + 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 nullptr; + return _internal_metadata_.raw_arena_ptr(); } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_pulsar_2eproto); - return ::descriptor_table_pulsar_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kClientIdFieldNumber = 1, - }; - // int64 client_id = 1; + // optional int64 client_id = 1; void clear_client_id(); - ::PROTOBUF_NAMESPACE_ID::int64 client_id() const; - void set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value); + 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: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::int64 client_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_pulsar_2eproto; + ::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 ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pb.SearchResultMsg) */ { +class SearchResultMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.SearchResultMsg) */ { public: SearchResultMsg(); virtual ~SearchResultMsg(); SearchResultMsg(const SearchResultMsg& from); - SearchResultMsg(SearchResultMsg&& from) noexcept - : SearchResultMsg() { - *this = ::std::move(from); - } inline SearchResultMsg& operator=(const SearchResultMsg& from) { CopyFrom(from); return *this; } - inline SearchResultMsg& operator=(SearchResultMsg&& 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 ::google::protobuf::Descriptor* descriptor(); static const SearchResultMsg& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SearchResultMsg* internal_default_instance() { - return reinterpret_cast( - &_SearchResultMsg_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - friend void swap(SearchResultMsg& a, SearchResultMsg& b) { - a.Swap(&b); - } - inline void Swap(SearchResultMsg* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(SearchResultMsg* other); // implements Message ---------------------------------------------- - inline SearchResultMsg* New() const final { - return CreateMaybeMessage(nullptr); - } + inline SearchResultMsg* New() const { return New(NULL); } - SearchResultMsg* 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; + 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); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + void Clear(); + bool IsInitialized() 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 + int ByteSize() const; bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); 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(SearchResultMsg* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pb.SearchResultMsg"; + ::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: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + 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 nullptr; + return _internal_metadata_.raw_arena_ptr(); } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_pulsar_2eproto); - return ::descriptor_table_pulsar_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kClientIdFieldNumber = 1, - }; - // int64 client_id = 1; + // optional int64 client_id = 1; void clear_client_id(); - ::PROTOBUF_NAMESPACE_ID::int64 client_id() const; - void set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value); + 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: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::int64 client_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_pulsar_2eproto; + ::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_; }; // =================================================================== // =================================================================== -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ +#if !PROTOBUF_INLINE_NOT_IN_HEADERS // Status -// .pb.ErrorCode error_code = 1; +// optional .pb.ErrorCode error_code = 1; inline void Status::clear_error_code() { error_code_ = 0; } @@ -2560,54 +1733,47 @@ inline void Status::set_error_code(::pb::ErrorCode value) { // @@protoc_insertion_point(field_set:pb.Status.error_code) } -// string reason = 2; +// optional string reason = 2; inline void Status::clear_reason() { - reason_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& Status::reason() const { +inline const ::std::string& Status::reason() const { // @@protoc_insertion_point(field_get:pb.Status.reason) - return reason_.GetNoArena(); + return reason_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void Status::set_reason(const std::string& value) { +inline void Status::set_reason(const ::std::string& value) { - reason_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:pb.Status.reason) } -inline void Status::set_reason(std::string&& value) { - - reason_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:pb.Status.reason) -} inline void Status::set_reason(const char* value) { - GOOGLE_DCHECK(value != nullptr); - reason_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + 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() { +inline ::std::string* Status::mutable_reason() { // @@protoc_insertion_point(field_mutable:pb.Status.reason) - return reason_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return reason_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* Status::release_reason() { +inline ::std::string* Status::release_reason() { // @@protoc_insertion_point(field_release:pb.Status.reason) - return reason_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return reason_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void Status::set_allocated_reason(std::string* reason) { - if (reason != nullptr) { +inline void Status::set_allocated_reason(::std::string* reason) { + if (reason != NULL) { } else { } - reason_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), reason); + reason_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reason); // @@protoc_insertion_point(field_set_allocated:pb.Status.reason) } @@ -2622,24 +1788,19 @@ inline int SegmentRecord::seg_info_size() const { inline void SegmentRecord::clear_seg_info() { seg_info_.Clear(); } -inline const std::string& SegmentRecord::seg_info(int index) const { +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) { +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) { +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, std::string&& value) { - // @@protoc_insertion_point(field_set:pb.SegmentRecord.seg_info) - seg_info_.Mutable(index)->assign(std::move(value)); -} inline void SegmentRecord::set_seg_info(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); seg_info_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:pb.SegmentRecord.seg_info) } @@ -2648,20 +1809,15 @@ inline void SegmentRecord::set_seg_info(int index, const char* value, size_t siz reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:pb.SegmentRecord.seg_info) } -inline std::string* SegmentRecord::add_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) { +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(std::string&& value) { - seg_info_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:pb.SegmentRecord.seg_info) -} inline void SegmentRecord::add_seg_info(const char* value) { - GOOGLE_DCHECK(value != nullptr); seg_info_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:pb.SegmentRecord.seg_info) } @@ -2669,12 +1825,12 @@ 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 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& SegmentRecord::seg_info() const { // @@protoc_insertion_point(field_list:pb.SegmentRecord.seg_info) return seg_info_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField< ::std::string>* SegmentRecord::mutable_seg_info() { // @@protoc_insertion_point(field_mutable_list:pb.SegmentRecord.seg_info) return &seg_info_; @@ -2703,65 +1859,58 @@ inline void VectorRowRecord::add_float_data(float value) { float_data_.Add(value); // @@protoc_insertion_point(field_add:pb.VectorRowRecord.float_data) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& +inline const ::google::protobuf::RepeatedField< float >& VectorRowRecord::float_data() const { // @@protoc_insertion_point(field_list:pb.VectorRowRecord.float_data) return float_data_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* +inline ::google::protobuf::RepeatedField< float >* VectorRowRecord::mutable_float_data() { // @@protoc_insertion_point(field_mutable_list:pb.VectorRowRecord.float_data) return &float_data_; } -// bytes binary_data = 2; +// optional bytes binary_data = 2; inline void VectorRowRecord::clear_binary_data() { - binary_data_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + binary_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& VectorRowRecord::binary_data() const { +inline const ::std::string& VectorRowRecord::binary_data() const { // @@protoc_insertion_point(field_get:pb.VectorRowRecord.binary_data) - return binary_data_.GetNoArena(); + return binary_data_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void VectorRowRecord::set_binary_data(const std::string& value) { +inline void VectorRowRecord::set_binary_data(const ::std::string& value) { - binary_data_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + binary_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:pb.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:pb.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)); + 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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + 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() { +inline ::std::string* VectorRowRecord::mutable_binary_data() { // @@protoc_insertion_point(field_mutable:pb.VectorRowRecord.binary_data) - return binary_data_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return binary_data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* VectorRowRecord::release_binary_data() { +inline ::std::string* VectorRowRecord::release_binary_data() { // @@protoc_insertion_point(field_release:pb.VectorRowRecord.binary_data) - return binary_data_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return binary_data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void VectorRowRecord::set_allocated_binary_data(std::string* binary_data) { - if (binary_data != nullptr) { +inline void VectorRowRecord::set_allocated_binary_data(::std::string* binary_data) { + if (binary_data != NULL) { } else { } - binary_data_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), binary_data); + binary_data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), binary_data); // @@protoc_insertion_point(field_set_allocated:pb.VectorRowRecord.binary_data) } @@ -2776,24 +1925,24 @@ inline int AttrRecord::int32_value_size() const { inline void AttrRecord::clear_int32_value() { int32_value_.Clear(); } -inline ::PROTOBUF_NAMESPACE_ID::int32 AttrRecord::int32_value(int index) const { +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, ::PROTOBUF_NAMESPACE_ID::int32 value) { +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(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& +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 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* +inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* AttrRecord::mutable_int32_value() { // @@protoc_insertion_point(field_mutable_list:pb.AttrRecord.int32_value) return &int32_value_; @@ -2806,24 +1955,24 @@ inline int AttrRecord::int64_value_size() const { inline void AttrRecord::clear_int64_value() { int64_value_.Clear(); } -inline ::PROTOBUF_NAMESPACE_ID::int64 AttrRecord::int64_value(int index) const { +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, ::PROTOBUF_NAMESPACE_ID::int64 value) { +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(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& +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 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* +inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* AttrRecord::mutable_int64_value() { // @@protoc_insertion_point(field_mutable_list:pb.AttrRecord.int64_value) return &int64_value_; @@ -2848,12 +1997,12 @@ inline void AttrRecord::add_float_value(float value) { float_value_.Add(value); // @@protoc_insertion_point(field_add:pb.AttrRecord.float_value) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& +inline const ::google::protobuf::RepeatedField< float >& AttrRecord::float_value() const { // @@protoc_insertion_point(field_list:pb.AttrRecord.float_value) return float_value_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* +inline ::google::protobuf::RepeatedField< float >* AttrRecord::mutable_float_value() { // @@protoc_insertion_point(field_mutable_list:pb.AttrRecord.float_value) return &float_value_; @@ -2878,12 +2027,12 @@ inline void AttrRecord::add_double_value(double value) { double_value_.Add(value); // @@protoc_insertion_point(field_add:pb.AttrRecord.double_value) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +inline const ::google::protobuf::RepeatedField< double >& AttrRecord::double_value() const { // @@protoc_insertion_point(field_list:pb.AttrRecord.double_value) return double_value_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +inline ::google::protobuf::RepeatedField< double >* AttrRecord::mutable_double_value() { // @@protoc_insertion_point(field_mutable_list:pb.AttrRecord.double_value) return &double_value_; @@ -2900,24 +2049,24 @@ inline int VectorRecord::records_size() const { inline void VectorRecord::clear_records() { records_.Clear(); } -inline ::pb::VectorRowRecord* VectorRecord::mutable_records(int index) { - // @@protoc_insertion_point(field_mutable:pb.VectorRecord.records) - return records_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pb::VectorRowRecord >* -VectorRecord::mutable_records() { - // @@protoc_insertion_point(field_mutable_list:pb.VectorRecord.records) - return &records_; -} 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 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pb::VectorRowRecord >& +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_; @@ -2927,105 +2076,85 @@ VectorRecord::records() const { // VectorParam -// string json = 1; +// optional string json = 1; inline void VectorParam::clear_json() { - json_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + json_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& VectorParam::json() const { +inline const ::std::string& VectorParam::json() const { // @@protoc_insertion_point(field_get:pb.VectorParam.json) - return json_.GetNoArena(); + return json_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void VectorParam::set_json(const std::string& value) { +inline void VectorParam::set_json(const ::std::string& value) { - json_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:pb.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:pb.VectorParam.json) -} inline void VectorParam::set_json(const char* value) { - GOOGLE_DCHECK(value != nullptr); - json_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + 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() { +inline ::std::string* VectorParam::mutable_json() { // @@protoc_insertion_point(field_mutable:pb.VectorParam.json) - return json_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return json_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* VectorParam::release_json() { +inline ::std::string* VectorParam::release_json() { // @@protoc_insertion_point(field_release:pb.VectorParam.json) - return json_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return json_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void VectorParam::set_allocated_json(std::string* json) { - if (json != nullptr) { +inline void VectorParam::set_allocated_json(::std::string* json) { + if (json != NULL) { } else { } - json_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), json); + json_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json); // @@protoc_insertion_point(field_set_allocated:pb.VectorParam.json) } -// .pb.VectorRecord row_record = 2; +// optional .pb.VectorRecord row_record = 2; inline bool VectorParam::has_row_record() const { - return this != internal_default_instance() && row_record_ != nullptr; + return !_is_default_instance_ && row_record_ != NULL; } inline void VectorParam::clear_row_record() { - if (GetArenaNoVirtual() == nullptr && row_record_ != nullptr) { - delete row_record_; - } - row_record_ = nullptr; + if (GetArenaNoVirtual() == NULL && row_record_ != NULL) delete row_record_; + row_record_ = NULL; } inline const ::pb::VectorRecord& VectorParam::row_record() const { - const ::pb::VectorRecord* p = row_record_; // @@protoc_insertion_point(field_get:pb.VectorParam.row_record) - return p != nullptr ? *p : *reinterpret_cast( - &::pb::_VectorRecord_default_instance_); + 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_ = nullptr; + row_record_ = NULL; return temp; } -inline ::pb::VectorRecord* VectorParam::mutable_row_record() { - - if (row_record_ == nullptr) { - auto* p = CreateMaybeMessage<::pb::VectorRecord>(GetArenaNoVirtual()); - row_record_ = p; - } - // @@protoc_insertion_point(field_mutable:pb.VectorParam.row_record) - return row_record_; -} inline void VectorParam::set_allocated_row_record(::pb::VectorRecord* row_record) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete row_record_; - } + delete row_record_; + row_record_ = 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:pb.VectorParam.row_record) } @@ -3033,58 +2162,51 @@ inline void VectorParam::set_allocated_row_record(::pb::VectorRecord* row_record // FieldValue -// string field_name = 1; +// optional string field_name = 1; inline void FieldValue::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& FieldValue::field_name() const { +inline const ::std::string& FieldValue::field_name() const { // @@protoc_insertion_point(field_get:pb.FieldValue.field_name) - return field_name_.GetNoArena(); + return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void FieldValue::set_field_name(const std::string& value) { +inline void FieldValue::set_field_name(const ::std::string& value) { - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:pb.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:pb.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)); + 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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + 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() { +inline ::std::string* FieldValue::mutable_field_name() { // @@protoc_insertion_point(field_mutable:pb.FieldValue.field_name) - return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* FieldValue::release_field_name() { +inline ::std::string* FieldValue::release_field_name() { // @@protoc_insertion_point(field_release:pb.FieldValue.field_name) - return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void FieldValue::set_allocated_field_name(std::string* field_name) { - if (field_name != nullptr) { +inline void FieldValue::set_allocated_field_name(::std::string* field_name) { + if (field_name != NULL) { } else { } - field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); + field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); // @@protoc_insertion_point(field_set_allocated:pb.FieldValue.field_name) } -// .pb.DataType type = 2; +// optional .pb.DataType type = 2; inline void FieldValue::clear_type() { type_ = 0; } @@ -3098,105 +2220,79 @@ inline void FieldValue::set_type(::pb::DataType value) { // @@protoc_insertion_point(field_set:pb.FieldValue.type) } -// .pb.AttrRecord attr_record = 3; +// optional .pb.AttrRecord attr_record = 3; inline bool FieldValue::has_attr_record() const { - return this != internal_default_instance() && attr_record_ != nullptr; + return !_is_default_instance_ && attr_record_ != NULL; } inline void FieldValue::clear_attr_record() { - if (GetArenaNoVirtual() == nullptr && attr_record_ != nullptr) { - delete attr_record_; - } - attr_record_ = nullptr; + if (GetArenaNoVirtual() == NULL && attr_record_ != NULL) delete attr_record_; + attr_record_ = NULL; } inline const ::pb::AttrRecord& FieldValue::attr_record() const { - const ::pb::AttrRecord* p = attr_record_; // @@protoc_insertion_point(field_get:pb.FieldValue.attr_record) - return p != nullptr ? *p : *reinterpret_cast( - &::pb::_AttrRecord_default_instance_); + 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_ = nullptr; + attr_record_ = NULL; return temp; } -inline ::pb::AttrRecord* FieldValue::mutable_attr_record() { - - if (attr_record_ == nullptr) { - auto* p = CreateMaybeMessage<::pb::AttrRecord>(GetArenaNoVirtual()); - attr_record_ = p; - } - // @@protoc_insertion_point(field_mutable:pb.FieldValue.attr_record) - return attr_record_; -} inline void FieldValue::set_allocated_attr_record(::pb::AttrRecord* attr_record) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete attr_record_; - } + delete attr_record_; + attr_record_ = 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:pb.FieldValue.attr_record) } -// .pb.VectorRecord vector_record = 4; +// optional .pb.VectorRecord vector_record = 4; inline bool FieldValue::has_vector_record() const { - return this != internal_default_instance() && vector_record_ != nullptr; + return !_is_default_instance_ && vector_record_ != NULL; } inline void FieldValue::clear_vector_record() { - if (GetArenaNoVirtual() == nullptr && vector_record_ != nullptr) { - delete vector_record_; - } - vector_record_ = nullptr; + if (GetArenaNoVirtual() == NULL && vector_record_ != NULL) delete vector_record_; + vector_record_ = NULL; } inline const ::pb::VectorRecord& FieldValue::vector_record() const { - const ::pb::VectorRecord* p = vector_record_; // @@protoc_insertion_point(field_get:pb.FieldValue.vector_record) - return p != nullptr ? *p : *reinterpret_cast( - &::pb::_VectorRecord_default_instance_); + 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_ = nullptr; + vector_record_ = NULL; return temp; } -inline ::pb::VectorRecord* FieldValue::mutable_vector_record() { - - if (vector_record_ == nullptr) { - auto* p = CreateMaybeMessage<::pb::VectorRecord>(GetArenaNoVirtual()); - vector_record_ = p; - } - // @@protoc_insertion_point(field_mutable:pb.FieldValue.vector_record) - return vector_record_; -} inline void FieldValue::set_allocated_vector_record(::pb::VectorRecord* vector_record) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete vector_record_; - } + delete vector_record_; + vector_record_ = 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:pb.FieldValue.vector_record) } @@ -3204,7 +2300,7 @@ inline void FieldValue::set_allocated_vector_record(::pb::VectorRecord* vector_r // Cell -// int32 int32_value = 1; +// optional int32 int32_value = 1; inline bool Cell::has_int32_value() const { return value_case() == kInt32Value; } @@ -3217,14 +2313,14 @@ inline void Cell::clear_int32_value() { clear_has_value(); } } -inline ::PROTOBUF_NAMESPACE_ID::int32 Cell::int32_value() const { +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(::PROTOBUF_NAMESPACE_ID::int32 value) { +inline void Cell::set_int32_value(::google::protobuf::int32 value) { if (!has_int32_value()) { clear_value(); set_has_int32_value(); @@ -3233,7 +2329,7 @@ inline void Cell::set_int32_value(::PROTOBUF_NAMESPACE_ID::int32 value) { // @@protoc_insertion_point(field_set:pb.Cell.int32_value) } -// int64 int64_value = 2; +// optional int64 int64_value = 2; inline bool Cell::has_int64_value() const { return value_case() == kInt64Value; } @@ -3242,18 +2338,18 @@ inline void Cell::set_has_int64_value() { } inline void Cell::clear_int64_value() { if (has_int64_value()) { - value_.int64_value_ = PROTOBUF_LONGLONG(0); + value_.int64_value_ = GOOGLE_LONGLONG(0); clear_has_value(); } } -inline ::PROTOBUF_NAMESPACE_ID::int64 Cell::int64_value() const { +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 PROTOBUF_LONGLONG(0); + return GOOGLE_LONGLONG(0); } -inline void Cell::set_int64_value(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void Cell::set_int64_value(::google::protobuf::int64 value) { if (!has_int64_value()) { clear_value(); set_has_int64_value(); @@ -3262,7 +2358,7 @@ inline void Cell::set_int64_value(::PROTOBUF_NAMESPACE_ID::int64 value) { // @@protoc_insertion_point(field_set:pb.Cell.int64_value) } -// float float_value = 3; +// optional float float_value = 3; inline bool Cell::has_float_value() const { return value_case() == kFloatValue; } @@ -3291,7 +2387,7 @@ inline void Cell::set_float_value(float value) { // @@protoc_insertion_point(field_set:pb.Cell.float_value) } -// double double_value = 4; +// optional double double_value = 4; inline bool Cell::has_double_value() const { return value_case() == kDoubleValue; } @@ -3320,6 +2416,54 @@ inline void Cell::set_double_value(double 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; } @@ -3333,57 +2477,6 @@ inline Cell::ValueCase Cell::value_case() const { // RowValue -// .pb.VectorRowRecord vec = 1; -inline bool RowValue::has_vec() const { - return this != internal_default_instance() && vec_ != nullptr; -} -inline void RowValue::clear_vec() { - if (GetArenaNoVirtual() == nullptr && vec_ != nullptr) { - delete vec_; - } - vec_ = nullptr; -} -inline const ::pb::VectorRowRecord& RowValue::vec() const { - const ::pb::VectorRowRecord* p = vec_; - // @@protoc_insertion_point(field_get:pb.RowValue.vec) - return p != nullptr ? *p : *reinterpret_cast( - &::pb::_VectorRowRecord_default_instance_); -} -inline ::pb::VectorRowRecord* RowValue::release_vec() { - // @@protoc_insertion_point(field_release:pb.RowValue.vec) - - ::pb::VectorRowRecord* temp = vec_; - vec_ = nullptr; - return temp; -} -inline ::pb::VectorRowRecord* RowValue::mutable_vec() { - - if (vec_ == nullptr) { - auto* p = CreateMaybeMessage<::pb::VectorRowRecord>(GetArenaNoVirtual()); - vec_ = p; - } - // @@protoc_insertion_point(field_mutable:pb.RowValue.vec) - return vec_; -} -inline void RowValue::set_allocated_vec(::pb::VectorRowRecord* vec) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete vec_; - } - if (vec) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - vec = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, vec, submessage_arena); - } - - } else { - - } - vec_ = vec; - // @@protoc_insertion_point(field_set_allocated:pb.RowValue.vec) -} - // repeated .pb.Cell cell = 2; inline int RowValue::cell_size() const { return cell_.size(); @@ -3391,24 +2484,24 @@ inline int RowValue::cell_size() const { inline void RowValue::clear_cell() { cell_.Clear(); } -inline ::pb::Cell* RowValue::mutable_cell(int index) { - // @@protoc_insertion_point(field_mutable:pb.RowValue.cell) - return cell_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pb::Cell >* -RowValue::mutable_cell() { - // @@protoc_insertion_point(field_mutable_list:pb.RowValue.cell) - return &cell_; -} 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 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pb::Cell >& +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_; @@ -3418,54 +2511,47 @@ RowValue::cell() const { // PulsarMessage -// string collection_name = 1; +// optional string collection_name = 1; inline void PulsarMessage::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& PulsarMessage::collection_name() const { +inline const ::std::string& PulsarMessage::collection_name() const { // @@protoc_insertion_point(field_get:pb.PulsarMessage.collection_name) - return collection_name_.GetNoArena(); + return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void PulsarMessage::set_collection_name(const std::string& value) { +inline void PulsarMessage::set_collection_name(const ::std::string& value) { - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:pb.PulsarMessage.collection_name) } -inline void PulsarMessage::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:pb.PulsarMessage.collection_name) -} inline void PulsarMessage::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + 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() { +inline ::std::string* PulsarMessage::mutable_collection_name() { // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.collection_name) - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* PulsarMessage::release_collection_name() { +inline ::std::string* PulsarMessage::release_collection_name() { // @@protoc_insertion_point(field_release:pb.PulsarMessage.collection_name) - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void PulsarMessage::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { +inline void PulsarMessage::set_allocated_collection_name(::std::string* collection_name) { + if (collection_name != NULL) { } else { } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); + collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); // @@protoc_insertion_point(field_set_allocated:pb.PulsarMessage.collection_name) } @@ -3476,225 +2562,192 @@ inline int PulsarMessage::fields_size() const { inline void PulsarMessage::clear_fields() { fields_.Clear(); } -inline ::pb::FieldValue* PulsarMessage::mutable_fields(int index) { - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.fields) - return fields_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pb::FieldValue >* -PulsarMessage::mutable_fields() { - // @@protoc_insertion_point(field_mutable_list:pb.PulsarMessage.fields) - return &fields_; -} 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 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pb::FieldValue >& +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_; } -// int64 entity_id = 3; +// optional int64 entity_id = 3; inline void PulsarMessage::clear_entity_id() { - entity_id_ = PROTOBUF_LONGLONG(0); + entity_id_ = GOOGLE_LONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::int64 PulsarMessage::entity_id() const { +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(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void PulsarMessage::set_entity_id(::google::protobuf::int64 value) { entity_id_ = value; // @@protoc_insertion_point(field_set:pb.PulsarMessage.entity_id) } -// string partition_tag = 4; +// optional string partition_tag = 4; inline void PulsarMessage::clear_partition_tag() { - partition_tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + partition_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& PulsarMessage::partition_tag() const { +inline const ::std::string& PulsarMessage::partition_tag() const { // @@protoc_insertion_point(field_get:pb.PulsarMessage.partition_tag) - return partition_tag_.GetNoArena(); + return partition_tag_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void PulsarMessage::set_partition_tag(const std::string& value) { +inline void PulsarMessage::set_partition_tag(const ::std::string& value) { - partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:pb.PulsarMessage.partition_tag) } -inline void PulsarMessage::set_partition_tag(std::string&& value) { - - partition_tag_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:pb.PulsarMessage.partition_tag) -} inline void PulsarMessage::set_partition_tag(const char* value) { - GOOGLE_DCHECK(value != nullptr); - partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + 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() { +inline ::std::string* PulsarMessage::mutable_partition_tag() { // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.partition_tag) - return partition_tag_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return partition_tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* PulsarMessage::release_partition_tag() { +inline ::std::string* PulsarMessage::release_partition_tag() { // @@protoc_insertion_point(field_release:pb.PulsarMessage.partition_tag) - return partition_tag_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return partition_tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void PulsarMessage::set_allocated_partition_tag(std::string* partition_tag) { - if (partition_tag != nullptr) { +inline void PulsarMessage::set_allocated_partition_tag(::std::string* partition_tag) { + if (partition_tag != NULL) { } else { } - partition_tag_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), partition_tag); + partition_tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), partition_tag); // @@protoc_insertion_point(field_set_allocated:pb.PulsarMessage.partition_tag) } -// .pb.VectorParam vector_param = 5; +// optional .pb.VectorParam vector_param = 5; inline bool PulsarMessage::has_vector_param() const { - return this != internal_default_instance() && vector_param_ != nullptr; + return !_is_default_instance_ && vector_param_ != NULL; } inline void PulsarMessage::clear_vector_param() { - if (GetArenaNoVirtual() == nullptr && vector_param_ != nullptr) { - delete vector_param_; - } - vector_param_ = nullptr; + if (GetArenaNoVirtual() == NULL && vector_param_ != NULL) delete vector_param_; + vector_param_ = NULL; } inline const ::pb::VectorParam& PulsarMessage::vector_param() const { - const ::pb::VectorParam* p = vector_param_; // @@protoc_insertion_point(field_get:pb.PulsarMessage.vector_param) - return p != nullptr ? *p : *reinterpret_cast( - &::pb::_VectorParam_default_instance_); + 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_ = nullptr; + vector_param_ = NULL; return temp; } -inline ::pb::VectorParam* PulsarMessage::mutable_vector_param() { - - if (vector_param_ == nullptr) { - auto* p = CreateMaybeMessage<::pb::VectorParam>(GetArenaNoVirtual()); - vector_param_ = p; - } - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.vector_param) - return vector_param_; -} inline void PulsarMessage::set_allocated_vector_param(::pb::VectorParam* vector_param) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete vector_param_; - } + delete vector_param_; + vector_param_ = vector_param; 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); - } } else { } - vector_param_ = vector_param; // @@protoc_insertion_point(field_set_allocated:pb.PulsarMessage.vector_param) } -// .pb.SegmentRecord segments = 6; +// optional .pb.SegmentRecord segments = 6; inline bool PulsarMessage::has_segments() const { - return this != internal_default_instance() && segments_ != nullptr; + return !_is_default_instance_ && segments_ != NULL; } inline void PulsarMessage::clear_segments() { - if (GetArenaNoVirtual() == nullptr && segments_ != nullptr) { - delete segments_; - } - segments_ = nullptr; + if (GetArenaNoVirtual() == NULL && segments_ != NULL) delete segments_; + segments_ = NULL; } inline const ::pb::SegmentRecord& PulsarMessage::segments() const { - const ::pb::SegmentRecord* p = segments_; // @@protoc_insertion_point(field_get:pb.PulsarMessage.segments) - return p != nullptr ? *p : *reinterpret_cast( - &::pb::_SegmentRecord_default_instance_); + 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_ = nullptr; + segments_ = NULL; return temp; } -inline ::pb::SegmentRecord* PulsarMessage::mutable_segments() { - - if (segments_ == nullptr) { - auto* p = CreateMaybeMessage<::pb::SegmentRecord>(GetArenaNoVirtual()); - segments_ = p; - } - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.segments) - return segments_; -} inline void PulsarMessage::set_allocated_segments(::pb::SegmentRecord* segments) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete segments_; - } + delete segments_; + segments_ = segments; if (segments) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - segments = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, segments, submessage_arena); - } } else { } - segments_ = segments; // @@protoc_insertion_point(field_set_allocated:pb.PulsarMessage.segments) } -// int64 timestamp = 7; +// optional int64 timestamp = 7; inline void PulsarMessage::clear_timestamp() { - timestamp_ = PROTOBUF_LONGLONG(0); + timestamp_ = GOOGLE_LONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::int64 PulsarMessage::timestamp() const { +inline ::google::protobuf::int64 PulsarMessage::timestamp() const { // @@protoc_insertion_point(field_get:pb.PulsarMessage.timestamp) return timestamp_; } -inline void PulsarMessage::set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void PulsarMessage::set_timestamp(::google::protobuf::int64 value) { timestamp_ = value; // @@protoc_insertion_point(field_set:pb.PulsarMessage.timestamp) } -// int64 client_id = 8; +// optional int64 client_id = 8; inline void PulsarMessage::clear_client_id() { - client_id_ = PROTOBUF_LONGLONG(0); + client_id_ = GOOGLE_LONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::int64 PulsarMessage::client_id() const { +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(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void PulsarMessage::set_client_id(::google::protobuf::int64 value) { client_id_ = value; // @@protoc_insertion_point(field_set:pb.PulsarMessage.client_id) } -// .pb.OpType msg_type = 9; +// optional .pb.OpType msg_type = 9; inline void PulsarMessage::clear_msg_type() { msg_type_ = 0; } @@ -3708,66 +2761,59 @@ inline void PulsarMessage::set_msg_type(::pb::OpType value) { // @@protoc_insertion_point(field_set:pb.PulsarMessage.msg_type) } -// string topic_name = 10; +// optional string topic_name = 10; inline void PulsarMessage::clear_topic_name() { - topic_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + topic_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& PulsarMessage::topic_name() const { +inline const ::std::string& PulsarMessage::topic_name() const { // @@protoc_insertion_point(field_get:pb.PulsarMessage.topic_name) - return topic_name_.GetNoArena(); + return topic_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void PulsarMessage::set_topic_name(const std::string& value) { +inline void PulsarMessage::set_topic_name(const ::std::string& value) { - topic_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + topic_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:pb.PulsarMessage.topic_name) } -inline void PulsarMessage::set_topic_name(std::string&& value) { - - topic_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:pb.PulsarMessage.topic_name) -} inline void PulsarMessage::set_topic_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - topic_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + 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() { +inline ::std::string* PulsarMessage::mutable_topic_name() { // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.topic_name) - return topic_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return topic_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* PulsarMessage::release_topic_name() { +inline ::std::string* PulsarMessage::release_topic_name() { // @@protoc_insertion_point(field_release:pb.PulsarMessage.topic_name) - return topic_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return topic_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void PulsarMessage::set_allocated_topic_name(std::string* topic_name) { - if (topic_name != nullptr) { +inline void PulsarMessage::set_allocated_topic_name(::std::string* topic_name) { + if (topic_name != NULL) { } else { } - topic_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), topic_name); + topic_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), topic_name); // @@protoc_insertion_point(field_set_allocated:pb.PulsarMessage.topic_name) } -// int64 partition_id = 11; +// optional int64 partition_id = 11; inline void PulsarMessage::clear_partition_id() { - partition_id_ = PROTOBUF_LONGLONG(0); + partition_id_ = GOOGLE_LONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::int64 PulsarMessage::partition_id() const { +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(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void PulsarMessage::set_partition_id(::google::protobuf::int64 value) { partition_id_ = value; // @@protoc_insertion_point(field_set:pb.PulsarMessage.partition_id) @@ -3777,105 +2823,91 @@ inline void PulsarMessage::set_partition_id(::PROTOBUF_NAMESPACE_ID::int64 value // TestData -// string id = 1; +// optional string id = 1; inline void TestData::clear_id() { - id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& TestData::id() const { +inline const ::std::string& TestData::id() const { // @@protoc_insertion_point(field_get:pb.TestData.id) - return id_.GetNoArena(); + return id_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void TestData::set_id(const std::string& value) { +inline void TestData::set_id(const ::std::string& value) { - id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:pb.TestData.id) } -inline void TestData::set_id(std::string&& value) { - - id_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:pb.TestData.id) -} inline void TestData::set_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + 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() { +inline ::std::string* TestData::mutable_id() { // @@protoc_insertion_point(field_mutable:pb.TestData.id) - return id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* TestData::release_id() { +inline ::std::string* TestData::release_id() { // @@protoc_insertion_point(field_release:pb.TestData.id) - return id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void TestData::set_allocated_id(std::string* id) { - if (id != nullptr) { +inline void TestData::set_allocated_id(::std::string* id) { + if (id != NULL) { } else { } - id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id); + id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); // @@protoc_insertion_point(field_set_allocated:pb.TestData.id) } -// string name = 2; +// optional string name = 2; inline void TestData::clear_name() { - name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& TestData::name() const { +inline const ::std::string& TestData::name() const { // @@protoc_insertion_point(field_get:pb.TestData.name) - return name_.GetNoArena(); + return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void TestData::set_name(const std::string& value) { +inline void TestData::set_name(const ::std::string& value) { - name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:pb.TestData.name) } -inline void TestData::set_name(std::string&& value) { - - name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:pb.TestData.name) -} inline void TestData::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + 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() { +inline ::std::string* TestData::mutable_name() { // @@protoc_insertion_point(field_mutable:pb.TestData.name) - return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* TestData::release_name() { +inline ::std::string* TestData::release_name() { // @@protoc_insertion_point(field_release:pb.TestData.name) - return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void TestData::set_allocated_name(std::string* name) { - if (name != nullptr) { +inline void TestData::set_allocated_name(::std::string* name) { + if (name != NULL) { } else { } - name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name); + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); // @@protoc_insertion_point(field_set_allocated:pb.TestData.name) } @@ -3883,15 +2915,15 @@ inline void TestData::set_allocated_name(std::string* name) { // InsertMsg -// int64 client_id = 1; +// optional int64 client_id = 1; inline void InsertMsg::clear_client_id() { - client_id_ = PROTOBUF_LONGLONG(0); + client_id_ = GOOGLE_LONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::int64 InsertMsg::client_id() const { +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(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void InsertMsg::set_client_id(::google::protobuf::int64 value) { client_id_ = value; // @@protoc_insertion_point(field_set:pb.InsertMsg.client_id) @@ -3901,15 +2933,15 @@ inline void InsertMsg::set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value) { // DeleteMsg -// int64 client_id = 1; +// optional int64 client_id = 1; inline void DeleteMsg::clear_client_id() { - client_id_ = PROTOBUF_LONGLONG(0); + client_id_ = GOOGLE_LONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::int64 DeleteMsg::client_id() const { +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(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void DeleteMsg::set_client_id(::google::protobuf::int64 value) { client_id_ = value; // @@protoc_insertion_point(field_set:pb.DeleteMsg.client_id) @@ -3919,15 +2951,15 @@ inline void DeleteMsg::set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value) { // SearchMsg -// int64 client_id = 1; +// optional int64 client_id = 1; inline void SearchMsg::clear_client_id() { - client_id_ = PROTOBUF_LONGLONG(0); + client_id_ = GOOGLE_LONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::int64 SearchMsg::client_id() const { +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(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void SearchMsg::set_client_id(::google::protobuf::int64 value) { client_id_ = value; // @@protoc_insertion_point(field_set:pb.SearchMsg.client_id) @@ -3937,23 +2969,21 @@ inline void SearchMsg::set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value) { // SearchResultMsg -// int64 client_id = 1; +// optional int64 client_id = 1; inline void SearchResultMsg::clear_client_id() { - client_id_ = PROTOBUF_LONGLONG(0); + client_id_ = GOOGLE_LONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::int64 SearchResultMsg::client_id() const { +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(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void SearchResultMsg::set_client_id(::google::protobuf::int64 value) { client_id_ = value; // @@protoc_insertion_point(field_set:pb.SearchResultMsg.client_id) } -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // ------------------------------------------------------------------- // ------------------------------------------------------------------- @@ -3987,27 +3017,30 @@ inline void SearchResultMsg::set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value) } // namespace pb -PROTOBUF_NAMESPACE_OPEN +#ifndef SWIG +namespace google { +namespace protobuf { -template <> struct is_proto_enum< ::pb::ErrorCode> : ::std::true_type {}; +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> : ::std::true_type {}; +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> : ::std::true_type {}; +template <> struct is_proto_enum< ::pb::OpType> : ::google::protobuf::internal::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::pb::OpType>() { return ::pb::OpType_descriptor(); } -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google +#endif // SWIG // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_pulsar_2eproto +#endif // PROTOBUF_pulsar_2eproto__INCLUDED diff --git a/proxy/src/pulsar/message_client/pb/suvlim.pb.cc b/proxy/src/pulsar/message_client/pb/suvlim.pb.cc new file mode 100644 index 0000000000..74d7f6e29b --- /dev/null +++ b/proxy/src/pulsar/message_client/pb/suvlim.pb.cc @@ -0,0 +1,21782 @@ +// 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 new file mode 100644 index 0000000000..7e282626d1 --- /dev/null +++ b/proxy/src/pulsar/message_client/pb/suvlim.pb.h @@ -0,0 +1,10343 @@ +// 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 new file mode 100644 index 0000000000..e89bcd9502 --- /dev/null +++ b/proxy/src/pulsar/message_client/pb/suvlim.proto @@ -0,0 +1,715 @@ +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/version.h b/proxy/src/version.h index b4c615cfbb..093ee7afb0 100644 --- a/proxy/src/version.h +++ b/proxy/src/version.h @@ -11,5 +11,6 @@ #define MILVUS_VERSION "0.10.0" #define BUILD_TYPE "Debug" + #define BUILD_TIME "2020-09-03 16:41.13" #define LAST_COMMIT_ID "a97d3e925e993f4a2a7409a9734dcc788f109767" diff --git a/pulsar/client-cpp/unittest/producer_test.cpp b/pulsar/client-cpp/unittest/producer_test.cpp index babf577ffd..506dc17e54 100644 --- a/pulsar/client-cpp/unittest/producer_test.cpp +++ b/pulsar/client-cpp/unittest/producer_test.cpp @@ -6,8 +6,8 @@ TEST(CLIENT_CPP, Producer) { auto client= std::make_shared("pulsar://localhost:6650"); message_client::MsgProducer producer(client,"test"); pb::TestData data; - data.set_id("test"); - data.set_name("hahah"); + data.set_id("100"); + data.set_name("pulsar"); std::string to_string = data.SerializeAsString(); producer.send(to_string); producer.close(); diff --git a/pulsar/client-go/go_client.go b/pulsar/client-go/go_client.go index e49e697202..62c0a4861f 100644 --- a/pulsar/client-go/go_client.go +++ b/pulsar/client-go/go_client.go @@ -198,4 +198,4 @@ func (mc *MessageClient) PrepareBatchMsg(jobType JobType) { mc.PrepareMsg(schema.Key2Seg, key2segLen) mc.PrepareMsg(schema.Search, searchLen) } -} +} \ No newline at end of file diff --git a/pulsar/client-go/pb/build.sh b/pulsar/client-go/pb/build.sh index c7bb46b662..8fab1ca6be 100755 --- a/pulsar/client-go/pb/build.sh +++ b/pulsar/client-go/pb/build.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash pkg=pb -protoc --go_out=import_path=${pkg}:. pulsar.proto \ No newline at end of file +protoc --go_out=import_path=${pkg}:. suvlim.proto \ No newline at end of file diff --git a/pulsar/client-go/pb/suvlim.pb.go b/pulsar/client-go/pb/suvlim.pb.go new file mode 100644 index 0000000000..6981008f98 --- /dev/null +++ b/pulsar/client-go/pb/suvlim.pb.go @@ -0,0 +1,2376 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: suvlim.proto + +/* +Package pb is a generated protocol buffer package. + +It is generated from these files: + suvlim.proto + +It has these top-level messages: + Status + KeyValuePair + CollectionName + CollectionNameList + FieldName + Mapping + MappingList + PartitionParam + PartitionList + VectorRowRecord + EntityIds + VectorRecord + VectorParam + FieldMeta + Schema + RowData + InsertParam + SearchParam + SearchInSegmentParam + Entities + QueryResult + StringReply + BoolReply + CollectionRowCount + Command + IndexParam + FlushParam + CompactParam + DeleteByIDParam + CollectionInfo + GetEntityIDsParam + EntityIdentity + VectorFieldParam + FieldType + FieldParam + VectorFieldRecord + TermQuery + CompareExpr + RangeQuery + VectorQuery + BooleanQuery + GeneralQuery + SearchParamPB + InsertOrDeleteMsg + SearchMsg + TimeSyncMsg + SegmentRecord + Key2SegMsg +*/ +package pb + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +type ErrorCode int32 + +const ( + ErrorCode_SUCCESS ErrorCode = 0 + ErrorCode_UNEXPECTED_ERROR ErrorCode = 1 + ErrorCode_CONNECT_FAILED ErrorCode = 2 + ErrorCode_PERMISSION_DENIED ErrorCode = 3 + ErrorCode_COLLECTION_NOT_EXISTS ErrorCode = 4 + ErrorCode_ILLEGAL_ARGUMENT ErrorCode = 5 + ErrorCode_ILLEGAL_DIMENSION ErrorCode = 7 + ErrorCode_ILLEGAL_INDEX_TYPE ErrorCode = 8 + ErrorCode_ILLEGAL_COLLECTION_NAME ErrorCode = 9 + ErrorCode_ILLEGAL_TOPK ErrorCode = 10 + ErrorCode_ILLEGAL_ROWRECORD ErrorCode = 11 + ErrorCode_ILLEGAL_VECTOR_ID ErrorCode = 12 + ErrorCode_ILLEGAL_SEARCH_RESULT ErrorCode = 13 + ErrorCode_FILE_NOT_FOUND ErrorCode = 14 + ErrorCode_META_FAILED ErrorCode = 15 + ErrorCode_CACHE_FAILED ErrorCode = 16 + ErrorCode_CANNOT_CREATE_FOLDER ErrorCode = 17 + ErrorCode_CANNOT_CREATE_FILE ErrorCode = 18 + ErrorCode_CANNOT_DELETE_FOLDER ErrorCode = 19 + ErrorCode_CANNOT_DELETE_FILE ErrorCode = 20 + ErrorCode_BUILD_INDEX_ERROR ErrorCode = 21 + ErrorCode_ILLEGAL_NLIST ErrorCode = 22 + ErrorCode_ILLEGAL_METRIC_TYPE ErrorCode = 23 + ErrorCode_OUT_OF_MEMORY ErrorCode = 24 +) + +var ErrorCode_name = map[int32]string{ + 0: "SUCCESS", + 1: "UNEXPECTED_ERROR", + 2: "CONNECT_FAILED", + 3: "PERMISSION_DENIED", + 4: "COLLECTION_NOT_EXISTS", + 5: "ILLEGAL_ARGUMENT", + 7: "ILLEGAL_DIMENSION", + 8: "ILLEGAL_INDEX_TYPE", + 9: "ILLEGAL_COLLECTION_NAME", + 10: "ILLEGAL_TOPK", + 11: "ILLEGAL_ROWRECORD", + 12: "ILLEGAL_VECTOR_ID", + 13: "ILLEGAL_SEARCH_RESULT", + 14: "FILE_NOT_FOUND", + 15: "META_FAILED", + 16: "CACHE_FAILED", + 17: "CANNOT_CREATE_FOLDER", + 18: "CANNOT_CREATE_FILE", + 19: "CANNOT_DELETE_FOLDER", + 20: "CANNOT_DELETE_FILE", + 21: "BUILD_INDEX_ERROR", + 22: "ILLEGAL_NLIST", + 23: "ILLEGAL_METRIC_TYPE", + 24: "OUT_OF_MEMORY", +} +var ErrorCode_value = map[string]int32{ + "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, +} + +func (x ErrorCode) String() string { + return proto.EnumName(ErrorCode_name, int32(x)) +} +func (ErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +// * +// @brief Field data type +type DataType int32 + +const ( + DataType_NONE DataType = 0 + DataType_BOOL DataType = 1 + DataType_INT8 DataType = 2 + DataType_INT16 DataType = 3 + DataType_INT32 DataType = 4 + DataType_INT64 DataType = 5 + DataType_FLOAT DataType = 10 + DataType_DOUBLE DataType = 11 + DataType_STRING DataType = 20 + DataType_VECTOR_BINARY DataType = 100 + DataType_VECTOR_FLOAT DataType = 101 +) + +var DataType_name = map[int32]string{ + 0: "NONE", + 1: "BOOL", + 2: "INT8", + 3: "INT16", + 4: "INT32", + 5: "INT64", + 10: "FLOAT", + 11: "DOUBLE", + 20: "STRING", + 100: "VECTOR_BINARY", + 101: "VECTOR_FLOAT", +} +var DataType_value = map[string]int32{ + "NONE": 0, + "BOOL": 1, + "INT8": 2, + "INT16": 3, + "INT32": 4, + "INT64": 5, + "FLOAT": 10, + "DOUBLE": 11, + "STRING": 20, + "VECTOR_BINARY": 100, + "VECTOR_FLOAT": 101, +} + +func (x DataType) String() string { + return proto.EnumName(DataType_name, int32(x)) +} +func (DataType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +type CompareOperator int32 + +const ( + CompareOperator_LT CompareOperator = 0 + CompareOperator_LTE CompareOperator = 1 + CompareOperator_EQ CompareOperator = 2 + CompareOperator_GT CompareOperator = 3 + CompareOperator_GTE CompareOperator = 4 + CompareOperator_NE CompareOperator = 5 +) + +var CompareOperator_name = map[int32]string{ + 0: "LT", + 1: "LTE", + 2: "EQ", + 3: "GT", + 4: "GTE", + 5: "NE", +} +var CompareOperator_value = map[string]int32{ + "LT": 0, + "LTE": 1, + "EQ": 2, + "GT": 3, + "GTE": 4, + "NE": 5, +} + +func (x CompareOperator) String() string { + return proto.EnumName(CompareOperator_name, int32(x)) +} +func (CompareOperator) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } + +type Occur int32 + +const ( + Occur_INVALID Occur = 0 + Occur_MUST Occur = 1 + Occur_SHOULD Occur = 2 + Occur_MUST_NOT Occur = 3 +) + +var Occur_name = map[int32]string{ + 0: "INVALID", + 1: "MUST", + 2: "SHOULD", + 3: "MUST_NOT", +} +var Occur_value = map[string]int32{ + "INVALID": 0, + "MUST": 1, + "SHOULD": 2, + "MUST_NOT": 3, +} + +func (x Occur) String() string { + return proto.EnumName(Occur_name, int32(x)) +} +func (Occur) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } + +// //////////////////pulsar////////////////////////////////////// +type OpType int32 + +const ( + OpType_INSERT OpType = 0 + OpType_DELETE OpType = 1 + OpType_SEARCH OpType = 2 + OpType_SEARCH_RESULT OpType = 3 + OpType_KEY2SEG OpType = 4 + OpType_TIMESYNC OpType = 5 +) + +var OpType_name = map[int32]string{ + 0: "INSERT", + 1: "DELETE", + 2: "SEARCH", + 3: "SEARCH_RESULT", + 4: "KEY2SEG", + 5: "TIMESYNC", +} +var OpType_value = map[string]int32{ + "INSERT": 0, + "DELETE": 1, + "SEARCH": 2, + "SEARCH_RESULT": 3, + "KEY2SEG": 4, + "TIMESYNC": 5, +} + +func (x OpType) String() string { + return proto.EnumName(OpType_name, int32(x)) +} +func (OpType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } + +type Status struct { + ErrorCode ErrorCode `protobuf:"varint,1,opt,name=error_code,json=errorCode,enum=suvlim.grpc.ErrorCode" json:"error_code,omitempty"` + Reason string `protobuf:"bytes,2,opt,name=reason" json:"reason,omitempty"` +} + +func (m *Status) Reset() { *m = Status{} } +func (m *Status) String() string { return proto.CompactTextString(m) } +func (*Status) ProtoMessage() {} +func (*Status) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +func (m *Status) GetErrorCode() ErrorCode { + if m != nil { + return m.ErrorCode + } + return ErrorCode_SUCCESS +} + +func (m *Status) GetReason() string { + if m != nil { + return m.Reason + } + return "" +} + +// * +// @brief General usage +type KeyValuePair struct { + Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` +} + +func (m *KeyValuePair) Reset() { *m = KeyValuePair{} } +func (m *KeyValuePair) String() string { return proto.CompactTextString(m) } +func (*KeyValuePair) ProtoMessage() {} +func (*KeyValuePair) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +func (m *KeyValuePair) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *KeyValuePair) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +// * +// @brief Collection name +type CollectionName struct { + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` +} + +func (m *CollectionName) Reset() { *m = CollectionName{} } +func (m *CollectionName) String() string { return proto.CompactTextString(m) } +func (*CollectionName) ProtoMessage() {} +func (*CollectionName) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } + +func (m *CollectionName) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +// * +// @brief Collection name list +type CollectionNameList struct { + Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` + CollectionNames []string `protobuf:"bytes,2,rep,name=collection_names,json=collectionNames" json:"collection_names,omitempty"` +} + +func (m *CollectionNameList) Reset() { *m = CollectionNameList{} } +func (m *CollectionNameList) String() string { return proto.CompactTextString(m) } +func (*CollectionNameList) ProtoMessage() {} +func (*CollectionNameList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } + +func (m *CollectionNameList) GetStatus() *Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *CollectionNameList) GetCollectionNames() []string { + if m != nil { + return m.CollectionNames + } + return nil +} + +// * +// @brief Field name +type FieldName struct { + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + FieldName string `protobuf:"bytes,2,opt,name=field_name,json=fieldName" json:"field_name,omitempty"` +} + +func (m *FieldName) Reset() { *m = FieldName{} } +func (m *FieldName) String() string { return proto.CompactTextString(m) } +func (*FieldName) ProtoMessage() {} +func (*FieldName) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } + +func (m *FieldName) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *FieldName) GetFieldName() string { + if m != nil { + return m.FieldName + } + return "" +} + +// * +// @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 +type Mapping struct { + Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` + CollectionName string `protobuf:"bytes,2,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + Fields []*FieldParam `protobuf:"bytes,3,rep,name=fields" json:"fields,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,4,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` +} + +func (m *Mapping) Reset() { *m = Mapping{} } +func (m *Mapping) String() string { return proto.CompactTextString(m) } +func (*Mapping) ProtoMessage() {} +func (*Mapping) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } + +func (m *Mapping) GetStatus() *Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *Mapping) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *Mapping) GetFields() []*FieldParam { + if m != nil { + return m.Fields + } + return nil +} + +func (m *Mapping) GetExtraParams() []*KeyValuePair { + if m != nil { + return m.ExtraParams + } + return nil +} + +// * +// @brief Collection mapping list +type MappingList struct { + Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` + MappingList []*Mapping `protobuf:"bytes,2,rep,name=mapping_list,json=mappingList" json:"mapping_list,omitempty"` +} + +func (m *MappingList) Reset() { *m = MappingList{} } +func (m *MappingList) String() string { return proto.CompactTextString(m) } +func (*MappingList) ProtoMessage() {} +func (*MappingList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } + +func (m *MappingList) GetStatus() *Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *MappingList) GetMappingList() []*Mapping { + if m != nil { + return m.MappingList + } + return nil +} + +// * +// @brief Parameters of partition +type PartitionParam struct { + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + Tag string `protobuf:"bytes,2,opt,name=tag" json:"tag,omitempty"` +} + +func (m *PartitionParam) Reset() { *m = PartitionParam{} } +func (m *PartitionParam) String() string { return proto.CompactTextString(m) } +func (*PartitionParam) ProtoMessage() {} +func (*PartitionParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } + +func (m *PartitionParam) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *PartitionParam) GetTag() string { + if m != nil { + return m.Tag + } + return "" +} + +// * +// @brief Partition list +type PartitionList struct { + Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` + PartitionTagArray []string `protobuf:"bytes,2,rep,name=partition_tag_array,json=partitionTagArray" json:"partition_tag_array,omitempty"` +} + +func (m *PartitionList) Reset() { *m = PartitionList{} } +func (m *PartitionList) String() string { return proto.CompactTextString(m) } +func (*PartitionList) ProtoMessage() {} +func (*PartitionList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } + +func (m *PartitionList) GetStatus() *Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *PartitionList) GetPartitionTagArray() []string { + if m != nil { + return m.PartitionTagArray + } + return nil +} + +// * +// @brief Vector row record +type VectorRowRecord struct { + FloatData []float32 `protobuf:"fixed32,1,rep,packed,name=float_data,json=floatData" json:"float_data,omitempty"` + BinaryData []byte `protobuf:"bytes,2,opt,name=binary_data,json=binaryData,proto3" json:"binary_data,omitempty"` +} + +func (m *VectorRowRecord) Reset() { *m = VectorRowRecord{} } +func (m *VectorRowRecord) String() string { return proto.CompactTextString(m) } +func (*VectorRowRecord) ProtoMessage() {} +func (*VectorRowRecord) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } + +func (m *VectorRowRecord) GetFloatData() []float32 { + if m != nil { + return m.FloatData + } + return nil +} + +func (m *VectorRowRecord) GetBinaryData() []byte { + if m != nil { + return m.BinaryData + } + return nil +} + +type EntityIds struct { + Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` + EntityIdArray []int64 `protobuf:"varint,2,rep,packed,name=entity_id_array,json=entityIdArray" json:"entity_id_array,omitempty"` +} + +func (m *EntityIds) Reset() { *m = EntityIds{} } +func (m *EntityIds) String() string { return proto.CompactTextString(m) } +func (*EntityIds) ProtoMessage() {} +func (*EntityIds) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } + +func (m *EntityIds) GetStatus() *Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *EntityIds) GetEntityIdArray() []int64 { + if m != nil { + return m.EntityIdArray + } + return nil +} + +type VectorRecord struct { + Records []*VectorRowRecord `protobuf:"bytes,1,rep,name=records" json:"records,omitempty"` +} + +func (m *VectorRecord) Reset() { *m = VectorRecord{} } +func (m *VectorRecord) String() string { return proto.CompactTextString(m) } +func (*VectorRecord) ProtoMessage() {} +func (*VectorRecord) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } + +func (m *VectorRecord) GetRecords() []*VectorRowRecord { + if m != nil { + return m.Records + } + return nil +} + +type VectorParam struct { + Json string `protobuf:"bytes,1,opt,name=json" json:"json,omitempty"` + RowRecord *VectorRecord `protobuf:"bytes,2,opt,name=row_record,json=rowRecord" json:"row_record,omitempty"` +} + +func (m *VectorParam) Reset() { *m = VectorParam{} } +func (m *VectorParam) String() string { return proto.CompactTextString(m) } +func (*VectorParam) ProtoMessage() {} +func (*VectorParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } + +func (m *VectorParam) GetJson() string { + if m != nil { + return m.Json + } + return "" +} + +func (m *VectorParam) GetRowRecord() *VectorRecord { + if m != nil { + return m.RowRecord + } + return nil +} + +// * +// @brief schema +type FieldMeta struct { + FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName" json:"field_name,omitempty"` + Type DataType `protobuf:"varint,2,opt,name=type,enum=suvlim.grpc.DataType" json:"type,omitempty"` + Dim int64 `protobuf:"varint,3,opt,name=dim" json:"dim,omitempty"` +} + +func (m *FieldMeta) Reset() { *m = FieldMeta{} } +func (m *FieldMeta) String() string { return proto.CompactTextString(m) } +func (*FieldMeta) ProtoMessage() {} +func (*FieldMeta) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } + +func (m *FieldMeta) GetFieldName() string { + if m != nil { + return m.FieldName + } + return "" +} + +func (m *FieldMeta) GetType() DataType { + if m != nil { + return m.Type + } + return DataType_NONE +} + +func (m *FieldMeta) GetDim() int64 { + if m != nil { + return m.Dim + } + return 0 +} + +type Schema struct { + FieldMetas []*FieldMeta `protobuf:"bytes,1,rep,name=field_metas,json=fieldMetas" json:"field_metas,omitempty"` +} + +func (m *Schema) Reset() { *m = Schema{} } +func (m *Schema) String() string { return proto.CompactTextString(m) } +func (*Schema) ProtoMessage() {} +func (*Schema) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } + +func (m *Schema) GetFieldMetas() []*FieldMeta { + if m != nil { + return m.FieldMetas + } + return nil +} + +type RowData struct { + Blob []byte `protobuf:"bytes,1,opt,name=blob,proto3" json:"blob,omitempty"` +} + +func (m *RowData) Reset() { *m = RowData{} } +func (m *RowData) String() string { return proto.CompactTextString(m) } +func (*RowData) ProtoMessage() {} +func (*RowData) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } + +func (m *RowData) GetBlob() []byte { + if m != nil { + return m.Blob + } + return nil +} + +// ////////////////////suvlim-proxy/////////////////////////////////// +type InsertParam struct { + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + Schema *Schema `protobuf:"bytes,2,opt,name=schema" json:"schema,omitempty"` + RowsData []*RowData `protobuf:"bytes,3,rep,name=rows_data,json=rowsData" json:"rows_data,omitempty"` + EntityIdArray []int64 `protobuf:"varint,4,rep,packed,name=entity_id_array,json=entityIdArray" json:"entity_id_array,omitempty"` + PartitionTag string `protobuf:"bytes,5,opt,name=partition_tag,json=partitionTag" json:"partition_tag,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,6,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` +} + +func (m *InsertParam) Reset() { *m = InsertParam{} } +func (m *InsertParam) String() string { return proto.CompactTextString(m) } +func (*InsertParam) ProtoMessage() {} +func (*InsertParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} } + +func (m *InsertParam) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *InsertParam) GetSchema() *Schema { + if m != nil { + return m.Schema + } + return nil +} + +func (m *InsertParam) GetRowsData() []*RowData { + if m != nil { + return m.RowsData + } + return nil +} + +func (m *InsertParam) GetEntityIdArray() []int64 { + if m != nil { + return m.EntityIdArray + } + return nil +} + +func (m *InsertParam) GetPartitionTag() string { + if m != nil { + return m.PartitionTag + } + return "" +} + +func (m *InsertParam) GetExtraParams() []*KeyValuePair { + if m != nil { + return m.ExtraParams + } + return nil +} + +type SearchParam struct { + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + VectorParam []*VectorParam `protobuf:"bytes,2,rep,name=vector_param,json=vectorParam" json:"vector_param,omitempty"` + Dsl string `protobuf:"bytes,3,opt,name=dsl" json:"dsl,omitempty"` + PartitionTag []string `protobuf:"bytes,4,rep,name=partition_tag,json=partitionTag" json:"partition_tag,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,5,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` +} + +func (m *SearchParam) Reset() { *m = SearchParam{} } +func (m *SearchParam) String() string { return proto.CompactTextString(m) } +func (*SearchParam) ProtoMessage() {} +func (*SearchParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} } + +func (m *SearchParam) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *SearchParam) GetVectorParam() []*VectorParam { + if m != nil { + return m.VectorParam + } + return nil +} + +func (m *SearchParam) GetDsl() string { + if m != nil { + return m.Dsl + } + return "" +} + +func (m *SearchParam) GetPartitionTag() []string { + if m != nil { + return m.PartitionTag + } + return nil +} + +func (m *SearchParam) GetExtraParams() []*KeyValuePair { + if m != nil { + return m.ExtraParams + } + return nil +} + +type SearchInSegmentParam struct { + FileIdArray []string `protobuf:"bytes,1,rep,name=file_id_array,json=fileIdArray" json:"file_id_array,omitempty"` + SearchParam *SearchParam `protobuf:"bytes,2,opt,name=search_param,json=searchParam" json:"search_param,omitempty"` +} + +func (m *SearchInSegmentParam) Reset() { *m = SearchInSegmentParam{} } +func (m *SearchInSegmentParam) String() string { return proto.CompactTextString(m) } +func (*SearchInSegmentParam) ProtoMessage() {} +func (*SearchInSegmentParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} } + +func (m *SearchInSegmentParam) GetFileIdArray() []string { + if m != nil { + return m.FileIdArray + } + return nil +} + +func (m *SearchInSegmentParam) GetSearchParam() *SearchParam { + if m != nil { + return m.SearchParam + } + return nil +} + +type Entities struct { + Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` + Ids []int64 `protobuf:"varint,2,rep,packed,name=ids" json:"ids,omitempty"` + ValidRow []bool `protobuf:"varint,3,rep,packed,name=valid_row,json=validRow" json:"valid_row,omitempty"` + RowsData []*RowData `protobuf:"bytes,4,rep,name=rows_data,json=rowsData" json:"rows_data,omitempty"` +} + +func (m *Entities) Reset() { *m = Entities{} } +func (m *Entities) String() string { return proto.CompactTextString(m) } +func (*Entities) ProtoMessage() {} +func (*Entities) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} } + +func (m *Entities) GetStatus() *Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *Entities) GetIds() []int64 { + if m != nil { + return m.Ids + } + return nil +} + +func (m *Entities) GetValidRow() []bool { + if m != nil { + return m.ValidRow + } + return nil +} + +func (m *Entities) GetRowsData() []*RowData { + if m != nil { + return m.RowsData + } + return nil +} + +// * +// @brief Query result +type QueryResult struct { + Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` + Entities *Entities `protobuf:"bytes,2,opt,name=entities" json:"entities,omitempty"` + RowNum int64 `protobuf:"varint,3,opt,name=row_num,json=rowNum" json:"row_num,omitempty"` + Scores []float32 `protobuf:"fixed32,4,rep,packed,name=scores" json:"scores,omitempty"` + Distances []float32 `protobuf:"fixed32,5,rep,packed,name=distances" json:"distances,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,6,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` +} + +func (m *QueryResult) Reset() { *m = QueryResult{} } +func (m *QueryResult) String() string { return proto.CompactTextString(m) } +func (*QueryResult) ProtoMessage() {} +func (*QueryResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} } + +func (m *QueryResult) GetStatus() *Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *QueryResult) GetEntities() *Entities { + if m != nil { + return m.Entities + } + return nil +} + +func (m *QueryResult) GetRowNum() int64 { + if m != nil { + return m.RowNum + } + return 0 +} + +func (m *QueryResult) GetScores() []float32 { + if m != nil { + return m.Scores + } + return nil +} + +func (m *QueryResult) GetDistances() []float32 { + if m != nil { + return m.Distances + } + return nil +} + +func (m *QueryResult) GetExtraParams() []*KeyValuePair { + if m != nil { + return m.ExtraParams + } + return nil +} + +// * +// @brief Server string Reply +type StringReply struct { + Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` + StringReply string `protobuf:"bytes,2,opt,name=string_reply,json=stringReply" json:"string_reply,omitempty"` +} + +func (m *StringReply) Reset() { *m = StringReply{} } +func (m *StringReply) String() string { return proto.CompactTextString(m) } +func (*StringReply) ProtoMessage() {} +func (*StringReply) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} } + +func (m *StringReply) GetStatus() *Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *StringReply) GetStringReply() string { + if m != nil { + return m.StringReply + } + return "" +} + +// * +// @brief Server bool Reply +type BoolReply struct { + Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` + BoolReply bool `protobuf:"varint,2,opt,name=bool_reply,json=boolReply" json:"bool_reply,omitempty"` +} + +func (m *BoolReply) Reset() { *m = BoolReply{} } +func (m *BoolReply) String() string { return proto.CompactTextString(m) } +func (*BoolReply) ProtoMessage() {} +func (*BoolReply) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} } + +func (m *BoolReply) GetStatus() *Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *BoolReply) GetBoolReply() bool { + if m != nil { + return m.BoolReply + } + return false +} + +// * +// @brief Return collection row count +type CollectionRowCount struct { + Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` + CollectionRowCount int64 `protobuf:"varint,2,opt,name=collection_row_count,json=collectionRowCount" json:"collection_row_count,omitempty"` +} + +func (m *CollectionRowCount) Reset() { *m = CollectionRowCount{} } +func (m *CollectionRowCount) String() string { return proto.CompactTextString(m) } +func (*CollectionRowCount) ProtoMessage() {} +func (*CollectionRowCount) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{23} } + +func (m *CollectionRowCount) GetStatus() *Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *CollectionRowCount) GetCollectionRowCount() int64 { + if m != nil { + return m.CollectionRowCount + } + return 0 +} + +// * +// @brief Server command parameters +type Command struct { + Cmd string `protobuf:"bytes,1,opt,name=cmd" json:"cmd,omitempty"` +} + +func (m *Command) Reset() { *m = Command{} } +func (m *Command) String() string { return proto.CompactTextString(m) } +func (*Command) ProtoMessage() {} +func (*Command) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{24} } + +func (m *Command) GetCmd() string { + if m != nil { + return m.Cmd + } + return "" +} + +// * +// @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 +type IndexParam struct { + Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` + CollectionName string `protobuf:"bytes,2,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + FieldName string `protobuf:"bytes,3,opt,name=field_name,json=fieldName" json:"field_name,omitempty"` + IndexName string `protobuf:"bytes,4,opt,name=index_name,json=indexName" json:"index_name,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,5,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` +} + +func (m *IndexParam) Reset() { *m = IndexParam{} } +func (m *IndexParam) String() string { return proto.CompactTextString(m) } +func (*IndexParam) ProtoMessage() {} +func (*IndexParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{25} } + +func (m *IndexParam) GetStatus() *Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *IndexParam) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *IndexParam) GetFieldName() string { + if m != nil { + return m.FieldName + } + return "" +} + +func (m *IndexParam) GetIndexName() string { + if m != nil { + return m.IndexName + } + return "" +} + +func (m *IndexParam) GetExtraParams() []*KeyValuePair { + if m != nil { + return m.ExtraParams + } + return nil +} + +// * +// @brief Parameters for flush action +type FlushParam struct { + CollectionNameArray []string `protobuf:"bytes,1,rep,name=collection_name_array,json=collectionNameArray" json:"collection_name_array,omitempty"` +} + +func (m *FlushParam) Reset() { *m = FlushParam{} } +func (m *FlushParam) String() string { return proto.CompactTextString(m) } +func (*FlushParam) ProtoMessage() {} +func (*FlushParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{26} } + +func (m *FlushParam) GetCollectionNameArray() []string { + if m != nil { + return m.CollectionNameArray + } + return nil +} + +// * +// @brief Parameters for flush action +type CompactParam struct { + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + Threshold float64 `protobuf:"fixed64,2,opt,name=threshold" json:"threshold,omitempty"` +} + +func (m *CompactParam) Reset() { *m = CompactParam{} } +func (m *CompactParam) String() string { return proto.CompactTextString(m) } +func (*CompactParam) ProtoMessage() {} +func (*CompactParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{27} } + +func (m *CompactParam) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *CompactParam) GetThreshold() float64 { + if m != nil { + return m.Threshold + } + return 0 +} + +// * +// @brief Parameters for deleting entities by id +type DeleteByIDParam struct { + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + IdArray []int64 `protobuf:"varint,2,rep,packed,name=id_array,json=idArray" json:"id_array,omitempty"` +} + +func (m *DeleteByIDParam) Reset() { *m = DeleteByIDParam{} } +func (m *DeleteByIDParam) String() string { return proto.CompactTextString(m) } +func (*DeleteByIDParam) ProtoMessage() {} +func (*DeleteByIDParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{28} } + +func (m *DeleteByIDParam) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *DeleteByIDParam) GetIdArray() []int64 { + if m != nil { + return m.IdArray + } + return nil +} + +// * +// @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, +// } +// ] +// } +// ] +// } +// ] +// } +type CollectionInfo struct { + Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` + JsonInfo string `protobuf:"bytes,2,opt,name=json_info,json=jsonInfo" json:"json_info,omitempty"` +} + +func (m *CollectionInfo) Reset() { *m = CollectionInfo{} } +func (m *CollectionInfo) String() string { return proto.CompactTextString(m) } +func (*CollectionInfo) ProtoMessage() {} +func (*CollectionInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{29} } + +func (m *CollectionInfo) GetStatus() *Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *CollectionInfo) GetJsonInfo() string { + if m != nil { + return m.JsonInfo + } + return "" +} + +// * +// @brief Parameters for returning entities id of a segment +type GetEntityIDsParam struct { + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + SegmentId int64 `protobuf:"varint,2,opt,name=segment_id,json=segmentId" json:"segment_id,omitempty"` +} + +func (m *GetEntityIDsParam) Reset() { *m = GetEntityIDsParam{} } +func (m *GetEntityIDsParam) String() string { return proto.CompactTextString(m) } +func (*GetEntityIDsParam) ProtoMessage() {} +func (*GetEntityIDsParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{30} } + +func (m *GetEntityIDsParam) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *GetEntityIDsParam) GetSegmentId() int64 { + if m != nil { + return m.SegmentId + } + return 0 +} + +// * +// @brief Entities identity +type EntityIdentity struct { + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + IdArray []int64 `protobuf:"varint,2,rep,packed,name=id_array,json=idArray" json:"id_array,omitempty"` + FieldNames []string `protobuf:"bytes,3,rep,name=field_names,json=fieldNames" json:"field_names,omitempty"` +} + +func (m *EntityIdentity) Reset() { *m = EntityIdentity{} } +func (m *EntityIdentity) String() string { return proto.CompactTextString(m) } +func (*EntityIdentity) ProtoMessage() {} +func (*EntityIdentity) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{31} } + +func (m *EntityIdentity) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *EntityIdentity) GetIdArray() []int64 { + if m != nil { + return m.IdArray + } + return nil +} + +func (m *EntityIdentity) GetFieldNames() []string { + if m != nil { + return m.FieldNames + } + return nil +} + +// * +// @brief Vector field parameters +type VectorFieldParam struct { + Dimension int64 `protobuf:"varint,1,opt,name=dimension" json:"dimension,omitempty"` +} + +func (m *VectorFieldParam) Reset() { *m = VectorFieldParam{} } +func (m *VectorFieldParam) String() string { return proto.CompactTextString(m) } +func (*VectorFieldParam) ProtoMessage() {} +func (*VectorFieldParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{32} } + +func (m *VectorFieldParam) GetDimension() int64 { + if m != nil { + return m.Dimension + } + return 0 +} + +// * +// @brief Field type +type FieldType struct { + // Types that are valid to be assigned to Value: + // *FieldType_DataType + // *FieldType_VectorParam + Value isFieldType_Value `protobuf_oneof:"value"` +} + +func (m *FieldType) Reset() { *m = FieldType{} } +func (m *FieldType) String() string { return proto.CompactTextString(m) } +func (*FieldType) ProtoMessage() {} +func (*FieldType) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{33} } + +type isFieldType_Value interface{ isFieldType_Value() } + +type FieldType_DataType struct { + DataType DataType `protobuf:"varint,1,opt,name=data_type,json=dataType,enum=suvlim.grpc.DataType,oneof"` +} +type FieldType_VectorParam struct { + VectorParam *VectorFieldParam `protobuf:"bytes,2,opt,name=vector_param,json=vectorParam,oneof"` +} + +func (*FieldType_DataType) isFieldType_Value() {} +func (*FieldType_VectorParam) isFieldType_Value() {} + +func (m *FieldType) GetValue() isFieldType_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *FieldType) GetDataType() DataType { + if x, ok := m.GetValue().(*FieldType_DataType); ok { + return x.DataType + } + return DataType_NONE +} + +func (m *FieldType) GetVectorParam() *VectorFieldParam { + if x, ok := m.GetValue().(*FieldType_VectorParam); ok { + return x.VectorParam + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*FieldType) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _FieldType_OneofMarshaler, _FieldType_OneofUnmarshaler, _FieldType_OneofSizer, []interface{}{ + (*FieldType_DataType)(nil), + (*FieldType_VectorParam)(nil), + } +} + +func _FieldType_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*FieldType) + // value + switch x := m.Value.(type) { + case *FieldType_DataType: + b.EncodeVarint(1<<3 | proto.WireVarint) + b.EncodeVarint(uint64(x.DataType)) + case *FieldType_VectorParam: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.VectorParam); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("FieldType.Value has unexpected type %T", x) + } + return nil +} + +func _FieldType_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*FieldType) + switch tag { + case 1: // value.data_type + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.Value = &FieldType_DataType{DataType(x)} + return true, err + case 2: // value.vector_param + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(VectorFieldParam) + err := b.DecodeMessage(msg) + m.Value = &FieldType_VectorParam{msg} + return true, err + default: + return false, nil + } +} + +func _FieldType_OneofSizer(msg proto.Message) (n int) { + m := msg.(*FieldType) + // value + switch x := m.Value.(type) { + case *FieldType_DataType: + n += proto.SizeVarint(1<<3 | proto.WireVarint) + n += proto.SizeVarint(uint64(x.DataType)) + case *FieldType_VectorParam: + s := proto.Size(x.VectorParam) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// * +// @brief Field parameters +type FieldParam struct { + Id uint64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` + Type DataType `protobuf:"varint,3,opt,name=type,enum=suvlim.grpc.DataType" json:"type,omitempty"` + IndexParams []*KeyValuePair `protobuf:"bytes,4,rep,name=index_params,json=indexParams" json:"index_params,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,5,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` +} + +func (m *FieldParam) Reset() { *m = FieldParam{} } +func (m *FieldParam) String() string { return proto.CompactTextString(m) } +func (*FieldParam) ProtoMessage() {} +func (*FieldParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{34} } + +func (m *FieldParam) GetId() uint64 { + if m != nil { + return m.Id + } + return 0 +} + +func (m *FieldParam) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *FieldParam) GetType() DataType { + if m != nil { + return m.Type + } + return DataType_NONE +} + +func (m *FieldParam) GetIndexParams() []*KeyValuePair { + if m != nil { + return m.IndexParams + } + return nil +} + +func (m *FieldParam) GetExtraParams() []*KeyValuePair { + if m != nil { + return m.ExtraParams + } + return nil +} + +// * +// @brief Vector field record +type VectorFieldRecord struct { + Value []*VectorRowRecord `protobuf:"bytes,1,rep,name=value" json:"value,omitempty"` +} + +func (m *VectorFieldRecord) Reset() { *m = VectorFieldRecord{} } +func (m *VectorFieldRecord) String() string { return proto.CompactTextString(m) } +func (*VectorFieldRecord) ProtoMessage() {} +func (*VectorFieldRecord) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{35} } + +func (m *VectorFieldRecord) GetValue() []*VectorRowRecord { + if m != nil { + return m.Value + } + return nil +} + +type TermQuery struct { + FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName" json:"field_name,omitempty"` + IntValue []int64 `protobuf:"varint,2,rep,packed,name=int_value,json=intValue" json:"int_value,omitempty"` + DoubleValue []float64 `protobuf:"fixed64,3,rep,packed,name=double_value,json=doubleValue" json:"double_value,omitempty"` + ValueNum int64 `protobuf:"varint,4,opt,name=value_num,json=valueNum" json:"value_num,omitempty"` + Boost float32 `protobuf:"fixed32,5,opt,name=boost" json:"boost,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,6,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` +} + +func (m *TermQuery) Reset() { *m = TermQuery{} } +func (m *TermQuery) String() string { return proto.CompactTextString(m) } +func (*TermQuery) ProtoMessage() {} +func (*TermQuery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{36} } + +func (m *TermQuery) GetFieldName() string { + if m != nil { + return m.FieldName + } + return "" +} + +func (m *TermQuery) GetIntValue() []int64 { + if m != nil { + return m.IntValue + } + return nil +} + +func (m *TermQuery) GetDoubleValue() []float64 { + if m != nil { + return m.DoubleValue + } + return nil +} + +func (m *TermQuery) GetValueNum() int64 { + if m != nil { + return m.ValueNum + } + return 0 +} + +func (m *TermQuery) GetBoost() float32 { + if m != nil { + return m.Boost + } + return 0 +} + +func (m *TermQuery) GetExtraParams() []*KeyValuePair { + if m != nil { + return m.ExtraParams + } + return nil +} + +type CompareExpr struct { + Operator CompareOperator `protobuf:"varint,1,opt,name=operator,enum=suvlim.grpc.CompareOperator" json:"operator,omitempty"` + Operand string `protobuf:"bytes,2,opt,name=operand" json:"operand,omitempty"` +} + +func (m *CompareExpr) Reset() { *m = CompareExpr{} } +func (m *CompareExpr) String() string { return proto.CompactTextString(m) } +func (*CompareExpr) ProtoMessage() {} +func (*CompareExpr) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{37} } + +func (m *CompareExpr) GetOperator() CompareOperator { + if m != nil { + return m.Operator + } + return CompareOperator_LT +} + +func (m *CompareExpr) GetOperand() string { + if m != nil { + return m.Operand + } + return "" +} + +type RangeQuery struct { + FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName" json:"field_name,omitempty"` + Operand []*CompareExpr `protobuf:"bytes,2,rep,name=operand" json:"operand,omitempty"` + Boost float32 `protobuf:"fixed32,3,opt,name=boost" json:"boost,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,4,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` +} + +func (m *RangeQuery) Reset() { *m = RangeQuery{} } +func (m *RangeQuery) String() string { return proto.CompactTextString(m) } +func (*RangeQuery) ProtoMessage() {} +func (*RangeQuery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{38} } + +func (m *RangeQuery) GetFieldName() string { + if m != nil { + return m.FieldName + } + return "" +} + +func (m *RangeQuery) GetOperand() []*CompareExpr { + if m != nil { + return m.Operand + } + return nil +} + +func (m *RangeQuery) GetBoost() float32 { + if m != nil { + return m.Boost + } + return 0 +} + +func (m *RangeQuery) GetExtraParams() []*KeyValuePair { + if m != nil { + return m.ExtraParams + } + return nil +} + +type VectorQuery struct { + FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName" json:"field_name,omitempty"` + QueryBoost float32 `protobuf:"fixed32,2,opt,name=query_boost,json=queryBoost" json:"query_boost,omitempty"` + Records []*VectorRowRecord `protobuf:"bytes,3,rep,name=records" json:"records,omitempty"` + Topk int64 `protobuf:"varint,4,opt,name=topk" json:"topk,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,5,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` +} + +func (m *VectorQuery) Reset() { *m = VectorQuery{} } +func (m *VectorQuery) String() string { return proto.CompactTextString(m) } +func (*VectorQuery) ProtoMessage() {} +func (*VectorQuery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{39} } + +func (m *VectorQuery) GetFieldName() string { + if m != nil { + return m.FieldName + } + return "" +} + +func (m *VectorQuery) GetQueryBoost() float32 { + if m != nil { + return m.QueryBoost + } + return 0 +} + +func (m *VectorQuery) GetRecords() []*VectorRowRecord { + if m != nil { + return m.Records + } + return nil +} + +func (m *VectorQuery) GetTopk() int64 { + if m != nil { + return m.Topk + } + return 0 +} + +func (m *VectorQuery) GetExtraParams() []*KeyValuePair { + if m != nil { + return m.ExtraParams + } + return nil +} + +type BooleanQuery struct { + Occur Occur `protobuf:"varint,1,opt,name=occur,enum=suvlim.grpc.Occur" json:"occur,omitempty"` + GeneralQuery []*GeneralQuery `protobuf:"bytes,2,rep,name=general_query,json=generalQuery" json:"general_query,omitempty"` +} + +func (m *BooleanQuery) Reset() { *m = BooleanQuery{} } +func (m *BooleanQuery) String() string { return proto.CompactTextString(m) } +func (*BooleanQuery) ProtoMessage() {} +func (*BooleanQuery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{40} } + +func (m *BooleanQuery) GetOccur() Occur { + if m != nil { + return m.Occur + } + return Occur_INVALID +} + +func (m *BooleanQuery) GetGeneralQuery() []*GeneralQuery { + if m != nil { + return m.GeneralQuery + } + return nil +} + +type GeneralQuery struct { + // Types that are valid to be assigned to Query: + // *GeneralQuery_BooleanQuery + // *GeneralQuery_TermQuery + // *GeneralQuery_RangeQuery + // *GeneralQuery_VectorQuery + Query isGeneralQuery_Query `protobuf_oneof:"query"` +} + +func (m *GeneralQuery) Reset() { *m = GeneralQuery{} } +func (m *GeneralQuery) String() string { return proto.CompactTextString(m) } +func (*GeneralQuery) ProtoMessage() {} +func (*GeneralQuery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{41} } + +type isGeneralQuery_Query interface{ isGeneralQuery_Query() } + +type GeneralQuery_BooleanQuery struct { + BooleanQuery *BooleanQuery `protobuf:"bytes,1,opt,name=boolean_query,json=booleanQuery,oneof"` +} +type GeneralQuery_TermQuery struct { + TermQuery *TermQuery `protobuf:"bytes,2,opt,name=term_query,json=termQuery,oneof"` +} +type GeneralQuery_RangeQuery struct { + RangeQuery *RangeQuery `protobuf:"bytes,3,opt,name=range_query,json=rangeQuery,oneof"` +} +type GeneralQuery_VectorQuery struct { + VectorQuery *VectorQuery `protobuf:"bytes,4,opt,name=vector_query,json=vectorQuery,oneof"` +} + +func (*GeneralQuery_BooleanQuery) isGeneralQuery_Query() {} +func (*GeneralQuery_TermQuery) isGeneralQuery_Query() {} +func (*GeneralQuery_RangeQuery) isGeneralQuery_Query() {} +func (*GeneralQuery_VectorQuery) isGeneralQuery_Query() {} + +func (m *GeneralQuery) GetQuery() isGeneralQuery_Query { + if m != nil { + return m.Query + } + return nil +} + +func (m *GeneralQuery) GetBooleanQuery() *BooleanQuery { + if x, ok := m.GetQuery().(*GeneralQuery_BooleanQuery); ok { + return x.BooleanQuery + } + return nil +} + +func (m *GeneralQuery) GetTermQuery() *TermQuery { + if x, ok := m.GetQuery().(*GeneralQuery_TermQuery); ok { + return x.TermQuery + } + return nil +} + +func (m *GeneralQuery) GetRangeQuery() *RangeQuery { + if x, ok := m.GetQuery().(*GeneralQuery_RangeQuery); ok { + return x.RangeQuery + } + return nil +} + +func (m *GeneralQuery) GetVectorQuery() *VectorQuery { + if x, ok := m.GetQuery().(*GeneralQuery_VectorQuery); ok { + return x.VectorQuery + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*GeneralQuery) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _GeneralQuery_OneofMarshaler, _GeneralQuery_OneofUnmarshaler, _GeneralQuery_OneofSizer, []interface{}{ + (*GeneralQuery_BooleanQuery)(nil), + (*GeneralQuery_TermQuery)(nil), + (*GeneralQuery_RangeQuery)(nil), + (*GeneralQuery_VectorQuery)(nil), + } +} + +func _GeneralQuery_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*GeneralQuery) + // query + switch x := m.Query.(type) { + case *GeneralQuery_BooleanQuery: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.BooleanQuery); err != nil { + return err + } + case *GeneralQuery_TermQuery: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.TermQuery); err != nil { + return err + } + case *GeneralQuery_RangeQuery: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RangeQuery); err != nil { + return err + } + case *GeneralQuery_VectorQuery: + b.EncodeVarint(4<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.VectorQuery); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("GeneralQuery.Query has unexpected type %T", x) + } + return nil +} + +func _GeneralQuery_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*GeneralQuery) + switch tag { + case 1: // query.boolean_query + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(BooleanQuery) + err := b.DecodeMessage(msg) + m.Query = &GeneralQuery_BooleanQuery{msg} + return true, err + case 2: // query.term_query + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(TermQuery) + err := b.DecodeMessage(msg) + m.Query = &GeneralQuery_TermQuery{msg} + return true, err + case 3: // query.range_query + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(RangeQuery) + err := b.DecodeMessage(msg) + m.Query = &GeneralQuery_RangeQuery{msg} + return true, err + case 4: // query.vector_query + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(VectorQuery) + err := b.DecodeMessage(msg) + m.Query = &GeneralQuery_VectorQuery{msg} + return true, err + default: + return false, nil + } +} + +func _GeneralQuery_OneofSizer(msg proto.Message) (n int) { + m := msg.(*GeneralQuery) + // query + switch x := m.Query.(type) { + case *GeneralQuery_BooleanQuery: + s := proto.Size(x.BooleanQuery) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *GeneralQuery_TermQuery: + s := proto.Size(x.TermQuery) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *GeneralQuery_RangeQuery: + s := proto.Size(x.RangeQuery) + n += proto.SizeVarint(3<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *GeneralQuery_VectorQuery: + s := proto.Size(x.VectorQuery) + n += proto.SizeVarint(4<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +type SearchParamPB struct { + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + PartitionTagArray []string `protobuf:"bytes,2,rep,name=partition_tag_array,json=partitionTagArray" json:"partition_tag_array,omitempty"` + GeneralQuery *GeneralQuery `protobuf:"bytes,3,opt,name=general_query,json=generalQuery" json:"general_query,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,4,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` +} + +func (m *SearchParamPB) Reset() { *m = SearchParamPB{} } +func (m *SearchParamPB) String() string { return proto.CompactTextString(m) } +func (*SearchParamPB) ProtoMessage() {} +func (*SearchParamPB) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{42} } + +func (m *SearchParamPB) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *SearchParamPB) GetPartitionTagArray() []string { + if m != nil { + return m.PartitionTagArray + } + return nil +} + +func (m *SearchParamPB) GetGeneralQuery() *GeneralQuery { + if m != nil { + return m.GeneralQuery + } + return nil +} + +func (m *SearchParamPB) GetExtraParams() []*KeyValuePair { + if m != nil { + return m.ExtraParams + } + return nil +} + +type InsertOrDeleteMsg struct { + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + RowsData *RowData `protobuf:"bytes,2,opt,name=rows_data,json=rowsData" json:"rows_data,omitempty"` + Uid int64 `protobuf:"varint,3,opt,name=uid" json:"uid,omitempty"` + PartitionTag string `protobuf:"bytes,4,opt,name=partition_tag,json=partitionTag" json:"partition_tag,omitempty"` + Timestamp int64 `protobuf:"varint,5,opt,name=timestamp" json:"timestamp,omitempty"` + SegmentId int64 `protobuf:"varint,6,opt,name=segment_id,json=segmentId" json:"segment_id,omitempty"` + ChannelId int64 `protobuf:"varint,7,opt,name=channel_id,json=channelId" json:"channel_id,omitempty"` + Op OpType `protobuf:"varint,8,opt,name=op,enum=suvlim.grpc.OpType" json:"op,omitempty"` + ClientId int64 `protobuf:"varint,9,opt,name=client_id,json=clientId" json:"client_id,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,10,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` +} + +func (m *InsertOrDeleteMsg) Reset() { *m = InsertOrDeleteMsg{} } +func (m *InsertOrDeleteMsg) String() string { return proto.CompactTextString(m) } +func (*InsertOrDeleteMsg) ProtoMessage() {} +func (*InsertOrDeleteMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{43} } + +func (m *InsertOrDeleteMsg) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *InsertOrDeleteMsg) GetRowsData() *RowData { + if m != nil { + return m.RowsData + } + return nil +} + +func (m *InsertOrDeleteMsg) GetUid() int64 { + if m != nil { + return m.Uid + } + return 0 +} + +func (m *InsertOrDeleteMsg) GetPartitionTag() string { + if m != nil { + return m.PartitionTag + } + return "" +} + +func (m *InsertOrDeleteMsg) GetTimestamp() int64 { + if m != nil { + return m.Timestamp + } + return 0 +} + +func (m *InsertOrDeleteMsg) GetSegmentId() int64 { + if m != nil { + return m.SegmentId + } + return 0 +} + +func (m *InsertOrDeleteMsg) GetChannelId() int64 { + if m != nil { + return m.ChannelId + } + return 0 +} + +func (m *InsertOrDeleteMsg) GetOp() OpType { + if m != nil { + return m.Op + } + return OpType_INSERT +} + +func (m *InsertOrDeleteMsg) GetClientId() int64 { + if m != nil { + return m.ClientId + } + return 0 +} + +func (m *InsertOrDeleteMsg) GetExtraParams() []*KeyValuePair { + if m != nil { + return m.ExtraParams + } + return nil +} + +type SearchMsg struct { + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + Records *VectorRowRecord `protobuf:"bytes,2,opt,name=records" json:"records,omitempty"` + PartitionTag string `protobuf:"bytes,3,opt,name=partition_tag,json=partitionTag" json:"partition_tag,omitempty"` + Uid int64 `protobuf:"varint,4,opt,name=uid" json:"uid,omitempty"` + Timestamp int64 `protobuf:"varint,5,opt,name=timestamp" json:"timestamp,omitempty"` + ClientId int64 `protobuf:"varint,6,opt,name=client_id,json=clientId" json:"client_id,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,7,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` +} + +func (m *SearchMsg) Reset() { *m = SearchMsg{} } +func (m *SearchMsg) String() string { return proto.CompactTextString(m) } +func (*SearchMsg) ProtoMessage() {} +func (*SearchMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{44} } + +func (m *SearchMsg) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *SearchMsg) GetRecords() *VectorRowRecord { + if m != nil { + return m.Records + } + return nil +} + +func (m *SearchMsg) GetPartitionTag() string { + if m != nil { + return m.PartitionTag + } + return "" +} + +func (m *SearchMsg) GetUid() int64 { + if m != nil { + return m.Uid + } + return 0 +} + +func (m *SearchMsg) GetTimestamp() int64 { + if m != nil { + return m.Timestamp + } + return 0 +} + +func (m *SearchMsg) GetClientId() int64 { + if m != nil { + return m.ClientId + } + return 0 +} + +func (m *SearchMsg) GetExtraParams() []*KeyValuePair { + if m != nil { + return m.ExtraParams + } + return nil +} + +type TimeSyncMsg struct { + ClientId int64 `protobuf:"varint,1,opt,name=ClientId,json=clientId" json:"ClientId,omitempty"` + Timestamp int64 `protobuf:"varint,2,opt,name=Timestamp,json=timestamp" json:"Timestamp,omitempty"` + MsgType OpType `protobuf:"varint,3,opt,name=MsgType,json=msgType,enum=suvlim.grpc.OpType" json:"MsgType,omitempty"` +} + +func (m *TimeSyncMsg) Reset() { *m = TimeSyncMsg{} } +func (m *TimeSyncMsg) String() string { return proto.CompactTextString(m) } +func (*TimeSyncMsg) ProtoMessage() {} +func (*TimeSyncMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{45} } + +func (m *TimeSyncMsg) GetClientId() int64 { + if m != nil { + return m.ClientId + } + return 0 +} + +func (m *TimeSyncMsg) GetTimestamp() int64 { + if m != nil { + return m.Timestamp + } + return 0 +} + +func (m *TimeSyncMsg) GetMsgType() OpType { + if m != nil { + return m.MsgType + } + return OpType_INSERT +} + +type SegmentRecord struct { + Uid int64 `protobuf:"varint,1,opt,name=uid" json:"uid,omitempty"` + SegmentId []int64 `protobuf:"varint,2,rep,packed,name=segment_id,json=segmentId" json:"segment_id,omitempty"` +} + +func (m *SegmentRecord) Reset() { *m = SegmentRecord{} } +func (m *SegmentRecord) String() string { return proto.CompactTextString(m) } +func (*SegmentRecord) ProtoMessage() {} +func (*SegmentRecord) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{46} } + +func (m *SegmentRecord) GetUid() int64 { + if m != nil { + return m.Uid + } + return 0 +} + +func (m *SegmentRecord) GetSegmentId() []int64 { + if m != nil { + return m.SegmentId + } + return nil +} + +type Key2SegMsg struct { + ClientId int64 `protobuf:"varint,1,opt,name=client_id,json=clientId" json:"client_id,omitempty"` + Records *SegmentRecord `protobuf:"bytes,2,opt,name=records" json:"records,omitempty"` + MsgType OpType `protobuf:"varint,3,opt,name=msg_type,json=msgType,enum=suvlim.grpc.OpType" json:"msg_type,omitempty"` +} + +func (m *Key2SegMsg) Reset() { *m = Key2SegMsg{} } +func (m *Key2SegMsg) String() string { return proto.CompactTextString(m) } +func (*Key2SegMsg) ProtoMessage() {} +func (*Key2SegMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{47} } + +func (m *Key2SegMsg) GetClientId() int64 { + if m != nil { + return m.ClientId + } + return 0 +} + +func (m *Key2SegMsg) GetRecords() *SegmentRecord { + if m != nil { + return m.Records + } + return nil +} + +func (m *Key2SegMsg) GetMsgType() OpType { + if m != nil { + return m.MsgType + } + return OpType_INSERT +} + +func init() { + proto.RegisterType((*Status)(nil), "suvlim.grpc.Status") + proto.RegisterType((*KeyValuePair)(nil), "suvlim.grpc.KeyValuePair") + proto.RegisterType((*CollectionName)(nil), "suvlim.grpc.CollectionName") + proto.RegisterType((*CollectionNameList)(nil), "suvlim.grpc.CollectionNameList") + proto.RegisterType((*FieldName)(nil), "suvlim.grpc.FieldName") + proto.RegisterType((*Mapping)(nil), "suvlim.grpc.Mapping") + proto.RegisterType((*MappingList)(nil), "suvlim.grpc.MappingList") + proto.RegisterType((*PartitionParam)(nil), "suvlim.grpc.PartitionParam") + proto.RegisterType((*PartitionList)(nil), "suvlim.grpc.PartitionList") + proto.RegisterType((*VectorRowRecord)(nil), "suvlim.grpc.VectorRowRecord") + proto.RegisterType((*EntityIds)(nil), "suvlim.grpc.EntityIds") + proto.RegisterType((*VectorRecord)(nil), "suvlim.grpc.VectorRecord") + proto.RegisterType((*VectorParam)(nil), "suvlim.grpc.VectorParam") + proto.RegisterType((*FieldMeta)(nil), "suvlim.grpc.FieldMeta") + proto.RegisterType((*Schema)(nil), "suvlim.grpc.Schema") + proto.RegisterType((*RowData)(nil), "suvlim.grpc.RowData") + proto.RegisterType((*InsertParam)(nil), "suvlim.grpc.InsertParam") + proto.RegisterType((*SearchParam)(nil), "suvlim.grpc.SearchParam") + proto.RegisterType((*SearchInSegmentParam)(nil), "suvlim.grpc.SearchInSegmentParam") + proto.RegisterType((*Entities)(nil), "suvlim.grpc.Entities") + proto.RegisterType((*QueryResult)(nil), "suvlim.grpc.QueryResult") + proto.RegisterType((*StringReply)(nil), "suvlim.grpc.StringReply") + proto.RegisterType((*BoolReply)(nil), "suvlim.grpc.BoolReply") + proto.RegisterType((*CollectionRowCount)(nil), "suvlim.grpc.CollectionRowCount") + proto.RegisterType((*Command)(nil), "suvlim.grpc.Command") + proto.RegisterType((*IndexParam)(nil), "suvlim.grpc.IndexParam") + proto.RegisterType((*FlushParam)(nil), "suvlim.grpc.FlushParam") + proto.RegisterType((*CompactParam)(nil), "suvlim.grpc.CompactParam") + proto.RegisterType((*DeleteByIDParam)(nil), "suvlim.grpc.DeleteByIDParam") + proto.RegisterType((*CollectionInfo)(nil), "suvlim.grpc.CollectionInfo") + proto.RegisterType((*GetEntityIDsParam)(nil), "suvlim.grpc.GetEntityIDsParam") + proto.RegisterType((*EntityIdentity)(nil), "suvlim.grpc.EntityIdentity") + proto.RegisterType((*VectorFieldParam)(nil), "suvlim.grpc.VectorFieldParam") + proto.RegisterType((*FieldType)(nil), "suvlim.grpc.FieldType") + proto.RegisterType((*FieldParam)(nil), "suvlim.grpc.FieldParam") + proto.RegisterType((*VectorFieldRecord)(nil), "suvlim.grpc.VectorFieldRecord") + proto.RegisterType((*TermQuery)(nil), "suvlim.grpc.TermQuery") + proto.RegisterType((*CompareExpr)(nil), "suvlim.grpc.CompareExpr") + proto.RegisterType((*RangeQuery)(nil), "suvlim.grpc.RangeQuery") + proto.RegisterType((*VectorQuery)(nil), "suvlim.grpc.VectorQuery") + proto.RegisterType((*BooleanQuery)(nil), "suvlim.grpc.BooleanQuery") + proto.RegisterType((*GeneralQuery)(nil), "suvlim.grpc.GeneralQuery") + proto.RegisterType((*SearchParamPB)(nil), "suvlim.grpc.SearchParamPB") + proto.RegisterType((*InsertOrDeleteMsg)(nil), "suvlim.grpc.InsertOrDeleteMsg") + proto.RegisterType((*SearchMsg)(nil), "suvlim.grpc.SearchMsg") + proto.RegisterType((*TimeSyncMsg)(nil), "suvlim.grpc.TimeSyncMsg") + proto.RegisterType((*SegmentRecord)(nil), "suvlim.grpc.SegmentRecord") + proto.RegisterType((*Key2SegMsg)(nil), "suvlim.grpc.Key2SegMsg") + proto.RegisterEnum("suvlim.grpc.ErrorCode", ErrorCode_name, ErrorCode_value) + proto.RegisterEnum("suvlim.grpc.DataType", DataType_name, DataType_value) + proto.RegisterEnum("suvlim.grpc.CompareOperator", CompareOperator_name, CompareOperator_value) + proto.RegisterEnum("suvlim.grpc.Occur", Occur_name, Occur_value) + proto.RegisterEnum("suvlim.grpc.OpType", OpType_name, OpType_value) +} + +func init() { proto.RegisterFile("suvlim.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 2881 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x5a, 0xcd, 0x73, 0xdb, 0xc6, + 0x15, 0x27, 0x08, 0x8a, 0x24, 0x1e, 0x28, 0x09, 0x5a, 0xcb, 0x36, 0x2d, 0xdb, 0x8d, 0x83, 0xce, + 0xb4, 0x8e, 0x3b, 0x75, 0x13, 0x25, 0xb5, 0xdd, 0x3a, 0x49, 0xc3, 0x0f, 0x48, 0x42, 0xcd, 0x0f, + 0x79, 0x09, 0x39, 0x71, 0x32, 0x1d, 0x14, 0x22, 0xd7, 0x34, 0x1a, 0x92, 0x60, 0x01, 0x50, 0xb2, + 0xae, 0xbd, 0xb7, 0x9d, 0x1e, 0x3b, 0xd3, 0x4b, 0xfb, 0x2f, 0xf4, 0xff, 0xe8, 0x35, 0x87, 0xcc, + 0xf4, 0xd8, 0xe9, 0xdf, 0xd0, 0x53, 0x67, 0x3f, 0x40, 0x02, 0x20, 0x29, 0x93, 0x51, 0x7b, 0xd2, + 0xf2, 0xed, 0xbe, 0xb7, 0xbf, 0xf7, 0xb1, 0x6f, 0xdf, 0x5b, 0x08, 0x4a, 0xc1, 0xe4, 0x6c, 0xe0, + 0x0e, 0x1f, 0x8e, 0x7d, 0x2f, 0xf4, 0x90, 0x2a, 0x7e, 0xf5, 0xfd, 0x71, 0x57, 0xff, 0x1c, 0xf2, + 0x9d, 0xd0, 0x09, 0x27, 0x01, 0xfa, 0x29, 0x00, 0xf1, 0x7d, 0xcf, 0xb7, 0xbb, 0x5e, 0x8f, 0x94, + 0xa5, 0x7b, 0xd2, 0xfd, 0xad, 0xfd, 0x1b, 0x0f, 0x63, 0x6b, 0x1f, 0x1a, 0x74, 0xba, 0xe6, 0xf5, + 0x08, 0x56, 0x48, 0x34, 0x44, 0x37, 0x20, 0xef, 0x13, 0x27, 0xf0, 0x46, 0xe5, 0xec, 0x3d, 0xe9, + 0xbe, 0x82, 0xc5, 0x2f, 0xfd, 0x11, 0x94, 0x9e, 0x91, 0x8b, 0x17, 0xce, 0x60, 0x42, 0x8e, 0x1d, + 0xd7, 0x47, 0x1a, 0xc8, 0x5f, 0x93, 0x0b, 0x26, 0x57, 0xc1, 0x74, 0x88, 0x76, 0x61, 0xe3, 0x8c, + 0x4e, 0x0b, 0x46, 0xfe, 0x43, 0xff, 0x19, 0x6c, 0xd5, 0xbc, 0xc1, 0x80, 0x74, 0x43, 0xd7, 0x1b, + 0xb5, 0x9c, 0x21, 0x41, 0x3f, 0x84, 0xed, 0xee, 0x94, 0x62, 0x8f, 0x9c, 0x21, 0x11, 0x52, 0xb6, + 0xba, 0x89, 0x85, 0xfa, 0x00, 0x50, 0x92, 0xb5, 0xe1, 0x06, 0x21, 0xfa, 0x11, 0xe4, 0x03, 0xa6, + 0x21, 0xe3, 0x52, 0xf7, 0xaf, 0x25, 0x74, 0xe2, 0xca, 0x63, 0xb1, 0x04, 0xbd, 0x07, 0x5a, 0x6a, + 0xaf, 0xa0, 0x9c, 0xbd, 0x27, 0xdf, 0x57, 0xf0, 0x76, 0x72, 0xb3, 0x40, 0xef, 0x80, 0x72, 0xe0, + 0x92, 0x41, 0x6f, 0x2d, 0x8c, 0xe8, 0x2e, 0xc0, 0x2b, 0xca, 0xc5, 0xd7, 0x70, 0xcd, 0x95, 0x57, + 0x91, 0x1c, 0xfd, 0x1f, 0x12, 0x14, 0x9a, 0xce, 0x78, 0xec, 0x8e, 0xfa, 0xeb, 0x01, 0x5f, 0x00, + 0x20, 0xbb, 0x10, 0xc0, 0x4f, 0x20, 0xcf, 0xb6, 0x0b, 0xca, 0xf2, 0x3d, 0xf9, 0xbe, 0xba, 0x7f, + 0x33, 0x21, 0x95, 0x69, 0x74, 0xec, 0xf8, 0xce, 0x10, 0x8b, 0x65, 0xe8, 0x63, 0x28, 0x91, 0x37, + 0xa1, 0xef, 0xd8, 0x63, 0x4a, 0x0e, 0xca, 0x39, 0xc6, 0x76, 0x2b, 0xc1, 0x16, 0xf7, 0x34, 0x56, + 0xd9, 0x72, 0x26, 0x24, 0xd0, 0x03, 0x50, 0x85, 0x3e, 0xeb, 0x3b, 0xe3, 0x31, 0x94, 0x86, 0x9c, + 0xd7, 0x1e, 0xb8, 0x41, 0xc8, 0x1c, 0xa1, 0xee, 0xef, 0x26, 0x58, 0x84, 0x70, 0xac, 0x0e, 0x67, + 0xbb, 0xe8, 0xcf, 0x60, 0xeb, 0xd8, 0xf1, 0x43, 0x97, 0x2a, 0xcd, 0x70, 0xac, 0xee, 0x1f, 0x0d, + 0xe4, 0xd0, 0xe9, 0x0b, 0xdb, 0xd1, 0xa1, 0x3e, 0x80, 0xcd, 0xa9, 0xb0, 0xf5, 0x75, 0x78, 0x08, + 0xd7, 0xc6, 0x11, 0xb7, 0x1d, 0x3a, 0x7d, 0xdb, 0xf1, 0x7d, 0xe7, 0x42, 0xc4, 0xd4, 0xce, 0x74, + 0xca, 0x72, 0xfa, 0x15, 0x3a, 0xa1, 0x3f, 0x87, 0xed, 0x17, 0xa4, 0x1b, 0x7a, 0x3e, 0xf6, 0xce, + 0x31, 0xe9, 0x7a, 0x7e, 0x8f, 0x85, 0xcc, 0xc0, 0x73, 0x42, 0xbb, 0xe7, 0x84, 0x4e, 0x59, 0xba, + 0x27, 0xdf, 0xcf, 0x62, 0x85, 0x51, 0xea, 0x4e, 0xe8, 0xa0, 0x77, 0x40, 0x3d, 0x75, 0x47, 0x8e, + 0x7f, 0xc1, 0xe7, 0x29, 0xf2, 0x12, 0x06, 0x4e, 0xa2, 0x0b, 0xf4, 0x5f, 0x83, 0x62, 0x8c, 0x42, + 0x37, 0xbc, 0x30, 0x7b, 0xc1, 0x7a, 0xe0, 0x7f, 0x00, 0xdb, 0x84, 0x71, 0xda, 0x6e, 0x2f, 0x06, + 0x5c, 0xc6, 0x9b, 0x44, 0x08, 0xe4, 0xa0, 0x0f, 0xa0, 0x24, 0x40, 0x73, 0xc4, 0x8f, 0xa0, 0xe0, + 0xb3, 0x51, 0xc0, 0xe0, 0xaa, 0xfb, 0x77, 0x12, 0xbb, 0xa4, 0x14, 0xc4, 0xd1, 0x62, 0xfd, 0x2b, + 0x50, 0xf9, 0x1c, 0x77, 0x1a, 0x82, 0xdc, 0x6f, 0x68, 0x62, 0xe1, 0x9e, 0x62, 0x63, 0xf4, 0x04, + 0xc0, 0xf7, 0xce, 0x6d, 0xce, 0xc1, 0x94, 0x4d, 0xc7, 0x62, 0x1c, 0x09, 0x56, 0xfc, 0x68, 0x17, + 0xbd, 0x2f, 0xce, 0x6b, 0x93, 0x84, 0x4e, 0xea, 0x18, 0x4a, 0xa9, 0x63, 0x88, 0xde, 0x83, 0x5c, + 0x78, 0x31, 0xe6, 0x47, 0x68, 0x6b, 0xff, 0x7a, 0x42, 0x3e, 0xb5, 0xa9, 0x75, 0x31, 0x26, 0x98, + 0x2d, 0xa1, 0x01, 0xd3, 0x73, 0x87, 0x65, 0xf9, 0x9e, 0x74, 0x5f, 0xc6, 0x74, 0xa8, 0x57, 0x20, + 0xdf, 0xe9, 0xbe, 0x26, 0x43, 0x07, 0x3d, 0x06, 0x95, 0xef, 0x32, 0x24, 0xa1, 0x13, 0xd9, 0xe2, + 0xc6, 0xfc, 0x81, 0xa3, 0x90, 0x30, 0x07, 0x44, 0x87, 0x81, 0x7e, 0x17, 0x0a, 0xd8, 0x3b, 0x67, + 0xee, 0x45, 0x90, 0x3b, 0x1d, 0x78, 0xa7, 0x0c, 0x63, 0x09, 0xb3, 0xb1, 0xfe, 0xd7, 0x2c, 0xa8, + 0xe6, 0x28, 0x20, 0x7e, 0xb8, 0x66, 0x74, 0x53, 0xef, 0x33, 0x68, 0xc2, 0x72, 0x29, 0xef, 0xb3, + 0x29, 0x2c, 0x96, 0xa0, 0x0f, 0x80, 0x5a, 0x2f, 0xe0, 0x61, 0x25, 0x2f, 0x38, 0x7b, 0x02, 0x22, + 0x2e, 0xd2, 0x65, 0x0c, 0xec, 0x82, 0x80, 0xc9, 0x2d, 0x08, 0x18, 0xf4, 0x7d, 0xd8, 0x4c, 0x9c, + 0x8a, 0xf2, 0x06, 0x83, 0x5b, 0x8a, 0x9f, 0x87, 0xb9, 0xc4, 0x93, 0x5f, 0x2b, 0xf1, 0xfc, 0x5b, + 0x02, 0xb5, 0x43, 0x1c, 0xbf, 0xfb, 0x7a, 0x4d, 0x1b, 0x3d, 0x85, 0xd2, 0x19, 0x0b, 0x21, 0xbe, + 0xaf, 0xc8, 0x3a, 0xe5, 0x05, 0x31, 0xc6, 0xf3, 0xa4, 0x7a, 0x16, 0x0b, 0x59, 0x1a, 0x0d, 0xc1, + 0x80, 0x45, 0x83, 0x82, 0xe9, 0x70, 0x5e, 0xd5, 0x1c, 0x3b, 0xfa, 0x97, 0xab, 0xba, 0xb1, 0x96, + 0xaa, 0xe7, 0xb0, 0xcb, 0x35, 0x35, 0x47, 0x1d, 0xd2, 0x1f, 0x92, 0x91, 0x08, 0x0b, 0x1d, 0x36, + 0x5f, 0xb9, 0x03, 0x32, 0xf3, 0x85, 0xc4, 0xb6, 0x56, 0x29, 0x31, 0xf2, 0xc4, 0x53, 0x28, 0x05, + 0x8c, 0x77, 0xaa, 0xad, 0x34, 0xa7, 0x6d, 0xcc, 0x8c, 0x58, 0x0d, 0x66, 0x3f, 0xf4, 0x3f, 0x4b, + 0x50, 0x64, 0xa9, 0xc5, 0x25, 0x6b, 0x66, 0x16, 0x0d, 0x64, 0xb7, 0x17, 0x88, 0x6c, 0x42, 0x87, + 0xe8, 0x36, 0x28, 0x67, 0xce, 0xc0, 0xed, 0xd9, 0xbe, 0x77, 0xce, 0xa2, 0xad, 0x88, 0x8b, 0x8c, + 0x80, 0xbd, 0xf3, 0x64, 0x28, 0xe6, 0x56, 0x09, 0x45, 0xfd, 0x3f, 0x12, 0xa8, 0xcf, 0x27, 0xc4, + 0xbf, 0xc0, 0x24, 0x98, 0x0c, 0xd6, 0xcc, 0xda, 0x1f, 0x40, 0x91, 0x08, 0xbd, 0x84, 0x45, 0x92, + 0x39, 0x20, 0x52, 0x1a, 0x4f, 0x97, 0xa1, 0x9b, 0x50, 0xa0, 0x89, 0x69, 0x34, 0x89, 0x72, 0x41, + 0xde, 0xf7, 0xce, 0x5b, 0x93, 0x21, 0x2d, 0x90, 0x82, 0xae, 0xe7, 0x13, 0x7e, 0x73, 0x66, 0xb1, + 0xf8, 0x85, 0xee, 0x80, 0xd2, 0x73, 0x83, 0xd0, 0x19, 0x75, 0x09, 0x77, 0x78, 0x16, 0xcf, 0x08, + 0x57, 0x0c, 0xfe, 0x5f, 0x81, 0xda, 0x09, 0x7d, 0x7a, 0x2f, 0x92, 0xf1, 0xe0, 0x62, 0x3d, 0xdd, + 0xdf, 0x85, 0x52, 0xc0, 0x78, 0x6d, 0x9f, 0x32, 0x8b, 0xab, 0x50, 0x0d, 0x66, 0xf2, 0xf4, 0xcf, + 0x41, 0xa9, 0x7a, 0xde, 0xe0, 0x3b, 0x08, 0xbf, 0x0b, 0x70, 0xea, 0x79, 0x83, 0x98, 0xe8, 0x22, + 0x56, 0x4e, 0x23, 0x59, 0x7a, 0x10, 0xaf, 0xe0, 0xb0, 0x77, 0x5e, 0xf3, 0x26, 0xa3, 0x35, 0x5d, + 0xf7, 0x3e, 0xec, 0xc6, 0xce, 0x39, 0x75, 0x49, 0x97, 0x0a, 0x61, 0x7b, 0xc9, 0x18, 0x75, 0xe7, + 0xc4, 0xeb, 0xb7, 0xa1, 0x50, 0xf3, 0x86, 0x43, 0x67, 0xd4, 0xa3, 0x61, 0xd9, 0x1d, 0xf6, 0xa2, + 0x22, 0xb5, 0x3b, 0xec, 0xe9, 0xff, 0x94, 0x00, 0xcc, 0x51, 0x8f, 0xbc, 0xe1, 0x47, 0xea, 0xff, + 0x53, 0x93, 0x25, 0x6f, 0x23, 0x39, 0x7d, 0x1b, 0xdd, 0x05, 0x70, 0x29, 0x04, 0x3e, 0x9d, 0xe3, + 0xd3, 0x8c, 0xc2, 0xa6, 0xaf, 0x96, 0x3c, 0x3e, 0x03, 0x38, 0x18, 0x4c, 0x02, 0x91, 0x25, 0xf7, + 0xe1, 0x7a, 0x0a, 0x72, 0x22, 0x75, 0x5c, 0x4b, 0x02, 0xe7, 0xb7, 0xff, 0x09, 0x94, 0x6a, 0xde, + 0x70, 0xec, 0x74, 0xd7, 0xbd, 0x8d, 0xee, 0x80, 0x12, 0xbe, 0xf6, 0x49, 0xf0, 0xda, 0x1b, 0xf0, + 0xab, 0x5c, 0xc2, 0x33, 0x82, 0x7e, 0x02, 0xdb, 0x75, 0x32, 0x20, 0x21, 0xa9, 0x5e, 0x98, 0xf5, + 0x35, 0x25, 0xdf, 0x82, 0x62, 0xaa, 0x62, 0x29, 0xb8, 0xa2, 0x56, 0xf9, 0x32, 0xde, 0x5f, 0x98, + 0xa3, 0x57, 0xde, 0x7a, 0x3e, 0xbd, 0x0d, 0x0a, 0xad, 0x43, 0x6c, 0x77, 0xf4, 0xca, 0x13, 0xde, + 0x2c, 0x52, 0x02, 0x95, 0xa4, 0x7f, 0x05, 0x3b, 0x87, 0x24, 0x14, 0xc5, 0x56, 0x3d, 0x58, 0x13, + 0xf4, 0x5d, 0x80, 0x80, 0xa7, 0x6f, 0xdb, 0xed, 0x89, 0x78, 0x55, 0x04, 0xc5, 0xec, 0xe9, 0x13, + 0xd8, 0x8a, 0xca, 0x38, 0x7e, 0x99, 0xfe, 0x2f, 0xcc, 0x41, 0xab, 0xc7, 0x59, 0xe8, 0xf1, 0x9e, + 0x40, 0x11, 0xa5, 0x08, 0x6f, 0x73, 0xde, 0x07, 0x8d, 0xdf, 0x76, 0xb3, 0xd6, 0x80, 0xa7, 0xae, + 0x21, 0x19, 0x05, 0xae, 0xa8, 0xce, 0x64, 0x3c, 0x23, 0xe8, 0x7f, 0x90, 0x44, 0xa5, 0x45, 0xab, + 0x24, 0xf4, 0x11, 0x28, 0x34, 0x6b, 0xdb, 0xac, 0x9e, 0x92, 0x2e, 0xa9, 0xa7, 0x8e, 0x32, 0xb8, + 0xd8, 0x13, 0x63, 0x54, 0x9d, 0xbb, 0x84, 0xa9, 0x67, 0xee, 0x2e, 0xb8, 0x84, 0x67, 0xb0, 0x8e, + 0x32, 0x89, 0xbb, 0xb8, 0x5a, 0x10, 0xfd, 0xa5, 0xfe, 0x8d, 0x04, 0x10, 0x43, 0xbf, 0x05, 0x59, + 0x97, 0x9f, 0xf1, 0x1c, 0xce, 0xba, 0x3d, 0x5a, 0x61, 0xc5, 0xce, 0x26, 0x1b, 0x4f, 0x0b, 0x40, + 0xf9, 0xed, 0x05, 0xe0, 0xc7, 0x50, 0xe2, 0xa7, 0x73, 0xe5, 0xfe, 0xc8, 0x9d, 0xe6, 0x93, 0xe0, + 0x8a, 0x87, 0xf7, 0x10, 0x76, 0x62, 0x56, 0x10, 0xd5, 0xf7, 0x7e, 0xd4, 0x57, 0xaf, 0x52, 0x7b, + 0x0b, 0x13, 0x7d, 0x2b, 0x81, 0x62, 0x11, 0x7f, 0xc8, 0x6e, 0xcc, 0xb7, 0x55, 0xc7, 0xb7, 0x41, + 0x71, 0x47, 0xa1, 0x1d, 0x35, 0xef, 0x34, 0x9e, 0x8a, 0xee, 0x28, 0x64, 0x18, 0xe9, 0xf5, 0xd1, + 0xf3, 0x26, 0xa7, 0x03, 0x22, 0xe6, 0x69, 0x44, 0x49, 0x58, 0xe5, 0x34, 0xbe, 0x84, 0x5f, 0xf5, + 0x13, 0xc2, 0x2e, 0xcb, 0x1c, 0x0b, 0x9f, 0x22, 0x23, 0xd0, 0xeb, 0x72, 0x17, 0x36, 0x4e, 0x3d, + 0x2f, 0x08, 0x59, 0x49, 0x98, 0xc5, 0xfc, 0xc7, 0x15, 0xaf, 0x43, 0x07, 0x54, 0x96, 0xa1, 0x7c, + 0x62, 0xbc, 0x19, 0xfb, 0xe8, 0x09, 0x14, 0xbd, 0x31, 0xf1, 0x9d, 0xd0, 0xf3, 0x45, 0x44, 0x26, + 0x6d, 0x24, 0xd6, 0xb6, 0xc5, 0x1a, 0x3c, 0x5d, 0x8d, 0xca, 0x50, 0x60, 0xe3, 0x51, 0x4f, 0x44, + 0x4b, 0xf4, 0x53, 0xff, 0xbb, 0x04, 0x80, 0x9d, 0x51, 0x9f, 0xac, 0x64, 0xc1, 0xfd, 0xb8, 0x9c, + 0xf9, 0xf2, 0x32, 0x06, 0x76, 0xba, 0xc3, 0xcc, 0x30, 0xf2, 0x65, 0x86, 0x59, 0xaf, 0x3b, 0xff, + 0x46, 0x8a, 0x3a, 0xae, 0x95, 0x60, 0xbf, 0x03, 0xea, 0x6f, 0xe9, 0x3a, 0x9b, 0x03, 0xc9, 0x32, + 0x20, 0xc0, 0x48, 0x55, 0x86, 0x26, 0xd6, 0xf8, 0xc9, 0x6b, 0x34, 0x7e, 0xf4, 0x08, 0x86, 0xde, + 0xf8, 0x6b, 0x11, 0x0c, 0x6c, 0x7c, 0xc5, 0x93, 0xf1, 0x06, 0x4a, 0xb4, 0x44, 0x21, 0xce, 0x88, + 0x6b, 0x76, 0x1f, 0x36, 0xbc, 0x6e, 0x77, 0x12, 0x39, 0x1c, 0x25, 0xc4, 0xb4, 0xe9, 0x0c, 0xe6, + 0x0b, 0xd0, 0xa7, 0xb0, 0xd9, 0x27, 0x23, 0xe2, 0x3b, 0x03, 0x9b, 0x69, 0x26, 0x3c, 0x94, 0xdc, + 0xf8, 0x90, 0xaf, 0xe0, 0x05, 0x66, 0xa9, 0x1f, 0xfb, 0xa5, 0xff, 0x3e, 0x0b, 0xa5, 0xf8, 0x34, + 0xfa, 0x0c, 0x36, 0x4f, 0x39, 0x14, 0x21, 0x50, 0x5a, 0xd0, 0xb5, 0xc6, 0xc1, 0x1e, 0x65, 0x70, + 0xe9, 0x34, 0x0e, 0xfe, 0x31, 0x40, 0x48, 0xfc, 0xe1, 0x14, 0x8f, 0x34, 0xd7, 0x46, 0x4e, 0xcf, + 0xee, 0x51, 0x06, 0x2b, 0xe1, 0xf4, 0x20, 0xff, 0x1c, 0x54, 0x9f, 0x06, 0xa5, 0xe0, 0x94, 0x19, + 0x67, 0xf2, 0xc5, 0x67, 0x16, 0xb4, 0x47, 0x19, 0x0c, 0xfe, 0x2c, 0x84, 0x3f, 0x99, 0xa6, 0x60, + 0xce, 0x9c, 0x5b, 0xd0, 0x19, 0xc4, 0x62, 0x67, 0x96, 0x7d, 0xd9, 0x4f, 0x9a, 0x7d, 0x19, 0x9f, + 0xfe, 0x2f, 0x09, 0x36, 0x63, 0x1d, 0xc4, 0x71, 0x75, 0xf5, 0x7b, 0x6b, 0xcd, 0xc7, 0x93, 0x79, + 0xd7, 0xc9, 0x0b, 0x2c, 0xbd, 0xdc, 0x75, 0x57, 0x3c, 0x4c, 0xbf, 0x93, 0x61, 0x87, 0x77, 0xe5, + 0x6d, 0x9f, 0x57, 0x2e, 0xcd, 0xa0, 0xbf, 0xba, 0xb2, 0x89, 0x1e, 0x87, 0xfb, 0xf8, 0x6d, 0xed, + 0xb6, 0x06, 0xf2, 0xc4, 0xed, 0x45, 0x6f, 0x0f, 0x13, 0xb7, 0xb7, 0xa8, 0xdb, 0x9c, 0x6f, 0xac, + 0x69, 0xdd, 0xe5, 0x0e, 0x49, 0x10, 0x3a, 0xc3, 0x31, 0x4b, 0xb3, 0x32, 0x9e, 0x11, 0x52, 0x65, + 0x48, 0x3e, 0x55, 0x86, 0xd0, 0xe9, 0xee, 0x6b, 0x67, 0x34, 0x22, 0x03, 0x3a, 0x5d, 0xe0, 0xd3, + 0x82, 0x62, 0x52, 0x00, 0x59, 0x6f, 0x5c, 0x2e, 0xb2, 0x43, 0x96, 0x2c, 0xa4, 0xda, 0x63, 0x76, + 0x69, 0x66, 0xbd, 0x31, 0xbd, 0x00, 0xba, 0x03, 0x57, 0xec, 0xa0, 0xf0, 0x0b, 0x80, 0x13, 0xcc, + 0xde, 0x9c, 0x13, 0x60, 0x2d, 0x27, 0xfc, 0x25, 0x0b, 0x0a, 0x8f, 0xb6, 0xb5, 0x8c, 0x1f, 0x4b, + 0x5c, 0xdc, 0xf4, 0x2b, 0x26, 0xae, 0x39, 0x7b, 0xcb, 0x0b, 0xec, 0x2d, 0xdc, 0x94, 0x9b, 0xb9, + 0xe9, 0x72, 0x0f, 0x24, 0xcc, 0x93, 0x7f, 0x8b, 0x79, 0x0a, 0x6b, 0x99, 0xe7, 0x0c, 0x54, 0xcb, + 0x1d, 0x92, 0xce, 0xc5, 0xa8, 0x4b, 0xed, 0xb3, 0x07, 0xc5, 0x9a, 0x10, 0x2c, 0xea, 0xb8, 0xd9, + 0x46, 0x77, 0x40, 0xb1, 0xa6, 0x18, 0xb3, 0x69, 0x8c, 0x3f, 0x86, 0x42, 0x33, 0xe8, 0x5b, 0xb3, + 0x1a, 0x69, 0xa1, 0xb3, 0x0b, 0x43, 0xbe, 0x46, 0xff, 0x8c, 0xe6, 0x00, 0x16, 0x42, 0xa2, 0x48, + 0x11, 0x36, 0x91, 0x66, 0x36, 0x49, 0x97, 0xbf, 0x72, 0xb2, 0xfc, 0xfd, 0xa3, 0x04, 0xf0, 0x8c, + 0x5c, 0xec, 0x77, 0x48, 0x9f, 0x22, 0x4f, 0xd8, 0x28, 0x0d, 0xfd, 0xa3, 0xb4, 0x37, 0xf7, 0x52, + 0xef, 0x19, 0x31, 0x24, 0x33, 0x5f, 0x3e, 0x84, 0xe2, 0x30, 0xe8, 0xdb, 0xe1, 0x8a, 0x3a, 0x3d, + 0xf8, 0x5b, 0x0e, 0x94, 0xe9, 0x27, 0x11, 0xa4, 0x42, 0xa1, 0x73, 0x52, 0xab, 0x19, 0x9d, 0x8e, + 0x96, 0x41, 0xbb, 0xa0, 0x9d, 0xb4, 0x8c, 0x2f, 0x8e, 0x8d, 0x9a, 0x65, 0xd4, 0x6d, 0x03, 0xe3, + 0x36, 0xd6, 0x24, 0x84, 0x60, 0xab, 0xd6, 0x6e, 0xb5, 0x8c, 0x9a, 0x65, 0x1f, 0x54, 0xcc, 0x86, + 0x51, 0xd7, 0xb2, 0xe8, 0x3a, 0xec, 0x1c, 0x1b, 0xb8, 0x69, 0x76, 0x3a, 0x66, 0xbb, 0x65, 0xd7, + 0x8d, 0x96, 0x69, 0xd4, 0x35, 0x19, 0xdd, 0x82, 0xeb, 0xb5, 0x76, 0xa3, 0x61, 0xd4, 0x2c, 0x4a, + 0x6e, 0xb5, 0x2d, 0xdb, 0xf8, 0xc2, 0xec, 0x58, 0x1d, 0x2d, 0x47, 0x65, 0x9b, 0x8d, 0x86, 0x71, + 0x58, 0x69, 0xd8, 0x15, 0x7c, 0x78, 0xd2, 0x34, 0x5a, 0x96, 0xb6, 0x41, 0xe5, 0x44, 0xd4, 0xba, + 0xd9, 0x34, 0x5a, 0x54, 0x9c, 0x56, 0x40, 0x37, 0x00, 0x45, 0x64, 0xb3, 0x55, 0x37, 0xbe, 0xb0, + 0xad, 0x97, 0xc7, 0x86, 0x56, 0x44, 0xb7, 0xe1, 0x66, 0x44, 0x8f, 0xef, 0x53, 0x69, 0x1a, 0x9a, + 0x82, 0x34, 0x28, 0x45, 0x93, 0x56, 0xfb, 0xf8, 0x99, 0x06, 0x71, 0xe9, 0xb8, 0xfd, 0x39, 0x36, + 0x6a, 0x6d, 0x5c, 0xd7, 0xd4, 0x38, 0xf9, 0x85, 0x51, 0xb3, 0xda, 0xd8, 0x36, 0xeb, 0x5a, 0x89, + 0x82, 0x8f, 0xc8, 0x1d, 0xa3, 0x82, 0x6b, 0x47, 0x36, 0x36, 0x3a, 0x27, 0x0d, 0x4b, 0xdb, 0xa4, + 0x26, 0x38, 0x30, 0x1b, 0x06, 0xd3, 0xe8, 0xa0, 0x7d, 0xd2, 0xaa, 0x6b, 0x5b, 0x68, 0x1b, 0xd4, + 0xa6, 0x61, 0x55, 0x22, 0x9b, 0x6c, 0xd3, 0xfd, 0x6b, 0x95, 0xda, 0x91, 0x11, 0x51, 0x34, 0x54, + 0x86, 0xdd, 0x5a, 0xa5, 0x45, 0x99, 0x6a, 0xd8, 0xa8, 0x58, 0x86, 0x7d, 0xd0, 0x6e, 0xd4, 0x0d, + 0xac, 0xed, 0x50, 0x05, 0x53, 0x33, 0x66, 0xc3, 0xd0, 0x50, 0x8c, 0xa3, 0x6e, 0x34, 0x8c, 0x19, + 0xc7, 0xb5, 0x18, 0x47, 0x34, 0x43, 0x39, 0x76, 0xa9, 0x32, 0xd5, 0x13, 0xb3, 0x51, 0x17, 0x86, + 0xe2, 0x4e, 0xbb, 0x8e, 0x76, 0x60, 0x33, 0x52, 0xa6, 0xd5, 0x30, 0x3b, 0x96, 0x76, 0x03, 0xdd, + 0x84, 0x6b, 0x11, 0xa9, 0x69, 0x58, 0xd8, 0xac, 0x71, 0xab, 0xde, 0xa4, 0x6b, 0xdb, 0x27, 0x96, + 0xdd, 0x3e, 0xb0, 0x9b, 0x46, 0xb3, 0x8d, 0x5f, 0x6a, 0xe5, 0x07, 0x7f, 0x92, 0xa0, 0x18, 0x35, + 0x0c, 0xa8, 0x08, 0xb9, 0x56, 0xbb, 0x65, 0x68, 0x19, 0x3a, 0xaa, 0xb6, 0xdb, 0x0d, 0x4d, 0xa2, + 0x23, 0xb3, 0x65, 0x3d, 0xd1, 0xb2, 0x48, 0x81, 0x0d, 0xb3, 0x65, 0x7d, 0xf0, 0x48, 0x93, 0xc5, + 0xf0, 0xc3, 0x7d, 0x2d, 0x27, 0x86, 0x8f, 0x3e, 0xd2, 0x36, 0xe8, 0xf0, 0xa0, 0xd1, 0xae, 0x58, + 0x1a, 0x20, 0x80, 0x7c, 0xbd, 0x7d, 0x52, 0x6d, 0x18, 0x9a, 0x4a, 0xc7, 0x1d, 0x0b, 0x9b, 0xad, + 0x43, 0x6d, 0x97, 0x22, 0x10, 0x9e, 0xa8, 0x9a, 0xad, 0x0a, 0x7e, 0xa9, 0xd1, 0x93, 0x56, 0x12, + 0x24, 0xce, 0x4c, 0x1e, 0xd4, 0x60, 0x3b, 0x55, 0xe2, 0xa2, 0x3c, 0x64, 0x1b, 0x96, 0x96, 0x41, + 0x05, 0x90, 0x1b, 0x96, 0xa1, 0x49, 0x94, 0x60, 0x3c, 0xd7, 0xb2, 0xf4, 0xef, 0xa1, 0xa5, 0xc9, + 0x74, 0xe2, 0xd0, 0x32, 0xb4, 0x1c, 0x25, 0xb4, 0x0c, 0x6d, 0xe3, 0xc1, 0x13, 0xd8, 0x60, 0x65, + 0x13, 0x0d, 0x7c, 0xb3, 0xf5, 0xa2, 0xd2, 0x30, 0xeb, 0x5c, 0xaf, 0xe6, 0x49, 0xc7, 0xd2, 0x24, + 0x86, 0xea, 0xa8, 0x7d, 0xd2, 0xa0, 0x41, 0x5e, 0x82, 0x22, 0xa5, 0x52, 0xaf, 0x6b, 0xf2, 0x83, + 0x2f, 0x21, 0xcf, 0x8f, 0x12, 0x5d, 0x63, 0xb6, 0x3a, 0x06, 0xa6, 0x3b, 0x53, 0x8d, 0x98, 0x3f, + 0x04, 0x2f, 0x0b, 0x1c, 0x2d, 0x4b, 0x35, 0x4a, 0x06, 0x91, 0x4c, 0x77, 0x7c, 0x66, 0xbc, 0xdc, + 0xef, 0x18, 0x87, 0x5a, 0x8e, 0xca, 0xb6, 0xcc, 0xa6, 0xd1, 0x79, 0xd9, 0xaa, 0x69, 0x1b, 0xfb, + 0xdf, 0x6e, 0xc2, 0x66, 0xd3, 0x1d, 0x9c, 0x4d, 0x82, 0x0e, 0xf1, 0xcf, 0xdc, 0x2e, 0x41, 0xbf, + 0x00, 0xad, 0xe6, 0x13, 0x27, 0x24, 0xb3, 0xae, 0x1f, 0x2d, 0xfc, 0x84, 0xb4, 0xb7, 0xa8, 0xef, + 0xd7, 0x33, 0xe8, 0x00, 0x36, 0x8f, 0x9c, 0x20, 0xc6, 0x7d, 0x3b, 0x55, 0xab, 0xc7, 0x2f, 0x92, + 0xbd, 0x1b, 0x73, 0x55, 0x1d, 0x7f, 0xd9, 0xca, 0x20, 0x13, 0x50, 0x9d, 0x04, 0x5d, 0xdf, 0x3d, + 0x25, 0xab, 0x0a, 0x5b, 0x88, 0x53, 0xcf, 0xa0, 0xe7, 0xd4, 0x81, 0x93, 0x51, 0xb8, 0xaa, 0x9c, + 0x77, 0x96, 0x4c, 0x4e, 0x9f, 0xc0, 0x32, 0xe8, 0x97, 0xb0, 0xdd, 0x79, 0x4d, 0x7f, 0x46, 0x73, + 0x41, 0xca, 0x4a, 0xe2, 0x89, 0x6c, 0xa9, 0xac, 0xe8, 0x7b, 0xab, 0x9e, 0x41, 0xc7, 0x80, 0x92, + 0xb2, 0xd8, 0x33, 0xcb, 0xa5, 0x08, 0x97, 0x4d, 0xb2, 0x67, 0x95, 0x0c, 0xaa, 0xc3, 0x56, 0xdd, + 0xf7, 0xc6, 0xab, 0xea, 0xbb, 0xc4, 0x93, 0x9f, 0x80, 0xca, 0x43, 0x81, 0x3d, 0xe8, 0xa1, 0x64, + 0x1d, 0x3c, 0x7b, 0xe4, 0x5b, 0xc6, 0x5e, 0x83, 0xcd, 0xc8, 0x81, 0x6f, 0x11, 0xb0, 0x6c, 0x42, + 0xcf, 0xa0, 0xa7, 0xa0, 0x50, 0x4d, 0xbe, 0x1b, 0x02, 0x03, 0xb6, 0xb9, 0x02, 0xd3, 0x0f, 0x92, + 0x29, 0x3b, 0x24, 0xbf, 0x7a, 0x2e, 0x17, 0x53, 0x3a, 0x72, 0x82, 0x15, 0x65, 0x2c, 0x0f, 0xe8, + 0x67, 0xb0, 0x45, 0xdd, 0x3c, 0x5d, 0x1f, 0x5c, 0xee, 0x94, 0xbd, 0xc5, 0xbb, 0x88, 0x98, 0xa1, + 0xc6, 0xf5, 0xbd, 0xf1, 0xd5, 0x14, 0xfb, 0x18, 0xf2, 0xbc, 0x00, 0x47, 0xe5, 0x94, 0x65, 0xa7, + 0xdf, 0xca, 0x52, 0xfa, 0x4c, 0x3f, 0x8c, 0x32, 0xb3, 0x6c, 0x4e, 0x5f, 0xef, 0xaa, 0x17, 0x66, + 0x3d, 0x05, 0x21, 0xf9, 0xf8, 0xb6, 0xb7, 0xf8, 0x83, 0x80, 0x9e, 0x41, 0x47, 0xb4, 0xfd, 0x9b, + 0x3d, 0x02, 0xa2, 0xef, 0xa5, 0xba, 0x8f, 0xd4, 0xfb, 0xe0, 0x25, 0x80, 0x3e, 0x85, 0x3c, 0x2f, + 0x65, 0xd1, 0xd2, 0xef, 0x31, 0x7b, 0xc9, 0x99, 0xd8, 0x07, 0x0f, 0x76, 0x0e, 0xb7, 0x53, 0xdf, + 0x85, 0xd0, 0xbb, 0x0b, 0x04, 0x25, 0xbf, 0x1a, 0x5d, 0x2a, 0xf1, 0x31, 0xc8, 0xb5, 0x61, 0x6f, + 0x49, 0x66, 0x48, 0x81, 0x8c, 0x7d, 0x2f, 0xc8, 0xa0, 0x0a, 0xc0, 0xec, 0x31, 0x17, 0x25, 0x8b, + 0xeb, 0xd4, 0x2b, 0xef, 0x32, 0xe7, 0x1e, 0xc2, 0xce, 0xb1, 0x4f, 0x06, 0x9e, 0xd3, 0xbb, 0x62, + 0x1a, 0x78, 0x0c, 0x1b, 0xec, 0xc5, 0x3b, 0x75, 0xfc, 0x66, 0xaf, 0xe0, 0xcb, 0x18, 0x9f, 0xb2, + 0x0f, 0x05, 0x63, 0xa7, 0x1b, 0xa2, 0x5b, 0xf3, 0xef, 0x35, 0xe2, 0xf9, 0x7b, 0x19, 0x73, 0x15, + 0x8a, 0xc2, 0x6f, 0x55, 0xb4, 0xb7, 0xcc, 0x9d, 0xc7, 0xd5, 0xcb, 0xcc, 0x7f, 0x9a, 0x67, 0xff, + 0xc0, 0xf3, 0xe1, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x32, 0x13, 0xfb, 0xba, 0xd0, 0x23, 0x00, + 0x00, +} diff --git a/pulsar/client-go/pb/suvlim.proto b/pulsar/client-go/pb/suvlim.proto new file mode 100644 index 0000000000..d17e511693 --- /dev/null +++ b/pulsar/client-go/pb/suvlim.proto @@ -0,0 +1,716 @@ +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; +} + +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; +} + +enum SyncType { + READ = 0; + WRITE = 1; +} +message TimeSyncMsg{ + int64 peer_Id = 1; + int64 Timestamp = 2; + SyncType sync_type = 3; +} + +message SegmentRecord { + int64 uid = 1; + repeated int64 segment_id = 2; +} + +message Key2SegMsg { + int64 client_id = 1; + SegmentRecord records = 2; +} diff --git a/writer/client-go/go_client.go b/writer/client-go/go_client.go new file mode 100644 index 0000000000..d6cfed861f --- /dev/null +++ b/writer/client-go/go_client.go @@ -0,0 +1,214 @@ +package client_go + +import ( + "context" + "github.com/apache/pulsar/pulsar-client-go/pulsar" + "github.com/golang/protobuf/proto" + "log" + "suvlim/pulsar/client-go/pb" + "suvlim/pulsar/client-go/schema" + "sync" +) + +var ( + SyncEofSchema = "{\"type\":\"record\",\"name\":\"suvlim\",\"namespace\":\"pulsar\",\"fields\":[" + + "{\"name\":\"MsgType\",\"type\":\"OpType\"}," + + "]}" +) + +type MessageClient struct { + + //message channel + insertOrDeleteChan chan *pb.InsertOrDeleteMsg + searchChan chan *pb.SearchMsg + timeSyncChan chan *pb.TimeSyncMsg + key2SegChan chan *pb.Key2SegMsg + + // pulsar + client pulsar.Client + key2segProducer pulsar.Producer + writeSyncProducer pulsar.Producer + insertOrDeleteConsumer pulsar.Consumer + searchConsumer pulsar.Consumer + timeSyncConsumer pulsar.Consumer + + // batch messages + InsertOrDeleteMsg []*pb.InsertOrDeleteMsg + SearchMsg []*pb.SearchMsg + timeSyncMsg []*pb.TimeSyncMsg + key2segMsg []*pb.Key2SegMsg +} + +func (mc *MessageClient)ReceiveInsertOrDeleteMsg() { + for { + insetOrDeleteMsg := pb.InsertOrDeleteMsg{} + msg, err := mc.insertOrDeleteConsumer.Receive(context.Background()) + err = msg.GetValue(&insetOrDeleteMsg) + if err != nil { + log.Fatal(err) + } + mc.insertOrDeleteChan <- &insetOrDeleteMsg + } +} + +func (mc *MessageClient)ReceiveSearchMsg() { + for { + searchMsg := pb.SearchMsg{} + msg, err := mc.insertOrDeleteConsumer.Receive(context.Background()) + err = msg.GetValue(&searchMsg) + if err != nil { + log.Fatal(err) + } + mc.searchChan <- &searchMsg + } +} + +func (mc *MessageClient)ReceiveTimeSyncMsg() { + for { + timeSyncMsg := pb.TimeSyncMsg{} + msg, err := mc.insertOrDeleteConsumer.Receive(context.Background()) + err = msg.GetValue(&timeSyncMsg) + if err != nil { + log.Fatal(err) + } + mc.timeSyncChan <- &timeSyncMsg + } +} + +func (mc *MessageClient) ReceiveMessage() { + go mc.ReceiveInsertOrDeleteMsg() + go mc.ReceiveSearchMsg() + go mc.ReceiveTimeSyncMsg() +} + +func (mc *MessageClient) CreatProducer(opType pb.OpType, topicName string) pulsar.Producer{ + producer, err := mc.client.CreateProducer(pulsar.ProducerOptions{ + Topic: topicName, + }) + defer producer.Close() + if err != nil { + log.Fatal(err) + } + proto.Marshal() + return producer +} + +func (mc *MessageClient) CreateConsumer(schemaDef string, topics []string) pulsar.Consumer { + originMsgSchema := pulsar.NewProtoSchema(schemaDef, nil) + consumer, err := mc.client.SubscribeWithSchema(pulsar.ConsumerOptions{ + Topics: topics, + SubscriptionName: "multi-topic-sub", + }, originMsgSchema) + defer consumer.Close() + if err != nil { + log.Fatal(err) + } + return consumer +} + +func (mc *MessageClient) CreateClient(url string) pulsar.Client { + // create client + client, err := pulsar.NewClient(pulsar.ClientOptions{ + URL: url, + }) + defer client.Close() + if err != nil { + log.Fatal(err) + } + return client +} + +func (mc *MessageClient) InitClient(url string, topics []string, consumerMsgSchema string) { + //create client + mc.client = mc.CreateClient(url) + + //create producer + for topicIndex := range topics { + if topics[topicIndex] == "insert" { + mc.key2segProducer = mc.CreatProducer(SyncEofSchema, "insert") + } + if topics[topicIndex] == "delete" { + mc.syncDeleteProducer = mc.CreatProducer(SyncEofSchema, "delete") + } + if topics[topicIndex] == "key2seg" { + mc.syncInsertProducer = mc.CreatProducer(SyncEofSchema, "key2seg") + } + + } + mc.syncInsertProducer = mc.CreatProducer(SyncEofSchema, "insert") + mc.syncDeleteProducer = mc.CreatProducer(SyncEofSchema, "delete") + mc.key2segProducer = mc.CreatProducer(SyncEofSchema, "key2seg") + + //create consumer + mc.consumer = mc.CreateConsumer(consumerMsgSchema, topics) + + // init channel + mc.insertChan = make(chan *schema.InsertMsg, 1000) + mc.deleteChan = make(chan *schema.DeleteMsg, 1000) + mc.searchChan = make(chan *schema.SearchMsg, 1000) + mc.timeSyncChan = make(chan *schema.TimeSyncMsg, 1000) + mc.key2SegChan = make(chan *schema.Key2SegMsg, 1000) +} + +type JobType int +const ( + OpInQueryNode JobType = 0 + OpInWriteNode JobType = 1 +) + +func (mc *MessageClient) PrepareMsg(opType schema.OpType, msgLen int) { + switch opType { + case schema.Insert: + for i := 0; i < msgLen; i++ { + msg := <- mc.insertChan + mc.InsertMsg[i] = msg + } + case schema.Delete: + for i := 0; i < msgLen; i++ { + msg := <- mc.deleteChan + mc.DeleteMsg[i] = msg + } + case schema.Search: + for i := 0; i < msgLen; i++ { + msg := <-mc.searchChan + mc.SearchMsg[i] = msg + } + case schema.TimeSync: + for i := 0; i < msgLen; i++ { + msg := <- mc.timeSyncChan + mc.timeMsg[i] = msg + } + case schema.Key2Seg: + for i := 0; i < msgLen; i++ { + msg := <-mc.key2SegChan + mc.key2segMsg[i] = msg + } + } +} + +func (mc *MessageClient) PrepareBatchMsg(jobType JobType) { + // assume the channel not full + mc.InsertMsg = make([]*schema.InsertMsg, 1000) + mc.DeleteMsg = make([]*schema.DeleteMsg, 1000) + mc.SearchMsg = make([]*schema.SearchMsg, 1000) + mc.timeMsg = make([]*schema.TimeSyncMsg, 1000) + mc.key2segMsg = make([]*schema.Key2SegMsg, 1000) + + // ensure all messages before time in timeSyncTopic have been push into channel + + // get the length of every channel + insertLen := len(mc.insertChan) + deleteLen := len(mc.deleteChan) + searchLen := len(mc.searchChan) + timeLen := len(mc.timeSyncChan) + key2segLen := len(mc.key2SegChan) + + // get message from channel to slice + mc.PrepareMsg(schema.Insert, insertLen) + mc.PrepareMsg(schema.Delete, deleteLen) + mc.PrepareMsg(schema.TimeSync, timeLen) + if jobType == OpInQueryNode { + mc.PrepareMsg(schema.Key2Seg, key2segLen) + mc.PrepareMsg(schema.Search, searchLen) + } +} diff --git a/writer/client-go/pb/build.sh b/writer/client-go/pb/build.sh new file mode 100755 index 0000000000..8fab1ca6be --- /dev/null +++ b/writer/client-go/pb/build.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +pkg=pb +protoc --go_out=import_path=${pkg}:. suvlim.proto \ No newline at end of file diff --git a/writer/client-go/pb/milvus.proto b/writer/client-go/pb/milvus.proto new file mode 100644 index 0000000000..6f58ae1fae --- /dev/null +++ b/writer/client-go/pb/milvus.proto @@ -0,0 +1,744 @@ +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/pulsar/client-go/pb/pulsar.pb.go b/writer/client-go/pb/pulsar.pb.go similarity index 100% rename from pulsar/client-go/pb/pulsar.pb.go rename to writer/client-go/pb/pulsar.pb.go diff --git a/pulsar/client-go/pb/pulsar.proto b/writer/client-go/pb/pulsar.proto similarity index 100% rename from pulsar/client-go/pb/pulsar.proto rename to writer/client-go/pb/pulsar.proto diff --git a/writer/client-go/pb/suvlim.pb.go b/writer/client-go/pb/suvlim.pb.go new file mode 100644 index 0000000000..6981008f98 --- /dev/null +++ b/writer/client-go/pb/suvlim.pb.go @@ -0,0 +1,2376 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: suvlim.proto + +/* +Package pb is a generated protocol buffer package. + +It is generated from these files: + suvlim.proto + +It has these top-level messages: + Status + KeyValuePair + CollectionName + CollectionNameList + FieldName + Mapping + MappingList + PartitionParam + PartitionList + VectorRowRecord + EntityIds + VectorRecord + VectorParam + FieldMeta + Schema + RowData + InsertParam + SearchParam + SearchInSegmentParam + Entities + QueryResult + StringReply + BoolReply + CollectionRowCount + Command + IndexParam + FlushParam + CompactParam + DeleteByIDParam + CollectionInfo + GetEntityIDsParam + EntityIdentity + VectorFieldParam + FieldType + FieldParam + VectorFieldRecord + TermQuery + CompareExpr + RangeQuery + VectorQuery + BooleanQuery + GeneralQuery + SearchParamPB + InsertOrDeleteMsg + SearchMsg + TimeSyncMsg + SegmentRecord + Key2SegMsg +*/ +package pb + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +type ErrorCode int32 + +const ( + ErrorCode_SUCCESS ErrorCode = 0 + ErrorCode_UNEXPECTED_ERROR ErrorCode = 1 + ErrorCode_CONNECT_FAILED ErrorCode = 2 + ErrorCode_PERMISSION_DENIED ErrorCode = 3 + ErrorCode_COLLECTION_NOT_EXISTS ErrorCode = 4 + ErrorCode_ILLEGAL_ARGUMENT ErrorCode = 5 + ErrorCode_ILLEGAL_DIMENSION ErrorCode = 7 + ErrorCode_ILLEGAL_INDEX_TYPE ErrorCode = 8 + ErrorCode_ILLEGAL_COLLECTION_NAME ErrorCode = 9 + ErrorCode_ILLEGAL_TOPK ErrorCode = 10 + ErrorCode_ILLEGAL_ROWRECORD ErrorCode = 11 + ErrorCode_ILLEGAL_VECTOR_ID ErrorCode = 12 + ErrorCode_ILLEGAL_SEARCH_RESULT ErrorCode = 13 + ErrorCode_FILE_NOT_FOUND ErrorCode = 14 + ErrorCode_META_FAILED ErrorCode = 15 + ErrorCode_CACHE_FAILED ErrorCode = 16 + ErrorCode_CANNOT_CREATE_FOLDER ErrorCode = 17 + ErrorCode_CANNOT_CREATE_FILE ErrorCode = 18 + ErrorCode_CANNOT_DELETE_FOLDER ErrorCode = 19 + ErrorCode_CANNOT_DELETE_FILE ErrorCode = 20 + ErrorCode_BUILD_INDEX_ERROR ErrorCode = 21 + ErrorCode_ILLEGAL_NLIST ErrorCode = 22 + ErrorCode_ILLEGAL_METRIC_TYPE ErrorCode = 23 + ErrorCode_OUT_OF_MEMORY ErrorCode = 24 +) + +var ErrorCode_name = map[int32]string{ + 0: "SUCCESS", + 1: "UNEXPECTED_ERROR", + 2: "CONNECT_FAILED", + 3: "PERMISSION_DENIED", + 4: "COLLECTION_NOT_EXISTS", + 5: "ILLEGAL_ARGUMENT", + 7: "ILLEGAL_DIMENSION", + 8: "ILLEGAL_INDEX_TYPE", + 9: "ILLEGAL_COLLECTION_NAME", + 10: "ILLEGAL_TOPK", + 11: "ILLEGAL_ROWRECORD", + 12: "ILLEGAL_VECTOR_ID", + 13: "ILLEGAL_SEARCH_RESULT", + 14: "FILE_NOT_FOUND", + 15: "META_FAILED", + 16: "CACHE_FAILED", + 17: "CANNOT_CREATE_FOLDER", + 18: "CANNOT_CREATE_FILE", + 19: "CANNOT_DELETE_FOLDER", + 20: "CANNOT_DELETE_FILE", + 21: "BUILD_INDEX_ERROR", + 22: "ILLEGAL_NLIST", + 23: "ILLEGAL_METRIC_TYPE", + 24: "OUT_OF_MEMORY", +} +var ErrorCode_value = map[string]int32{ + "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, +} + +func (x ErrorCode) String() string { + return proto.EnumName(ErrorCode_name, int32(x)) +} +func (ErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +// * +// @brief Field data type +type DataType int32 + +const ( + DataType_NONE DataType = 0 + DataType_BOOL DataType = 1 + DataType_INT8 DataType = 2 + DataType_INT16 DataType = 3 + DataType_INT32 DataType = 4 + DataType_INT64 DataType = 5 + DataType_FLOAT DataType = 10 + DataType_DOUBLE DataType = 11 + DataType_STRING DataType = 20 + DataType_VECTOR_BINARY DataType = 100 + DataType_VECTOR_FLOAT DataType = 101 +) + +var DataType_name = map[int32]string{ + 0: "NONE", + 1: "BOOL", + 2: "INT8", + 3: "INT16", + 4: "INT32", + 5: "INT64", + 10: "FLOAT", + 11: "DOUBLE", + 20: "STRING", + 100: "VECTOR_BINARY", + 101: "VECTOR_FLOAT", +} +var DataType_value = map[string]int32{ + "NONE": 0, + "BOOL": 1, + "INT8": 2, + "INT16": 3, + "INT32": 4, + "INT64": 5, + "FLOAT": 10, + "DOUBLE": 11, + "STRING": 20, + "VECTOR_BINARY": 100, + "VECTOR_FLOAT": 101, +} + +func (x DataType) String() string { + return proto.EnumName(DataType_name, int32(x)) +} +func (DataType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +type CompareOperator int32 + +const ( + CompareOperator_LT CompareOperator = 0 + CompareOperator_LTE CompareOperator = 1 + CompareOperator_EQ CompareOperator = 2 + CompareOperator_GT CompareOperator = 3 + CompareOperator_GTE CompareOperator = 4 + CompareOperator_NE CompareOperator = 5 +) + +var CompareOperator_name = map[int32]string{ + 0: "LT", + 1: "LTE", + 2: "EQ", + 3: "GT", + 4: "GTE", + 5: "NE", +} +var CompareOperator_value = map[string]int32{ + "LT": 0, + "LTE": 1, + "EQ": 2, + "GT": 3, + "GTE": 4, + "NE": 5, +} + +func (x CompareOperator) String() string { + return proto.EnumName(CompareOperator_name, int32(x)) +} +func (CompareOperator) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } + +type Occur int32 + +const ( + Occur_INVALID Occur = 0 + Occur_MUST Occur = 1 + Occur_SHOULD Occur = 2 + Occur_MUST_NOT Occur = 3 +) + +var Occur_name = map[int32]string{ + 0: "INVALID", + 1: "MUST", + 2: "SHOULD", + 3: "MUST_NOT", +} +var Occur_value = map[string]int32{ + "INVALID": 0, + "MUST": 1, + "SHOULD": 2, + "MUST_NOT": 3, +} + +func (x Occur) String() string { + return proto.EnumName(Occur_name, int32(x)) +} +func (Occur) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } + +// //////////////////pulsar////////////////////////////////////// +type OpType int32 + +const ( + OpType_INSERT OpType = 0 + OpType_DELETE OpType = 1 + OpType_SEARCH OpType = 2 + OpType_SEARCH_RESULT OpType = 3 + OpType_KEY2SEG OpType = 4 + OpType_TIMESYNC OpType = 5 +) + +var OpType_name = map[int32]string{ + 0: "INSERT", + 1: "DELETE", + 2: "SEARCH", + 3: "SEARCH_RESULT", + 4: "KEY2SEG", + 5: "TIMESYNC", +} +var OpType_value = map[string]int32{ + "INSERT": 0, + "DELETE": 1, + "SEARCH": 2, + "SEARCH_RESULT": 3, + "KEY2SEG": 4, + "TIMESYNC": 5, +} + +func (x OpType) String() string { + return proto.EnumName(OpType_name, int32(x)) +} +func (OpType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } + +type Status struct { + ErrorCode ErrorCode `protobuf:"varint,1,opt,name=error_code,json=errorCode,enum=suvlim.grpc.ErrorCode" json:"error_code,omitempty"` + Reason string `protobuf:"bytes,2,opt,name=reason" json:"reason,omitempty"` +} + +func (m *Status) Reset() { *m = Status{} } +func (m *Status) String() string { return proto.CompactTextString(m) } +func (*Status) ProtoMessage() {} +func (*Status) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +func (m *Status) GetErrorCode() ErrorCode { + if m != nil { + return m.ErrorCode + } + return ErrorCode_SUCCESS +} + +func (m *Status) GetReason() string { + if m != nil { + return m.Reason + } + return "" +} + +// * +// @brief General usage +type KeyValuePair struct { + Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` +} + +func (m *KeyValuePair) Reset() { *m = KeyValuePair{} } +func (m *KeyValuePair) String() string { return proto.CompactTextString(m) } +func (*KeyValuePair) ProtoMessage() {} +func (*KeyValuePair) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +func (m *KeyValuePair) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *KeyValuePair) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +// * +// @brief Collection name +type CollectionName struct { + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` +} + +func (m *CollectionName) Reset() { *m = CollectionName{} } +func (m *CollectionName) String() string { return proto.CompactTextString(m) } +func (*CollectionName) ProtoMessage() {} +func (*CollectionName) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } + +func (m *CollectionName) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +// * +// @brief Collection name list +type CollectionNameList struct { + Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` + CollectionNames []string `protobuf:"bytes,2,rep,name=collection_names,json=collectionNames" json:"collection_names,omitempty"` +} + +func (m *CollectionNameList) Reset() { *m = CollectionNameList{} } +func (m *CollectionNameList) String() string { return proto.CompactTextString(m) } +func (*CollectionNameList) ProtoMessage() {} +func (*CollectionNameList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } + +func (m *CollectionNameList) GetStatus() *Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *CollectionNameList) GetCollectionNames() []string { + if m != nil { + return m.CollectionNames + } + return nil +} + +// * +// @brief Field name +type FieldName struct { + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + FieldName string `protobuf:"bytes,2,opt,name=field_name,json=fieldName" json:"field_name,omitempty"` +} + +func (m *FieldName) Reset() { *m = FieldName{} } +func (m *FieldName) String() string { return proto.CompactTextString(m) } +func (*FieldName) ProtoMessage() {} +func (*FieldName) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } + +func (m *FieldName) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *FieldName) GetFieldName() string { + if m != nil { + return m.FieldName + } + return "" +} + +// * +// @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 +type Mapping struct { + Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` + CollectionName string `protobuf:"bytes,2,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + Fields []*FieldParam `protobuf:"bytes,3,rep,name=fields" json:"fields,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,4,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` +} + +func (m *Mapping) Reset() { *m = Mapping{} } +func (m *Mapping) String() string { return proto.CompactTextString(m) } +func (*Mapping) ProtoMessage() {} +func (*Mapping) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } + +func (m *Mapping) GetStatus() *Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *Mapping) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *Mapping) GetFields() []*FieldParam { + if m != nil { + return m.Fields + } + return nil +} + +func (m *Mapping) GetExtraParams() []*KeyValuePair { + if m != nil { + return m.ExtraParams + } + return nil +} + +// * +// @brief Collection mapping list +type MappingList struct { + Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` + MappingList []*Mapping `protobuf:"bytes,2,rep,name=mapping_list,json=mappingList" json:"mapping_list,omitempty"` +} + +func (m *MappingList) Reset() { *m = MappingList{} } +func (m *MappingList) String() string { return proto.CompactTextString(m) } +func (*MappingList) ProtoMessage() {} +func (*MappingList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } + +func (m *MappingList) GetStatus() *Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *MappingList) GetMappingList() []*Mapping { + if m != nil { + return m.MappingList + } + return nil +} + +// * +// @brief Parameters of partition +type PartitionParam struct { + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + Tag string `protobuf:"bytes,2,opt,name=tag" json:"tag,omitempty"` +} + +func (m *PartitionParam) Reset() { *m = PartitionParam{} } +func (m *PartitionParam) String() string { return proto.CompactTextString(m) } +func (*PartitionParam) ProtoMessage() {} +func (*PartitionParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } + +func (m *PartitionParam) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *PartitionParam) GetTag() string { + if m != nil { + return m.Tag + } + return "" +} + +// * +// @brief Partition list +type PartitionList struct { + Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` + PartitionTagArray []string `protobuf:"bytes,2,rep,name=partition_tag_array,json=partitionTagArray" json:"partition_tag_array,omitempty"` +} + +func (m *PartitionList) Reset() { *m = PartitionList{} } +func (m *PartitionList) String() string { return proto.CompactTextString(m) } +func (*PartitionList) ProtoMessage() {} +func (*PartitionList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } + +func (m *PartitionList) GetStatus() *Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *PartitionList) GetPartitionTagArray() []string { + if m != nil { + return m.PartitionTagArray + } + return nil +} + +// * +// @brief Vector row record +type VectorRowRecord struct { + FloatData []float32 `protobuf:"fixed32,1,rep,packed,name=float_data,json=floatData" json:"float_data,omitempty"` + BinaryData []byte `protobuf:"bytes,2,opt,name=binary_data,json=binaryData,proto3" json:"binary_data,omitempty"` +} + +func (m *VectorRowRecord) Reset() { *m = VectorRowRecord{} } +func (m *VectorRowRecord) String() string { return proto.CompactTextString(m) } +func (*VectorRowRecord) ProtoMessage() {} +func (*VectorRowRecord) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } + +func (m *VectorRowRecord) GetFloatData() []float32 { + if m != nil { + return m.FloatData + } + return nil +} + +func (m *VectorRowRecord) GetBinaryData() []byte { + if m != nil { + return m.BinaryData + } + return nil +} + +type EntityIds struct { + Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` + EntityIdArray []int64 `protobuf:"varint,2,rep,packed,name=entity_id_array,json=entityIdArray" json:"entity_id_array,omitempty"` +} + +func (m *EntityIds) Reset() { *m = EntityIds{} } +func (m *EntityIds) String() string { return proto.CompactTextString(m) } +func (*EntityIds) ProtoMessage() {} +func (*EntityIds) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } + +func (m *EntityIds) GetStatus() *Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *EntityIds) GetEntityIdArray() []int64 { + if m != nil { + return m.EntityIdArray + } + return nil +} + +type VectorRecord struct { + Records []*VectorRowRecord `protobuf:"bytes,1,rep,name=records" json:"records,omitempty"` +} + +func (m *VectorRecord) Reset() { *m = VectorRecord{} } +func (m *VectorRecord) String() string { return proto.CompactTextString(m) } +func (*VectorRecord) ProtoMessage() {} +func (*VectorRecord) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } + +func (m *VectorRecord) GetRecords() []*VectorRowRecord { + if m != nil { + return m.Records + } + return nil +} + +type VectorParam struct { + Json string `protobuf:"bytes,1,opt,name=json" json:"json,omitempty"` + RowRecord *VectorRecord `protobuf:"bytes,2,opt,name=row_record,json=rowRecord" json:"row_record,omitempty"` +} + +func (m *VectorParam) Reset() { *m = VectorParam{} } +func (m *VectorParam) String() string { return proto.CompactTextString(m) } +func (*VectorParam) ProtoMessage() {} +func (*VectorParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } + +func (m *VectorParam) GetJson() string { + if m != nil { + return m.Json + } + return "" +} + +func (m *VectorParam) GetRowRecord() *VectorRecord { + if m != nil { + return m.RowRecord + } + return nil +} + +// * +// @brief schema +type FieldMeta struct { + FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName" json:"field_name,omitempty"` + Type DataType `protobuf:"varint,2,opt,name=type,enum=suvlim.grpc.DataType" json:"type,omitempty"` + Dim int64 `protobuf:"varint,3,opt,name=dim" json:"dim,omitempty"` +} + +func (m *FieldMeta) Reset() { *m = FieldMeta{} } +func (m *FieldMeta) String() string { return proto.CompactTextString(m) } +func (*FieldMeta) ProtoMessage() {} +func (*FieldMeta) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } + +func (m *FieldMeta) GetFieldName() string { + if m != nil { + return m.FieldName + } + return "" +} + +func (m *FieldMeta) GetType() DataType { + if m != nil { + return m.Type + } + return DataType_NONE +} + +func (m *FieldMeta) GetDim() int64 { + if m != nil { + return m.Dim + } + return 0 +} + +type Schema struct { + FieldMetas []*FieldMeta `protobuf:"bytes,1,rep,name=field_metas,json=fieldMetas" json:"field_metas,omitempty"` +} + +func (m *Schema) Reset() { *m = Schema{} } +func (m *Schema) String() string { return proto.CompactTextString(m) } +func (*Schema) ProtoMessage() {} +func (*Schema) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } + +func (m *Schema) GetFieldMetas() []*FieldMeta { + if m != nil { + return m.FieldMetas + } + return nil +} + +type RowData struct { + Blob []byte `protobuf:"bytes,1,opt,name=blob,proto3" json:"blob,omitempty"` +} + +func (m *RowData) Reset() { *m = RowData{} } +func (m *RowData) String() string { return proto.CompactTextString(m) } +func (*RowData) ProtoMessage() {} +func (*RowData) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } + +func (m *RowData) GetBlob() []byte { + if m != nil { + return m.Blob + } + return nil +} + +// ////////////////////suvlim-proxy/////////////////////////////////// +type InsertParam struct { + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + Schema *Schema `protobuf:"bytes,2,opt,name=schema" json:"schema,omitempty"` + RowsData []*RowData `protobuf:"bytes,3,rep,name=rows_data,json=rowsData" json:"rows_data,omitempty"` + EntityIdArray []int64 `protobuf:"varint,4,rep,packed,name=entity_id_array,json=entityIdArray" json:"entity_id_array,omitempty"` + PartitionTag string `protobuf:"bytes,5,opt,name=partition_tag,json=partitionTag" json:"partition_tag,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,6,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` +} + +func (m *InsertParam) Reset() { *m = InsertParam{} } +func (m *InsertParam) String() string { return proto.CompactTextString(m) } +func (*InsertParam) ProtoMessage() {} +func (*InsertParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} } + +func (m *InsertParam) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *InsertParam) GetSchema() *Schema { + if m != nil { + return m.Schema + } + return nil +} + +func (m *InsertParam) GetRowsData() []*RowData { + if m != nil { + return m.RowsData + } + return nil +} + +func (m *InsertParam) GetEntityIdArray() []int64 { + if m != nil { + return m.EntityIdArray + } + return nil +} + +func (m *InsertParam) GetPartitionTag() string { + if m != nil { + return m.PartitionTag + } + return "" +} + +func (m *InsertParam) GetExtraParams() []*KeyValuePair { + if m != nil { + return m.ExtraParams + } + return nil +} + +type SearchParam struct { + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + VectorParam []*VectorParam `protobuf:"bytes,2,rep,name=vector_param,json=vectorParam" json:"vector_param,omitempty"` + Dsl string `protobuf:"bytes,3,opt,name=dsl" json:"dsl,omitempty"` + PartitionTag []string `protobuf:"bytes,4,rep,name=partition_tag,json=partitionTag" json:"partition_tag,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,5,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` +} + +func (m *SearchParam) Reset() { *m = SearchParam{} } +func (m *SearchParam) String() string { return proto.CompactTextString(m) } +func (*SearchParam) ProtoMessage() {} +func (*SearchParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} } + +func (m *SearchParam) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *SearchParam) GetVectorParam() []*VectorParam { + if m != nil { + return m.VectorParam + } + return nil +} + +func (m *SearchParam) GetDsl() string { + if m != nil { + return m.Dsl + } + return "" +} + +func (m *SearchParam) GetPartitionTag() []string { + if m != nil { + return m.PartitionTag + } + return nil +} + +func (m *SearchParam) GetExtraParams() []*KeyValuePair { + if m != nil { + return m.ExtraParams + } + return nil +} + +type SearchInSegmentParam struct { + FileIdArray []string `protobuf:"bytes,1,rep,name=file_id_array,json=fileIdArray" json:"file_id_array,omitempty"` + SearchParam *SearchParam `protobuf:"bytes,2,opt,name=search_param,json=searchParam" json:"search_param,omitempty"` +} + +func (m *SearchInSegmentParam) Reset() { *m = SearchInSegmentParam{} } +func (m *SearchInSegmentParam) String() string { return proto.CompactTextString(m) } +func (*SearchInSegmentParam) ProtoMessage() {} +func (*SearchInSegmentParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} } + +func (m *SearchInSegmentParam) GetFileIdArray() []string { + if m != nil { + return m.FileIdArray + } + return nil +} + +func (m *SearchInSegmentParam) GetSearchParam() *SearchParam { + if m != nil { + return m.SearchParam + } + return nil +} + +type Entities struct { + Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` + Ids []int64 `protobuf:"varint,2,rep,packed,name=ids" json:"ids,omitempty"` + ValidRow []bool `protobuf:"varint,3,rep,packed,name=valid_row,json=validRow" json:"valid_row,omitempty"` + RowsData []*RowData `protobuf:"bytes,4,rep,name=rows_data,json=rowsData" json:"rows_data,omitempty"` +} + +func (m *Entities) Reset() { *m = Entities{} } +func (m *Entities) String() string { return proto.CompactTextString(m) } +func (*Entities) ProtoMessage() {} +func (*Entities) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} } + +func (m *Entities) GetStatus() *Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *Entities) GetIds() []int64 { + if m != nil { + return m.Ids + } + return nil +} + +func (m *Entities) GetValidRow() []bool { + if m != nil { + return m.ValidRow + } + return nil +} + +func (m *Entities) GetRowsData() []*RowData { + if m != nil { + return m.RowsData + } + return nil +} + +// * +// @brief Query result +type QueryResult struct { + Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` + Entities *Entities `protobuf:"bytes,2,opt,name=entities" json:"entities,omitempty"` + RowNum int64 `protobuf:"varint,3,opt,name=row_num,json=rowNum" json:"row_num,omitempty"` + Scores []float32 `protobuf:"fixed32,4,rep,packed,name=scores" json:"scores,omitempty"` + Distances []float32 `protobuf:"fixed32,5,rep,packed,name=distances" json:"distances,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,6,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` +} + +func (m *QueryResult) Reset() { *m = QueryResult{} } +func (m *QueryResult) String() string { return proto.CompactTextString(m) } +func (*QueryResult) ProtoMessage() {} +func (*QueryResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} } + +func (m *QueryResult) GetStatus() *Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *QueryResult) GetEntities() *Entities { + if m != nil { + return m.Entities + } + return nil +} + +func (m *QueryResult) GetRowNum() int64 { + if m != nil { + return m.RowNum + } + return 0 +} + +func (m *QueryResult) GetScores() []float32 { + if m != nil { + return m.Scores + } + return nil +} + +func (m *QueryResult) GetDistances() []float32 { + if m != nil { + return m.Distances + } + return nil +} + +func (m *QueryResult) GetExtraParams() []*KeyValuePair { + if m != nil { + return m.ExtraParams + } + return nil +} + +// * +// @brief Server string Reply +type StringReply struct { + Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` + StringReply string `protobuf:"bytes,2,opt,name=string_reply,json=stringReply" json:"string_reply,omitempty"` +} + +func (m *StringReply) Reset() { *m = StringReply{} } +func (m *StringReply) String() string { return proto.CompactTextString(m) } +func (*StringReply) ProtoMessage() {} +func (*StringReply) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} } + +func (m *StringReply) GetStatus() *Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *StringReply) GetStringReply() string { + if m != nil { + return m.StringReply + } + return "" +} + +// * +// @brief Server bool Reply +type BoolReply struct { + Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` + BoolReply bool `protobuf:"varint,2,opt,name=bool_reply,json=boolReply" json:"bool_reply,omitempty"` +} + +func (m *BoolReply) Reset() { *m = BoolReply{} } +func (m *BoolReply) String() string { return proto.CompactTextString(m) } +func (*BoolReply) ProtoMessage() {} +func (*BoolReply) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} } + +func (m *BoolReply) GetStatus() *Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *BoolReply) GetBoolReply() bool { + if m != nil { + return m.BoolReply + } + return false +} + +// * +// @brief Return collection row count +type CollectionRowCount struct { + Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` + CollectionRowCount int64 `protobuf:"varint,2,opt,name=collection_row_count,json=collectionRowCount" json:"collection_row_count,omitempty"` +} + +func (m *CollectionRowCount) Reset() { *m = CollectionRowCount{} } +func (m *CollectionRowCount) String() string { return proto.CompactTextString(m) } +func (*CollectionRowCount) ProtoMessage() {} +func (*CollectionRowCount) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{23} } + +func (m *CollectionRowCount) GetStatus() *Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *CollectionRowCount) GetCollectionRowCount() int64 { + if m != nil { + return m.CollectionRowCount + } + return 0 +} + +// * +// @brief Server command parameters +type Command struct { + Cmd string `protobuf:"bytes,1,opt,name=cmd" json:"cmd,omitempty"` +} + +func (m *Command) Reset() { *m = Command{} } +func (m *Command) String() string { return proto.CompactTextString(m) } +func (*Command) ProtoMessage() {} +func (*Command) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{24} } + +func (m *Command) GetCmd() string { + if m != nil { + return m.Cmd + } + return "" +} + +// * +// @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 +type IndexParam struct { + Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` + CollectionName string `protobuf:"bytes,2,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + FieldName string `protobuf:"bytes,3,opt,name=field_name,json=fieldName" json:"field_name,omitempty"` + IndexName string `protobuf:"bytes,4,opt,name=index_name,json=indexName" json:"index_name,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,5,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` +} + +func (m *IndexParam) Reset() { *m = IndexParam{} } +func (m *IndexParam) String() string { return proto.CompactTextString(m) } +func (*IndexParam) ProtoMessage() {} +func (*IndexParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{25} } + +func (m *IndexParam) GetStatus() *Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *IndexParam) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *IndexParam) GetFieldName() string { + if m != nil { + return m.FieldName + } + return "" +} + +func (m *IndexParam) GetIndexName() string { + if m != nil { + return m.IndexName + } + return "" +} + +func (m *IndexParam) GetExtraParams() []*KeyValuePair { + if m != nil { + return m.ExtraParams + } + return nil +} + +// * +// @brief Parameters for flush action +type FlushParam struct { + CollectionNameArray []string `protobuf:"bytes,1,rep,name=collection_name_array,json=collectionNameArray" json:"collection_name_array,omitempty"` +} + +func (m *FlushParam) Reset() { *m = FlushParam{} } +func (m *FlushParam) String() string { return proto.CompactTextString(m) } +func (*FlushParam) ProtoMessage() {} +func (*FlushParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{26} } + +func (m *FlushParam) GetCollectionNameArray() []string { + if m != nil { + return m.CollectionNameArray + } + return nil +} + +// * +// @brief Parameters for flush action +type CompactParam struct { + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + Threshold float64 `protobuf:"fixed64,2,opt,name=threshold" json:"threshold,omitempty"` +} + +func (m *CompactParam) Reset() { *m = CompactParam{} } +func (m *CompactParam) String() string { return proto.CompactTextString(m) } +func (*CompactParam) ProtoMessage() {} +func (*CompactParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{27} } + +func (m *CompactParam) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *CompactParam) GetThreshold() float64 { + if m != nil { + return m.Threshold + } + return 0 +} + +// * +// @brief Parameters for deleting entities by id +type DeleteByIDParam struct { + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + IdArray []int64 `protobuf:"varint,2,rep,packed,name=id_array,json=idArray" json:"id_array,omitempty"` +} + +func (m *DeleteByIDParam) Reset() { *m = DeleteByIDParam{} } +func (m *DeleteByIDParam) String() string { return proto.CompactTextString(m) } +func (*DeleteByIDParam) ProtoMessage() {} +func (*DeleteByIDParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{28} } + +func (m *DeleteByIDParam) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *DeleteByIDParam) GetIdArray() []int64 { + if m != nil { + return m.IdArray + } + return nil +} + +// * +// @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, +// } +// ] +// } +// ] +// } +// ] +// } +type CollectionInfo struct { + Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` + JsonInfo string `protobuf:"bytes,2,opt,name=json_info,json=jsonInfo" json:"json_info,omitempty"` +} + +func (m *CollectionInfo) Reset() { *m = CollectionInfo{} } +func (m *CollectionInfo) String() string { return proto.CompactTextString(m) } +func (*CollectionInfo) ProtoMessage() {} +func (*CollectionInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{29} } + +func (m *CollectionInfo) GetStatus() *Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *CollectionInfo) GetJsonInfo() string { + if m != nil { + return m.JsonInfo + } + return "" +} + +// * +// @brief Parameters for returning entities id of a segment +type GetEntityIDsParam struct { + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + SegmentId int64 `protobuf:"varint,2,opt,name=segment_id,json=segmentId" json:"segment_id,omitempty"` +} + +func (m *GetEntityIDsParam) Reset() { *m = GetEntityIDsParam{} } +func (m *GetEntityIDsParam) String() string { return proto.CompactTextString(m) } +func (*GetEntityIDsParam) ProtoMessage() {} +func (*GetEntityIDsParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{30} } + +func (m *GetEntityIDsParam) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *GetEntityIDsParam) GetSegmentId() int64 { + if m != nil { + return m.SegmentId + } + return 0 +} + +// * +// @brief Entities identity +type EntityIdentity struct { + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + IdArray []int64 `protobuf:"varint,2,rep,packed,name=id_array,json=idArray" json:"id_array,omitempty"` + FieldNames []string `protobuf:"bytes,3,rep,name=field_names,json=fieldNames" json:"field_names,omitempty"` +} + +func (m *EntityIdentity) Reset() { *m = EntityIdentity{} } +func (m *EntityIdentity) String() string { return proto.CompactTextString(m) } +func (*EntityIdentity) ProtoMessage() {} +func (*EntityIdentity) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{31} } + +func (m *EntityIdentity) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *EntityIdentity) GetIdArray() []int64 { + if m != nil { + return m.IdArray + } + return nil +} + +func (m *EntityIdentity) GetFieldNames() []string { + if m != nil { + return m.FieldNames + } + return nil +} + +// * +// @brief Vector field parameters +type VectorFieldParam struct { + Dimension int64 `protobuf:"varint,1,opt,name=dimension" json:"dimension,omitempty"` +} + +func (m *VectorFieldParam) Reset() { *m = VectorFieldParam{} } +func (m *VectorFieldParam) String() string { return proto.CompactTextString(m) } +func (*VectorFieldParam) ProtoMessage() {} +func (*VectorFieldParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{32} } + +func (m *VectorFieldParam) GetDimension() int64 { + if m != nil { + return m.Dimension + } + return 0 +} + +// * +// @brief Field type +type FieldType struct { + // Types that are valid to be assigned to Value: + // *FieldType_DataType + // *FieldType_VectorParam + Value isFieldType_Value `protobuf_oneof:"value"` +} + +func (m *FieldType) Reset() { *m = FieldType{} } +func (m *FieldType) String() string { return proto.CompactTextString(m) } +func (*FieldType) ProtoMessage() {} +func (*FieldType) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{33} } + +type isFieldType_Value interface{ isFieldType_Value() } + +type FieldType_DataType struct { + DataType DataType `protobuf:"varint,1,opt,name=data_type,json=dataType,enum=suvlim.grpc.DataType,oneof"` +} +type FieldType_VectorParam struct { + VectorParam *VectorFieldParam `protobuf:"bytes,2,opt,name=vector_param,json=vectorParam,oneof"` +} + +func (*FieldType_DataType) isFieldType_Value() {} +func (*FieldType_VectorParam) isFieldType_Value() {} + +func (m *FieldType) GetValue() isFieldType_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *FieldType) GetDataType() DataType { + if x, ok := m.GetValue().(*FieldType_DataType); ok { + return x.DataType + } + return DataType_NONE +} + +func (m *FieldType) GetVectorParam() *VectorFieldParam { + if x, ok := m.GetValue().(*FieldType_VectorParam); ok { + return x.VectorParam + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*FieldType) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _FieldType_OneofMarshaler, _FieldType_OneofUnmarshaler, _FieldType_OneofSizer, []interface{}{ + (*FieldType_DataType)(nil), + (*FieldType_VectorParam)(nil), + } +} + +func _FieldType_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*FieldType) + // value + switch x := m.Value.(type) { + case *FieldType_DataType: + b.EncodeVarint(1<<3 | proto.WireVarint) + b.EncodeVarint(uint64(x.DataType)) + case *FieldType_VectorParam: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.VectorParam); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("FieldType.Value has unexpected type %T", x) + } + return nil +} + +func _FieldType_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*FieldType) + switch tag { + case 1: // value.data_type + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.Value = &FieldType_DataType{DataType(x)} + return true, err + case 2: // value.vector_param + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(VectorFieldParam) + err := b.DecodeMessage(msg) + m.Value = &FieldType_VectorParam{msg} + return true, err + default: + return false, nil + } +} + +func _FieldType_OneofSizer(msg proto.Message) (n int) { + m := msg.(*FieldType) + // value + switch x := m.Value.(type) { + case *FieldType_DataType: + n += proto.SizeVarint(1<<3 | proto.WireVarint) + n += proto.SizeVarint(uint64(x.DataType)) + case *FieldType_VectorParam: + s := proto.Size(x.VectorParam) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// * +// @brief Field parameters +type FieldParam struct { + Id uint64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` + Type DataType `protobuf:"varint,3,opt,name=type,enum=suvlim.grpc.DataType" json:"type,omitempty"` + IndexParams []*KeyValuePair `protobuf:"bytes,4,rep,name=index_params,json=indexParams" json:"index_params,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,5,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` +} + +func (m *FieldParam) Reset() { *m = FieldParam{} } +func (m *FieldParam) String() string { return proto.CompactTextString(m) } +func (*FieldParam) ProtoMessage() {} +func (*FieldParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{34} } + +func (m *FieldParam) GetId() uint64 { + if m != nil { + return m.Id + } + return 0 +} + +func (m *FieldParam) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *FieldParam) GetType() DataType { + if m != nil { + return m.Type + } + return DataType_NONE +} + +func (m *FieldParam) GetIndexParams() []*KeyValuePair { + if m != nil { + return m.IndexParams + } + return nil +} + +func (m *FieldParam) GetExtraParams() []*KeyValuePair { + if m != nil { + return m.ExtraParams + } + return nil +} + +// * +// @brief Vector field record +type VectorFieldRecord struct { + Value []*VectorRowRecord `protobuf:"bytes,1,rep,name=value" json:"value,omitempty"` +} + +func (m *VectorFieldRecord) Reset() { *m = VectorFieldRecord{} } +func (m *VectorFieldRecord) String() string { return proto.CompactTextString(m) } +func (*VectorFieldRecord) ProtoMessage() {} +func (*VectorFieldRecord) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{35} } + +func (m *VectorFieldRecord) GetValue() []*VectorRowRecord { + if m != nil { + return m.Value + } + return nil +} + +type TermQuery struct { + FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName" json:"field_name,omitempty"` + IntValue []int64 `protobuf:"varint,2,rep,packed,name=int_value,json=intValue" json:"int_value,omitempty"` + DoubleValue []float64 `protobuf:"fixed64,3,rep,packed,name=double_value,json=doubleValue" json:"double_value,omitempty"` + ValueNum int64 `protobuf:"varint,4,opt,name=value_num,json=valueNum" json:"value_num,omitempty"` + Boost float32 `protobuf:"fixed32,5,opt,name=boost" json:"boost,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,6,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` +} + +func (m *TermQuery) Reset() { *m = TermQuery{} } +func (m *TermQuery) String() string { return proto.CompactTextString(m) } +func (*TermQuery) ProtoMessage() {} +func (*TermQuery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{36} } + +func (m *TermQuery) GetFieldName() string { + if m != nil { + return m.FieldName + } + return "" +} + +func (m *TermQuery) GetIntValue() []int64 { + if m != nil { + return m.IntValue + } + return nil +} + +func (m *TermQuery) GetDoubleValue() []float64 { + if m != nil { + return m.DoubleValue + } + return nil +} + +func (m *TermQuery) GetValueNum() int64 { + if m != nil { + return m.ValueNum + } + return 0 +} + +func (m *TermQuery) GetBoost() float32 { + if m != nil { + return m.Boost + } + return 0 +} + +func (m *TermQuery) GetExtraParams() []*KeyValuePair { + if m != nil { + return m.ExtraParams + } + return nil +} + +type CompareExpr struct { + Operator CompareOperator `protobuf:"varint,1,opt,name=operator,enum=suvlim.grpc.CompareOperator" json:"operator,omitempty"` + Operand string `protobuf:"bytes,2,opt,name=operand" json:"operand,omitempty"` +} + +func (m *CompareExpr) Reset() { *m = CompareExpr{} } +func (m *CompareExpr) String() string { return proto.CompactTextString(m) } +func (*CompareExpr) ProtoMessage() {} +func (*CompareExpr) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{37} } + +func (m *CompareExpr) GetOperator() CompareOperator { + if m != nil { + return m.Operator + } + return CompareOperator_LT +} + +func (m *CompareExpr) GetOperand() string { + if m != nil { + return m.Operand + } + return "" +} + +type RangeQuery struct { + FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName" json:"field_name,omitempty"` + Operand []*CompareExpr `protobuf:"bytes,2,rep,name=operand" json:"operand,omitempty"` + Boost float32 `protobuf:"fixed32,3,opt,name=boost" json:"boost,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,4,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` +} + +func (m *RangeQuery) Reset() { *m = RangeQuery{} } +func (m *RangeQuery) String() string { return proto.CompactTextString(m) } +func (*RangeQuery) ProtoMessage() {} +func (*RangeQuery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{38} } + +func (m *RangeQuery) GetFieldName() string { + if m != nil { + return m.FieldName + } + return "" +} + +func (m *RangeQuery) GetOperand() []*CompareExpr { + if m != nil { + return m.Operand + } + return nil +} + +func (m *RangeQuery) GetBoost() float32 { + if m != nil { + return m.Boost + } + return 0 +} + +func (m *RangeQuery) GetExtraParams() []*KeyValuePair { + if m != nil { + return m.ExtraParams + } + return nil +} + +type VectorQuery struct { + FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName" json:"field_name,omitempty"` + QueryBoost float32 `protobuf:"fixed32,2,opt,name=query_boost,json=queryBoost" json:"query_boost,omitempty"` + Records []*VectorRowRecord `protobuf:"bytes,3,rep,name=records" json:"records,omitempty"` + Topk int64 `protobuf:"varint,4,opt,name=topk" json:"topk,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,5,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` +} + +func (m *VectorQuery) Reset() { *m = VectorQuery{} } +func (m *VectorQuery) String() string { return proto.CompactTextString(m) } +func (*VectorQuery) ProtoMessage() {} +func (*VectorQuery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{39} } + +func (m *VectorQuery) GetFieldName() string { + if m != nil { + return m.FieldName + } + return "" +} + +func (m *VectorQuery) GetQueryBoost() float32 { + if m != nil { + return m.QueryBoost + } + return 0 +} + +func (m *VectorQuery) GetRecords() []*VectorRowRecord { + if m != nil { + return m.Records + } + return nil +} + +func (m *VectorQuery) GetTopk() int64 { + if m != nil { + return m.Topk + } + return 0 +} + +func (m *VectorQuery) GetExtraParams() []*KeyValuePair { + if m != nil { + return m.ExtraParams + } + return nil +} + +type BooleanQuery struct { + Occur Occur `protobuf:"varint,1,opt,name=occur,enum=suvlim.grpc.Occur" json:"occur,omitempty"` + GeneralQuery []*GeneralQuery `protobuf:"bytes,2,rep,name=general_query,json=generalQuery" json:"general_query,omitempty"` +} + +func (m *BooleanQuery) Reset() { *m = BooleanQuery{} } +func (m *BooleanQuery) String() string { return proto.CompactTextString(m) } +func (*BooleanQuery) ProtoMessage() {} +func (*BooleanQuery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{40} } + +func (m *BooleanQuery) GetOccur() Occur { + if m != nil { + return m.Occur + } + return Occur_INVALID +} + +func (m *BooleanQuery) GetGeneralQuery() []*GeneralQuery { + if m != nil { + return m.GeneralQuery + } + return nil +} + +type GeneralQuery struct { + // Types that are valid to be assigned to Query: + // *GeneralQuery_BooleanQuery + // *GeneralQuery_TermQuery + // *GeneralQuery_RangeQuery + // *GeneralQuery_VectorQuery + Query isGeneralQuery_Query `protobuf_oneof:"query"` +} + +func (m *GeneralQuery) Reset() { *m = GeneralQuery{} } +func (m *GeneralQuery) String() string { return proto.CompactTextString(m) } +func (*GeneralQuery) ProtoMessage() {} +func (*GeneralQuery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{41} } + +type isGeneralQuery_Query interface{ isGeneralQuery_Query() } + +type GeneralQuery_BooleanQuery struct { + BooleanQuery *BooleanQuery `protobuf:"bytes,1,opt,name=boolean_query,json=booleanQuery,oneof"` +} +type GeneralQuery_TermQuery struct { + TermQuery *TermQuery `protobuf:"bytes,2,opt,name=term_query,json=termQuery,oneof"` +} +type GeneralQuery_RangeQuery struct { + RangeQuery *RangeQuery `protobuf:"bytes,3,opt,name=range_query,json=rangeQuery,oneof"` +} +type GeneralQuery_VectorQuery struct { + VectorQuery *VectorQuery `protobuf:"bytes,4,opt,name=vector_query,json=vectorQuery,oneof"` +} + +func (*GeneralQuery_BooleanQuery) isGeneralQuery_Query() {} +func (*GeneralQuery_TermQuery) isGeneralQuery_Query() {} +func (*GeneralQuery_RangeQuery) isGeneralQuery_Query() {} +func (*GeneralQuery_VectorQuery) isGeneralQuery_Query() {} + +func (m *GeneralQuery) GetQuery() isGeneralQuery_Query { + if m != nil { + return m.Query + } + return nil +} + +func (m *GeneralQuery) GetBooleanQuery() *BooleanQuery { + if x, ok := m.GetQuery().(*GeneralQuery_BooleanQuery); ok { + return x.BooleanQuery + } + return nil +} + +func (m *GeneralQuery) GetTermQuery() *TermQuery { + if x, ok := m.GetQuery().(*GeneralQuery_TermQuery); ok { + return x.TermQuery + } + return nil +} + +func (m *GeneralQuery) GetRangeQuery() *RangeQuery { + if x, ok := m.GetQuery().(*GeneralQuery_RangeQuery); ok { + return x.RangeQuery + } + return nil +} + +func (m *GeneralQuery) GetVectorQuery() *VectorQuery { + if x, ok := m.GetQuery().(*GeneralQuery_VectorQuery); ok { + return x.VectorQuery + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*GeneralQuery) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _GeneralQuery_OneofMarshaler, _GeneralQuery_OneofUnmarshaler, _GeneralQuery_OneofSizer, []interface{}{ + (*GeneralQuery_BooleanQuery)(nil), + (*GeneralQuery_TermQuery)(nil), + (*GeneralQuery_RangeQuery)(nil), + (*GeneralQuery_VectorQuery)(nil), + } +} + +func _GeneralQuery_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*GeneralQuery) + // query + switch x := m.Query.(type) { + case *GeneralQuery_BooleanQuery: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.BooleanQuery); err != nil { + return err + } + case *GeneralQuery_TermQuery: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.TermQuery); err != nil { + return err + } + case *GeneralQuery_RangeQuery: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RangeQuery); err != nil { + return err + } + case *GeneralQuery_VectorQuery: + b.EncodeVarint(4<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.VectorQuery); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("GeneralQuery.Query has unexpected type %T", x) + } + return nil +} + +func _GeneralQuery_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*GeneralQuery) + switch tag { + case 1: // query.boolean_query + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(BooleanQuery) + err := b.DecodeMessage(msg) + m.Query = &GeneralQuery_BooleanQuery{msg} + return true, err + case 2: // query.term_query + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(TermQuery) + err := b.DecodeMessage(msg) + m.Query = &GeneralQuery_TermQuery{msg} + return true, err + case 3: // query.range_query + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(RangeQuery) + err := b.DecodeMessage(msg) + m.Query = &GeneralQuery_RangeQuery{msg} + return true, err + case 4: // query.vector_query + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(VectorQuery) + err := b.DecodeMessage(msg) + m.Query = &GeneralQuery_VectorQuery{msg} + return true, err + default: + return false, nil + } +} + +func _GeneralQuery_OneofSizer(msg proto.Message) (n int) { + m := msg.(*GeneralQuery) + // query + switch x := m.Query.(type) { + case *GeneralQuery_BooleanQuery: + s := proto.Size(x.BooleanQuery) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *GeneralQuery_TermQuery: + s := proto.Size(x.TermQuery) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *GeneralQuery_RangeQuery: + s := proto.Size(x.RangeQuery) + n += proto.SizeVarint(3<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *GeneralQuery_VectorQuery: + s := proto.Size(x.VectorQuery) + n += proto.SizeVarint(4<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +type SearchParamPB struct { + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + PartitionTagArray []string `protobuf:"bytes,2,rep,name=partition_tag_array,json=partitionTagArray" json:"partition_tag_array,omitempty"` + GeneralQuery *GeneralQuery `protobuf:"bytes,3,opt,name=general_query,json=generalQuery" json:"general_query,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,4,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` +} + +func (m *SearchParamPB) Reset() { *m = SearchParamPB{} } +func (m *SearchParamPB) String() string { return proto.CompactTextString(m) } +func (*SearchParamPB) ProtoMessage() {} +func (*SearchParamPB) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{42} } + +func (m *SearchParamPB) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *SearchParamPB) GetPartitionTagArray() []string { + if m != nil { + return m.PartitionTagArray + } + return nil +} + +func (m *SearchParamPB) GetGeneralQuery() *GeneralQuery { + if m != nil { + return m.GeneralQuery + } + return nil +} + +func (m *SearchParamPB) GetExtraParams() []*KeyValuePair { + if m != nil { + return m.ExtraParams + } + return nil +} + +type InsertOrDeleteMsg struct { + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + RowsData *RowData `protobuf:"bytes,2,opt,name=rows_data,json=rowsData" json:"rows_data,omitempty"` + Uid int64 `protobuf:"varint,3,opt,name=uid" json:"uid,omitempty"` + PartitionTag string `protobuf:"bytes,4,opt,name=partition_tag,json=partitionTag" json:"partition_tag,omitempty"` + Timestamp int64 `protobuf:"varint,5,opt,name=timestamp" json:"timestamp,omitempty"` + SegmentId int64 `protobuf:"varint,6,opt,name=segment_id,json=segmentId" json:"segment_id,omitempty"` + ChannelId int64 `protobuf:"varint,7,opt,name=channel_id,json=channelId" json:"channel_id,omitempty"` + Op OpType `protobuf:"varint,8,opt,name=op,enum=suvlim.grpc.OpType" json:"op,omitempty"` + ClientId int64 `protobuf:"varint,9,opt,name=client_id,json=clientId" json:"client_id,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,10,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` +} + +func (m *InsertOrDeleteMsg) Reset() { *m = InsertOrDeleteMsg{} } +func (m *InsertOrDeleteMsg) String() string { return proto.CompactTextString(m) } +func (*InsertOrDeleteMsg) ProtoMessage() {} +func (*InsertOrDeleteMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{43} } + +func (m *InsertOrDeleteMsg) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *InsertOrDeleteMsg) GetRowsData() *RowData { + if m != nil { + return m.RowsData + } + return nil +} + +func (m *InsertOrDeleteMsg) GetUid() int64 { + if m != nil { + return m.Uid + } + return 0 +} + +func (m *InsertOrDeleteMsg) GetPartitionTag() string { + if m != nil { + return m.PartitionTag + } + return "" +} + +func (m *InsertOrDeleteMsg) GetTimestamp() int64 { + if m != nil { + return m.Timestamp + } + return 0 +} + +func (m *InsertOrDeleteMsg) GetSegmentId() int64 { + if m != nil { + return m.SegmentId + } + return 0 +} + +func (m *InsertOrDeleteMsg) GetChannelId() int64 { + if m != nil { + return m.ChannelId + } + return 0 +} + +func (m *InsertOrDeleteMsg) GetOp() OpType { + if m != nil { + return m.Op + } + return OpType_INSERT +} + +func (m *InsertOrDeleteMsg) GetClientId() int64 { + if m != nil { + return m.ClientId + } + return 0 +} + +func (m *InsertOrDeleteMsg) GetExtraParams() []*KeyValuePair { + if m != nil { + return m.ExtraParams + } + return nil +} + +type SearchMsg struct { + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + Records *VectorRowRecord `protobuf:"bytes,2,opt,name=records" json:"records,omitempty"` + PartitionTag string `protobuf:"bytes,3,opt,name=partition_tag,json=partitionTag" json:"partition_tag,omitempty"` + Uid int64 `protobuf:"varint,4,opt,name=uid" json:"uid,omitempty"` + Timestamp int64 `protobuf:"varint,5,opt,name=timestamp" json:"timestamp,omitempty"` + ClientId int64 `protobuf:"varint,6,opt,name=client_id,json=clientId" json:"client_id,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,7,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` +} + +func (m *SearchMsg) Reset() { *m = SearchMsg{} } +func (m *SearchMsg) String() string { return proto.CompactTextString(m) } +func (*SearchMsg) ProtoMessage() {} +func (*SearchMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{44} } + +func (m *SearchMsg) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *SearchMsg) GetRecords() *VectorRowRecord { + if m != nil { + return m.Records + } + return nil +} + +func (m *SearchMsg) GetPartitionTag() string { + if m != nil { + return m.PartitionTag + } + return "" +} + +func (m *SearchMsg) GetUid() int64 { + if m != nil { + return m.Uid + } + return 0 +} + +func (m *SearchMsg) GetTimestamp() int64 { + if m != nil { + return m.Timestamp + } + return 0 +} + +func (m *SearchMsg) GetClientId() int64 { + if m != nil { + return m.ClientId + } + return 0 +} + +func (m *SearchMsg) GetExtraParams() []*KeyValuePair { + if m != nil { + return m.ExtraParams + } + return nil +} + +type TimeSyncMsg struct { + ClientId int64 `protobuf:"varint,1,opt,name=ClientId,json=clientId" json:"ClientId,omitempty"` + Timestamp int64 `protobuf:"varint,2,opt,name=Timestamp,json=timestamp" json:"Timestamp,omitempty"` + MsgType OpType `protobuf:"varint,3,opt,name=MsgType,json=msgType,enum=suvlim.grpc.OpType" json:"MsgType,omitempty"` +} + +func (m *TimeSyncMsg) Reset() { *m = TimeSyncMsg{} } +func (m *TimeSyncMsg) String() string { return proto.CompactTextString(m) } +func (*TimeSyncMsg) ProtoMessage() {} +func (*TimeSyncMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{45} } + +func (m *TimeSyncMsg) GetClientId() int64 { + if m != nil { + return m.ClientId + } + return 0 +} + +func (m *TimeSyncMsg) GetTimestamp() int64 { + if m != nil { + return m.Timestamp + } + return 0 +} + +func (m *TimeSyncMsg) GetMsgType() OpType { + if m != nil { + return m.MsgType + } + return OpType_INSERT +} + +type SegmentRecord struct { + Uid int64 `protobuf:"varint,1,opt,name=uid" json:"uid,omitempty"` + SegmentId []int64 `protobuf:"varint,2,rep,packed,name=segment_id,json=segmentId" json:"segment_id,omitempty"` +} + +func (m *SegmentRecord) Reset() { *m = SegmentRecord{} } +func (m *SegmentRecord) String() string { return proto.CompactTextString(m) } +func (*SegmentRecord) ProtoMessage() {} +func (*SegmentRecord) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{46} } + +func (m *SegmentRecord) GetUid() int64 { + if m != nil { + return m.Uid + } + return 0 +} + +func (m *SegmentRecord) GetSegmentId() []int64 { + if m != nil { + return m.SegmentId + } + return nil +} + +type Key2SegMsg struct { + ClientId int64 `protobuf:"varint,1,opt,name=client_id,json=clientId" json:"client_id,omitempty"` + Records *SegmentRecord `protobuf:"bytes,2,opt,name=records" json:"records,omitempty"` + MsgType OpType `protobuf:"varint,3,opt,name=msg_type,json=msgType,enum=suvlim.grpc.OpType" json:"msg_type,omitempty"` +} + +func (m *Key2SegMsg) Reset() { *m = Key2SegMsg{} } +func (m *Key2SegMsg) String() string { return proto.CompactTextString(m) } +func (*Key2SegMsg) ProtoMessage() {} +func (*Key2SegMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{47} } + +func (m *Key2SegMsg) GetClientId() int64 { + if m != nil { + return m.ClientId + } + return 0 +} + +func (m *Key2SegMsg) GetRecords() *SegmentRecord { + if m != nil { + return m.Records + } + return nil +} + +func (m *Key2SegMsg) GetMsgType() OpType { + if m != nil { + return m.MsgType + } + return OpType_INSERT +} + +func init() { + proto.RegisterType((*Status)(nil), "suvlim.grpc.Status") + proto.RegisterType((*KeyValuePair)(nil), "suvlim.grpc.KeyValuePair") + proto.RegisterType((*CollectionName)(nil), "suvlim.grpc.CollectionName") + proto.RegisterType((*CollectionNameList)(nil), "suvlim.grpc.CollectionNameList") + proto.RegisterType((*FieldName)(nil), "suvlim.grpc.FieldName") + proto.RegisterType((*Mapping)(nil), "suvlim.grpc.Mapping") + proto.RegisterType((*MappingList)(nil), "suvlim.grpc.MappingList") + proto.RegisterType((*PartitionParam)(nil), "suvlim.grpc.PartitionParam") + proto.RegisterType((*PartitionList)(nil), "suvlim.grpc.PartitionList") + proto.RegisterType((*VectorRowRecord)(nil), "suvlim.grpc.VectorRowRecord") + proto.RegisterType((*EntityIds)(nil), "suvlim.grpc.EntityIds") + proto.RegisterType((*VectorRecord)(nil), "suvlim.grpc.VectorRecord") + proto.RegisterType((*VectorParam)(nil), "suvlim.grpc.VectorParam") + proto.RegisterType((*FieldMeta)(nil), "suvlim.grpc.FieldMeta") + proto.RegisterType((*Schema)(nil), "suvlim.grpc.Schema") + proto.RegisterType((*RowData)(nil), "suvlim.grpc.RowData") + proto.RegisterType((*InsertParam)(nil), "suvlim.grpc.InsertParam") + proto.RegisterType((*SearchParam)(nil), "suvlim.grpc.SearchParam") + proto.RegisterType((*SearchInSegmentParam)(nil), "suvlim.grpc.SearchInSegmentParam") + proto.RegisterType((*Entities)(nil), "suvlim.grpc.Entities") + proto.RegisterType((*QueryResult)(nil), "suvlim.grpc.QueryResult") + proto.RegisterType((*StringReply)(nil), "suvlim.grpc.StringReply") + proto.RegisterType((*BoolReply)(nil), "suvlim.grpc.BoolReply") + proto.RegisterType((*CollectionRowCount)(nil), "suvlim.grpc.CollectionRowCount") + proto.RegisterType((*Command)(nil), "suvlim.grpc.Command") + proto.RegisterType((*IndexParam)(nil), "suvlim.grpc.IndexParam") + proto.RegisterType((*FlushParam)(nil), "suvlim.grpc.FlushParam") + proto.RegisterType((*CompactParam)(nil), "suvlim.grpc.CompactParam") + proto.RegisterType((*DeleteByIDParam)(nil), "suvlim.grpc.DeleteByIDParam") + proto.RegisterType((*CollectionInfo)(nil), "suvlim.grpc.CollectionInfo") + proto.RegisterType((*GetEntityIDsParam)(nil), "suvlim.grpc.GetEntityIDsParam") + proto.RegisterType((*EntityIdentity)(nil), "suvlim.grpc.EntityIdentity") + proto.RegisterType((*VectorFieldParam)(nil), "suvlim.grpc.VectorFieldParam") + proto.RegisterType((*FieldType)(nil), "suvlim.grpc.FieldType") + proto.RegisterType((*FieldParam)(nil), "suvlim.grpc.FieldParam") + proto.RegisterType((*VectorFieldRecord)(nil), "suvlim.grpc.VectorFieldRecord") + proto.RegisterType((*TermQuery)(nil), "suvlim.grpc.TermQuery") + proto.RegisterType((*CompareExpr)(nil), "suvlim.grpc.CompareExpr") + proto.RegisterType((*RangeQuery)(nil), "suvlim.grpc.RangeQuery") + proto.RegisterType((*VectorQuery)(nil), "suvlim.grpc.VectorQuery") + proto.RegisterType((*BooleanQuery)(nil), "suvlim.grpc.BooleanQuery") + proto.RegisterType((*GeneralQuery)(nil), "suvlim.grpc.GeneralQuery") + proto.RegisterType((*SearchParamPB)(nil), "suvlim.grpc.SearchParamPB") + proto.RegisterType((*InsertOrDeleteMsg)(nil), "suvlim.grpc.InsertOrDeleteMsg") + proto.RegisterType((*SearchMsg)(nil), "suvlim.grpc.SearchMsg") + proto.RegisterType((*TimeSyncMsg)(nil), "suvlim.grpc.TimeSyncMsg") + proto.RegisterType((*SegmentRecord)(nil), "suvlim.grpc.SegmentRecord") + proto.RegisterType((*Key2SegMsg)(nil), "suvlim.grpc.Key2SegMsg") + proto.RegisterEnum("suvlim.grpc.ErrorCode", ErrorCode_name, ErrorCode_value) + proto.RegisterEnum("suvlim.grpc.DataType", DataType_name, DataType_value) + proto.RegisterEnum("suvlim.grpc.CompareOperator", CompareOperator_name, CompareOperator_value) + proto.RegisterEnum("suvlim.grpc.Occur", Occur_name, Occur_value) + proto.RegisterEnum("suvlim.grpc.OpType", OpType_name, OpType_value) +} + +func init() { proto.RegisterFile("suvlim.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 2881 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x5a, 0xcd, 0x73, 0xdb, 0xc6, + 0x15, 0x27, 0x08, 0x8a, 0x24, 0x1e, 0x28, 0x09, 0x5a, 0xcb, 0x36, 0x2d, 0xdb, 0x8d, 0x83, 0xce, + 0xb4, 0x8e, 0x3b, 0x75, 0x13, 0x25, 0xb5, 0xdd, 0x3a, 0x49, 0xc3, 0x0f, 0x48, 0x42, 0xcd, 0x0f, + 0x79, 0x09, 0x39, 0x71, 0x32, 0x1d, 0x14, 0x22, 0xd7, 0x34, 0x1a, 0x92, 0x60, 0x01, 0x50, 0xb2, + 0xae, 0xbd, 0xb7, 0x9d, 0x1e, 0x3b, 0xd3, 0x4b, 0xfb, 0x2f, 0xf4, 0xff, 0xe8, 0x35, 0x87, 0xcc, + 0xf4, 0xd8, 0xe9, 0xdf, 0xd0, 0x53, 0x67, 0x3f, 0x40, 0x02, 0x20, 0x29, 0x93, 0x51, 0x7b, 0xd2, + 0xf2, 0xed, 0xbe, 0xb7, 0xbf, 0xf7, 0xb1, 0x6f, 0xdf, 0x5b, 0x08, 0x4a, 0xc1, 0xe4, 0x6c, 0xe0, + 0x0e, 0x1f, 0x8e, 0x7d, 0x2f, 0xf4, 0x90, 0x2a, 0x7e, 0xf5, 0xfd, 0x71, 0x57, 0xff, 0x1c, 0xf2, + 0x9d, 0xd0, 0x09, 0x27, 0x01, 0xfa, 0x29, 0x00, 0xf1, 0x7d, 0xcf, 0xb7, 0xbb, 0x5e, 0x8f, 0x94, + 0xa5, 0x7b, 0xd2, 0xfd, 0xad, 0xfd, 0x1b, 0x0f, 0x63, 0x6b, 0x1f, 0x1a, 0x74, 0xba, 0xe6, 0xf5, + 0x08, 0x56, 0x48, 0x34, 0x44, 0x37, 0x20, 0xef, 0x13, 0x27, 0xf0, 0x46, 0xe5, 0xec, 0x3d, 0xe9, + 0xbe, 0x82, 0xc5, 0x2f, 0xfd, 0x11, 0x94, 0x9e, 0x91, 0x8b, 0x17, 0xce, 0x60, 0x42, 0x8e, 0x1d, + 0xd7, 0x47, 0x1a, 0xc8, 0x5f, 0x93, 0x0b, 0x26, 0x57, 0xc1, 0x74, 0x88, 0x76, 0x61, 0xe3, 0x8c, + 0x4e, 0x0b, 0x46, 0xfe, 0x43, 0xff, 0x19, 0x6c, 0xd5, 0xbc, 0xc1, 0x80, 0x74, 0x43, 0xd7, 0x1b, + 0xb5, 0x9c, 0x21, 0x41, 0x3f, 0x84, 0xed, 0xee, 0x94, 0x62, 0x8f, 0x9c, 0x21, 0x11, 0x52, 0xb6, + 0xba, 0x89, 0x85, 0xfa, 0x00, 0x50, 0x92, 0xb5, 0xe1, 0x06, 0x21, 0xfa, 0x11, 0xe4, 0x03, 0xa6, + 0x21, 0xe3, 0x52, 0xf7, 0xaf, 0x25, 0x74, 0xe2, 0xca, 0x63, 0xb1, 0x04, 0xbd, 0x07, 0x5a, 0x6a, + 0xaf, 0xa0, 0x9c, 0xbd, 0x27, 0xdf, 0x57, 0xf0, 0x76, 0x72, 0xb3, 0x40, 0xef, 0x80, 0x72, 0xe0, + 0x92, 0x41, 0x6f, 0x2d, 0x8c, 0xe8, 0x2e, 0xc0, 0x2b, 0xca, 0xc5, 0xd7, 0x70, 0xcd, 0x95, 0x57, + 0x91, 0x1c, 0xfd, 0x1f, 0x12, 0x14, 0x9a, 0xce, 0x78, 0xec, 0x8e, 0xfa, 0xeb, 0x01, 0x5f, 0x00, + 0x20, 0xbb, 0x10, 0xc0, 0x4f, 0x20, 0xcf, 0xb6, 0x0b, 0xca, 0xf2, 0x3d, 0xf9, 0xbe, 0xba, 0x7f, + 0x33, 0x21, 0x95, 0x69, 0x74, 0xec, 0xf8, 0xce, 0x10, 0x8b, 0x65, 0xe8, 0x63, 0x28, 0x91, 0x37, + 0xa1, 0xef, 0xd8, 0x63, 0x4a, 0x0e, 0xca, 0x39, 0xc6, 0x76, 0x2b, 0xc1, 0x16, 0xf7, 0x34, 0x56, + 0xd9, 0x72, 0x26, 0x24, 0xd0, 0x03, 0x50, 0x85, 0x3e, 0xeb, 0x3b, 0xe3, 0x31, 0x94, 0x86, 0x9c, + 0xd7, 0x1e, 0xb8, 0x41, 0xc8, 0x1c, 0xa1, 0xee, 0xef, 0x26, 0x58, 0x84, 0x70, 0xac, 0x0e, 0x67, + 0xbb, 0xe8, 0xcf, 0x60, 0xeb, 0xd8, 0xf1, 0x43, 0x97, 0x2a, 0xcd, 0x70, 0xac, 0xee, 0x1f, 0x0d, + 0xe4, 0xd0, 0xe9, 0x0b, 0xdb, 0xd1, 0xa1, 0x3e, 0x80, 0xcd, 0xa9, 0xb0, 0xf5, 0x75, 0x78, 0x08, + 0xd7, 0xc6, 0x11, 0xb7, 0x1d, 0x3a, 0x7d, 0xdb, 0xf1, 0x7d, 0xe7, 0x42, 0xc4, 0xd4, 0xce, 0x74, + 0xca, 0x72, 0xfa, 0x15, 0x3a, 0xa1, 0x3f, 0x87, 0xed, 0x17, 0xa4, 0x1b, 0x7a, 0x3e, 0xf6, 0xce, + 0x31, 0xe9, 0x7a, 0x7e, 0x8f, 0x85, 0xcc, 0xc0, 0x73, 0x42, 0xbb, 0xe7, 0x84, 0x4e, 0x59, 0xba, + 0x27, 0xdf, 0xcf, 0x62, 0x85, 0x51, 0xea, 0x4e, 0xe8, 0xa0, 0x77, 0x40, 0x3d, 0x75, 0x47, 0x8e, + 0x7f, 0xc1, 0xe7, 0x29, 0xf2, 0x12, 0x06, 0x4e, 0xa2, 0x0b, 0xf4, 0x5f, 0x83, 0x62, 0x8c, 0x42, + 0x37, 0xbc, 0x30, 0x7b, 0xc1, 0x7a, 0xe0, 0x7f, 0x00, 0xdb, 0x84, 0x71, 0xda, 0x6e, 0x2f, 0x06, + 0x5c, 0xc6, 0x9b, 0x44, 0x08, 0xe4, 0xa0, 0x0f, 0xa0, 0x24, 0x40, 0x73, 0xc4, 0x8f, 0xa0, 0xe0, + 0xb3, 0x51, 0xc0, 0xe0, 0xaa, 0xfb, 0x77, 0x12, 0xbb, 0xa4, 0x14, 0xc4, 0xd1, 0x62, 0xfd, 0x2b, + 0x50, 0xf9, 0x1c, 0x77, 0x1a, 0x82, 0xdc, 0x6f, 0x68, 0x62, 0xe1, 0x9e, 0x62, 0x63, 0xf4, 0x04, + 0xc0, 0xf7, 0xce, 0x6d, 0xce, 0xc1, 0x94, 0x4d, 0xc7, 0x62, 0x1c, 0x09, 0x56, 0xfc, 0x68, 0x17, + 0xbd, 0x2f, 0xce, 0x6b, 0x93, 0x84, 0x4e, 0xea, 0x18, 0x4a, 0xa9, 0x63, 0x88, 0xde, 0x83, 0x5c, + 0x78, 0x31, 0xe6, 0x47, 0x68, 0x6b, 0xff, 0x7a, 0x42, 0x3e, 0xb5, 0xa9, 0x75, 0x31, 0x26, 0x98, + 0x2d, 0xa1, 0x01, 0xd3, 0x73, 0x87, 0x65, 0xf9, 0x9e, 0x74, 0x5f, 0xc6, 0x74, 0xa8, 0x57, 0x20, + 0xdf, 0xe9, 0xbe, 0x26, 0x43, 0x07, 0x3d, 0x06, 0x95, 0xef, 0x32, 0x24, 0xa1, 0x13, 0xd9, 0xe2, + 0xc6, 0xfc, 0x81, 0xa3, 0x90, 0x30, 0x07, 0x44, 0x87, 0x81, 0x7e, 0x17, 0x0a, 0xd8, 0x3b, 0x67, + 0xee, 0x45, 0x90, 0x3b, 0x1d, 0x78, 0xa7, 0x0c, 0x63, 0x09, 0xb3, 0xb1, 0xfe, 0xd7, 0x2c, 0xa8, + 0xe6, 0x28, 0x20, 0x7e, 0xb8, 0x66, 0x74, 0x53, 0xef, 0x33, 0x68, 0xc2, 0x72, 0x29, 0xef, 0xb3, + 0x29, 0x2c, 0x96, 0xa0, 0x0f, 0x80, 0x5a, 0x2f, 0xe0, 0x61, 0x25, 0x2f, 0x38, 0x7b, 0x02, 0x22, + 0x2e, 0xd2, 0x65, 0x0c, 0xec, 0x82, 0x80, 0xc9, 0x2d, 0x08, 0x18, 0xf4, 0x7d, 0xd8, 0x4c, 0x9c, + 0x8a, 0xf2, 0x06, 0x83, 0x5b, 0x8a, 0x9f, 0x87, 0xb9, 0xc4, 0x93, 0x5f, 0x2b, 0xf1, 0xfc, 0x5b, + 0x02, 0xb5, 0x43, 0x1c, 0xbf, 0xfb, 0x7a, 0x4d, 0x1b, 0x3d, 0x85, 0xd2, 0x19, 0x0b, 0x21, 0xbe, + 0xaf, 0xc8, 0x3a, 0xe5, 0x05, 0x31, 0xc6, 0xf3, 0xa4, 0x7a, 0x16, 0x0b, 0x59, 0x1a, 0x0d, 0xc1, + 0x80, 0x45, 0x83, 0x82, 0xe9, 0x70, 0x5e, 0xd5, 0x1c, 0x3b, 0xfa, 0x97, 0xab, 0xba, 0xb1, 0x96, + 0xaa, 0xe7, 0xb0, 0xcb, 0x35, 0x35, 0x47, 0x1d, 0xd2, 0x1f, 0x92, 0x91, 0x08, 0x0b, 0x1d, 0x36, + 0x5f, 0xb9, 0x03, 0x32, 0xf3, 0x85, 0xc4, 0xb6, 0x56, 0x29, 0x31, 0xf2, 0xc4, 0x53, 0x28, 0x05, + 0x8c, 0x77, 0xaa, 0xad, 0x34, 0xa7, 0x6d, 0xcc, 0x8c, 0x58, 0x0d, 0x66, 0x3f, 0xf4, 0x3f, 0x4b, + 0x50, 0x64, 0xa9, 0xc5, 0x25, 0x6b, 0x66, 0x16, 0x0d, 0x64, 0xb7, 0x17, 0x88, 0x6c, 0x42, 0x87, + 0xe8, 0x36, 0x28, 0x67, 0xce, 0xc0, 0xed, 0xd9, 0xbe, 0x77, 0xce, 0xa2, 0xad, 0x88, 0x8b, 0x8c, + 0x80, 0xbd, 0xf3, 0x64, 0x28, 0xe6, 0x56, 0x09, 0x45, 0xfd, 0x3f, 0x12, 0xa8, 0xcf, 0x27, 0xc4, + 0xbf, 0xc0, 0x24, 0x98, 0x0c, 0xd6, 0xcc, 0xda, 0x1f, 0x40, 0x91, 0x08, 0xbd, 0x84, 0x45, 0x92, + 0x39, 0x20, 0x52, 0x1a, 0x4f, 0x97, 0xa1, 0x9b, 0x50, 0xa0, 0x89, 0x69, 0x34, 0x89, 0x72, 0x41, + 0xde, 0xf7, 0xce, 0x5b, 0x93, 0x21, 0x2d, 0x90, 0x82, 0xae, 0xe7, 0x13, 0x7e, 0x73, 0x66, 0xb1, + 0xf8, 0x85, 0xee, 0x80, 0xd2, 0x73, 0x83, 0xd0, 0x19, 0x75, 0x09, 0x77, 0x78, 0x16, 0xcf, 0x08, + 0x57, 0x0c, 0xfe, 0x5f, 0x81, 0xda, 0x09, 0x7d, 0x7a, 0x2f, 0x92, 0xf1, 0xe0, 0x62, 0x3d, 0xdd, + 0xdf, 0x85, 0x52, 0xc0, 0x78, 0x6d, 0x9f, 0x32, 0x8b, 0xab, 0x50, 0x0d, 0x66, 0xf2, 0xf4, 0xcf, + 0x41, 0xa9, 0x7a, 0xde, 0xe0, 0x3b, 0x08, 0xbf, 0x0b, 0x70, 0xea, 0x79, 0x83, 0x98, 0xe8, 0x22, + 0x56, 0x4e, 0x23, 0x59, 0x7a, 0x10, 0xaf, 0xe0, 0xb0, 0x77, 0x5e, 0xf3, 0x26, 0xa3, 0x35, 0x5d, + 0xf7, 0x3e, 0xec, 0xc6, 0xce, 0x39, 0x75, 0x49, 0x97, 0x0a, 0x61, 0x7b, 0xc9, 0x18, 0x75, 0xe7, + 0xc4, 0xeb, 0xb7, 0xa1, 0x50, 0xf3, 0x86, 0x43, 0x67, 0xd4, 0xa3, 0x61, 0xd9, 0x1d, 0xf6, 0xa2, + 0x22, 0xb5, 0x3b, 0xec, 0xe9, 0xff, 0x94, 0x00, 0xcc, 0x51, 0x8f, 0xbc, 0xe1, 0x47, 0xea, 0xff, + 0x53, 0x93, 0x25, 0x6f, 0x23, 0x39, 0x7d, 0x1b, 0xdd, 0x05, 0x70, 0x29, 0x04, 0x3e, 0x9d, 0xe3, + 0xd3, 0x8c, 0xc2, 0xa6, 0xaf, 0x96, 0x3c, 0x3e, 0x03, 0x38, 0x18, 0x4c, 0x02, 0x91, 0x25, 0xf7, + 0xe1, 0x7a, 0x0a, 0x72, 0x22, 0x75, 0x5c, 0x4b, 0x02, 0xe7, 0xb7, 0xff, 0x09, 0x94, 0x6a, 0xde, + 0x70, 0xec, 0x74, 0xd7, 0xbd, 0x8d, 0xee, 0x80, 0x12, 0xbe, 0xf6, 0x49, 0xf0, 0xda, 0x1b, 0xf0, + 0xab, 0x5c, 0xc2, 0x33, 0x82, 0x7e, 0x02, 0xdb, 0x75, 0x32, 0x20, 0x21, 0xa9, 0x5e, 0x98, 0xf5, + 0x35, 0x25, 0xdf, 0x82, 0x62, 0xaa, 0x62, 0x29, 0xb8, 0xa2, 0x56, 0xf9, 0x32, 0xde, 0x5f, 0x98, + 0xa3, 0x57, 0xde, 0x7a, 0x3e, 0xbd, 0x0d, 0x0a, 0xad, 0x43, 0x6c, 0x77, 0xf4, 0xca, 0x13, 0xde, + 0x2c, 0x52, 0x02, 0x95, 0xa4, 0x7f, 0x05, 0x3b, 0x87, 0x24, 0x14, 0xc5, 0x56, 0x3d, 0x58, 0x13, + 0xf4, 0x5d, 0x80, 0x80, 0xa7, 0x6f, 0xdb, 0xed, 0x89, 0x78, 0x55, 0x04, 0xc5, 0xec, 0xe9, 0x13, + 0xd8, 0x8a, 0xca, 0x38, 0x7e, 0x99, 0xfe, 0x2f, 0xcc, 0x41, 0xab, 0xc7, 0x59, 0xe8, 0xf1, 0x9e, + 0x40, 0x11, 0xa5, 0x08, 0x6f, 0x73, 0xde, 0x07, 0x8d, 0xdf, 0x76, 0xb3, 0xd6, 0x80, 0xa7, 0xae, + 0x21, 0x19, 0x05, 0xae, 0xa8, 0xce, 0x64, 0x3c, 0x23, 0xe8, 0x7f, 0x90, 0x44, 0xa5, 0x45, 0xab, + 0x24, 0xf4, 0x11, 0x28, 0x34, 0x6b, 0xdb, 0xac, 0x9e, 0x92, 0x2e, 0xa9, 0xa7, 0x8e, 0x32, 0xb8, + 0xd8, 0x13, 0x63, 0x54, 0x9d, 0xbb, 0x84, 0xa9, 0x67, 0xee, 0x2e, 0xb8, 0x84, 0x67, 0xb0, 0x8e, + 0x32, 0x89, 0xbb, 0xb8, 0x5a, 0x10, 0xfd, 0xa5, 0xfe, 0x8d, 0x04, 0x10, 0x43, 0xbf, 0x05, 0x59, + 0x97, 0x9f, 0xf1, 0x1c, 0xce, 0xba, 0x3d, 0x5a, 0x61, 0xc5, 0xce, 0x26, 0x1b, 0x4f, 0x0b, 0x40, + 0xf9, 0xed, 0x05, 0xe0, 0xc7, 0x50, 0xe2, 0xa7, 0x73, 0xe5, 0xfe, 0xc8, 0x9d, 0xe6, 0x93, 0xe0, + 0x8a, 0x87, 0xf7, 0x10, 0x76, 0x62, 0x56, 0x10, 0xd5, 0xf7, 0x7e, 0xd4, 0x57, 0xaf, 0x52, 0x7b, + 0x0b, 0x13, 0x7d, 0x2b, 0x81, 0x62, 0x11, 0x7f, 0xc8, 0x6e, 0xcc, 0xb7, 0x55, 0xc7, 0xb7, 0x41, + 0x71, 0x47, 0xa1, 0x1d, 0x35, 0xef, 0x34, 0x9e, 0x8a, 0xee, 0x28, 0x64, 0x18, 0xe9, 0xf5, 0xd1, + 0xf3, 0x26, 0xa7, 0x03, 0x22, 0xe6, 0x69, 0x44, 0x49, 0x58, 0xe5, 0x34, 0xbe, 0x84, 0x5f, 0xf5, + 0x13, 0xc2, 0x2e, 0xcb, 0x1c, 0x0b, 0x9f, 0x22, 0x23, 0xd0, 0xeb, 0x72, 0x17, 0x36, 0x4e, 0x3d, + 0x2f, 0x08, 0x59, 0x49, 0x98, 0xc5, 0xfc, 0xc7, 0x15, 0xaf, 0x43, 0x07, 0x54, 0x96, 0xa1, 0x7c, + 0x62, 0xbc, 0x19, 0xfb, 0xe8, 0x09, 0x14, 0xbd, 0x31, 0xf1, 0x9d, 0xd0, 0xf3, 0x45, 0x44, 0x26, + 0x6d, 0x24, 0xd6, 0xb6, 0xc5, 0x1a, 0x3c, 0x5d, 0x8d, 0xca, 0x50, 0x60, 0xe3, 0x51, 0x4f, 0x44, + 0x4b, 0xf4, 0x53, 0xff, 0xbb, 0x04, 0x80, 0x9d, 0x51, 0x9f, 0xac, 0x64, 0xc1, 0xfd, 0xb8, 0x9c, + 0xf9, 0xf2, 0x32, 0x06, 0x76, 0xba, 0xc3, 0xcc, 0x30, 0xf2, 0x65, 0x86, 0x59, 0xaf, 0x3b, 0xff, + 0x46, 0x8a, 0x3a, 0xae, 0x95, 0x60, 0xbf, 0x03, 0xea, 0x6f, 0xe9, 0x3a, 0x9b, 0x03, 0xc9, 0x32, + 0x20, 0xc0, 0x48, 0x55, 0x86, 0x26, 0xd6, 0xf8, 0xc9, 0x6b, 0x34, 0x7e, 0xf4, 0x08, 0x86, 0xde, + 0xf8, 0x6b, 0x11, 0x0c, 0x6c, 0x7c, 0xc5, 0x93, 0xf1, 0x06, 0x4a, 0xb4, 0x44, 0x21, 0xce, 0x88, + 0x6b, 0x76, 0x1f, 0x36, 0xbc, 0x6e, 0x77, 0x12, 0x39, 0x1c, 0x25, 0xc4, 0xb4, 0xe9, 0x0c, 0xe6, + 0x0b, 0xd0, 0xa7, 0xb0, 0xd9, 0x27, 0x23, 0xe2, 0x3b, 0x03, 0x9b, 0x69, 0x26, 0x3c, 0x94, 0xdc, + 0xf8, 0x90, 0xaf, 0xe0, 0x05, 0x66, 0xa9, 0x1f, 0xfb, 0xa5, 0xff, 0x3e, 0x0b, 0xa5, 0xf8, 0x34, + 0xfa, 0x0c, 0x36, 0x4f, 0x39, 0x14, 0x21, 0x50, 0x5a, 0xd0, 0xb5, 0xc6, 0xc1, 0x1e, 0x65, 0x70, + 0xe9, 0x34, 0x0e, 0xfe, 0x31, 0x40, 0x48, 0xfc, 0xe1, 0x14, 0x8f, 0x34, 0xd7, 0x46, 0x4e, 0xcf, + 0xee, 0x51, 0x06, 0x2b, 0xe1, 0xf4, 0x20, 0xff, 0x1c, 0x54, 0x9f, 0x06, 0xa5, 0xe0, 0x94, 0x19, + 0x67, 0xf2, 0xc5, 0x67, 0x16, 0xb4, 0x47, 0x19, 0x0c, 0xfe, 0x2c, 0x84, 0x3f, 0x99, 0xa6, 0x60, + 0xce, 0x9c, 0x5b, 0xd0, 0x19, 0xc4, 0x62, 0x67, 0x96, 0x7d, 0xd9, 0x4f, 0x9a, 0x7d, 0x19, 0x9f, + 0xfe, 0x2f, 0x09, 0x36, 0x63, 0x1d, 0xc4, 0x71, 0x75, 0xf5, 0x7b, 0x6b, 0xcd, 0xc7, 0x93, 0x79, + 0xd7, 0xc9, 0x0b, 0x2c, 0xbd, 0xdc, 0x75, 0x57, 0x3c, 0x4c, 0xbf, 0x93, 0x61, 0x87, 0x77, 0xe5, + 0x6d, 0x9f, 0x57, 0x2e, 0xcd, 0xa0, 0xbf, 0xba, 0xb2, 0x89, 0x1e, 0x87, 0xfb, 0xf8, 0x6d, 0xed, + 0xb6, 0x06, 0xf2, 0xc4, 0xed, 0x45, 0x6f, 0x0f, 0x13, 0xb7, 0xb7, 0xa8, 0xdb, 0x9c, 0x6f, 0xac, + 0x69, 0xdd, 0xe5, 0x0e, 0x49, 0x10, 0x3a, 0xc3, 0x31, 0x4b, 0xb3, 0x32, 0x9e, 0x11, 0x52, 0x65, + 0x48, 0x3e, 0x55, 0x86, 0xd0, 0xe9, 0xee, 0x6b, 0x67, 0x34, 0x22, 0x03, 0x3a, 0x5d, 0xe0, 0xd3, + 0x82, 0x62, 0x52, 0x00, 0x59, 0x6f, 0x5c, 0x2e, 0xb2, 0x43, 0x96, 0x2c, 0xa4, 0xda, 0x63, 0x76, + 0x69, 0x66, 0xbd, 0x31, 0xbd, 0x00, 0xba, 0x03, 0x57, 0xec, 0xa0, 0xf0, 0x0b, 0x80, 0x13, 0xcc, + 0xde, 0x9c, 0x13, 0x60, 0x2d, 0x27, 0xfc, 0x25, 0x0b, 0x0a, 0x8f, 0xb6, 0xb5, 0x8c, 0x1f, 0x4b, + 0x5c, 0xdc, 0xf4, 0x2b, 0x26, 0xae, 0x39, 0x7b, 0xcb, 0x0b, 0xec, 0x2d, 0xdc, 0x94, 0x9b, 0xb9, + 0xe9, 0x72, 0x0f, 0x24, 0xcc, 0x93, 0x7f, 0x8b, 0x79, 0x0a, 0x6b, 0x99, 0xe7, 0x0c, 0x54, 0xcb, + 0x1d, 0x92, 0xce, 0xc5, 0xa8, 0x4b, 0xed, 0xb3, 0x07, 0xc5, 0x9a, 0x10, 0x2c, 0xea, 0xb8, 0xd9, + 0x46, 0x77, 0x40, 0xb1, 0xa6, 0x18, 0xb3, 0x69, 0x8c, 0x3f, 0x86, 0x42, 0x33, 0xe8, 0x5b, 0xb3, + 0x1a, 0x69, 0xa1, 0xb3, 0x0b, 0x43, 0xbe, 0x46, 0xff, 0x8c, 0xe6, 0x00, 0x16, 0x42, 0xa2, 0x48, + 0x11, 0x36, 0x91, 0x66, 0x36, 0x49, 0x97, 0xbf, 0x72, 0xb2, 0xfc, 0xfd, 0xa3, 0x04, 0xf0, 0x8c, + 0x5c, 0xec, 0x77, 0x48, 0x9f, 0x22, 0x4f, 0xd8, 0x28, 0x0d, 0xfd, 0xa3, 0xb4, 0x37, 0xf7, 0x52, + 0xef, 0x19, 0x31, 0x24, 0x33, 0x5f, 0x3e, 0x84, 0xe2, 0x30, 0xe8, 0xdb, 0xe1, 0x8a, 0x3a, 0x3d, + 0xf8, 0x5b, 0x0e, 0x94, 0xe9, 0x27, 0x11, 0xa4, 0x42, 0xa1, 0x73, 0x52, 0xab, 0x19, 0x9d, 0x8e, + 0x96, 0x41, 0xbb, 0xa0, 0x9d, 0xb4, 0x8c, 0x2f, 0x8e, 0x8d, 0x9a, 0x65, 0xd4, 0x6d, 0x03, 0xe3, + 0x36, 0xd6, 0x24, 0x84, 0x60, 0xab, 0xd6, 0x6e, 0xb5, 0x8c, 0x9a, 0x65, 0x1f, 0x54, 0xcc, 0x86, + 0x51, 0xd7, 0xb2, 0xe8, 0x3a, 0xec, 0x1c, 0x1b, 0xb8, 0x69, 0x76, 0x3a, 0x66, 0xbb, 0x65, 0xd7, + 0x8d, 0x96, 0x69, 0xd4, 0x35, 0x19, 0xdd, 0x82, 0xeb, 0xb5, 0x76, 0xa3, 0x61, 0xd4, 0x2c, 0x4a, + 0x6e, 0xb5, 0x2d, 0xdb, 0xf8, 0xc2, 0xec, 0x58, 0x1d, 0x2d, 0x47, 0x65, 0x9b, 0x8d, 0x86, 0x71, + 0x58, 0x69, 0xd8, 0x15, 0x7c, 0x78, 0xd2, 0x34, 0x5a, 0x96, 0xb6, 0x41, 0xe5, 0x44, 0xd4, 0xba, + 0xd9, 0x34, 0x5a, 0x54, 0x9c, 0x56, 0x40, 0x37, 0x00, 0x45, 0x64, 0xb3, 0x55, 0x37, 0xbe, 0xb0, + 0xad, 0x97, 0xc7, 0x86, 0x56, 0x44, 0xb7, 0xe1, 0x66, 0x44, 0x8f, 0xef, 0x53, 0x69, 0x1a, 0x9a, + 0x82, 0x34, 0x28, 0x45, 0x93, 0x56, 0xfb, 0xf8, 0x99, 0x06, 0x71, 0xe9, 0xb8, 0xfd, 0x39, 0x36, + 0x6a, 0x6d, 0x5c, 0xd7, 0xd4, 0x38, 0xf9, 0x85, 0x51, 0xb3, 0xda, 0xd8, 0x36, 0xeb, 0x5a, 0x89, + 0x82, 0x8f, 0xc8, 0x1d, 0xa3, 0x82, 0x6b, 0x47, 0x36, 0x36, 0x3a, 0x27, 0x0d, 0x4b, 0xdb, 0xa4, + 0x26, 0x38, 0x30, 0x1b, 0x06, 0xd3, 0xe8, 0xa0, 0x7d, 0xd2, 0xaa, 0x6b, 0x5b, 0x68, 0x1b, 0xd4, + 0xa6, 0x61, 0x55, 0x22, 0x9b, 0x6c, 0xd3, 0xfd, 0x6b, 0x95, 0xda, 0x91, 0x11, 0x51, 0x34, 0x54, + 0x86, 0xdd, 0x5a, 0xa5, 0x45, 0x99, 0x6a, 0xd8, 0xa8, 0x58, 0x86, 0x7d, 0xd0, 0x6e, 0xd4, 0x0d, + 0xac, 0xed, 0x50, 0x05, 0x53, 0x33, 0x66, 0xc3, 0xd0, 0x50, 0x8c, 0xa3, 0x6e, 0x34, 0x8c, 0x19, + 0xc7, 0xb5, 0x18, 0x47, 0x34, 0x43, 0x39, 0x76, 0xa9, 0x32, 0xd5, 0x13, 0xb3, 0x51, 0x17, 0x86, + 0xe2, 0x4e, 0xbb, 0x8e, 0x76, 0x60, 0x33, 0x52, 0xa6, 0xd5, 0x30, 0x3b, 0x96, 0x76, 0x03, 0xdd, + 0x84, 0x6b, 0x11, 0xa9, 0x69, 0x58, 0xd8, 0xac, 0x71, 0xab, 0xde, 0xa4, 0x6b, 0xdb, 0x27, 0x96, + 0xdd, 0x3e, 0xb0, 0x9b, 0x46, 0xb3, 0x8d, 0x5f, 0x6a, 0xe5, 0x07, 0x7f, 0x92, 0xa0, 0x18, 0x35, + 0x0c, 0xa8, 0x08, 0xb9, 0x56, 0xbb, 0x65, 0x68, 0x19, 0x3a, 0xaa, 0xb6, 0xdb, 0x0d, 0x4d, 0xa2, + 0x23, 0xb3, 0x65, 0x3d, 0xd1, 0xb2, 0x48, 0x81, 0x0d, 0xb3, 0x65, 0x7d, 0xf0, 0x48, 0x93, 0xc5, + 0xf0, 0xc3, 0x7d, 0x2d, 0x27, 0x86, 0x8f, 0x3e, 0xd2, 0x36, 0xe8, 0xf0, 0xa0, 0xd1, 0xae, 0x58, + 0x1a, 0x20, 0x80, 0x7c, 0xbd, 0x7d, 0x52, 0x6d, 0x18, 0x9a, 0x4a, 0xc7, 0x1d, 0x0b, 0x9b, 0xad, + 0x43, 0x6d, 0x97, 0x22, 0x10, 0x9e, 0xa8, 0x9a, 0xad, 0x0a, 0x7e, 0xa9, 0xd1, 0x93, 0x56, 0x12, + 0x24, 0xce, 0x4c, 0x1e, 0xd4, 0x60, 0x3b, 0x55, 0xe2, 0xa2, 0x3c, 0x64, 0x1b, 0x96, 0x96, 0x41, + 0x05, 0x90, 0x1b, 0x96, 0xa1, 0x49, 0x94, 0x60, 0x3c, 0xd7, 0xb2, 0xf4, 0xef, 0xa1, 0xa5, 0xc9, + 0x74, 0xe2, 0xd0, 0x32, 0xb4, 0x1c, 0x25, 0xb4, 0x0c, 0x6d, 0xe3, 0xc1, 0x13, 0xd8, 0x60, 0x65, + 0x13, 0x0d, 0x7c, 0xb3, 0xf5, 0xa2, 0xd2, 0x30, 0xeb, 0x5c, 0xaf, 0xe6, 0x49, 0xc7, 0xd2, 0x24, + 0x86, 0xea, 0xa8, 0x7d, 0xd2, 0xa0, 0x41, 0x5e, 0x82, 0x22, 0xa5, 0x52, 0xaf, 0x6b, 0xf2, 0x83, + 0x2f, 0x21, 0xcf, 0x8f, 0x12, 0x5d, 0x63, 0xb6, 0x3a, 0x06, 0xa6, 0x3b, 0x53, 0x8d, 0x98, 0x3f, + 0x04, 0x2f, 0x0b, 0x1c, 0x2d, 0x4b, 0x35, 0x4a, 0x06, 0x91, 0x4c, 0x77, 0x7c, 0x66, 0xbc, 0xdc, + 0xef, 0x18, 0x87, 0x5a, 0x8e, 0xca, 0xb6, 0xcc, 0xa6, 0xd1, 0x79, 0xd9, 0xaa, 0x69, 0x1b, 0xfb, + 0xdf, 0x6e, 0xc2, 0x66, 0xd3, 0x1d, 0x9c, 0x4d, 0x82, 0x0e, 0xf1, 0xcf, 0xdc, 0x2e, 0x41, 0xbf, + 0x00, 0xad, 0xe6, 0x13, 0x27, 0x24, 0xb3, 0xae, 0x1f, 0x2d, 0xfc, 0x84, 0xb4, 0xb7, 0xa8, 0xef, + 0xd7, 0x33, 0xe8, 0x00, 0x36, 0x8f, 0x9c, 0x20, 0xc6, 0x7d, 0x3b, 0x55, 0xab, 0xc7, 0x2f, 0x92, + 0xbd, 0x1b, 0x73, 0x55, 0x1d, 0x7f, 0xd9, 0xca, 0x20, 0x13, 0x50, 0x9d, 0x04, 0x5d, 0xdf, 0x3d, + 0x25, 0xab, 0x0a, 0x5b, 0x88, 0x53, 0xcf, 0xa0, 0xe7, 0xd4, 0x81, 0x93, 0x51, 0xb8, 0xaa, 0x9c, + 0x77, 0x96, 0x4c, 0x4e, 0x9f, 0xc0, 0x32, 0xe8, 0x97, 0xb0, 0xdd, 0x79, 0x4d, 0x7f, 0x46, 0x73, + 0x41, 0xca, 0x4a, 0xe2, 0x89, 0x6c, 0xa9, 0xac, 0xe8, 0x7b, 0xab, 0x9e, 0x41, 0xc7, 0x80, 0x92, + 0xb2, 0xd8, 0x33, 0xcb, 0xa5, 0x08, 0x97, 0x4d, 0xb2, 0x67, 0x95, 0x0c, 0xaa, 0xc3, 0x56, 0xdd, + 0xf7, 0xc6, 0xab, 0xea, 0xbb, 0xc4, 0x93, 0x9f, 0x80, 0xca, 0x43, 0x81, 0x3d, 0xe8, 0xa1, 0x64, + 0x1d, 0x3c, 0x7b, 0xe4, 0x5b, 0xc6, 0x5e, 0x83, 0xcd, 0xc8, 0x81, 0x6f, 0x11, 0xb0, 0x6c, 0x42, + 0xcf, 0xa0, 0xa7, 0xa0, 0x50, 0x4d, 0xbe, 0x1b, 0x02, 0x03, 0xb6, 0xb9, 0x02, 0xd3, 0x0f, 0x92, + 0x29, 0x3b, 0x24, 0xbf, 0x7a, 0x2e, 0x17, 0x53, 0x3a, 0x72, 0x82, 0x15, 0x65, 0x2c, 0x0f, 0xe8, + 0x67, 0xb0, 0x45, 0xdd, 0x3c, 0x5d, 0x1f, 0x5c, 0xee, 0x94, 0xbd, 0xc5, 0xbb, 0x88, 0x98, 0xa1, + 0xc6, 0xf5, 0xbd, 0xf1, 0xd5, 0x14, 0xfb, 0x18, 0xf2, 0xbc, 0x00, 0x47, 0xe5, 0x94, 0x65, 0xa7, + 0xdf, 0xca, 0x52, 0xfa, 0x4c, 0x3f, 0x8c, 0x32, 0xb3, 0x6c, 0x4e, 0x5f, 0xef, 0xaa, 0x17, 0x66, + 0x3d, 0x05, 0x21, 0xf9, 0xf8, 0xb6, 0xb7, 0xf8, 0x83, 0x80, 0x9e, 0x41, 0x47, 0xb4, 0xfd, 0x9b, + 0x3d, 0x02, 0xa2, 0xef, 0xa5, 0xba, 0x8f, 0xd4, 0xfb, 0xe0, 0x25, 0x80, 0x3e, 0x85, 0x3c, 0x2f, + 0x65, 0xd1, 0xd2, 0xef, 0x31, 0x7b, 0xc9, 0x99, 0xd8, 0x07, 0x0f, 0x76, 0x0e, 0xb7, 0x53, 0xdf, + 0x85, 0xd0, 0xbb, 0x0b, 0x04, 0x25, 0xbf, 0x1a, 0x5d, 0x2a, 0xf1, 0x31, 0xc8, 0xb5, 0x61, 0x6f, + 0x49, 0x66, 0x48, 0x81, 0x8c, 0x7d, 0x2f, 0xc8, 0xa0, 0x0a, 0xc0, 0xec, 0x31, 0x17, 0x25, 0x8b, + 0xeb, 0xd4, 0x2b, 0xef, 0x32, 0xe7, 0x1e, 0xc2, 0xce, 0xb1, 0x4f, 0x06, 0x9e, 0xd3, 0xbb, 0x62, + 0x1a, 0x78, 0x0c, 0x1b, 0xec, 0xc5, 0x3b, 0x75, 0xfc, 0x66, 0xaf, 0xe0, 0xcb, 0x18, 0x9f, 0xb2, + 0x0f, 0x05, 0x63, 0xa7, 0x1b, 0xa2, 0x5b, 0xf3, 0xef, 0x35, 0xe2, 0xf9, 0x7b, 0x19, 0x73, 0x15, + 0x8a, 0xc2, 0x6f, 0x55, 0xb4, 0xb7, 0xcc, 0x9d, 0xc7, 0xd5, 0xcb, 0xcc, 0x7f, 0x9a, 0x67, 0xff, + 0xc0, 0xf3, 0xe1, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x32, 0x13, 0xfb, 0xba, 0xd0, 0x23, 0x00, + 0x00, +} diff --git a/writer/client-go/pb/suvlim.proto b/writer/client-go/pb/suvlim.proto new file mode 100644 index 0000000000..f629d79db5 --- /dev/null +++ b/writer/client-go/pb/suvlim.proto @@ -0,0 +1,716 @@ +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; +} + +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; +} + +enum SyncType { + READ = 0; + WRITE = 1; +} +message TimeSyncMsg{ + int64 peer_Id = 1; + int64 Timestamp = 2; + SyncType sync_type = 3; +} + +message SegmentRecord { + int64 uid = 1; + repeated int64 segment_id = 2; +} + +message Key2SegMsg { + int64 client_id = 1; + SegmentRecord records = 2; +} \ No newline at end of file diff --git a/writer/client-go/query_node.go b/writer/client-go/query_node.go new file mode 100644 index 0000000000..60b4f737fe --- /dev/null +++ b/writer/client-go/query_node.go @@ -0,0 +1,71 @@ +package client_go + +import ( + "fmt" + "suvlim/pulsar/client-go/schema" + "sync" + "time" +) + +var ( + consumerQSchema = "{\"type\":\"record\",\"name\":\"suvlim\",\"namespace\":\"pulsar\",\"fields\":[" + + "{\"name\":\"MsgType\",\"type\":\"OpType\"}," + + "]}" +) + +type QueryNode struct { + mc MessageClient +} + +func (qn *QueryNode)doQueryNode(wg sync.WaitGroup) { + wg.Add(3) + go qn.insert_query(qn.mc.InsertMsg, wg) + go qn.delete_query(qn.mc.DeleteMsg, wg) + go qn.search_query(qn.mc.SearchMsg, wg) + wg.Wait() +} + + +func (qn *QueryNode) PrepareBatchMsg() { + qn.mc.PrepareBatchMsg(JobType(0)) +} + +func (qn *QueryNode)ReceiveMessage() { + qn.mc.ReceiveMessage() +} + +func main() { + + mc := MessageClient{} + topics := []string{"insert", "delete"} + mc.InitClient("pulsar://localhost:6650", topics, consumerQSchema) + + qn := QueryNode{mc} + wg := sync.WaitGroup{} + go qn.ReceiveMessage() + + for { + time.Sleep(200 * time.Millisecond) + qn.PrepareBatchMsg() + qn.doQueryNode(wg) + fmt.Println("do a batch in 200ms") + } +} + +func (qn *QueryNode) insert_query(data []*schema.InsertMsg, wg sync.WaitGroup) schema.Status { + wg.Done() + return schema.Status{schema.ErrorCode_SUCCESS, ""} +} + +func (qn *QueryNode) delete_query(data []*schema.DeleteMsg, wg sync.WaitGroup) schema.Status { + wg.Done() + return schema.Status{schema.ErrorCode_SUCCESS, ""} +} + +func (qn *QueryNode) search_query(data []*schema.SearchMsg, wg sync.WaitGroup) schema.Status { + wg.Done() + return schema.Status{schema.ErrorCode_SUCCESS, ""} +} + + + diff --git a/writer/client-go/schema/message.go b/writer/client-go/schema/message.go new file mode 100644 index 0000000000..0dbe7e97f3 --- /dev/null +++ b/writer/client-go/schema/message.go @@ -0,0 +1,198 @@ +package schema + +import ( + "encoding/json" + "fmt" +) + +type ErrorCode int32 + +const ( + ErrorCode_SUCCESS ErrorCode = 0 + ErrorCode_UNEXPECTED_ERROR ErrorCode = 1 + ErrorCode_CONNECT_FAILED ErrorCode = 2 + ErrorCode_PERMISSION_DENIED ErrorCode = 3 + ErrorCode_COLLECTION_NOT_EXISTS ErrorCode = 4 + ErrorCode_ILLEGAL_ARGUMENT ErrorCode = 5 + ErrorCode_ILLEGAL_DIMENSION ErrorCode = 7 + ErrorCode_ILLEGAL_INDEX_TYPE ErrorCode = 8 + ErrorCode_ILLEGAL_COLLECTION_NAME ErrorCode = 9 + ErrorCode_ILLEGAL_TOPK ErrorCode = 10 + ErrorCode_ILLEGAL_ROWRECORD ErrorCode = 11 + ErrorCode_ILLEGAL_VECTOR_ID ErrorCode = 12 + ErrorCode_ILLEGAL_SEARCH_RESULT ErrorCode = 13 + ErrorCode_FILE_NOT_FOUND ErrorCode = 14 + ErrorCode_META_FAILED ErrorCode = 15 + ErrorCode_CACHE_FAILED ErrorCode = 16 + ErrorCode_CANNOT_CREATE_FOLDER ErrorCode = 17 + ErrorCode_CANNOT_CREATE_FILE ErrorCode = 18 + ErrorCode_CANNOT_DELETE_FOLDER ErrorCode = 19 + ErrorCode_CANNOT_DELETE_FILE ErrorCode = 20 + ErrorCode_BUILD_INDEX_ERROR ErrorCode = 21 + ErrorCode_ILLEGAL_NLIST ErrorCode = 22 + ErrorCode_ILLEGAL_METRIC_TYPE ErrorCode = 23 + ErrorCode_OUT_OF_MEMORY ErrorCode = 24 +) + +type Status struct { + Error_code ErrorCode + Reason string +} + +type DataType int32 + +const ( + NONE DataType = 0 + BOOL DataType = 1 + INT8 DataType = 2 + INT16 DataType = 3 + INT32 DataType = 4 + INT64 DataType = 5 + FLOAT DataType = 10 + DOUBLE DataType = 11 + STRING DataType = 20 + VectorBinary DataType = 100 + VectorFloat DataType = 101 +) + +type AttrRecord struct { + Int32Value int32 + Int64Value int64 + FloatValue float32 + DoubleValue float64 +} + +type VectorRowRecord struct { + FloatData []float32 + BinaryData []byte +} + +type VectorRecord struct { + Records *VectorRowRecord +} + +type FieldValue struct { + FieldName string + Type DataType + AttrRecord *AttrRecord //what's the diff with VectorRecord + VectorRecord *VectorRecord +} + +type VectorParam struct { + Json string + RowRecord *VectorRecord +} + +type SegmentRecord struct { + segInfo []string +} + +type OpType int + +const ( + Insert OpType = 0 + Delete OpType = 1 + Search OpType = 2 + TimeSync OpType = 3 + Key2Seg OpType = 4 + Statistics OpType = 5 + EOF OpType = 6 +) + +type PulsarMessage struct { + CollectionName string + Fields []*FieldValue + EntityId int64 + PartitionTag string + VectorParam *VectorParam + Segments []*SegmentRecord + Timestamp int64 + ClientId int64 + MsgType OpType + TopicName string + PartitionId int64 + +} + +type Message interface { + GetType() OpType + Serialization() []byte + Deserialization(serializationData []byte) +} + +type InsertMsg struct { + CollectionName string + Fields []*FieldValue + EntityId uint64 + PartitionTag string + SegmentId uint64 + Timestamp uint64 + ClientId int64 + MsgType OpType +} + +type DeleteMsg struct { + CollectionName string + EntityId uint64 + Timestamp uint64 + ClientId int64 + MsgType OpType +} + +type SearchMsg struct { + CollectionName string + PartitionTag string + VectorParam *VectorParam + Timestamp uint64 + ClientId int64 + MsgType OpType +} + +type TimeSyncMsg struct { + ClientId int64 + Timestamp int64 + MsgType OpType +} + +type Key2SegMsg struct { + EntityId int64 + Segments []*SegmentRecord + MsgType OpType +} + +func (ims *InsertMsg) GetType() OpType { + return ims.MsgType +} + +func (ims *InsertMsg) Serialization() []byte { + data, err := json.Marshal(ims) + if err != nil { + fmt.Println("Can't serialization") + } + return data +} + +func (ims *InsertMsg) Deserialization(serializationData []byte) { + +} + +func (dms *DeleteMsg) GetType() OpType { + return dms.MsgType +} + +func (sms *SearchMsg) GetType() OpType { + return sms.MsgType +} + +func (tms *TimeSyncMsg) GetType() OpType { + return tms.MsgType +} + +func (kms *Key2SegMsg) GetType() OpType { + return kms.MsgType +} + +type SyncEofMsg struct { + MsgType OpType +} + diff --git a/writer/client-go/storage_node.go b/writer/client-go/storage_node.go new file mode 100644 index 0000000000..b8a37a8098 --- /dev/null +++ b/writer/client-go/storage_node.go @@ -0,0 +1,56 @@ +package client_go + +import ( + "fmt" + "suvlim/pulsar/client-go/schema" + "sync" + "time" +) + +var ( + consumerWSchema = "{\"type\":\"record\",\"name\":\"suvlim\",\"namespace\":\"pulsar\",\"fields\":[" + + "{\"name\":\"MsgType\",\"type\":\"OpType\"}," + + "]}" +) + +type WriteNode struct { + mc MessageClient +} + +func (wn *WriteNode) doWriteNode(wg sync.WaitGroup) { + wg.Add(2) + go wn.insert_write(wn.mc.InsertMsg, wg) + go wn.delete_write(wn.mc.DeleteMsg, wg) + wg.Wait() +} + +func (wn *WriteNode) PrepareBatchMsg() { + wn.mc.PrepareBatchMsg(JobType(1)) +} +func main() { + + mc := MessageClient{} + topics := []string{"insert", "delete"} + mc.InitClient("pulsar://localhost:6650", topics, consumerWSchema) + + go mc.ReceiveMessage() + wg := sync.WaitGroup{} + wn := WriteNode{mc} + + for { + time.Sleep(200 * time.Millisecond) + wn.PrepareBatchMsg() + wn.doWriteNode(wg) + fmt.Println("do a batch in 200ms") + } +} + +func (wn *WriteNode) insert_write(data []*schema.InsertMsg, wg sync.WaitGroup) schema.Status { + wg.Done() + return schema.Status{schema.ErrorCode_SUCCESS, ""} +} + +func (wn *WriteNode) delete_write(data []*schema.DeleteMsg, wg sync.WaitGroup) schema.Status { + wg.Done() + return schema.Status{schema.ErrorCode_SUCCESS, ""} +} diff --git a/writer/client-go/test/client_test.go b/writer/client-go/test/client_test.go new file mode 100644 index 0000000000..f13a91cb2c --- /dev/null +++ b/writer/client-go/test/client_test.go @@ -0,0 +1,19 @@ +package test + +import "sync" + +var ( + wg sync.WaitGroup + + OriginMsgSchema = "{\"type\":\"record\",\"name\":\"suvlim\",\"namespace\":\"pulsar\",\"fields\":[" + + "{\"name\":\"CollectionName\",\"type\":\"string\"}," + + "{\"name\":\"Fields\",\"type\":\"[]*FieldValue\"}" + + "{\"name\":\"EntityId\",\"type\":\"int64\"}" + + "{\"name\":\"PartitionTag\",\"type\":\"string\"}" + + "{\"name\":\"VectorParam\",\"type\":\"*VectorParam\"}" + + "{\"name\":\"Segments\",\"type\":\"[]string\"}" + + "{\"name\":\"Timestamp\",\"type\":\"int64\"}" + + "{\"name\":\"ClientId\",\"type\":\"int64\"}" + + "{\"name\":\"MsgType\",\"type\":\"OpType\"}" + + "]}" +) \ No newline at end of file