diff --git a/.gitignore b/.gitignore index f15bffe42612b11012c82a5982d0c41e1ab73742..a0c44457d8797aba3b1ba81bad365a47ca55aa66 100644 --- a/.gitignore +++ b/.gitignore @@ -21,7 +21,7 @@ cmake_build # Docker generated cache file .docker/ -# proxy +# proxynode proxy/milvus proxy/cmake_build proxy/cmake-build-debug diff --git a/.jenkins/modules/Publish/Publish.groovy b/.jenkins/modules/Publish/Publish.groovy index ad209ccf6b5f2c3baccec7f19b728320feb240db..fd8f25d0a8a473834e77b4f783b099f526443ac6 100644 --- a/.jenkins/modules/Publish/Publish.groovy +++ b/.jenkins/modules/Publish/Publish.groovy @@ -21,9 +21,9 @@ dir ('build/docker/deploy') { sh 'docker-compose build --force-rm indexbuilder' sh 'docker-compose push indexbuilder' - sh 'docker pull ${SOURCE_REPO}/proxy:${SOURCE_TAG} || true' - sh 'docker-compose build --force-rm proxy' - sh 'docker-compose push proxy' + sh 'docker pull ${SOURCE_REPO}/proxynode:${SOURCE_TAG} || true' + sh 'docker-compose build --force-rm proxynode' + sh 'docker-compose push proxynode' sh 'docker pull registry.zilliz.com/milvus-distributed/milvus-distributed-dev:latest || true' sh 'docker pull ${SOURCE_REPO}/querynode:${SOURCE_TAG} || true' diff --git a/.jenkins/modules/Regression/PythonRegression.groovy b/.jenkins/modules/Regression/PythonRegression.groovy index 89a16f22eaad6dfdeb17c106af2d367aaac908d2..d5259b44fdbc75788365e16ffb1d4e95d6b8e9c7 100644 --- a/.jenkins/modules/Regression/PythonRegression.groovy +++ b/.jenkins/modules/Regression/PythonRegression.groovy @@ -7,7 +7,7 @@ try { sh 'docker-compose -p ${DOCKER_COMPOSE_PROJECT_NAME} pull' sh 'docker-compose -p ${DOCKER_COMPOSE_PROJECT_NAME} up -d master' sh 'docker-compose -p ${DOCKER_COMPOSE_PROJECT_NAME} up -d indexbuilder' - sh 'docker-compose -p ${DOCKER_COMPOSE_PROJECT_NAME} up -d proxy' + sh 'docker-compose -p ${DOCKER_COMPOSE_PROJECT_NAME} up -d proxynode' sh 'docker-compose -p ${DOCKER_COMPOSE_PROJECT_NAME} run -e QUERY_NODE_ID=1 -d querynode' sh 'docker-compose -p ${DOCKER_COMPOSE_PROJECT_NAME} run -e QUERY_NODE_ID=2 -d querynode' sh 'docker-compose -p ${DOCKER_COMPOSE_PROJECT_NAME} run -e WRITE_NODE_ID=3 -d writenode' diff --git a/Makefile b/Makefile index fd88db4bffccb371832bc443fdd2a94a6f79c5d3..be19d6841dc4dcba49e355601b18f3fd0cd40085 100644 --- a/Makefile +++ b/Makefile @@ -87,7 +87,7 @@ master: build-cpp proxynode: build-cpp @echo "Building each component's binary to './bin'" @echo "Building proxy ..." - @mkdir -p $(INSTALL_PATH) && go env -w CGO_ENABLED="0" && GO111MODULE=on $(GO) build -o $(INSTALL_PATH)/proxy $(PWD)/cmd/proxy/proxy.go 1>/dev/null + @mkdir -p $(INSTALL_PATH) && go env -w CGO_ENABLED="0" && GO111MODULE=on $(GO) build -o $(INSTALL_PATH)/proxynode $(PWD)/cmd/proxy/node/proxy_node.go 1>/dev/null # Builds various components locally. querynode: build-cpp @@ -113,8 +113,8 @@ build-go: build-cpp @echo "Building each component's binary to './bin'" @echo "Building master ..." @mkdir -p $(INSTALL_PATH) && go env -w CGO_ENABLED="0" && GO111MODULE=on $(GO) build -o $(INSTALL_PATH)/master $(PWD)/cmd/master/main.go 1>/dev/null - @echo "Building proxy ..." - @mkdir -p $(INSTALL_PATH) && go env -w CGO_ENABLED="0" && GO111MODULE=on $(GO) build -o $(INSTALL_PATH)/proxy $(PWD)/cmd/proxy/proxy.go 1>/dev/null + @echo "Building proxy node ..." + @mkdir -p $(INSTALL_PATH) && go env -w CGO_ENABLED="0" && GO111MODULE=on $(GO) build -o $(INSTALL_PATH)/proxynode $(PWD)/cmd/proxy/node/proxy_node.go 1>/dev/null @echo "Building query node ..." @mkdir -p $(INSTALL_PATH) && go env -w CGO_ENABLED="1" && GO111MODULE=on $(GO) build -o $(INSTALL_PATH)/querynode $(PWD)/cmd/querynode/query_node.go 1>/dev/null @echo "Building indexbuilder ..." @@ -145,7 +145,7 @@ build-cpp-with-unittest: # Runs the tests. unittest: test-cpp test-go -#TODO: proxy master query node writer's unittest +#TODO: proxynode master query node writer's unittest test-go:build-cpp @echo "Running go unittests..." @(env bash $(PWD)/scripts/run_go_unittest.sh) @@ -165,7 +165,7 @@ install: all @echo "Installing binary to './bin'" @mkdir -p $(GOPATH)/bin && cp -f $(PWD)/bin/querynode $(GOPATH)/bin/querynode @mkdir -p $(GOPATH)/bin && cp -f $(PWD)/bin/master $(GOPATH)/bin/master - @mkdir -p $(GOPATH)/bin && cp -f $(PWD)/bin/proxy $(GOPATH)/bin/proxy + @mkdir -p $(GOPATH)/bin && cp -f $(PWD)/bin/proxynode $(GOPATH)/bin/proxynode @mkdir -p $(GOPATH)/bin && cp -f $(PWD)/bin/writenode $(GOPATH)/bin/writenode @mkdir -p $(GOPATH)/bin && cp -f $(PWD)/bin/indexbuilder $(GOPATH)/bin/indexbuilder @mkdir -p $(GOPATH)/bin && cp -f $(PWD)/bin/singlenode $(GOPATH)/bin/singlenode @@ -179,7 +179,7 @@ clean: @rm -rf bin/ @rm -rf lib/ @rm -rf $(GOPATH)/bin/master - @rm -rf $(GOPATH)/bin/proxy + @rm -rf $(GOPATH)/bin/proxynode @rm -rf $(GOPATH)/bin/querynode @rm -rf $(GOPATH)/bin/writenode @rm -rf $(GOPATH)/bin/indexbuilder diff --git a/build/docker/deploy/docker-compose.yml b/build/docker/deploy/docker-compose.yml index 9eaf635e9cec93af6e9424a031cf77ba21d56ccc..394c90237e8438d4ed431cb9c3769f8813b822fa 100644 --- a/build/docker/deploy/docker-compose.yml +++ b/build/docker/deploy/docker-compose.yml @@ -15,13 +15,13 @@ services: networks: - milvus - proxy: - image: ${TARGET_REPO}/proxy:${TARGET_TAG} + proxynode: + image: ${TARGET_REPO}/proxynode:${TARGET_TAG} build: context: ../../../ - dockerfile: build/docker/deploy/proxy/DockerFile + dockerfile: build/docker/deploy/proxynode/DockerFile cache_from: - - ${SOURCE_REPO}/proxy:${SOURCE_TAG} + - ${SOURCE_REPO}/proxynode:${SOURCE_TAG} environment: PULSAR_ADDRESS: ${PULSAR_ADDRESS} MASTER_ADDRESS: ${MASTER_ADDRESS} diff --git a/build/docker/deploy/proxy/DockerFile b/build/docker/deploy/proxynode/DockerFile similarity index 89% rename from build/docker/deploy/proxy/DockerFile rename to build/docker/deploy/proxynode/DockerFile index 8e4857b3a691a9593f0ddd42fc0be899a8140604..d21c9015b1282ca15024f56347223caf94be68c3 100644 --- a/build/docker/deploy/proxy/DockerFile +++ b/build/docker/deploy/proxynode/DockerFile @@ -11,12 +11,12 @@ FROM alpine:3.12.1 -COPY ./bin/proxy /milvus-distributed/bin/proxy +COPY ./bin/proxynode /milvus-distributed/bin/proxynode COPY ./configs/ /milvus-distributed/configs/ WORKDIR /milvus-distributed/ -CMD ["./bin/proxy"] +CMD ["./bin/proxynode"] EXPOSE 19530 diff --git a/build/docker/test/docker-compose.yml b/build/docker/test/docker-compose.yml index 24c4fafe8772b68a2ab9af9948bf9ce16cfea5c8..21d61f4c4371121374ff6b201bfc4a5a2ea8d6ec 100644 --- a/build/docker/test/docker-compose.yml +++ b/build/docker/test/docker-compose.yml @@ -12,7 +12,7 @@ services: - ../../..:/milvus-distributed:delegated working_dir: "/milvus-distributed/tests/python" command: > - /bin/bash -c "pytest --ip proxy" + /bin/bash -c "pytest --ip proxynode" networks: - milvus diff --git a/cmd/proxy/proxy.go b/cmd/proxy/node/proxy_node.go similarity index 68% rename from cmd/proxy/proxy.go rename to cmd/proxy/node/proxy_node.go index 9e28960e8c937d6e286ba15311af851e12b9b4a8..16bd23e3b72006055f8b9479e5bb92b4bd847739 100644 --- a/cmd/proxy/proxy.go +++ b/cmd/proxy/node/proxy_node.go @@ -2,21 +2,19 @@ package main import ( "context" - "fmt" "log" "os" "os/signal" "syscall" - "github.com/zilliztech/milvus-distributed/internal/proxynode" + grpcproxynode "github.com/zilliztech/milvus-distributed/internal/distributed/proxynode" + "go.uber.org/zap" ) func main() { - proxynode.Init() - fmt.Println("ProxyID is", proxynode.Params.ProxyID()) ctx, cancel := context.WithCancel(context.Background()) - svr, err := proxynode.CreateProxy(ctx) + svr, err := grpcproxynode.CreateProxyNodeServer() if err != nil { log.Print("create server failed", zap.Error(err)) } @@ -34,6 +32,10 @@ func main() { cancel() }() + if err := svr.Init(); err != nil { + log.Fatal("Init server failed", zap.Error(err)) + } + if err := svr.Start(); err != nil { log.Fatal("run server failed", zap.Error(err)) } @@ -41,7 +43,9 @@ func main() { <-ctx.Done() log.Print("Got signal to exit", zap.String("signal", sig.String())) - svr.Close() + if err := svr.Stop(); err != nil { + log.Fatal("stop server failed", zap.Error(err)) + } switch sig { case syscall.SIGTERM: exit(0) diff --git a/cmd/singlenode/main.go b/cmd/singlenode/main.go index 383fc4f40f0fa7eb89fbb8b55721e7d7ca3d287d..90cba0b75d95b3c116543e7940909d7d8ab9483a 100644 --- a/cmd/singlenode/main.go +++ b/cmd/singlenode/main.go @@ -16,7 +16,7 @@ import ( "github.com/zilliztech/milvus-distributed/internal/indexnode" "github.com/zilliztech/milvus-distributed/internal/master" - "github.com/zilliztech/milvus-distributed/internal/proxynode" + proxynodeimpl "github.com/zilliztech/milvus-distributed/internal/proxynode" "github.com/zilliztech/milvus-distributed/internal/querynode" "github.com/zilliztech/milvus-distributed/internal/writenode" ) @@ -62,10 +62,10 @@ func InitMaster(cpuprofile *string, wg *sync.WaitGroup) { func InitProxy(wg *sync.WaitGroup) { defer wg.Done() - proxynode.Init() - fmt.Println("ProxyID is", proxynode.Params.ProxyID()) + //proxynodeimpl.Init() + //fmt.Println("ProxyID is", proxynodeimpl.Params.ProxyID()) ctx, cancel := context.WithCancel(context.Background()) - svr, err := proxynode.CreateProxy(ctx) + svr, err := proxynodeimpl.CreateProxyNodeImpl(ctx) if err != nil { log.Print("create server failed", zap.Error(err)) } @@ -83,6 +83,10 @@ func InitProxy(wg *sync.WaitGroup) { cancel() }() + if err := svr.Init(); err != nil { + log.Fatal("init server failed", zap.Error(err)) + } + if err := svr.Start(); err != nil { log.Fatal("run server failed", zap.Error(err)) } @@ -90,7 +94,7 @@ func InitProxy(wg *sync.WaitGroup) { <-ctx.Done() log.Print("Got signal to exit", zap.String("signal", sig.String())) - svr.Close() + svr.Stop() switch sig { case syscall.SIGTERM: exit(0) diff --git a/configs/milvus.yaml b/configs/milvus.yaml index cdba95b8451654baf661695ba233870a22186c53..70abb5d82cf680c29d6815455c81784f4dab8812 100644 --- a/configs/milvus.yaml +++ b/configs/milvus.yaml @@ -51,6 +51,11 @@ proxyNode: address: localhost port: 19530 +# not used now +proxyService: + address: localhost + port: 19530 + queryNode: gracefulTime: 5000 #ms diff --git a/go.mod b/go.mod index e9ee582d717d5be3f6faf856b8036a1a27b540ba..7f6ef26c6717ca1f25a2e85234cb4b618bd628e8 100644 --- a/go.mod +++ b/go.mod @@ -12,6 +12,7 @@ require ( github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548 // indirect github.com/frankban/quicktest v1.10.2 // indirect github.com/fsnotify/fsnotify v1.4.9 // indirect + github.com/go-basic/ipv4 v1.0.0 github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/mock v1.3.1 github.com/golang/protobuf v1.3.2 diff --git a/go.sum b/go.sum index 760fe45479ddbbb3ee749d0a02fa7827e6b6f95a..daea2cfd28312c3db7d6a7e2208d84459a4357bf 100644 --- a/go.sum +++ b/go.sum @@ -100,6 +100,8 @@ github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMo github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/go-basic/ipv4 v1.0.0 h1:gjyFAa1USC1hhXTkPOwBWDPfMcUaIM+tvo1XzV9EZxs= +github.com/go-basic/ipv4 v1.0.0/go.mod h1:etLBnaxbidQfuqE6wgZQfs38nEWNmzALkxDZe4xY8Dg= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= diff --git a/internal/core/src/pb/CMakeLists.txt b/internal/core/src/pb/CMakeLists.txt index 36d2903358c3c64f5551649f3ec1cd7387ee2995..99a95d0186afa135392fac6a9bcc8badf3c0f9a8 100644 --- a/internal/core/src/pb/CMakeLists.txt +++ b/internal/core/src/pb/CMakeLists.txt @@ -1,7 +1,7 @@ get_property(PROTOC_EXCUTABLE GLOBAL PROPERTY PROTOC_EXCUTABLE ) -set(proto_file_names common.proto etcd_meta.proto schema.proto service_msg.proto index_cgo_msg.proto) +set(proto_file_names common.proto etcd_meta.proto schema.proto milvus.proto index_cgo_msg.proto) set( PROTO_PATH "${MILVUS_SOURCE_DIR}/../proto/" ) diff --git a/internal/core/src/pb/milvus.pb.cc b/internal/core/src/pb/milvus.pb.cc new file mode 100644 index 0000000000000000000000000000000000000000..57d358abd072d0e26a751d0d7e231c5b877a9f44 --- /dev/null +++ b/internal/core/src/pb/milvus.pb.cc @@ -0,0 +1,17527 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: milvus.proto + +#include "milvus.pb.h" + +#include <algorithm> + +#include <google/protobuf/stubs/common.h> +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/extension_set.h> +#include <google/protobuf/wire_format_lite.h> +#include <google/protobuf/descriptor.h> +#include <google/protobuf/generated_message_reflection.h> +#include <google/protobuf/reflection_ops.h> +#include <google/protobuf/wire_format.h> +// @@protoc_insertion_point(includes) +#include <google/protobuf/port_def.inc> +extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Blob_common_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KeyValuePair_common_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MsgBase_common_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Status_common_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_IndexDescription_milvus_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PlaceholderValue_milvus_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_schema_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionSchema_schema_2eproto; +namespace milvus { +namespace proto { +namespace milvus { +class CreateCollectionRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CreateCollectionRequest> _instance; +} _CreateCollectionRequest_default_instance_; +class DropCollectionRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DropCollectionRequest> _instance; +} _DropCollectionRequest_default_instance_; +class HasCollectionRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<HasCollectionRequest> _instance; +} _HasCollectionRequest_default_instance_; +class BoolResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<BoolResponse> _instance; +} _BoolResponse_default_instance_; +class StringResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<StringResponse> _instance; +} _StringResponse_default_instance_; +class DescribeCollectionRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DescribeCollectionRequest> _instance; +} _DescribeCollectionRequest_default_instance_; +class DescribeCollectionResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DescribeCollectionResponse> _instance; +} _DescribeCollectionResponse_default_instance_; +class LoadCollectionRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LoadCollectionRequest> _instance; +} _LoadCollectionRequest_default_instance_; +class ReleaseCollectionRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ReleaseCollectionRequest> _instance; +} _ReleaseCollectionRequest_default_instance_; +class CollectionStatsRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CollectionStatsRequest> _instance; +} _CollectionStatsRequest_default_instance_; +class CollectionStatsResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CollectionStatsResponse> _instance; +} _CollectionStatsResponse_default_instance_; +class ShowCollectionRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ShowCollectionRequest> _instance; +} _ShowCollectionRequest_default_instance_; +class ShowCollectionResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ShowCollectionResponse> _instance; +} _ShowCollectionResponse_default_instance_; +class CreatePartitionRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CreatePartitionRequest> _instance; +} _CreatePartitionRequest_default_instance_; +class DropPartitionRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DropPartitionRequest> _instance; +} _DropPartitionRequest_default_instance_; +class HasPartitionRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<HasPartitionRequest> _instance; +} _HasPartitionRequest_default_instance_; +class LoadPartitonRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LoadPartitonRequest> _instance; +} _LoadPartitonRequest_default_instance_; +class ReleasePartitionRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ReleasePartitionRequest> _instance; +} _ReleasePartitionRequest_default_instance_; +class PartitionStatsRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PartitionStatsRequest> _instance; +} _PartitionStatsRequest_default_instance_; +class PartitionStatsResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PartitionStatsResponse> _instance; +} _PartitionStatsResponse_default_instance_; +class ShowPartitionRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ShowPartitionRequest> _instance; +} _ShowPartitionRequest_default_instance_; +class ShowPartitionResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ShowPartitionResponse> _instance; +} _ShowPartitionResponse_default_instance_; +class DescribeSegmentRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DescribeSegmentRequest> _instance; +} _DescribeSegmentRequest_default_instance_; +class DescribeSegmentResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DescribeSegmentResponse> _instance; +} _DescribeSegmentResponse_default_instance_; +class ShowSegmentRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ShowSegmentRequest> _instance; +} _ShowSegmentRequest_default_instance_; +class ShowSegmentResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ShowSegmentResponse> _instance; +} _ShowSegmentResponse_default_instance_; +class CreateIndexRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CreateIndexRequest> _instance; +} _CreateIndexRequest_default_instance_; +class DescribeIndexRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DescribeIndexRequest> _instance; +} _DescribeIndexRequest_default_instance_; +class IndexDescriptionDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<IndexDescription> _instance; +} _IndexDescription_default_instance_; +class DescribeIndexResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DescribeIndexResponse> _instance; +} _DescribeIndexResponse_default_instance_; +class IndexStateRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<IndexStateRequest> _instance; +} _IndexStateRequest_default_instance_; +class IndexStateResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<IndexStateResponse> _instance; +} _IndexStateResponse_default_instance_; +class InsertRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<InsertRequest> _instance; +} _InsertRequest_default_instance_; +class InsertResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<InsertResponse> _instance; +} _InsertResponse_default_instance_; +class PlaceholderValueDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PlaceholderValue> _instance; +} _PlaceholderValue_default_instance_; +class PlaceholderGroupDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PlaceholderGroup> _instance; +} _PlaceholderGroup_default_instance_; +class SearchRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<SearchRequest> _instance; +} _SearchRequest_default_instance_; +class HitsDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Hits> _instance; +} _Hits_default_instance_; +class SearchResultsDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<SearchResults> _instance; +} _SearchResults_default_instance_; +class FlushRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<FlushRequest> _instance; +} _FlushRequest_default_instance_; +} // namespace milvus +} // namespace proto +} // namespace milvus +static void InitDefaultsscc_info_BoolResponse_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_BoolResponse_default_instance_; + new (ptr) ::milvus::proto::milvus::BoolResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::BoolResponse::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_BoolResponse_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_BoolResponse_milvus_2eproto}, { + &scc_info_Status_common_2eproto.base,}}; + +static void InitDefaultsscc_info_CollectionStatsRequest_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_CollectionStatsRequest_default_instance_; + new (ptr) ::milvus::proto::milvus::CollectionStatsRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::CollectionStatsRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionStatsRequest_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_CollectionStatsRequest_milvus_2eproto}, { + &scc_info_MsgBase_common_2eproto.base,}}; + +static void InitDefaultsscc_info_CollectionStatsResponse_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_CollectionStatsResponse_default_instance_; + new (ptr) ::milvus::proto::milvus::CollectionStatsResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::CollectionStatsResponse::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_CollectionStatsResponse_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_CollectionStatsResponse_milvus_2eproto}, { + &scc_info_Status_common_2eproto.base, + &scc_info_KeyValuePair_common_2eproto.base,}}; + +static void InitDefaultsscc_info_CreateCollectionRequest_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_CreateCollectionRequest_default_instance_; + new (ptr) ::milvus::proto::milvus::CreateCollectionRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::CreateCollectionRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CreateCollectionRequest_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_CreateCollectionRequest_milvus_2eproto}, { + &scc_info_MsgBase_common_2eproto.base,}}; + +static void InitDefaultsscc_info_CreateIndexRequest_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_CreateIndexRequest_default_instance_; + new (ptr) ::milvus::proto::milvus::CreateIndexRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::CreateIndexRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_CreateIndexRequest_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_CreateIndexRequest_milvus_2eproto}, { + &scc_info_MsgBase_common_2eproto.base, + &scc_info_KeyValuePair_common_2eproto.base,}}; + +static void InitDefaultsscc_info_CreatePartitionRequest_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_CreatePartitionRequest_default_instance_; + new (ptr) ::milvus::proto::milvus::CreatePartitionRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::CreatePartitionRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CreatePartitionRequest_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_CreatePartitionRequest_milvus_2eproto}, { + &scc_info_MsgBase_common_2eproto.base,}}; + +static void InitDefaultsscc_info_DescribeCollectionRequest_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_DescribeCollectionRequest_default_instance_; + new (ptr) ::milvus::proto::milvus::DescribeCollectionRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::DescribeCollectionRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DescribeCollectionRequest_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_DescribeCollectionRequest_milvus_2eproto}, { + &scc_info_MsgBase_common_2eproto.base,}}; + +static void InitDefaultsscc_info_DescribeCollectionResponse_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_DescribeCollectionResponse_default_instance_; + new (ptr) ::milvus::proto::milvus::DescribeCollectionResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::DescribeCollectionResponse::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_DescribeCollectionResponse_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_DescribeCollectionResponse_milvus_2eproto}, { + &scc_info_Status_common_2eproto.base, + &scc_info_CollectionSchema_schema_2eproto.base,}}; + +static void InitDefaultsscc_info_DescribeIndexRequest_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_DescribeIndexRequest_default_instance_; + new (ptr) ::milvus::proto::milvus::DescribeIndexRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::DescribeIndexRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DescribeIndexRequest_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_DescribeIndexRequest_milvus_2eproto}, { + &scc_info_MsgBase_common_2eproto.base,}}; + +static void InitDefaultsscc_info_DescribeIndexResponse_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_DescribeIndexResponse_default_instance_; + new (ptr) ::milvus::proto::milvus::DescribeIndexResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::DescribeIndexResponse::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_DescribeIndexResponse_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_DescribeIndexResponse_milvus_2eproto}, { + &scc_info_Status_common_2eproto.base, + &scc_info_IndexDescription_milvus_2eproto.base,}}; + +static void InitDefaultsscc_info_DescribeSegmentRequest_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_DescribeSegmentRequest_default_instance_; + new (ptr) ::milvus::proto::milvus::DescribeSegmentRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::DescribeSegmentRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DescribeSegmentRequest_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_DescribeSegmentRequest_milvus_2eproto}, { + &scc_info_MsgBase_common_2eproto.base,}}; + +static void InitDefaultsscc_info_DescribeSegmentResponse_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_DescribeSegmentResponse_default_instance_; + new (ptr) ::milvus::proto::milvus::DescribeSegmentResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::DescribeSegmentResponse::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DescribeSegmentResponse_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_DescribeSegmentResponse_milvus_2eproto}, { + &scc_info_Status_common_2eproto.base,}}; + +static void InitDefaultsscc_info_DropCollectionRequest_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_DropCollectionRequest_default_instance_; + new (ptr) ::milvus::proto::milvus::DropCollectionRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::DropCollectionRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DropCollectionRequest_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_DropCollectionRequest_milvus_2eproto}, { + &scc_info_MsgBase_common_2eproto.base,}}; + +static void InitDefaultsscc_info_DropPartitionRequest_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_DropPartitionRequest_default_instance_; + new (ptr) ::milvus::proto::milvus::DropPartitionRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::DropPartitionRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DropPartitionRequest_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_DropPartitionRequest_milvus_2eproto}, { + &scc_info_MsgBase_common_2eproto.base,}}; + +static void InitDefaultsscc_info_FlushRequest_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_FlushRequest_default_instance_; + new (ptr) ::milvus::proto::milvus::FlushRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::FlushRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_FlushRequest_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_FlushRequest_milvus_2eproto}, { + &scc_info_MsgBase_common_2eproto.base,}}; + +static void InitDefaultsscc_info_HasCollectionRequest_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_HasCollectionRequest_default_instance_; + new (ptr) ::milvus::proto::milvus::HasCollectionRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::HasCollectionRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_HasCollectionRequest_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_HasCollectionRequest_milvus_2eproto}, { + &scc_info_MsgBase_common_2eproto.base,}}; + +static void InitDefaultsscc_info_HasPartitionRequest_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_HasPartitionRequest_default_instance_; + new (ptr) ::milvus::proto::milvus::HasPartitionRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::HasPartitionRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_HasPartitionRequest_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_HasPartitionRequest_milvus_2eproto}, { + &scc_info_MsgBase_common_2eproto.base,}}; + +static void InitDefaultsscc_info_Hits_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_Hits_default_instance_; + new (ptr) ::milvus::proto::milvus::Hits(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::Hits::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Hits_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_Hits_milvus_2eproto}, {}}; + +static void InitDefaultsscc_info_IndexDescription_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_IndexDescription_default_instance_; + new (ptr) ::milvus::proto::milvus::IndexDescription(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::IndexDescription::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_IndexDescription_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_IndexDescription_milvus_2eproto}, { + &scc_info_KeyValuePair_common_2eproto.base,}}; + +static void InitDefaultsscc_info_IndexStateRequest_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_IndexStateRequest_default_instance_; + new (ptr) ::milvus::proto::milvus::IndexStateRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::IndexStateRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_IndexStateRequest_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_IndexStateRequest_milvus_2eproto}, { + &scc_info_MsgBase_common_2eproto.base,}}; + +static void InitDefaultsscc_info_IndexStateResponse_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_IndexStateResponse_default_instance_; + new (ptr) ::milvus::proto::milvus::IndexStateResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::IndexStateResponse::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_IndexStateResponse_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_IndexStateResponse_milvus_2eproto}, { + &scc_info_Status_common_2eproto.base,}}; + +static void InitDefaultsscc_info_InsertRequest_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_InsertRequest_default_instance_; + new (ptr) ::milvus::proto::milvus::InsertRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::InsertRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_InsertRequest_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_InsertRequest_milvus_2eproto}, { + &scc_info_MsgBase_common_2eproto.base, + &scc_info_Blob_common_2eproto.base,}}; + +static void InitDefaultsscc_info_InsertResponse_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_InsertResponse_default_instance_; + new (ptr) ::milvus::proto::milvus::InsertResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::InsertResponse::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_InsertResponse_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_InsertResponse_milvus_2eproto}, { + &scc_info_Status_common_2eproto.base,}}; + +static void InitDefaultsscc_info_LoadCollectionRequest_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_LoadCollectionRequest_default_instance_; + new (ptr) ::milvus::proto::milvus::LoadCollectionRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::LoadCollectionRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LoadCollectionRequest_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_LoadCollectionRequest_milvus_2eproto}, { + &scc_info_MsgBase_common_2eproto.base,}}; + +static void InitDefaultsscc_info_LoadPartitonRequest_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_LoadPartitonRequest_default_instance_; + new (ptr) ::milvus::proto::milvus::LoadPartitonRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::LoadPartitonRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LoadPartitonRequest_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_LoadPartitonRequest_milvus_2eproto}, { + &scc_info_MsgBase_common_2eproto.base,}}; + +static void InitDefaultsscc_info_PartitionStatsRequest_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_PartitionStatsRequest_default_instance_; + new (ptr) ::milvus::proto::milvus::PartitionStatsRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::PartitionStatsRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PartitionStatsRequest_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_PartitionStatsRequest_milvus_2eproto}, { + &scc_info_MsgBase_common_2eproto.base,}}; + +static void InitDefaultsscc_info_PartitionStatsResponse_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_PartitionStatsResponse_default_instance_; + new (ptr) ::milvus::proto::milvus::PartitionStatsResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::PartitionStatsResponse::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_PartitionStatsResponse_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_PartitionStatsResponse_milvus_2eproto}, { + &scc_info_Status_common_2eproto.base, + &scc_info_KeyValuePair_common_2eproto.base,}}; + +static void InitDefaultsscc_info_PlaceholderGroup_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_PlaceholderGroup_default_instance_; + new (ptr) ::milvus::proto::milvus::PlaceholderGroup(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::PlaceholderGroup::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PlaceholderGroup_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_PlaceholderGroup_milvus_2eproto}, { + &scc_info_PlaceholderValue_milvus_2eproto.base,}}; + +static void InitDefaultsscc_info_PlaceholderValue_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_PlaceholderValue_default_instance_; + new (ptr) ::milvus::proto::milvus::PlaceholderValue(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::PlaceholderValue::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PlaceholderValue_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_PlaceholderValue_milvus_2eproto}, {}}; + +static void InitDefaultsscc_info_ReleaseCollectionRequest_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_ReleaseCollectionRequest_default_instance_; + new (ptr) ::milvus::proto::milvus::ReleaseCollectionRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::ReleaseCollectionRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ReleaseCollectionRequest_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ReleaseCollectionRequest_milvus_2eproto}, { + &scc_info_MsgBase_common_2eproto.base,}}; + +static void InitDefaultsscc_info_ReleasePartitionRequest_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_ReleasePartitionRequest_default_instance_; + new (ptr) ::milvus::proto::milvus::ReleasePartitionRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::ReleasePartitionRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ReleasePartitionRequest_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ReleasePartitionRequest_milvus_2eproto}, { + &scc_info_MsgBase_common_2eproto.base,}}; + +static void InitDefaultsscc_info_SearchRequest_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_SearchRequest_default_instance_; + new (ptr) ::milvus::proto::milvus::SearchRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::SearchRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SearchRequest_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_SearchRequest_milvus_2eproto}, { + &scc_info_MsgBase_common_2eproto.base,}}; + +static void InitDefaultsscc_info_SearchResults_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_SearchResults_default_instance_; + new (ptr) ::milvus::proto::milvus::SearchResults(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::SearchResults::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SearchResults_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_SearchResults_milvus_2eproto}, { + &scc_info_Status_common_2eproto.base,}}; + +static void InitDefaultsscc_info_ShowCollectionRequest_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_ShowCollectionRequest_default_instance_; + new (ptr) ::milvus::proto::milvus::ShowCollectionRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::ShowCollectionRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ShowCollectionRequest_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ShowCollectionRequest_milvus_2eproto}, { + &scc_info_MsgBase_common_2eproto.base,}}; + +static void InitDefaultsscc_info_ShowCollectionResponse_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_ShowCollectionResponse_default_instance_; + new (ptr) ::milvus::proto::milvus::ShowCollectionResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::ShowCollectionResponse::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ShowCollectionResponse_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ShowCollectionResponse_milvus_2eproto}, { + &scc_info_Status_common_2eproto.base,}}; + +static void InitDefaultsscc_info_ShowPartitionRequest_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_ShowPartitionRequest_default_instance_; + new (ptr) ::milvus::proto::milvus::ShowPartitionRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::ShowPartitionRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ShowPartitionRequest_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ShowPartitionRequest_milvus_2eproto}, { + &scc_info_MsgBase_common_2eproto.base,}}; + +static void InitDefaultsscc_info_ShowPartitionResponse_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_ShowPartitionResponse_default_instance_; + new (ptr) ::milvus::proto::milvus::ShowPartitionResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::ShowPartitionResponse::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ShowPartitionResponse_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ShowPartitionResponse_milvus_2eproto}, { + &scc_info_Status_common_2eproto.base,}}; + +static void InitDefaultsscc_info_ShowSegmentRequest_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_ShowSegmentRequest_default_instance_; + new (ptr) ::milvus::proto::milvus::ShowSegmentRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::ShowSegmentRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ShowSegmentRequest_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ShowSegmentRequest_milvus_2eproto}, { + &scc_info_MsgBase_common_2eproto.base,}}; + +static void InitDefaultsscc_info_ShowSegmentResponse_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_ShowSegmentResponse_default_instance_; + new (ptr) ::milvus::proto::milvus::ShowSegmentResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::ShowSegmentResponse::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ShowSegmentResponse_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ShowSegmentResponse_milvus_2eproto}, { + &scc_info_Status_common_2eproto.base,}}; + +static void InitDefaultsscc_info_StringResponse_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_StringResponse_default_instance_; + new (ptr) ::milvus::proto::milvus::StringResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::StringResponse::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_StringResponse_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_StringResponse_milvus_2eproto}, { + &scc_info_Status_common_2eproto.base,}}; + +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_milvus_2eproto[40]; +static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_milvus_2eproto[1]; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_milvus_2eproto = nullptr; + +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_milvus_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::CreateCollectionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::CreateCollectionRequest, base_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::CreateCollectionRequest, db_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::CreateCollectionRequest, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::CreateCollectionRequest, schema_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DropCollectionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DropCollectionRequest, base_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DropCollectionRequest, db_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DropCollectionRequest, collection_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::HasCollectionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::HasCollectionRequest, base_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::HasCollectionRequest, db_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::HasCollectionRequest, collection_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::BoolResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::BoolResponse, status_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::BoolResponse, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::StringResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::StringResponse, status_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::StringResponse, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DescribeCollectionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DescribeCollectionRequest, base_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DescribeCollectionRequest, db_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DescribeCollectionRequest, collection_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DescribeCollectionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DescribeCollectionResponse, status_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DescribeCollectionResponse, schema_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::LoadCollectionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::LoadCollectionRequest, base_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::LoadCollectionRequest, db_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::LoadCollectionRequest, collection_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ReleaseCollectionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ReleaseCollectionRequest, base_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ReleaseCollectionRequest, db_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ReleaseCollectionRequest, collection_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::CollectionStatsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::CollectionStatsRequest, base_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::CollectionStatsRequest, db_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::CollectionStatsRequest, collection_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::CollectionStatsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::CollectionStatsResponse, status_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::CollectionStatsResponse, stats_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ShowCollectionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ShowCollectionRequest, base_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ShowCollectionRequest, db_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ShowCollectionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ShowCollectionResponse, status_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ShowCollectionResponse, collection_names_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::CreatePartitionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::CreatePartitionRequest, base_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::CreatePartitionRequest, db_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::CreatePartitionRequest, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::CreatePartitionRequest, partition_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DropPartitionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DropPartitionRequest, base_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DropPartitionRequest, db_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DropPartitionRequest, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DropPartitionRequest, partition_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::HasPartitionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::HasPartitionRequest, base_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::HasPartitionRequest, db_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::HasPartitionRequest, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::HasPartitionRequest, partition_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::LoadPartitonRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::LoadPartitonRequest, base_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::LoadPartitonRequest, db_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::LoadPartitonRequest, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::LoadPartitonRequest, partition_names_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ReleasePartitionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ReleasePartitionRequest, base_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ReleasePartitionRequest, db_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ReleasePartitionRequest, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ReleasePartitionRequest, partition_names_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::PartitionStatsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::PartitionStatsRequest, base_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::PartitionStatsRequest, db_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::PartitionStatsRequest, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::PartitionStatsRequest, partition_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::PartitionStatsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::PartitionStatsResponse, status_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::PartitionStatsResponse, stats_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ShowPartitionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ShowPartitionRequest, base_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ShowPartitionRequest, db_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ShowPartitionRequest, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ShowPartitionRequest, collectionid_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ShowPartitionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ShowPartitionResponse, status_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ShowPartitionResponse, partition_names_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ShowPartitionResponse, partitionids_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DescribeSegmentRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DescribeSegmentRequest, base_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DescribeSegmentRequest, collectionid_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DescribeSegmentRequest, segmentid_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DescribeSegmentResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DescribeSegmentResponse, status_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DescribeSegmentResponse, indexid_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ShowSegmentRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ShowSegmentRequest, base_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ShowSegmentRequest, collectionid_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ShowSegmentRequest, partitionid_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ShowSegmentResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ShowSegmentResponse, status_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::ShowSegmentResponse, segmentids_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::CreateIndexRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::CreateIndexRequest, base_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::CreateIndexRequest, db_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::CreateIndexRequest, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::CreateIndexRequest, field_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::CreateIndexRequest, extra_params_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DescribeIndexRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DescribeIndexRequest, base_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DescribeIndexRequest, db_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DescribeIndexRequest, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DescribeIndexRequest, field_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DescribeIndexRequest, index_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::IndexDescription, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::IndexDescription, index_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::IndexDescription, params_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DescribeIndexResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DescribeIndexResponse, status_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::DescribeIndexResponse, index_descriptions_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::IndexStateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::IndexStateRequest, base_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::IndexStateRequest, db_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::IndexStateRequest, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::IndexStateRequest, field_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::IndexStateRequest, index_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::IndexStateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::IndexStateResponse, status_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::IndexStateResponse, state_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::InsertRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::InsertRequest, base_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::InsertRequest, db_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::InsertRequest, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::InsertRequest, partition_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::InsertRequest, row_data_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::InsertRequest, hash_keys_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::InsertResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::InsertResponse, status_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::InsertResponse, rowid_begin_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::InsertResponse, rowid_end_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::PlaceholderValue, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::PlaceholderValue, tag_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::PlaceholderValue, type_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::PlaceholderValue, values_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::PlaceholderGroup, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::PlaceholderGroup, placeholders_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::SearchRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::SearchRequest, base_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::SearchRequest, db_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::SearchRequest, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::SearchRequest, partition_names_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::SearchRequest, dsl_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::SearchRequest, placeholder_group_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::Hits, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::Hits, ids_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::Hits, row_data_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::Hits, scores_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::SearchResults, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::SearchResults, status_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::SearchResults, hits_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::FlushRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::FlushRequest, base_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::FlushRequest, db_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::FlushRequest, collection_name_), +}; +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::milvus::proto::milvus::CreateCollectionRequest)}, + { 9, -1, sizeof(::milvus::proto::milvus::DropCollectionRequest)}, + { 17, -1, sizeof(::milvus::proto::milvus::HasCollectionRequest)}, + { 25, -1, sizeof(::milvus::proto::milvus::BoolResponse)}, + { 32, -1, sizeof(::milvus::proto::milvus::StringResponse)}, + { 39, -1, sizeof(::milvus::proto::milvus::DescribeCollectionRequest)}, + { 47, -1, sizeof(::milvus::proto::milvus::DescribeCollectionResponse)}, + { 54, -1, sizeof(::milvus::proto::milvus::LoadCollectionRequest)}, + { 62, -1, sizeof(::milvus::proto::milvus::ReleaseCollectionRequest)}, + { 70, -1, sizeof(::milvus::proto::milvus::CollectionStatsRequest)}, + { 78, -1, sizeof(::milvus::proto::milvus::CollectionStatsResponse)}, + { 85, -1, sizeof(::milvus::proto::milvus::ShowCollectionRequest)}, + { 92, -1, sizeof(::milvus::proto::milvus::ShowCollectionResponse)}, + { 99, -1, sizeof(::milvus::proto::milvus::CreatePartitionRequest)}, + { 108, -1, sizeof(::milvus::proto::milvus::DropPartitionRequest)}, + { 117, -1, sizeof(::milvus::proto::milvus::HasPartitionRequest)}, + { 126, -1, sizeof(::milvus::proto::milvus::LoadPartitonRequest)}, + { 135, -1, sizeof(::milvus::proto::milvus::ReleasePartitionRequest)}, + { 144, -1, sizeof(::milvus::proto::milvus::PartitionStatsRequest)}, + { 153, -1, sizeof(::milvus::proto::milvus::PartitionStatsResponse)}, + { 160, -1, sizeof(::milvus::proto::milvus::ShowPartitionRequest)}, + { 169, -1, sizeof(::milvus::proto::milvus::ShowPartitionResponse)}, + { 177, -1, sizeof(::milvus::proto::milvus::DescribeSegmentRequest)}, + { 185, -1, sizeof(::milvus::proto::milvus::DescribeSegmentResponse)}, + { 192, -1, sizeof(::milvus::proto::milvus::ShowSegmentRequest)}, + { 200, -1, sizeof(::milvus::proto::milvus::ShowSegmentResponse)}, + { 207, -1, sizeof(::milvus::proto::milvus::CreateIndexRequest)}, + { 217, -1, sizeof(::milvus::proto::milvus::DescribeIndexRequest)}, + { 227, -1, sizeof(::milvus::proto::milvus::IndexDescription)}, + { 234, -1, sizeof(::milvus::proto::milvus::DescribeIndexResponse)}, + { 241, -1, sizeof(::milvus::proto::milvus::IndexStateRequest)}, + { 251, -1, sizeof(::milvus::proto::milvus::IndexStateResponse)}, + { 258, -1, sizeof(::milvus::proto::milvus::InsertRequest)}, + { 269, -1, sizeof(::milvus::proto::milvus::InsertResponse)}, + { 277, -1, sizeof(::milvus::proto::milvus::PlaceholderValue)}, + { 285, -1, sizeof(::milvus::proto::milvus::PlaceholderGroup)}, + { 291, -1, sizeof(::milvus::proto::milvus::SearchRequest)}, + { 302, -1, sizeof(::milvus::proto::milvus::Hits)}, + { 310, -1, sizeof(::milvus::proto::milvus::SearchResults)}, + { 317, -1, sizeof(::milvus::proto::milvus::FlushRequest)}, +}; + +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_CreateCollectionRequest_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_DropCollectionRequest_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_HasCollectionRequest_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_BoolResponse_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_StringResponse_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_DescribeCollectionRequest_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_DescribeCollectionResponse_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_LoadCollectionRequest_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_ReleaseCollectionRequest_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_CollectionStatsRequest_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_CollectionStatsResponse_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_ShowCollectionRequest_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_ShowCollectionResponse_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_CreatePartitionRequest_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_DropPartitionRequest_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_HasPartitionRequest_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_LoadPartitonRequest_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_ReleasePartitionRequest_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_PartitionStatsRequest_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_PartitionStatsResponse_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_ShowPartitionRequest_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_ShowPartitionResponse_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_DescribeSegmentRequest_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_DescribeSegmentResponse_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_ShowSegmentRequest_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_ShowSegmentResponse_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_CreateIndexRequest_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_DescribeIndexRequest_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_IndexDescription_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_DescribeIndexResponse_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_IndexStateRequest_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_IndexStateResponse_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_InsertRequest_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_InsertResponse_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_PlaceholderValue_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_PlaceholderGroup_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_SearchRequest_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_Hits_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_SearchResults_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::milvus::_FlushRequest_default_instance_), +}; + +const char descriptor_table_protodef_milvus_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\014milvus.proto\022\023milvus.proto.milvus\032\014com" + "mon.proto\032\014schema.proto\"\177\n\027CreateCollect" + "ionRequest\022*\n\004base\030\001 \001(\0132\034.milvus.proto." + "common.MsgBase\022\017\n\007db_name\030\002 \001(\t\022\027\n\017colle" + "ction_name\030\003 \001(\t\022\016\n\006schema\030\004 \001(\014\"m\n\025Drop" + "CollectionRequest\022*\n\004base\030\001 \001(\0132\034.milvus" + ".proto.common.MsgBase\022\017\n\007db_name\030\002 \001(\t\022\027" + "\n\017collection_name\030\003 \001(\t\"l\n\024HasCollection" + "Request\022*\n\004base\030\001 \001(\0132\034.milvus.proto.com" + "mon.MsgBase\022\017\n\007db_name\030\002 \001(\t\022\027\n\017collecti" + "on_name\030\003 \001(\t\"J\n\014BoolResponse\022+\n\006status\030" + "\001 \001(\0132\033.milvus.proto.common.Status\022\r\n\005va" + "lue\030\002 \001(\010\"L\n\016StringResponse\022+\n\006status\030\001 " + "\001(\0132\033.milvus.proto.common.Status\022\r\n\005valu" + "e\030\002 \001(\t\"q\n\031DescribeCollectionRequest\022*\n\004" + "base\030\001 \001(\0132\034.milvus.proto.common.MsgBase" + "\022\017\n\007db_name\030\002 \001(\t\022\027\n\017collection_name\030\003 \001" + "(\t\"\200\001\n\032DescribeCollectionResponse\022+\n\006sta" + "tus\030\001 \001(\0132\033.milvus.proto.common.Status\0225" + "\n\006schema\030\002 \001(\0132%.milvus.proto.schema.Col" + "lectionSchema\"m\n\025LoadCollectionRequest\022*" + "\n\004base\030\001 \001(\0132\034.milvus.proto.common.MsgBa" + "se\022\017\n\007db_name\030\002 \001(\t\022\027\n\017collection_name\030\003" + " \001(\t\"p\n\030ReleaseCollectionRequest\022*\n\004base" + "\030\001 \001(\0132\034.milvus.proto.common.MsgBase\022\017\n\007" + "db_name\030\002 \001(\t\022\027\n\017collection_name\030\003 \001(\t\"n" + "\n\026CollectionStatsRequest\022*\n\004base\030\001 \001(\0132\034" + ".milvus.proto.common.MsgBase\022\017\n\007db_name\030" + "\002 \001(\t\022\027\n\017collection_name\030\003 \001(\t\"x\n\027Collec" + "tionStatsResponse\022+\n\006status\030\001 \001(\0132\033.milv" + "us.proto.common.Status\0220\n\005stats\030\002 \003(\0132!." + "milvus.proto.common.KeyValuePair\"T\n\025Show" + "CollectionRequest\022*\n\004base\030\001 \001(\0132\034.milvus" + ".proto.common.MsgBase\022\017\n\007db_name\030\002 \001(\t\"_" + "\n\026ShowCollectionResponse\022+\n\006status\030\001 \001(\013" + "2\033.milvus.proto.common.Status\022\030\n\020collect" + "ion_names\030\002 \003(\t\"\206\001\n\026CreatePartitionReque" + "st\022*\n\004base\030\001 \001(\0132\034.milvus.proto.common.M" + "sgBase\022\017\n\007db_name\030\002 \001(\t\022\027\n\017collection_na" + "me\030\003 \001(\t\022\026\n\016partition_name\030\004 \001(\t\"\204\001\n\024Dro" + "pPartitionRequest\022*\n\004base\030\001 \001(\0132\034.milvus" + ".proto.common.MsgBase\022\017\n\007db_name\030\002 \001(\t\022\027" + "\n\017collection_name\030\003 \001(\t\022\026\n\016partition_nam" + "e\030\004 \001(\t\"\203\001\n\023HasPartitionRequest\022*\n\004base\030" + "\001 \001(\0132\034.milvus.proto.common.MsgBase\022\017\n\007d" + "b_name\030\002 \001(\t\022\027\n\017collection_name\030\003 \001(\t\022\026\n" + "\016partition_name\030\004 \001(\t\"\204\001\n\023LoadPartitonRe" + "quest\022*\n\004base\030\001 \001(\0132\034.milvus.proto.commo" + "n.MsgBase\022\017\n\007db_name\030\002 \001(\t\022\027\n\017collection" + "_name\030\003 \001(\t\022\027\n\017partition_names\030\004 \003(\t\"\210\001\n" + "\027ReleasePartitionRequest\022*\n\004base\030\001 \001(\0132\034" + ".milvus.proto.common.MsgBase\022\017\n\007db_name\030" + "\002 \001(\t\022\027\n\017collection_name\030\003 \001(\t\022\027\n\017partit" + "ion_names\030\004 \003(\t\"\205\001\n\025PartitionStatsReques" + "t\022*\n\004base\030\001 \001(\0132\034.milvus.proto.common.Ms" + "gBase\022\017\n\007db_name\030\002 \001(\t\022\027\n\017collection_nam" + "e\030\003 \001(\t\022\026\n\016partition_name\030\004 \001(\t\"w\n\026Parti" + "tionStatsResponse\022+\n\006status\030\001 \001(\0132\033.milv" + "us.proto.common.Status\0220\n\005stats\030\002 \003(\0132!." + "milvus.proto.common.KeyValuePair\"\202\001\n\024Sho" + "wPartitionRequest\022*\n\004base\030\001 \001(\0132\034.milvus" + ".proto.common.MsgBase\022\017\n\007db_name\030\002 \001(\t\022\027" + "\n\017collection_name\030\003 \001(\t\022\024\n\014collectionID\030" + "\004 \001(\003\"s\n\025ShowPartitionResponse\022+\n\006status" + "\030\001 \001(\0132\033.milvus.proto.common.Status\022\027\n\017p" + "artition_names\030\002 \003(\t\022\024\n\014partitionIDs\030\003 \003" + "(\003\"m\n\026DescribeSegmentRequest\022*\n\004base\030\001 \001" + "(\0132\034.milvus.proto.common.MsgBase\022\024\n\014coll" + "ectionID\030\002 \001(\003\022\021\n\tsegmentID\030\003 \001(\003\"W\n\027Des" + "cribeSegmentResponse\022+\n\006status\030\001 \001(\0132\033.m" + "ilvus.proto.common.Status\022\017\n\007indexID\030\002 \001" + "(\003\"k\n\022ShowSegmentRequest\022*\n\004base\030\001 \001(\0132\034" + ".milvus.proto.common.MsgBase\022\024\n\014collecti" + "onID\030\002 \001(\003\022\023\n\013partitionID\030\003 \001(\003\"V\n\023ShowS" + "egmentResponse\022+\n\006status\030\001 \001(\0132\033.milvus." + "proto.common.Status\022\022\n\nsegmentIDs\030\002 \003(\003\"" + "\267\001\n\022CreateIndexRequest\022*\n\004base\030\001 \001(\0132\034.m" + "ilvus.proto.common.MsgBase\022\017\n\007db_name\030\002 " + "\001(\t\022\027\n\017collection_name\030\003 \001(\t\022\022\n\nfield_na" + "me\030\004 \001(\t\0227\n\014extra_params\030\005 \003(\0132!.milvus." + "proto.common.KeyValuePair\"\224\001\n\024DescribeIn" + "dexRequest\022*\n\004base\030\001 \001(\0132\034.milvus.proto." + "common.MsgBase\022\017\n\007db_name\030\002 \001(\t\022\027\n\017colle" + "ction_name\030\003 \001(\t\022\022\n\nfield_name\030\004 \001(\t\022\022\n\n" + "index_name\030\005 \001(\t\"Y\n\020IndexDescription\022\022\n\n" + "index_name\030\001 \001(\t\0221\n\006params\030\002 \003(\0132!.milvu" + "s.proto.common.KeyValuePair\"\207\001\n\025Describe" + "IndexResponse\022+\n\006status\030\001 \001(\0132\033.milvus.p" + "roto.common.Status\022A\n\022index_descriptions" + "\030\002 \003(\0132%.milvus.proto.milvus.IndexDescri" + "ption\"\221\001\n\021IndexStateRequest\022*\n\004base\030\001 \001(" + "\0132\034.milvus.proto.common.MsgBase\022\017\n\007db_na" + "me\030\002 \001(\t\022\027\n\017collection_name\030\003 \001(\t\022\022\n\nfie" + "ld_name\030\004 \001(\t\022\022\n\nindex_name\030\005 \001(\t\"q\n\022Ind" + "exStateResponse\022+\n\006status\030\001 \001(\0132\033.milvus" + ".proto.common.Status\022.\n\005state\030\002 \001(\0162\037.mi" + "lvus.proto.common.IndexState\"\275\001\n\rInsertR" + "equest\022*\n\004base\030\001 \001(\0132\034.milvus.proto.comm" + "on.MsgBase\022\017\n\007db_name\030\002 \001(\t\022\027\n\017collectio" + "n_name\030\003 \001(\t\022\026\n\016partition_name\030\004 \001(\t\022+\n\010" + "row_data\030\005 \003(\0132\031.milvus.proto.common.Blo" + "b\022\021\n\thash_keys\030\006 \003(\r\"e\n\016InsertResponse\022+" + "\n\006status\030\001 \001(\0132\033.milvus.proto.common.Sta" + "tus\022\023\n\013rowID_begin\030\002 \001(\003\022\021\n\trowID_end\030\003 " + "\001(\003\"c\n\020PlaceholderValue\022\013\n\003tag\030\001 \001(\t\0222\n\004" + "type\030\002 \001(\0162$.milvus.proto.milvus.Placeho" + "lderType\022\016\n\006values\030\003 \003(\014\"O\n\020PlaceholderG" + "roup\022;\n\014placeholders\030\001 \003(\0132%.milvus.prot" + "o.milvus.PlaceholderValue\"\246\001\n\rSearchRequ" + "est\022*\n\004base\030\001 \001(\0132\034.milvus.proto.common." + "MsgBase\022\017\n\007db_name\030\002 \001(\t\022\027\n\017collection_n" + "ame\030\003 \001(\t\022\027\n\017partition_names\030\004 \003(\t\022\013\n\003ds" + "l\030\005 \001(\t\022\031\n\021placeholder_group\030\006 \001(\014\"5\n\004Hi" + "ts\022\013\n\003IDs\030\001 \003(\003\022\020\n\010row_data\030\002 \003(\014\022\016\n\006sco" + "res\030\003 \003(\002\"J\n\rSearchResults\022+\n\006status\030\001 \001" + "(\0132\033.milvus.proto.common.Status\022\014\n\004hits\030" + "\002 \003(\014\"d\n\014FlushRequest\022*\n\004base\030\001 \001(\0132\034.mi" + "lvus.proto.common.MsgBase\022\017\n\007db_name\030\002 \001" + "(\t\022\027\n\017collection_name\030\003 \001(\t*@\n\017Placehold" + "erType\022\010\n\004NONE\020\000\022\021\n\rVECTOR_BINARY\020d\022\020\n\014V" + "ECTOR_FLOAT\020e2\357\020\n\rMilvusService\022_\n\020Creat" + "eCollection\022,.milvus.proto.milvus.Create" + "CollectionRequest\032\033.milvus.proto.common." + "Status\"\000\022[\n\016DropCollection\022*.milvus.prot" + "o.milvus.DropCollectionRequest\032\033.milvus." + "proto.common.Status\"\000\022_\n\rHasCollection\022)" + ".milvus.proto.milvus.HasCollectionReques" + "t\032!.milvus.proto.milvus.BoolResponse\"\000\022[" + "\n\016LoadCollection\022*.milvus.proto.milvus.L" + "oadCollectionRequest\032\033.milvus.proto.comm" + "on.Status\"\000\022a\n\021ReleaseCollection\022-.milvu" + "s.proto.milvus.ReleaseCollectionRequest\032" + "\033.milvus.proto.common.Status\"\000\022w\n\022Descri" + "beCollection\022..milvus.proto.milvus.Descr" + "ibeCollectionRequest\032/.milvus.proto.milv" + "us.DescribeCollectionResponse\"\000\022v\n\027GetCo" + "llectionStatistics\022+.milvus.proto.milvus" + ".CollectionStatsRequest\032,.milvus.proto.m" + "ilvus.CollectionStatsResponse\"\000\022l\n\017ShowC" + "ollections\022*.milvus.proto.milvus.ShowCol" + "lectionRequest\032+.milvus.proto.milvus.Sho" + "wCollectionResponse\"\000\022]\n\017CreatePartition" + "\022+.milvus.proto.milvus.CreatePartitionRe" + "quest\032\033.milvus.proto.common.Status\"\000\022Y\n\r" + "DropPartition\022).milvus.proto.milvus.Drop" + "PartitionRequest\032\033.milvus.proto.common.S" + "tatus\"\000\022]\n\014HasPartition\022(.milvus.proto.m" + "ilvus.HasPartitionRequest\032!.milvus.proto" + ".milvus.BoolResponse\"\000\022Y\n\016LoadPartitions" + "\022(.milvus.proto.milvus.LoadPartitonReque" + "st\032\033.milvus.proto.common.Status\"\000\022`\n\021Rel" + "easePartitions\022,.milvus.proto.milvus.Rel" + "easePartitionRequest\032\033.milvus.proto.comm" + "on.Status\"\000\022s\n\026GetPartitionStatistics\022*." + "milvus.proto.milvus.PartitionStatsReques" + "t\032+.milvus.proto.milvus.PartitionStatsRe" + "sponse\"\000\022i\n\016ShowPartitions\022).milvus.prot" + "o.milvus.ShowPartitionRequest\032*.milvus.p" + "roto.milvus.ShowPartitionResponse\"\000\022U\n\013C" + "reateIndex\022\'.milvus.proto.milvus.CreateI" + "ndexRequest\032\033.milvus.proto.common.Status" + "\"\000\022h\n\rDescribeIndex\022).milvus.proto.milvu" + "s.DescribeIndexRequest\032*.milvus.proto.mi" + "lvus.DescribeIndexResponse\"\000\022b\n\rGetIndex" + "State\022&.milvus.proto.milvus.IndexStateRe" + "quest\032\'.milvus.proto.milvus.IndexStateRe" + "sponse\"\000\022S\n\006Insert\022\".milvus.proto.milvus" + ".InsertRequest\032#.milvus.proto.milvus.Ins" + "ertResponse\"\000\022R\n\006Search\022\".milvus.proto.m" + "ilvus.SearchRequest\032\".milvus.proto.milvu" + "s.SearchResults\"\000\022I\n\005Flush\022!.milvus.prot" + "o.milvus.FlushRequest\032\033.milvus.proto.com" + "mon.Status\"\000\022Q\n\014GetDdChannel\022\032.milvus.pr" + "oto.common.Empty\032#.milvus.proto.milvus.S" + "tringResponse\"\000BBZ@github.com/zilliztech" + "/milvus-distributed/internal/proto/milvu" + "spbb\006proto3" + ; +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_milvus_2eproto_deps[2] = { + &::descriptor_table_common_2eproto, + &::descriptor_table_schema_2eproto, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_milvus_2eproto_sccs[40] = { + &scc_info_BoolResponse_milvus_2eproto.base, + &scc_info_CollectionStatsRequest_milvus_2eproto.base, + &scc_info_CollectionStatsResponse_milvus_2eproto.base, + &scc_info_CreateCollectionRequest_milvus_2eproto.base, + &scc_info_CreateIndexRequest_milvus_2eproto.base, + &scc_info_CreatePartitionRequest_milvus_2eproto.base, + &scc_info_DescribeCollectionRequest_milvus_2eproto.base, + &scc_info_DescribeCollectionResponse_milvus_2eproto.base, + &scc_info_DescribeIndexRequest_milvus_2eproto.base, + &scc_info_DescribeIndexResponse_milvus_2eproto.base, + &scc_info_DescribeSegmentRequest_milvus_2eproto.base, + &scc_info_DescribeSegmentResponse_milvus_2eproto.base, + &scc_info_DropCollectionRequest_milvus_2eproto.base, + &scc_info_DropPartitionRequest_milvus_2eproto.base, + &scc_info_FlushRequest_milvus_2eproto.base, + &scc_info_HasCollectionRequest_milvus_2eproto.base, + &scc_info_HasPartitionRequest_milvus_2eproto.base, + &scc_info_Hits_milvus_2eproto.base, + &scc_info_IndexDescription_milvus_2eproto.base, + &scc_info_IndexStateRequest_milvus_2eproto.base, + &scc_info_IndexStateResponse_milvus_2eproto.base, + &scc_info_InsertRequest_milvus_2eproto.base, + &scc_info_InsertResponse_milvus_2eproto.base, + &scc_info_LoadCollectionRequest_milvus_2eproto.base, + &scc_info_LoadPartitonRequest_milvus_2eproto.base, + &scc_info_PartitionStatsRequest_milvus_2eproto.base, + &scc_info_PartitionStatsResponse_milvus_2eproto.base, + &scc_info_PlaceholderGroup_milvus_2eproto.base, + &scc_info_PlaceholderValue_milvus_2eproto.base, + &scc_info_ReleaseCollectionRequest_milvus_2eproto.base, + &scc_info_ReleasePartitionRequest_milvus_2eproto.base, + &scc_info_SearchRequest_milvus_2eproto.base, + &scc_info_SearchResults_milvus_2eproto.base, + &scc_info_ShowCollectionRequest_milvus_2eproto.base, + &scc_info_ShowCollectionResponse_milvus_2eproto.base, + &scc_info_ShowPartitionRequest_milvus_2eproto.base, + &scc_info_ShowPartitionResponse_milvus_2eproto.base, + &scc_info_ShowSegmentRequest_milvus_2eproto.base, + &scc_info_ShowSegmentResponse_milvus_2eproto.base, + &scc_info_StringResponse_milvus_2eproto.base, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_milvus_2eproto_once; +static bool descriptor_table_milvus_2eproto_initialized = false; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_milvus_2eproto = { + &descriptor_table_milvus_2eproto_initialized, descriptor_table_protodef_milvus_2eproto, "milvus.proto", 7051, + &descriptor_table_milvus_2eproto_once, descriptor_table_milvus_2eproto_sccs, descriptor_table_milvus_2eproto_deps, 40, 2, + schemas, file_default_instances, TableStruct_milvus_2eproto::offsets, + file_level_metadata_milvus_2eproto, 40, file_level_enum_descriptors_milvus_2eproto, file_level_service_descriptors_milvus_2eproto, +}; + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_milvus_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_milvus_2eproto), true); +namespace milvus { +namespace proto { +namespace milvus { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PlaceholderType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_milvus_2eproto); + return file_level_enum_descriptors_milvus_2eproto[0]; +} +bool PlaceholderType_IsValid(int value) { + switch (value) { + case 0: + case 100: + case 101: + return true; + default: + return false; + } +} + + +// =================================================================== + +void CreateCollectionRequest::InitAsDefaultInstance() { + ::milvus::proto::milvus::_CreateCollectionRequest_default_instance_._instance.get_mutable()->base_ = const_cast< ::milvus::proto::common::MsgBase*>( + ::milvus::proto::common::MsgBase::internal_default_instance()); +} +class CreateCollectionRequest::_Internal { + public: + static const ::milvus::proto::common::MsgBase& base(const CreateCollectionRequest* msg); +}; + +const ::milvus::proto::common::MsgBase& +CreateCollectionRequest::_Internal::base(const CreateCollectionRequest* msg) { + return *msg->base_; +} +void CreateCollectionRequest::clear_base() { + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; +} +CreateCollectionRequest::CreateCollectionRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.CreateCollectionRequest) +} +CreateCollectionRequest::CreateCollectionRequest(const CreateCollectionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.db_name().empty()) { + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + schema_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.schema().empty()) { + schema_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.schema_); + } + if (from.has_base()) { + base_ = new ::milvus::proto::common::MsgBase(*from.base_); + } else { + base_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.CreateCollectionRequest) +} + +void CreateCollectionRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CreateCollectionRequest_milvus_2eproto.base); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + schema_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + base_ = nullptr; +} + +CreateCollectionRequest::~CreateCollectionRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.CreateCollectionRequest) + SharedDtor(); +} + +void CreateCollectionRequest::SharedDtor() { + db_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + schema_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete base_; +} + +void CreateCollectionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CreateCollectionRequest& CreateCollectionRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CreateCollectionRequest_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void CreateCollectionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.CreateCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + schema_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CreateCollectionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.MsgBase base = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_base(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string db_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_db_name(), ptr, ctx, "milvus.proto.milvus.CreateCollectionRequest.db_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string collection_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.milvus.CreateCollectionRequest.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bytes schema = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(mutable_schema(), 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 CreateCollectionRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.CreateCollectionRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.MsgBase base = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_base())); + } else { + goto handle_unusual; + } + break; + } + + // string db_name = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_db_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.CreateCollectionRequest.db_name")); + } else { + goto handle_unusual; + } + break; + } + + // string collection_name = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_collection_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.CreateCollectionRequest.collection_name")); + } else { + goto handle_unusual; + } + break; + } + + // bytes schema = 4; + case 4: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes( + input, this->mutable_schema())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.CreateCollectionRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.CreateCollectionRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CreateCollectionRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.CreateCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::base(this), output); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.CreateCollectionRequest.db_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->db_name(), output); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.CreateCollectionRequest.collection_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->collection_name(), output); + } + + // bytes schema = 4; + if (this->schema().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->schema(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.CreateCollectionRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* CreateCollectionRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.CreateCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::base(this), target); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.CreateCollectionRequest.db_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->db_name(), target); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.CreateCollectionRequest.collection_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 3, this->collection_name(), target); + } + + // bytes schema = 4; + if (this->schema().size() > 0) { + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesToArray( + 4, this->schema(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.CreateCollectionRequest) + return target; +} + +size_t CreateCollectionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.CreateCollectionRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string db_name = 2; + if (this->db_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->db_name()); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // bytes schema = 4; + if (this->schema().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->schema()); + } + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *base_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CreateCollectionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.CreateCollectionRequest) + GOOGLE_DCHECK_NE(&from, this); + const CreateCollectionRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CreateCollectionRequest>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.CreateCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.CreateCollectionRequest) + MergeFrom(*source); + } +} + +void CreateCollectionRequest::MergeFrom(const CreateCollectionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.CreateCollectionRequest) + 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.db_name().size() > 0) { + + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + if (from.collection_name().size() > 0) { + + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.schema().size() > 0) { + + schema_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.schema_); + } + if (from.has_base()) { + mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(from.base()); + } +} + +void CreateCollectionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.CreateCollectionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateCollectionRequest::CopyFrom(const CreateCollectionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.CreateCollectionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateCollectionRequest::IsInitialized() const { + return true; +} + +void CreateCollectionRequest::InternalSwap(CreateCollectionRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + db_name_.Swap(&other->db_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + schema_.Swap(&other->schema_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(base_, other->base_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CreateCollectionRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void DropCollectionRequest::InitAsDefaultInstance() { + ::milvus::proto::milvus::_DropCollectionRequest_default_instance_._instance.get_mutable()->base_ = const_cast< ::milvus::proto::common::MsgBase*>( + ::milvus::proto::common::MsgBase::internal_default_instance()); +} +class DropCollectionRequest::_Internal { + public: + static const ::milvus::proto::common::MsgBase& base(const DropCollectionRequest* msg); +}; + +const ::milvus::proto::common::MsgBase& +DropCollectionRequest::_Internal::base(const DropCollectionRequest* msg) { + return *msg->base_; +} +void DropCollectionRequest::clear_base() { + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; +} +DropCollectionRequest::DropCollectionRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.DropCollectionRequest) +} +DropCollectionRequest::DropCollectionRequest(const DropCollectionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.db_name().empty()) { + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.has_base()) { + base_ = new ::milvus::proto::common::MsgBase(*from.base_); + } else { + base_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.DropCollectionRequest) +} + +void DropCollectionRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DropCollectionRequest_milvus_2eproto.base); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + base_ = nullptr; +} + +DropCollectionRequest::~DropCollectionRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.DropCollectionRequest) + SharedDtor(); +} + +void DropCollectionRequest::SharedDtor() { + db_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete base_; +} + +void DropCollectionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DropCollectionRequest& DropCollectionRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DropCollectionRequest_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void DropCollectionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.DropCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DropCollectionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.MsgBase base = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_base(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string db_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_db_name(), ptr, ctx, "milvus.proto.milvus.DropCollectionRequest.db_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string collection_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.milvus.DropCollectionRequest.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DropCollectionRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.DropCollectionRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.MsgBase base = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_base())); + } else { + goto handle_unusual; + } + break; + } + + // string db_name = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_db_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.DropCollectionRequest.db_name")); + } else { + goto handle_unusual; + } + break; + } + + // string collection_name = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_collection_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.DropCollectionRequest.collection_name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.DropCollectionRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.DropCollectionRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DropCollectionRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.DropCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::base(this), output); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.DropCollectionRequest.db_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->db_name(), output); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.DropCollectionRequest.collection_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->collection_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.DropCollectionRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* DropCollectionRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.DropCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::base(this), target); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.DropCollectionRequest.db_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->db_name(), target); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.DropCollectionRequest.collection_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 3, this->collection_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.DropCollectionRequest) + return target; +} + +size_t DropCollectionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.DropCollectionRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string db_name = 2; + if (this->db_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->db_name()); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *base_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DropCollectionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.DropCollectionRequest) + GOOGLE_DCHECK_NE(&from, this); + const DropCollectionRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DropCollectionRequest>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.DropCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.DropCollectionRequest) + MergeFrom(*source); + } +} + +void DropCollectionRequest::MergeFrom(const DropCollectionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.DropCollectionRequest) + 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.db_name().size() > 0) { + + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + if (from.collection_name().size() > 0) { + + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.has_base()) { + mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(from.base()); + } +} + +void DropCollectionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.DropCollectionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DropCollectionRequest::CopyFrom(const DropCollectionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.DropCollectionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DropCollectionRequest::IsInitialized() const { + return true; +} + +void DropCollectionRequest::InternalSwap(DropCollectionRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + db_name_.Swap(&other->db_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(base_, other->base_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DropCollectionRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void HasCollectionRequest::InitAsDefaultInstance() { + ::milvus::proto::milvus::_HasCollectionRequest_default_instance_._instance.get_mutable()->base_ = const_cast< ::milvus::proto::common::MsgBase*>( + ::milvus::proto::common::MsgBase::internal_default_instance()); +} +class HasCollectionRequest::_Internal { + public: + static const ::milvus::proto::common::MsgBase& base(const HasCollectionRequest* msg); +}; + +const ::milvus::proto::common::MsgBase& +HasCollectionRequest::_Internal::base(const HasCollectionRequest* msg) { + return *msg->base_; +} +void HasCollectionRequest::clear_base() { + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; +} +HasCollectionRequest::HasCollectionRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.HasCollectionRequest) +} +HasCollectionRequest::HasCollectionRequest(const HasCollectionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.db_name().empty()) { + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.has_base()) { + base_ = new ::milvus::proto::common::MsgBase(*from.base_); + } else { + base_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.HasCollectionRequest) +} + +void HasCollectionRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_HasCollectionRequest_milvus_2eproto.base); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + base_ = nullptr; +} + +HasCollectionRequest::~HasCollectionRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.HasCollectionRequest) + SharedDtor(); +} + +void HasCollectionRequest::SharedDtor() { + db_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete base_; +} + +void HasCollectionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HasCollectionRequest& HasCollectionRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_HasCollectionRequest_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void HasCollectionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.HasCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* HasCollectionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.MsgBase base = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_base(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string db_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_db_name(), ptr, ctx, "milvus.proto.milvus.HasCollectionRequest.db_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string collection_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.milvus.HasCollectionRequest.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool HasCollectionRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.HasCollectionRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.MsgBase base = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_base())); + } else { + goto handle_unusual; + } + break; + } + + // string db_name = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_db_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.HasCollectionRequest.db_name")); + } else { + goto handle_unusual; + } + break; + } + + // string collection_name = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_collection_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.HasCollectionRequest.collection_name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.HasCollectionRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.HasCollectionRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void HasCollectionRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.HasCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::base(this), output); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.HasCollectionRequest.db_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->db_name(), output); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.HasCollectionRequest.collection_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->collection_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.HasCollectionRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* HasCollectionRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.HasCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::base(this), target); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.HasCollectionRequest.db_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->db_name(), target); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.HasCollectionRequest.collection_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 3, this->collection_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.HasCollectionRequest) + return target; +} + +size_t HasCollectionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.HasCollectionRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string db_name = 2; + if (this->db_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->db_name()); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *base_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HasCollectionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.HasCollectionRequest) + GOOGLE_DCHECK_NE(&from, this); + const HasCollectionRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<HasCollectionRequest>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.HasCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.HasCollectionRequest) + MergeFrom(*source); + } +} + +void HasCollectionRequest::MergeFrom(const HasCollectionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.HasCollectionRequest) + 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.db_name().size() > 0) { + + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + if (from.collection_name().size() > 0) { + + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.has_base()) { + mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(from.base()); + } +} + +void HasCollectionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.HasCollectionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HasCollectionRequest::CopyFrom(const HasCollectionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.HasCollectionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HasCollectionRequest::IsInitialized() const { + return true; +} + +void HasCollectionRequest::InternalSwap(HasCollectionRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + db_name_.Swap(&other->db_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(base_, other->base_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata HasCollectionRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void BoolResponse::InitAsDefaultInstance() { + ::milvus::proto::milvus::_BoolResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( + ::milvus::proto::common::Status::internal_default_instance()); +} +class BoolResponse::_Internal { + public: + static const ::milvus::proto::common::Status& status(const BoolResponse* msg); +}; + +const ::milvus::proto::common::Status& +BoolResponse::_Internal::status(const BoolResponse* msg) { + return *msg->status_; +} +void BoolResponse::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +BoolResponse::BoolResponse() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.BoolResponse) +} +BoolResponse::BoolResponse(const BoolResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_status()) { + status_ = new ::milvus::proto::common::Status(*from.status_); + } else { + status_ = nullptr; + } + value_ = from.value_; + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.BoolResponse) +} + +void BoolResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BoolResponse_milvus_2eproto.base); + ::memset(&status_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&value_) - + reinterpret_cast<char*>(&status_)) + sizeof(value_)); +} + +BoolResponse::~BoolResponse() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.BoolResponse) + SharedDtor(); +} + +void BoolResponse::SharedDtor() { + if (this != internal_default_instance()) delete status_; +} + +void BoolResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const BoolResponse& BoolResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BoolResponse_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void BoolResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.BoolResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + value_ = false; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* BoolResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bool value = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + value_ = ::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 BoolResponse::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.BoolResponse) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.Status status = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_status())); + } else { + goto handle_unusual; + } + break; + } + + // bool value = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( + input, &value_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.BoolResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.BoolResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void BoolResponse::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.BoolResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); + } + + // bool value = 2; + if (this->value() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(2, this->value(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.BoolResponse) +} + +::PROTOBUF_NAMESPACE_ID::uint8* BoolResponse::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.BoolResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); + } + + // bool value = 2; + if (this->value() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->value(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.BoolResponse) + return target; +} + +size_t BoolResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.BoolResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + // bool value = 2; + if (this->value() != 0) { + total_size += 1 + 1; + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BoolResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.BoolResponse) + GOOGLE_DCHECK_NE(&from, this); + const BoolResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<BoolResponse>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.BoolResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.BoolResponse) + MergeFrom(*source); + } +} + +void BoolResponse::MergeFrom(const BoolResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.BoolResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_status()) { + mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); + } + if (from.value() != 0) { + set_value(from.value()); + } +} + +void BoolResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.BoolResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BoolResponse::CopyFrom(const BoolResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.BoolResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BoolResponse::IsInitialized() const { + return true; +} + +void BoolResponse::InternalSwap(BoolResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(status_, other->status_); + swap(value_, other->value_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata BoolResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void StringResponse::InitAsDefaultInstance() { + ::milvus::proto::milvus::_StringResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( + ::milvus::proto::common::Status::internal_default_instance()); +} +class StringResponse::_Internal { + public: + static const ::milvus::proto::common::Status& status(const StringResponse* msg); +}; + +const ::milvus::proto::common::Status& +StringResponse::_Internal::status(const StringResponse* msg) { + return *msg->status_; +} +void StringResponse::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +StringResponse::StringResponse() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.StringResponse) +} +StringResponse::StringResponse(const StringResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.value().empty()) { + value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.value_); + } + if (from.has_status()) { + status_ = new ::milvus::proto::common::Status(*from.status_); + } else { + status_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.StringResponse) +} + +void StringResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_StringResponse_milvus_2eproto.base); + value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + status_ = nullptr; +} + +StringResponse::~StringResponse() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.StringResponse) + SharedDtor(); +} + +void StringResponse::SharedDtor() { + value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete status_; +} + +void StringResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const StringResponse& StringResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StringResponse_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void StringResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.StringResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* StringResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string value = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_value(), ptr, ctx, "milvus.proto.milvus.StringResponse.value"); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool StringResponse::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.StringResponse) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.Status status = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_status())); + } else { + goto handle_unusual; + } + break; + } + + // string value = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_value())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast<int>(this->value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.StringResponse.value")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.StringResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.StringResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void StringResponse::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.StringResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); + } + + // string value = 2; + if (this->value().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast<int>(this->value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.StringResponse.value"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->value(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.StringResponse) +} + +::PROTOBUF_NAMESPACE_ID::uint8* StringResponse::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.StringResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); + } + + // string value = 2; + if (this->value().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast<int>(this->value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.StringResponse.value"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->value(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.StringResponse) + return target; +} + +size_t StringResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.StringResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string value = 2; + if (this->value().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->value()); + } + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StringResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.StringResponse) + GOOGLE_DCHECK_NE(&from, this); + const StringResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<StringResponse>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.StringResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.StringResponse) + MergeFrom(*source); + } +} + +void StringResponse::MergeFrom(const StringResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.StringResponse) + 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.value().size() > 0) { + + value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.value_); + } + if (from.has_status()) { + mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); + } +} + +void StringResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.StringResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StringResponse::CopyFrom(const StringResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.StringResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StringResponse::IsInitialized() const { + return true; +} + +void StringResponse::InternalSwap(StringResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + value_.Swap(&other->value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(status_, other->status_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StringResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void DescribeCollectionRequest::InitAsDefaultInstance() { + ::milvus::proto::milvus::_DescribeCollectionRequest_default_instance_._instance.get_mutable()->base_ = const_cast< ::milvus::proto::common::MsgBase*>( + ::milvus::proto::common::MsgBase::internal_default_instance()); +} +class DescribeCollectionRequest::_Internal { + public: + static const ::milvus::proto::common::MsgBase& base(const DescribeCollectionRequest* msg); +}; + +const ::milvus::proto::common::MsgBase& +DescribeCollectionRequest::_Internal::base(const DescribeCollectionRequest* msg) { + return *msg->base_; +} +void DescribeCollectionRequest::clear_base() { + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; +} +DescribeCollectionRequest::DescribeCollectionRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.DescribeCollectionRequest) +} +DescribeCollectionRequest::DescribeCollectionRequest(const DescribeCollectionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.db_name().empty()) { + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.has_base()) { + base_ = new ::milvus::proto::common::MsgBase(*from.base_); + } else { + base_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.DescribeCollectionRequest) +} + +void DescribeCollectionRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DescribeCollectionRequest_milvus_2eproto.base); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + base_ = nullptr; +} + +DescribeCollectionRequest::~DescribeCollectionRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.DescribeCollectionRequest) + SharedDtor(); +} + +void DescribeCollectionRequest::SharedDtor() { + db_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete base_; +} + +void DescribeCollectionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DescribeCollectionRequest& DescribeCollectionRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DescribeCollectionRequest_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void DescribeCollectionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.DescribeCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DescribeCollectionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.MsgBase base = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_base(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string db_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_db_name(), ptr, ctx, "milvus.proto.milvus.DescribeCollectionRequest.db_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string collection_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.milvus.DescribeCollectionRequest.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DescribeCollectionRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.DescribeCollectionRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.MsgBase base = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_base())); + } else { + goto handle_unusual; + } + break; + } + + // string db_name = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_db_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.DescribeCollectionRequest.db_name")); + } else { + goto handle_unusual; + } + break; + } + + // string collection_name = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_collection_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.DescribeCollectionRequest.collection_name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.DescribeCollectionRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.DescribeCollectionRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DescribeCollectionRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.DescribeCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::base(this), output); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.DescribeCollectionRequest.db_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->db_name(), output); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.DescribeCollectionRequest.collection_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->collection_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.DescribeCollectionRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* DescribeCollectionRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.DescribeCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::base(this), target); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.DescribeCollectionRequest.db_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->db_name(), target); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.DescribeCollectionRequest.collection_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 3, this->collection_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.DescribeCollectionRequest) + return target; +} + +size_t DescribeCollectionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.DescribeCollectionRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string db_name = 2; + if (this->db_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->db_name()); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *base_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DescribeCollectionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.DescribeCollectionRequest) + GOOGLE_DCHECK_NE(&from, this); + const DescribeCollectionRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DescribeCollectionRequest>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.DescribeCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.DescribeCollectionRequest) + MergeFrom(*source); + } +} + +void DescribeCollectionRequest::MergeFrom(const DescribeCollectionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.DescribeCollectionRequest) + 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.db_name().size() > 0) { + + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + if (from.collection_name().size() > 0) { + + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.has_base()) { + mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(from.base()); + } +} + +void DescribeCollectionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.DescribeCollectionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DescribeCollectionRequest::CopyFrom(const DescribeCollectionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.DescribeCollectionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DescribeCollectionRequest::IsInitialized() const { + return true; +} + +void DescribeCollectionRequest::InternalSwap(DescribeCollectionRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + db_name_.Swap(&other->db_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(base_, other->base_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DescribeCollectionRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void DescribeCollectionResponse::InitAsDefaultInstance() { + ::milvus::proto::milvus::_DescribeCollectionResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( + ::milvus::proto::common::Status::internal_default_instance()); + ::milvus::proto::milvus::_DescribeCollectionResponse_default_instance_._instance.get_mutable()->schema_ = const_cast< ::milvus::proto::schema::CollectionSchema*>( + ::milvus::proto::schema::CollectionSchema::internal_default_instance()); +} +class DescribeCollectionResponse::_Internal { + public: + static const ::milvus::proto::common::Status& status(const DescribeCollectionResponse* msg); + static const ::milvus::proto::schema::CollectionSchema& schema(const DescribeCollectionResponse* msg); +}; + +const ::milvus::proto::common::Status& +DescribeCollectionResponse::_Internal::status(const DescribeCollectionResponse* msg) { + return *msg->status_; +} +const ::milvus::proto::schema::CollectionSchema& +DescribeCollectionResponse::_Internal::schema(const DescribeCollectionResponse* msg) { + return *msg->schema_; +} +void DescribeCollectionResponse::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +void DescribeCollectionResponse::clear_schema() { + if (GetArenaNoVirtual() == nullptr && schema_ != nullptr) { + delete schema_; + } + schema_ = nullptr; +} +DescribeCollectionResponse::DescribeCollectionResponse() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.DescribeCollectionResponse) +} +DescribeCollectionResponse::DescribeCollectionResponse(const DescribeCollectionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_status()) { + status_ = new ::milvus::proto::common::Status(*from.status_); + } else { + status_ = nullptr; + } + if (from.has_schema()) { + schema_ = new ::milvus::proto::schema::CollectionSchema(*from.schema_); + } else { + schema_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.DescribeCollectionResponse) +} + +void DescribeCollectionResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DescribeCollectionResponse_milvus_2eproto.base); + ::memset(&status_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&schema_) - + reinterpret_cast<char*>(&status_)) + sizeof(schema_)); +} + +DescribeCollectionResponse::~DescribeCollectionResponse() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.DescribeCollectionResponse) + SharedDtor(); +} + +void DescribeCollectionResponse::SharedDtor() { + if (this != internal_default_instance()) delete status_; + if (this != internal_default_instance()) delete schema_; +} + +void DescribeCollectionResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DescribeCollectionResponse& DescribeCollectionResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DescribeCollectionResponse_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void DescribeCollectionResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.DescribeCollectionResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + if (GetArenaNoVirtual() == nullptr && schema_ != nullptr) { + delete schema_; + } + schema_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DescribeCollectionResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.proto.schema.CollectionSchema schema = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(mutable_schema(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + 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 DescribeCollectionResponse::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.DescribeCollectionResponse) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.Status status = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_status())); + } else { + goto handle_unusual; + } + break; + } + + // .milvus.proto.schema.CollectionSchema schema = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_schema())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.DescribeCollectionResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.DescribeCollectionResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DescribeCollectionResponse::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.DescribeCollectionResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); + } + + // .milvus.proto.schema.CollectionSchema schema = 2; + if (this->has_schema()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, _Internal::schema(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.DescribeCollectionResponse) +} + +::PROTOBUF_NAMESPACE_ID::uint8* DescribeCollectionResponse::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.DescribeCollectionResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); + } + + // .milvus.proto.schema.CollectionSchema schema = 2; + if (this->has_schema()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, _Internal::schema(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.DescribeCollectionResponse) + return target; +} + +size_t DescribeCollectionResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.DescribeCollectionResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + // .milvus.proto.schema.CollectionSchema schema = 2; + if (this->has_schema()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *schema_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DescribeCollectionResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.DescribeCollectionResponse) + GOOGLE_DCHECK_NE(&from, this); + const DescribeCollectionResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DescribeCollectionResponse>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.DescribeCollectionResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.DescribeCollectionResponse) + MergeFrom(*source); + } +} + +void DescribeCollectionResponse::MergeFrom(const DescribeCollectionResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.DescribeCollectionResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_status()) { + mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); + } + if (from.has_schema()) { + mutable_schema()->::milvus::proto::schema::CollectionSchema::MergeFrom(from.schema()); + } +} + +void DescribeCollectionResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.DescribeCollectionResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DescribeCollectionResponse::CopyFrom(const DescribeCollectionResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.DescribeCollectionResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DescribeCollectionResponse::IsInitialized() const { + return true; +} + +void DescribeCollectionResponse::InternalSwap(DescribeCollectionResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(status_, other->status_); + swap(schema_, other->schema_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DescribeCollectionResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void LoadCollectionRequest::InitAsDefaultInstance() { + ::milvus::proto::milvus::_LoadCollectionRequest_default_instance_._instance.get_mutable()->base_ = const_cast< ::milvus::proto::common::MsgBase*>( + ::milvus::proto::common::MsgBase::internal_default_instance()); +} +class LoadCollectionRequest::_Internal { + public: + static const ::milvus::proto::common::MsgBase& base(const LoadCollectionRequest* msg); +}; + +const ::milvus::proto::common::MsgBase& +LoadCollectionRequest::_Internal::base(const LoadCollectionRequest* msg) { + return *msg->base_; +} +void LoadCollectionRequest::clear_base() { + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; +} +LoadCollectionRequest::LoadCollectionRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.LoadCollectionRequest) +} +LoadCollectionRequest::LoadCollectionRequest(const LoadCollectionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.db_name().empty()) { + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.has_base()) { + base_ = new ::milvus::proto::common::MsgBase(*from.base_); + } else { + base_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.LoadCollectionRequest) +} + +void LoadCollectionRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LoadCollectionRequest_milvus_2eproto.base); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + base_ = nullptr; +} + +LoadCollectionRequest::~LoadCollectionRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.LoadCollectionRequest) + SharedDtor(); +} + +void LoadCollectionRequest::SharedDtor() { + db_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete base_; +} + +void LoadCollectionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const LoadCollectionRequest& LoadCollectionRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LoadCollectionRequest_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void LoadCollectionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.LoadCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* LoadCollectionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.MsgBase base = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_base(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string db_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_db_name(), ptr, ctx, "milvus.proto.milvus.LoadCollectionRequest.db_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string collection_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.milvus.LoadCollectionRequest.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool LoadCollectionRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.LoadCollectionRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.MsgBase base = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_base())); + } else { + goto handle_unusual; + } + break; + } + + // string db_name = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_db_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.LoadCollectionRequest.db_name")); + } else { + goto handle_unusual; + } + break; + } + + // string collection_name = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_collection_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.LoadCollectionRequest.collection_name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.LoadCollectionRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.LoadCollectionRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void LoadCollectionRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.LoadCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::base(this), output); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.LoadCollectionRequest.db_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->db_name(), output); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.LoadCollectionRequest.collection_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->collection_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.LoadCollectionRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* LoadCollectionRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.LoadCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::base(this), target); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.LoadCollectionRequest.db_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->db_name(), target); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.LoadCollectionRequest.collection_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 3, this->collection_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.LoadCollectionRequest) + return target; +} + +size_t LoadCollectionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.LoadCollectionRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string db_name = 2; + if (this->db_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->db_name()); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *base_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LoadCollectionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.LoadCollectionRequest) + GOOGLE_DCHECK_NE(&from, this); + const LoadCollectionRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<LoadCollectionRequest>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.LoadCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.LoadCollectionRequest) + MergeFrom(*source); + } +} + +void LoadCollectionRequest::MergeFrom(const LoadCollectionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.LoadCollectionRequest) + 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.db_name().size() > 0) { + + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + if (from.collection_name().size() > 0) { + + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.has_base()) { + mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(from.base()); + } +} + +void LoadCollectionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.LoadCollectionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LoadCollectionRequest::CopyFrom(const LoadCollectionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.LoadCollectionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LoadCollectionRequest::IsInitialized() const { + return true; +} + +void LoadCollectionRequest::InternalSwap(LoadCollectionRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + db_name_.Swap(&other->db_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(base_, other->base_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata LoadCollectionRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void ReleaseCollectionRequest::InitAsDefaultInstance() { + ::milvus::proto::milvus::_ReleaseCollectionRequest_default_instance_._instance.get_mutable()->base_ = const_cast< ::milvus::proto::common::MsgBase*>( + ::milvus::proto::common::MsgBase::internal_default_instance()); +} +class ReleaseCollectionRequest::_Internal { + public: + static const ::milvus::proto::common::MsgBase& base(const ReleaseCollectionRequest* msg); +}; + +const ::milvus::proto::common::MsgBase& +ReleaseCollectionRequest::_Internal::base(const ReleaseCollectionRequest* msg) { + return *msg->base_; +} +void ReleaseCollectionRequest::clear_base() { + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; +} +ReleaseCollectionRequest::ReleaseCollectionRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.ReleaseCollectionRequest) +} +ReleaseCollectionRequest::ReleaseCollectionRequest(const ReleaseCollectionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.db_name().empty()) { + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.has_base()) { + base_ = new ::milvus::proto::common::MsgBase(*from.base_); + } else { + base_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.ReleaseCollectionRequest) +} + +void ReleaseCollectionRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ReleaseCollectionRequest_milvus_2eproto.base); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + base_ = nullptr; +} + +ReleaseCollectionRequest::~ReleaseCollectionRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.ReleaseCollectionRequest) + SharedDtor(); +} + +void ReleaseCollectionRequest::SharedDtor() { + db_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete base_; +} + +void ReleaseCollectionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ReleaseCollectionRequest& ReleaseCollectionRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ReleaseCollectionRequest_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void ReleaseCollectionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.ReleaseCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ReleaseCollectionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.MsgBase base = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_base(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string db_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_db_name(), ptr, ctx, "milvus.proto.milvus.ReleaseCollectionRequest.db_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string collection_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.milvus.ReleaseCollectionRequest.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ReleaseCollectionRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.ReleaseCollectionRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.MsgBase base = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_base())); + } else { + goto handle_unusual; + } + break; + } + + // string db_name = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_db_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.ReleaseCollectionRequest.db_name")); + } else { + goto handle_unusual; + } + break; + } + + // string collection_name = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_collection_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.ReleaseCollectionRequest.collection_name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.ReleaseCollectionRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.ReleaseCollectionRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ReleaseCollectionRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.ReleaseCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::base(this), output); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.ReleaseCollectionRequest.db_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->db_name(), output); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.ReleaseCollectionRequest.collection_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->collection_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.ReleaseCollectionRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* ReleaseCollectionRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.ReleaseCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::base(this), target); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.ReleaseCollectionRequest.db_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->db_name(), target); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.ReleaseCollectionRequest.collection_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 3, this->collection_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.ReleaseCollectionRequest) + return target; +} + +size_t ReleaseCollectionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.ReleaseCollectionRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string db_name = 2; + if (this->db_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->db_name()); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *base_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ReleaseCollectionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.ReleaseCollectionRequest) + GOOGLE_DCHECK_NE(&from, this); + const ReleaseCollectionRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ReleaseCollectionRequest>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.ReleaseCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.ReleaseCollectionRequest) + MergeFrom(*source); + } +} + +void ReleaseCollectionRequest::MergeFrom(const ReleaseCollectionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.ReleaseCollectionRequest) + 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.db_name().size() > 0) { + + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + if (from.collection_name().size() > 0) { + + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.has_base()) { + mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(from.base()); + } +} + +void ReleaseCollectionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.ReleaseCollectionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReleaseCollectionRequest::CopyFrom(const ReleaseCollectionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.ReleaseCollectionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReleaseCollectionRequest::IsInitialized() const { + return true; +} + +void ReleaseCollectionRequest::InternalSwap(ReleaseCollectionRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + db_name_.Swap(&other->db_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(base_, other->base_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ReleaseCollectionRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void CollectionStatsRequest::InitAsDefaultInstance() { + ::milvus::proto::milvus::_CollectionStatsRequest_default_instance_._instance.get_mutable()->base_ = const_cast< ::milvus::proto::common::MsgBase*>( + ::milvus::proto::common::MsgBase::internal_default_instance()); +} +class CollectionStatsRequest::_Internal { + public: + static const ::milvus::proto::common::MsgBase& base(const CollectionStatsRequest* msg); +}; + +const ::milvus::proto::common::MsgBase& +CollectionStatsRequest::_Internal::base(const CollectionStatsRequest* msg) { + return *msg->base_; +} +void CollectionStatsRequest::clear_base() { + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; +} +CollectionStatsRequest::CollectionStatsRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.CollectionStatsRequest) +} +CollectionStatsRequest::CollectionStatsRequest(const CollectionStatsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.db_name().empty()) { + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.has_base()) { + base_ = new ::milvus::proto::common::MsgBase(*from.base_); + } else { + base_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.CollectionStatsRequest) +} + +void CollectionStatsRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionStatsRequest_milvus_2eproto.base); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + base_ = nullptr; +} + +CollectionStatsRequest::~CollectionStatsRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.CollectionStatsRequest) + SharedDtor(); +} + +void CollectionStatsRequest::SharedDtor() { + db_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete base_; +} + +void CollectionStatsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CollectionStatsRequest& CollectionStatsRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionStatsRequest_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void CollectionStatsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.CollectionStatsRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CollectionStatsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.MsgBase base = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_base(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string db_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_db_name(), ptr, ctx, "milvus.proto.milvus.CollectionStatsRequest.db_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string collection_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.milvus.CollectionStatsRequest.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CollectionStatsRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.CollectionStatsRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.MsgBase base = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_base())); + } else { + goto handle_unusual; + } + break; + } + + // string db_name = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_db_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.CollectionStatsRequest.db_name")); + } else { + goto handle_unusual; + } + break; + } + + // string collection_name = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_collection_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.CollectionStatsRequest.collection_name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.CollectionStatsRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.CollectionStatsRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CollectionStatsRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.CollectionStatsRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::base(this), output); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.CollectionStatsRequest.db_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->db_name(), output); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.CollectionStatsRequest.collection_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->collection_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.CollectionStatsRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* CollectionStatsRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.CollectionStatsRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::base(this), target); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.CollectionStatsRequest.db_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->db_name(), target); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.CollectionStatsRequest.collection_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 3, this->collection_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.CollectionStatsRequest) + return target; +} + +size_t CollectionStatsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.CollectionStatsRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string db_name = 2; + if (this->db_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->db_name()); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *base_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CollectionStatsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.CollectionStatsRequest) + GOOGLE_DCHECK_NE(&from, this); + const CollectionStatsRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CollectionStatsRequest>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.CollectionStatsRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.CollectionStatsRequest) + MergeFrom(*source); + } +} + +void CollectionStatsRequest::MergeFrom(const CollectionStatsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.CollectionStatsRequest) + 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.db_name().size() > 0) { + + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + if (from.collection_name().size() > 0) { + + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.has_base()) { + mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(from.base()); + } +} + +void CollectionStatsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.CollectionStatsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CollectionStatsRequest::CopyFrom(const CollectionStatsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.CollectionStatsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CollectionStatsRequest::IsInitialized() const { + return true; +} + +void CollectionStatsRequest::InternalSwap(CollectionStatsRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + db_name_.Swap(&other->db_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(base_, other->base_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CollectionStatsRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void CollectionStatsResponse::InitAsDefaultInstance() { + ::milvus::proto::milvus::_CollectionStatsResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( + ::milvus::proto::common::Status::internal_default_instance()); +} +class CollectionStatsResponse::_Internal { + public: + static const ::milvus::proto::common::Status& status(const CollectionStatsResponse* msg); +}; + +const ::milvus::proto::common::Status& +CollectionStatsResponse::_Internal::status(const CollectionStatsResponse* msg) { + return *msg->status_; +} +void CollectionStatsResponse::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +void CollectionStatsResponse::clear_stats() { + stats_.Clear(); +} +CollectionStatsResponse::CollectionStatsResponse() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.CollectionStatsResponse) +} +CollectionStatsResponse::CollectionStatsResponse(const CollectionStatsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + stats_(from.stats_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_status()) { + status_ = new ::milvus::proto::common::Status(*from.status_); + } else { + status_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.CollectionStatsResponse) +} + +void CollectionStatsResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionStatsResponse_milvus_2eproto.base); + status_ = nullptr; +} + +CollectionStatsResponse::~CollectionStatsResponse() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.CollectionStatsResponse) + SharedDtor(); +} + +void CollectionStatsResponse::SharedDtor() { + if (this != internal_default_instance()) delete status_; +} + +void CollectionStatsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CollectionStatsResponse& CollectionStatsResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionStatsResponse_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void CollectionStatsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.CollectionStatsResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + stats_.Clear(); + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CollectionStatsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .milvus.proto.common.KeyValuePair stats = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_stats(), 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 CollectionStatsResponse::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.CollectionStatsResponse) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.Status status = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_status())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .milvus.proto.common.KeyValuePair stats = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, add_stats())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.CollectionStatsResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.CollectionStatsResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CollectionStatsResponse::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.CollectionStatsResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); + } + + // repeated .milvus.proto.common.KeyValuePair stats = 2; + for (unsigned int i = 0, + n = static_cast<unsigned int>(this->stats_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, + this->stats(static_cast<int>(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.CollectionStatsResponse) +} + +::PROTOBUF_NAMESPACE_ID::uint8* CollectionStatsResponse::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.CollectionStatsResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); + } + + // repeated .milvus.proto.common.KeyValuePair stats = 2; + for (unsigned int i = 0, + n = static_cast<unsigned int>(this->stats_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->stats(static_cast<int>(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.CollectionStatsResponse) + return target; +} + +size_t CollectionStatsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.CollectionStatsResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .milvus.proto.common.KeyValuePair stats = 2; + { + unsigned int count = static_cast<unsigned int>(this->stats_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->stats(static_cast<int>(i))); + } + } + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CollectionStatsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.CollectionStatsResponse) + GOOGLE_DCHECK_NE(&from, this); + const CollectionStatsResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CollectionStatsResponse>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.CollectionStatsResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.CollectionStatsResponse) + MergeFrom(*source); + } +} + +void CollectionStatsResponse::MergeFrom(const CollectionStatsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.CollectionStatsResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + stats_.MergeFrom(from.stats_); + if (from.has_status()) { + mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); + } +} + +void CollectionStatsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.CollectionStatsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CollectionStatsResponse::CopyFrom(const CollectionStatsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.CollectionStatsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CollectionStatsResponse::IsInitialized() const { + return true; +} + +void CollectionStatsResponse::InternalSwap(CollectionStatsResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&stats_)->InternalSwap(CastToBase(&other->stats_)); + swap(status_, other->status_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CollectionStatsResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void ShowCollectionRequest::InitAsDefaultInstance() { + ::milvus::proto::milvus::_ShowCollectionRequest_default_instance_._instance.get_mutable()->base_ = const_cast< ::milvus::proto::common::MsgBase*>( + ::milvus::proto::common::MsgBase::internal_default_instance()); +} +class ShowCollectionRequest::_Internal { + public: + static const ::milvus::proto::common::MsgBase& base(const ShowCollectionRequest* msg); +}; + +const ::milvus::proto::common::MsgBase& +ShowCollectionRequest::_Internal::base(const ShowCollectionRequest* msg) { + return *msg->base_; +} +void ShowCollectionRequest::clear_base() { + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; +} +ShowCollectionRequest::ShowCollectionRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.ShowCollectionRequest) +} +ShowCollectionRequest::ShowCollectionRequest(const ShowCollectionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.db_name().empty()) { + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + if (from.has_base()) { + base_ = new ::milvus::proto::common::MsgBase(*from.base_); + } else { + base_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.ShowCollectionRequest) +} + +void ShowCollectionRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ShowCollectionRequest_milvus_2eproto.base); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + base_ = nullptr; +} + +ShowCollectionRequest::~ShowCollectionRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.ShowCollectionRequest) + SharedDtor(); +} + +void ShowCollectionRequest::SharedDtor() { + db_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete base_; +} + +void ShowCollectionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ShowCollectionRequest& ShowCollectionRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ShowCollectionRequest_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void ShowCollectionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.ShowCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ShowCollectionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.MsgBase base = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_base(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string db_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_db_name(), ptr, ctx, "milvus.proto.milvus.ShowCollectionRequest.db_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 ShowCollectionRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.ShowCollectionRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.MsgBase base = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_base())); + } else { + goto handle_unusual; + } + break; + } + + // string db_name = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_db_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.ShowCollectionRequest.db_name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.ShowCollectionRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.ShowCollectionRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ShowCollectionRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.ShowCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::base(this), output); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.ShowCollectionRequest.db_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->db_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.ShowCollectionRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* ShowCollectionRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.ShowCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::base(this), target); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.ShowCollectionRequest.db_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->db_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.ShowCollectionRequest) + return target; +} + +size_t ShowCollectionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.ShowCollectionRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string db_name = 2; + if (this->db_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->db_name()); + } + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *base_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ShowCollectionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.ShowCollectionRequest) + GOOGLE_DCHECK_NE(&from, this); + const ShowCollectionRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ShowCollectionRequest>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.ShowCollectionRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.ShowCollectionRequest) + MergeFrom(*source); + } +} + +void ShowCollectionRequest::MergeFrom(const ShowCollectionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.ShowCollectionRequest) + 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.db_name().size() > 0) { + + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + if (from.has_base()) { + mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(from.base()); + } +} + +void ShowCollectionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.ShowCollectionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ShowCollectionRequest::CopyFrom(const ShowCollectionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.ShowCollectionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ShowCollectionRequest::IsInitialized() const { + return true; +} + +void ShowCollectionRequest::InternalSwap(ShowCollectionRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + db_name_.Swap(&other->db_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(base_, other->base_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ShowCollectionRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void ShowCollectionResponse::InitAsDefaultInstance() { + ::milvus::proto::milvus::_ShowCollectionResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( + ::milvus::proto::common::Status::internal_default_instance()); +} +class ShowCollectionResponse::_Internal { + public: + static const ::milvus::proto::common::Status& status(const ShowCollectionResponse* msg); +}; + +const ::milvus::proto::common::Status& +ShowCollectionResponse::_Internal::status(const ShowCollectionResponse* msg) { + return *msg->status_; +} +void ShowCollectionResponse::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +ShowCollectionResponse::ShowCollectionResponse() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.ShowCollectionResponse) +} +ShowCollectionResponse::ShowCollectionResponse(const ShowCollectionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + collection_names_(from.collection_names_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_status()) { + status_ = new ::milvus::proto::common::Status(*from.status_); + } else { + status_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.ShowCollectionResponse) +} + +void ShowCollectionResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ShowCollectionResponse_milvus_2eproto.base); + status_ = nullptr; +} + +ShowCollectionResponse::~ShowCollectionResponse() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.ShowCollectionResponse) + SharedDtor(); +} + +void ShowCollectionResponse::SharedDtor() { + if (this != internal_default_instance()) delete status_; +} + +void ShowCollectionResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ShowCollectionResponse& ShowCollectionResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ShowCollectionResponse_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void ShowCollectionResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.ShowCollectionResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + collection_names_.Clear(); + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ShowCollectionResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated string collection_names = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_collection_names(), ptr, ctx, "milvus.proto.milvus.ShowCollectionResponse.collection_names"); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ShowCollectionResponse::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.ShowCollectionResponse) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.Status status = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_status())); + } else { + goto handle_unusual; + } + break; + } + + // repeated string collection_names = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->add_collection_names())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_names(this->collection_names_size() - 1).data(), + static_cast<int>(this->collection_names(this->collection_names_size() - 1).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.ShowCollectionResponse.collection_names")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.ShowCollectionResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.ShowCollectionResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ShowCollectionResponse::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.ShowCollectionResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); + } + + // repeated string collection_names = 2; + for (int i = 0, n = this->collection_names_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_names(i).data(), static_cast<int>(this->collection_names(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.ShowCollectionResponse.collection_names"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( + 2, this->collection_names(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.ShowCollectionResponse) +} + +::PROTOBUF_NAMESPACE_ID::uint8* ShowCollectionResponse::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.ShowCollectionResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); + } + + // repeated string collection_names = 2; + for (int i = 0, n = this->collection_names_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_names(i).data(), static_cast<int>(this->collection_names(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.ShowCollectionResponse.collection_names"); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteStringToArray(2, this->collection_names(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.ShowCollectionResponse) + return target; +} + +size_t ShowCollectionResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.ShowCollectionResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string collection_names = 2; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->collection_names_size()); + for (int i = 0, n = this->collection_names_size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_names(i)); + } + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ShowCollectionResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.ShowCollectionResponse) + GOOGLE_DCHECK_NE(&from, this); + const ShowCollectionResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ShowCollectionResponse>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.ShowCollectionResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.ShowCollectionResponse) + MergeFrom(*source); + } +} + +void ShowCollectionResponse::MergeFrom(const ShowCollectionResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.ShowCollectionResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + collection_names_.MergeFrom(from.collection_names_); + if (from.has_status()) { + mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); + } +} + +void ShowCollectionResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.ShowCollectionResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ShowCollectionResponse::CopyFrom(const ShowCollectionResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.ShowCollectionResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ShowCollectionResponse::IsInitialized() const { + return true; +} + +void ShowCollectionResponse::InternalSwap(ShowCollectionResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + collection_names_.InternalSwap(CastToBase(&other->collection_names_)); + swap(status_, other->status_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ShowCollectionResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void CreatePartitionRequest::InitAsDefaultInstance() { + ::milvus::proto::milvus::_CreatePartitionRequest_default_instance_._instance.get_mutable()->base_ = const_cast< ::milvus::proto::common::MsgBase*>( + ::milvus::proto::common::MsgBase::internal_default_instance()); +} +class CreatePartitionRequest::_Internal { + public: + static const ::milvus::proto::common::MsgBase& base(const CreatePartitionRequest* msg); +}; + +const ::milvus::proto::common::MsgBase& +CreatePartitionRequest::_Internal::base(const CreatePartitionRequest* msg) { + return *msg->base_; +} +void CreatePartitionRequest::clear_base() { + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; +} +CreatePartitionRequest::CreatePartitionRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.CreatePartitionRequest) +} +CreatePartitionRequest::CreatePartitionRequest(const CreatePartitionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.db_name().empty()) { + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + 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_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.partition_name().empty()) { + partition_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_name_); + } + if (from.has_base()) { + base_ = new ::milvus::proto::common::MsgBase(*from.base_); + } else { + base_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.CreatePartitionRequest) +} + +void CreatePartitionRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CreatePartitionRequest_milvus_2eproto.base); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + partition_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + base_ = nullptr; +} + +CreatePartitionRequest::~CreatePartitionRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.CreatePartitionRequest) + SharedDtor(); +} + +void CreatePartitionRequest::SharedDtor() { + db_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + partition_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete base_; +} + +void CreatePartitionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CreatePartitionRequest& CreatePartitionRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CreatePartitionRequest_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void CreatePartitionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.CreatePartitionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + partition_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CreatePartitionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.MsgBase base = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_base(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string db_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_db_name(), ptr, ctx, "milvus.proto.milvus.CreatePartitionRequest.db_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string collection_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.milvus.CreatePartitionRequest.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string partition_name = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_partition_name(), ptr, ctx, "milvus.proto.milvus.CreatePartitionRequest.partition_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 CreatePartitionRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.CreatePartitionRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.MsgBase base = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_base())); + } else { + goto handle_unusual; + } + break; + } + + // string db_name = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_db_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.CreatePartitionRequest.db_name")); + } else { + goto handle_unusual; + } + break; + } + + // string collection_name = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_collection_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.CreatePartitionRequest.collection_name")); + } else { + goto handle_unusual; + } + break; + } + + // string partition_name = 4; + case 4: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_partition_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_name().data(), static_cast<int>(this->partition_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.CreatePartitionRequest.partition_name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.CreatePartitionRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.CreatePartitionRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CreatePartitionRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.CreatePartitionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::base(this), output); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.CreatePartitionRequest.db_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->db_name(), output); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.CreatePartitionRequest.collection_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->collection_name(), output); + } + + // string partition_name = 4; + if (this->partition_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_name().data(), static_cast<int>(this->partition_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.CreatePartitionRequest.partition_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->partition_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.CreatePartitionRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* CreatePartitionRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.CreatePartitionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::base(this), target); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.CreatePartitionRequest.db_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->db_name(), target); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.CreatePartitionRequest.collection_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 3, this->collection_name(), target); + } + + // string partition_name = 4; + if (this->partition_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_name().data(), static_cast<int>(this->partition_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.CreatePartitionRequest.partition_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 4, this->partition_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.CreatePartitionRequest) + return target; +} + +size_t CreatePartitionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.CreatePartitionRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string db_name = 2; + if (this->db_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->db_name()); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // string partition_name = 4; + if (this->partition_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->partition_name()); + } + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *base_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CreatePartitionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.CreatePartitionRequest) + GOOGLE_DCHECK_NE(&from, this); + const CreatePartitionRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CreatePartitionRequest>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.CreatePartitionRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.CreatePartitionRequest) + MergeFrom(*source); + } +} + +void CreatePartitionRequest::MergeFrom(const CreatePartitionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.CreatePartitionRequest) + 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.db_name().size() > 0) { + + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + if (from.collection_name().size() > 0) { + + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.partition_name().size() > 0) { + + partition_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_name_); + } + if (from.has_base()) { + mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(from.base()); + } +} + +void CreatePartitionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.CreatePartitionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreatePartitionRequest::CopyFrom(const CreatePartitionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.CreatePartitionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreatePartitionRequest::IsInitialized() const { + return true; +} + +void CreatePartitionRequest::InternalSwap(CreatePartitionRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + db_name_.Swap(&other->db_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + partition_name_.Swap(&other->partition_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(base_, other->base_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CreatePartitionRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void DropPartitionRequest::InitAsDefaultInstance() { + ::milvus::proto::milvus::_DropPartitionRequest_default_instance_._instance.get_mutable()->base_ = const_cast< ::milvus::proto::common::MsgBase*>( + ::milvus::proto::common::MsgBase::internal_default_instance()); +} +class DropPartitionRequest::_Internal { + public: + static const ::milvus::proto::common::MsgBase& base(const DropPartitionRequest* msg); +}; + +const ::milvus::proto::common::MsgBase& +DropPartitionRequest::_Internal::base(const DropPartitionRequest* msg) { + return *msg->base_; +} +void DropPartitionRequest::clear_base() { + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; +} +DropPartitionRequest::DropPartitionRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.DropPartitionRequest) +} +DropPartitionRequest::DropPartitionRequest(const DropPartitionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.db_name().empty()) { + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + 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_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.partition_name().empty()) { + partition_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_name_); + } + if (from.has_base()) { + base_ = new ::milvus::proto::common::MsgBase(*from.base_); + } else { + base_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.DropPartitionRequest) +} + +void DropPartitionRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DropPartitionRequest_milvus_2eproto.base); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + partition_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + base_ = nullptr; +} + +DropPartitionRequest::~DropPartitionRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.DropPartitionRequest) + SharedDtor(); +} + +void DropPartitionRequest::SharedDtor() { + db_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + partition_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete base_; +} + +void DropPartitionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DropPartitionRequest& DropPartitionRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DropPartitionRequest_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void DropPartitionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.DropPartitionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + partition_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DropPartitionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.MsgBase base = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_base(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string db_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_db_name(), ptr, ctx, "milvus.proto.milvus.DropPartitionRequest.db_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string collection_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.milvus.DropPartitionRequest.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string partition_name = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_partition_name(), ptr, ctx, "milvus.proto.milvus.DropPartitionRequest.partition_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 DropPartitionRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.DropPartitionRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.MsgBase base = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_base())); + } else { + goto handle_unusual; + } + break; + } + + // string db_name = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_db_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.DropPartitionRequest.db_name")); + } else { + goto handle_unusual; + } + break; + } + + // string collection_name = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_collection_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.DropPartitionRequest.collection_name")); + } else { + goto handle_unusual; + } + break; + } + + // string partition_name = 4; + case 4: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_partition_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_name().data(), static_cast<int>(this->partition_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.DropPartitionRequest.partition_name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.DropPartitionRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.DropPartitionRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DropPartitionRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.DropPartitionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::base(this), output); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.DropPartitionRequest.db_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->db_name(), output); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.DropPartitionRequest.collection_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->collection_name(), output); + } + + // string partition_name = 4; + if (this->partition_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_name().data(), static_cast<int>(this->partition_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.DropPartitionRequest.partition_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->partition_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.DropPartitionRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* DropPartitionRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.DropPartitionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::base(this), target); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.DropPartitionRequest.db_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->db_name(), target); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.DropPartitionRequest.collection_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 3, this->collection_name(), target); + } + + // string partition_name = 4; + if (this->partition_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_name().data(), static_cast<int>(this->partition_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.DropPartitionRequest.partition_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 4, this->partition_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.DropPartitionRequest) + return target; +} + +size_t DropPartitionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.DropPartitionRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string db_name = 2; + if (this->db_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->db_name()); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // string partition_name = 4; + if (this->partition_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->partition_name()); + } + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *base_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DropPartitionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.DropPartitionRequest) + GOOGLE_DCHECK_NE(&from, this); + const DropPartitionRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DropPartitionRequest>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.DropPartitionRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.DropPartitionRequest) + MergeFrom(*source); + } +} + +void DropPartitionRequest::MergeFrom(const DropPartitionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.DropPartitionRequest) + 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.db_name().size() > 0) { + + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + if (from.collection_name().size() > 0) { + + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.partition_name().size() > 0) { + + partition_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_name_); + } + if (from.has_base()) { + mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(from.base()); + } +} + +void DropPartitionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.DropPartitionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DropPartitionRequest::CopyFrom(const DropPartitionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.DropPartitionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DropPartitionRequest::IsInitialized() const { + return true; +} + +void DropPartitionRequest::InternalSwap(DropPartitionRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + db_name_.Swap(&other->db_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + partition_name_.Swap(&other->partition_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(base_, other->base_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DropPartitionRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void HasPartitionRequest::InitAsDefaultInstance() { + ::milvus::proto::milvus::_HasPartitionRequest_default_instance_._instance.get_mutable()->base_ = const_cast< ::milvus::proto::common::MsgBase*>( + ::milvus::proto::common::MsgBase::internal_default_instance()); +} +class HasPartitionRequest::_Internal { + public: + static const ::milvus::proto::common::MsgBase& base(const HasPartitionRequest* msg); +}; + +const ::milvus::proto::common::MsgBase& +HasPartitionRequest::_Internal::base(const HasPartitionRequest* msg) { + return *msg->base_; +} +void HasPartitionRequest::clear_base() { + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; +} +HasPartitionRequest::HasPartitionRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.HasPartitionRequest) +} +HasPartitionRequest::HasPartitionRequest(const HasPartitionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.db_name().empty()) { + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + 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_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.partition_name().empty()) { + partition_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_name_); + } + if (from.has_base()) { + base_ = new ::milvus::proto::common::MsgBase(*from.base_); + } else { + base_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.HasPartitionRequest) +} + +void HasPartitionRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_HasPartitionRequest_milvus_2eproto.base); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + partition_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + base_ = nullptr; +} + +HasPartitionRequest::~HasPartitionRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.HasPartitionRequest) + SharedDtor(); +} + +void HasPartitionRequest::SharedDtor() { + db_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + partition_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete base_; +} + +void HasPartitionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HasPartitionRequest& HasPartitionRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_HasPartitionRequest_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void HasPartitionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.HasPartitionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + partition_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* HasPartitionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.MsgBase base = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_base(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string db_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_db_name(), ptr, ctx, "milvus.proto.milvus.HasPartitionRequest.db_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string collection_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.milvus.HasPartitionRequest.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string partition_name = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_partition_name(), ptr, ctx, "milvus.proto.milvus.HasPartitionRequest.partition_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 HasPartitionRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.HasPartitionRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.MsgBase base = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_base())); + } else { + goto handle_unusual; + } + break; + } + + // string db_name = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_db_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.HasPartitionRequest.db_name")); + } else { + goto handle_unusual; + } + break; + } + + // string collection_name = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_collection_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.HasPartitionRequest.collection_name")); + } else { + goto handle_unusual; + } + break; + } + + // string partition_name = 4; + case 4: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_partition_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_name().data(), static_cast<int>(this->partition_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.HasPartitionRequest.partition_name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.HasPartitionRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.HasPartitionRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void HasPartitionRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.HasPartitionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::base(this), output); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.HasPartitionRequest.db_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->db_name(), output); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.HasPartitionRequest.collection_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->collection_name(), output); + } + + // string partition_name = 4; + if (this->partition_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_name().data(), static_cast<int>(this->partition_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.HasPartitionRequest.partition_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->partition_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.HasPartitionRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* HasPartitionRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.HasPartitionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::base(this), target); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.HasPartitionRequest.db_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->db_name(), target); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.HasPartitionRequest.collection_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 3, this->collection_name(), target); + } + + // string partition_name = 4; + if (this->partition_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_name().data(), static_cast<int>(this->partition_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.HasPartitionRequest.partition_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 4, this->partition_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.HasPartitionRequest) + return target; +} + +size_t HasPartitionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.HasPartitionRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string db_name = 2; + if (this->db_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->db_name()); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // string partition_name = 4; + if (this->partition_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->partition_name()); + } + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *base_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HasPartitionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.HasPartitionRequest) + GOOGLE_DCHECK_NE(&from, this); + const HasPartitionRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<HasPartitionRequest>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.HasPartitionRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.HasPartitionRequest) + MergeFrom(*source); + } +} + +void HasPartitionRequest::MergeFrom(const HasPartitionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.HasPartitionRequest) + 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.db_name().size() > 0) { + + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + if (from.collection_name().size() > 0) { + + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.partition_name().size() > 0) { + + partition_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_name_); + } + if (from.has_base()) { + mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(from.base()); + } +} + +void HasPartitionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.HasPartitionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HasPartitionRequest::CopyFrom(const HasPartitionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.HasPartitionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HasPartitionRequest::IsInitialized() const { + return true; +} + +void HasPartitionRequest::InternalSwap(HasPartitionRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + db_name_.Swap(&other->db_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + partition_name_.Swap(&other->partition_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(base_, other->base_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata HasPartitionRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void LoadPartitonRequest::InitAsDefaultInstance() { + ::milvus::proto::milvus::_LoadPartitonRequest_default_instance_._instance.get_mutable()->base_ = const_cast< ::milvus::proto::common::MsgBase*>( + ::milvus::proto::common::MsgBase::internal_default_instance()); +} +class LoadPartitonRequest::_Internal { + public: + static const ::milvus::proto::common::MsgBase& base(const LoadPartitonRequest* msg); +}; + +const ::milvus::proto::common::MsgBase& +LoadPartitonRequest::_Internal::base(const LoadPartitonRequest* msg) { + return *msg->base_; +} +void LoadPartitonRequest::clear_base() { + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; +} +LoadPartitonRequest::LoadPartitonRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.LoadPartitonRequest) +} +LoadPartitonRequest::LoadPartitonRequest(const LoadPartitonRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + partition_names_(from.partition_names_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.db_name().empty()) { + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.has_base()) { + base_ = new ::milvus::proto::common::MsgBase(*from.base_); + } else { + base_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.LoadPartitonRequest) +} + +void LoadPartitonRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LoadPartitonRequest_milvus_2eproto.base); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + base_ = nullptr; +} + +LoadPartitonRequest::~LoadPartitonRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.LoadPartitonRequest) + SharedDtor(); +} + +void LoadPartitonRequest::SharedDtor() { + db_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete base_; +} + +void LoadPartitonRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const LoadPartitonRequest& LoadPartitonRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LoadPartitonRequest_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void LoadPartitonRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.LoadPartitonRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + partition_names_.Clear(); + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* LoadPartitonRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.MsgBase base = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_base(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string db_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_db_name(), ptr, ctx, "milvus.proto.milvus.LoadPartitonRequest.db_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string collection_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.milvus.LoadPartitonRequest.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated string partition_names = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_partition_names(), ptr, ctx, "milvus.proto.milvus.LoadPartitonRequest.partition_names"); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool LoadPartitonRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.LoadPartitonRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.MsgBase base = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_base())); + } else { + goto handle_unusual; + } + break; + } + + // string db_name = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_db_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.LoadPartitonRequest.db_name")); + } else { + goto handle_unusual; + } + break; + } + + // string collection_name = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_collection_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.LoadPartitonRequest.collection_name")); + } else { + goto handle_unusual; + } + break; + } + + // repeated string partition_names = 4; + case 4: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->add_partition_names())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_names(this->partition_names_size() - 1).data(), + static_cast<int>(this->partition_names(this->partition_names_size() - 1).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.LoadPartitonRequest.partition_names")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.LoadPartitonRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.LoadPartitonRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void LoadPartitonRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.LoadPartitonRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::base(this), output); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.LoadPartitonRequest.db_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->db_name(), output); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.LoadPartitonRequest.collection_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->collection_name(), output); + } + + // repeated string partition_names = 4; + for (int i = 0, n = this->partition_names_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_names(i).data(), static_cast<int>(this->partition_names(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.LoadPartitonRequest.partition_names"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( + 4, this->partition_names(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.LoadPartitonRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* LoadPartitonRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.LoadPartitonRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::base(this), target); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.LoadPartitonRequest.db_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->db_name(), target); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.LoadPartitonRequest.collection_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 3, this->collection_name(), target); + } + + // repeated string partition_names = 4; + for (int i = 0, n = this->partition_names_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_names(i).data(), static_cast<int>(this->partition_names(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.LoadPartitonRequest.partition_names"); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteStringToArray(4, this->partition_names(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.LoadPartitonRequest) + return target; +} + +size_t LoadPartitonRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.LoadPartitonRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string partition_names = 4; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->partition_names_size()); + for (int i = 0, n = this->partition_names_size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->partition_names(i)); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->db_name()); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *base_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LoadPartitonRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.LoadPartitonRequest) + GOOGLE_DCHECK_NE(&from, this); + const LoadPartitonRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<LoadPartitonRequest>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.LoadPartitonRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.LoadPartitonRequest) + MergeFrom(*source); + } +} + +void LoadPartitonRequest::MergeFrom(const LoadPartitonRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.LoadPartitonRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + partition_names_.MergeFrom(from.partition_names_); + if (from.db_name().size() > 0) { + + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + if (from.collection_name().size() > 0) { + + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.has_base()) { + mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(from.base()); + } +} + +void LoadPartitonRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.LoadPartitonRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LoadPartitonRequest::CopyFrom(const LoadPartitonRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.LoadPartitonRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LoadPartitonRequest::IsInitialized() const { + return true; +} + +void LoadPartitonRequest::InternalSwap(LoadPartitonRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + partition_names_.InternalSwap(CastToBase(&other->partition_names_)); + db_name_.Swap(&other->db_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(base_, other->base_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata LoadPartitonRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void ReleasePartitionRequest::InitAsDefaultInstance() { + ::milvus::proto::milvus::_ReleasePartitionRequest_default_instance_._instance.get_mutable()->base_ = const_cast< ::milvus::proto::common::MsgBase*>( + ::milvus::proto::common::MsgBase::internal_default_instance()); +} +class ReleasePartitionRequest::_Internal { + public: + static const ::milvus::proto::common::MsgBase& base(const ReleasePartitionRequest* msg); +}; + +const ::milvus::proto::common::MsgBase& +ReleasePartitionRequest::_Internal::base(const ReleasePartitionRequest* msg) { + return *msg->base_; +} +void ReleasePartitionRequest::clear_base() { + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; +} +ReleasePartitionRequest::ReleasePartitionRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.ReleasePartitionRequest) +} +ReleasePartitionRequest::ReleasePartitionRequest(const ReleasePartitionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + partition_names_(from.partition_names_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.db_name().empty()) { + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.has_base()) { + base_ = new ::milvus::proto::common::MsgBase(*from.base_); + } else { + base_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.ReleasePartitionRequest) +} + +void ReleasePartitionRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ReleasePartitionRequest_milvus_2eproto.base); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + base_ = nullptr; +} + +ReleasePartitionRequest::~ReleasePartitionRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.ReleasePartitionRequest) + SharedDtor(); +} + +void ReleasePartitionRequest::SharedDtor() { + db_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete base_; +} + +void ReleasePartitionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ReleasePartitionRequest& ReleasePartitionRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ReleasePartitionRequest_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void ReleasePartitionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.ReleasePartitionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + partition_names_.Clear(); + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ReleasePartitionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.MsgBase base = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_base(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string db_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_db_name(), ptr, ctx, "milvus.proto.milvus.ReleasePartitionRequest.db_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string collection_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.milvus.ReleasePartitionRequest.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated string partition_names = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_partition_names(), ptr, ctx, "milvus.proto.milvus.ReleasePartitionRequest.partition_names"); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ReleasePartitionRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.ReleasePartitionRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.MsgBase base = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_base())); + } else { + goto handle_unusual; + } + break; + } + + // string db_name = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_db_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.ReleasePartitionRequest.db_name")); + } else { + goto handle_unusual; + } + break; + } + + // string collection_name = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_collection_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.ReleasePartitionRequest.collection_name")); + } else { + goto handle_unusual; + } + break; + } + + // repeated string partition_names = 4; + case 4: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->add_partition_names())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_names(this->partition_names_size() - 1).data(), + static_cast<int>(this->partition_names(this->partition_names_size() - 1).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.ReleasePartitionRequest.partition_names")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.ReleasePartitionRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.ReleasePartitionRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ReleasePartitionRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.ReleasePartitionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::base(this), output); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.ReleasePartitionRequest.db_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->db_name(), output); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.ReleasePartitionRequest.collection_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->collection_name(), output); + } + + // repeated string partition_names = 4; + for (int i = 0, n = this->partition_names_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_names(i).data(), static_cast<int>(this->partition_names(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.ReleasePartitionRequest.partition_names"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( + 4, this->partition_names(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.ReleasePartitionRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* ReleasePartitionRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.ReleasePartitionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::base(this), target); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.ReleasePartitionRequest.db_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->db_name(), target); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.ReleasePartitionRequest.collection_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 3, this->collection_name(), target); + } + + // repeated string partition_names = 4; + for (int i = 0, n = this->partition_names_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_names(i).data(), static_cast<int>(this->partition_names(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.ReleasePartitionRequest.partition_names"); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteStringToArray(4, this->partition_names(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.ReleasePartitionRequest) + return target; +} + +size_t ReleasePartitionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.ReleasePartitionRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string partition_names = 4; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->partition_names_size()); + for (int i = 0, n = this->partition_names_size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->partition_names(i)); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->db_name()); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *base_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ReleasePartitionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.ReleasePartitionRequest) + GOOGLE_DCHECK_NE(&from, this); + const ReleasePartitionRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ReleasePartitionRequest>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.ReleasePartitionRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.ReleasePartitionRequest) + MergeFrom(*source); + } +} + +void ReleasePartitionRequest::MergeFrom(const ReleasePartitionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.ReleasePartitionRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + partition_names_.MergeFrom(from.partition_names_); + if (from.db_name().size() > 0) { + + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + if (from.collection_name().size() > 0) { + + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.has_base()) { + mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(from.base()); + } +} + +void ReleasePartitionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.ReleasePartitionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReleasePartitionRequest::CopyFrom(const ReleasePartitionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.ReleasePartitionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReleasePartitionRequest::IsInitialized() const { + return true; +} + +void ReleasePartitionRequest::InternalSwap(ReleasePartitionRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + partition_names_.InternalSwap(CastToBase(&other->partition_names_)); + db_name_.Swap(&other->db_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(base_, other->base_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ReleasePartitionRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void PartitionStatsRequest::InitAsDefaultInstance() { + ::milvus::proto::milvus::_PartitionStatsRequest_default_instance_._instance.get_mutable()->base_ = const_cast< ::milvus::proto::common::MsgBase*>( + ::milvus::proto::common::MsgBase::internal_default_instance()); +} +class PartitionStatsRequest::_Internal { + public: + static const ::milvus::proto::common::MsgBase& base(const PartitionStatsRequest* msg); +}; + +const ::milvus::proto::common::MsgBase& +PartitionStatsRequest::_Internal::base(const PartitionStatsRequest* msg) { + return *msg->base_; +} +void PartitionStatsRequest::clear_base() { + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; +} +PartitionStatsRequest::PartitionStatsRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.PartitionStatsRequest) +} +PartitionStatsRequest::PartitionStatsRequest(const PartitionStatsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.db_name().empty()) { + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + 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_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.partition_name().empty()) { + partition_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_name_); + } + if (from.has_base()) { + base_ = new ::milvus::proto::common::MsgBase(*from.base_); + } else { + base_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.PartitionStatsRequest) +} + +void PartitionStatsRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PartitionStatsRequest_milvus_2eproto.base); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + partition_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + base_ = nullptr; +} + +PartitionStatsRequest::~PartitionStatsRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.PartitionStatsRequest) + SharedDtor(); +} + +void PartitionStatsRequest::SharedDtor() { + db_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + partition_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete base_; +} + +void PartitionStatsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const PartitionStatsRequest& PartitionStatsRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PartitionStatsRequest_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void PartitionStatsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.PartitionStatsRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + partition_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* PartitionStatsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.MsgBase base = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_base(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string db_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_db_name(), ptr, ctx, "milvus.proto.milvus.PartitionStatsRequest.db_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string collection_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.milvus.PartitionStatsRequest.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string partition_name = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_partition_name(), ptr, ctx, "milvus.proto.milvus.PartitionStatsRequest.partition_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 PartitionStatsRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.PartitionStatsRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.MsgBase base = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_base())); + } else { + goto handle_unusual; + } + break; + } + + // string db_name = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_db_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.PartitionStatsRequest.db_name")); + } else { + goto handle_unusual; + } + break; + } + + // string collection_name = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_collection_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.PartitionStatsRequest.collection_name")); + } else { + goto handle_unusual; + } + break; + } + + // string partition_name = 4; + case 4: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_partition_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_name().data(), static_cast<int>(this->partition_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.PartitionStatsRequest.partition_name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.PartitionStatsRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.PartitionStatsRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void PartitionStatsRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.PartitionStatsRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::base(this), output); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.PartitionStatsRequest.db_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->db_name(), output); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.PartitionStatsRequest.collection_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->collection_name(), output); + } + + // string partition_name = 4; + if (this->partition_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_name().data(), static_cast<int>(this->partition_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.PartitionStatsRequest.partition_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->partition_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.PartitionStatsRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* PartitionStatsRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.PartitionStatsRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::base(this), target); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.PartitionStatsRequest.db_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->db_name(), target); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.PartitionStatsRequest.collection_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 3, this->collection_name(), target); + } + + // string partition_name = 4; + if (this->partition_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_name().data(), static_cast<int>(this->partition_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.PartitionStatsRequest.partition_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 4, this->partition_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.PartitionStatsRequest) + return target; +} + +size_t PartitionStatsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.PartitionStatsRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string db_name = 2; + if (this->db_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->db_name()); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // string partition_name = 4; + if (this->partition_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->partition_name()); + } + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *base_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PartitionStatsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.PartitionStatsRequest) + GOOGLE_DCHECK_NE(&from, this); + const PartitionStatsRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PartitionStatsRequest>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.PartitionStatsRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.PartitionStatsRequest) + MergeFrom(*source); + } +} + +void PartitionStatsRequest::MergeFrom(const PartitionStatsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.PartitionStatsRequest) + 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.db_name().size() > 0) { + + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + if (from.collection_name().size() > 0) { + + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.partition_name().size() > 0) { + + partition_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_name_); + } + if (from.has_base()) { + mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(from.base()); + } +} + +void PartitionStatsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.PartitionStatsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PartitionStatsRequest::CopyFrom(const PartitionStatsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.PartitionStatsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PartitionStatsRequest::IsInitialized() const { + return true; +} + +void PartitionStatsRequest::InternalSwap(PartitionStatsRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + db_name_.Swap(&other->db_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + partition_name_.Swap(&other->partition_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(base_, other->base_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PartitionStatsRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void PartitionStatsResponse::InitAsDefaultInstance() { + ::milvus::proto::milvus::_PartitionStatsResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( + ::milvus::proto::common::Status::internal_default_instance()); +} +class PartitionStatsResponse::_Internal { + public: + static const ::milvus::proto::common::Status& status(const PartitionStatsResponse* msg); +}; + +const ::milvus::proto::common::Status& +PartitionStatsResponse::_Internal::status(const PartitionStatsResponse* msg) { + return *msg->status_; +} +void PartitionStatsResponse::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +void PartitionStatsResponse::clear_stats() { + stats_.Clear(); +} +PartitionStatsResponse::PartitionStatsResponse() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.PartitionStatsResponse) +} +PartitionStatsResponse::PartitionStatsResponse(const PartitionStatsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + stats_(from.stats_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_status()) { + status_ = new ::milvus::proto::common::Status(*from.status_); + } else { + status_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.PartitionStatsResponse) +} + +void PartitionStatsResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PartitionStatsResponse_milvus_2eproto.base); + status_ = nullptr; +} + +PartitionStatsResponse::~PartitionStatsResponse() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.PartitionStatsResponse) + SharedDtor(); +} + +void PartitionStatsResponse::SharedDtor() { + if (this != internal_default_instance()) delete status_; +} + +void PartitionStatsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const PartitionStatsResponse& PartitionStatsResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PartitionStatsResponse_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void PartitionStatsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.PartitionStatsResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + stats_.Clear(); + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* PartitionStatsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .milvus.proto.common.KeyValuePair stats = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_stats(), 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 PartitionStatsResponse::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.PartitionStatsResponse) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.Status status = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_status())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .milvus.proto.common.KeyValuePair stats = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, add_stats())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.PartitionStatsResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.PartitionStatsResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void PartitionStatsResponse::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.PartitionStatsResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); + } + + // repeated .milvus.proto.common.KeyValuePair stats = 2; + for (unsigned int i = 0, + n = static_cast<unsigned int>(this->stats_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, + this->stats(static_cast<int>(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.PartitionStatsResponse) +} + +::PROTOBUF_NAMESPACE_ID::uint8* PartitionStatsResponse::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.PartitionStatsResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); + } + + // repeated .milvus.proto.common.KeyValuePair stats = 2; + for (unsigned int i = 0, + n = static_cast<unsigned int>(this->stats_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->stats(static_cast<int>(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.PartitionStatsResponse) + return target; +} + +size_t PartitionStatsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.PartitionStatsResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .milvus.proto.common.KeyValuePair stats = 2; + { + unsigned int count = static_cast<unsigned int>(this->stats_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->stats(static_cast<int>(i))); + } + } + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PartitionStatsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.PartitionStatsResponse) + GOOGLE_DCHECK_NE(&from, this); + const PartitionStatsResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PartitionStatsResponse>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.PartitionStatsResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.PartitionStatsResponse) + MergeFrom(*source); + } +} + +void PartitionStatsResponse::MergeFrom(const PartitionStatsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.PartitionStatsResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + stats_.MergeFrom(from.stats_); + if (from.has_status()) { + mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); + } +} + +void PartitionStatsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.PartitionStatsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PartitionStatsResponse::CopyFrom(const PartitionStatsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.PartitionStatsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PartitionStatsResponse::IsInitialized() const { + return true; +} + +void PartitionStatsResponse::InternalSwap(PartitionStatsResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&stats_)->InternalSwap(CastToBase(&other->stats_)); + swap(status_, other->status_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PartitionStatsResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void ShowPartitionRequest::InitAsDefaultInstance() { + ::milvus::proto::milvus::_ShowPartitionRequest_default_instance_._instance.get_mutable()->base_ = const_cast< ::milvus::proto::common::MsgBase*>( + ::milvus::proto::common::MsgBase::internal_default_instance()); +} +class ShowPartitionRequest::_Internal { + public: + static const ::milvus::proto::common::MsgBase& base(const ShowPartitionRequest* msg); +}; + +const ::milvus::proto::common::MsgBase& +ShowPartitionRequest::_Internal::base(const ShowPartitionRequest* msg) { + return *msg->base_; +} +void ShowPartitionRequest::clear_base() { + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; +} +ShowPartitionRequest::ShowPartitionRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.ShowPartitionRequest) +} +ShowPartitionRequest::ShowPartitionRequest(const ShowPartitionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.db_name().empty()) { + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.has_base()) { + base_ = new ::milvus::proto::common::MsgBase(*from.base_); + } else { + base_ = nullptr; + } + collectionid_ = from.collectionid_; + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.ShowPartitionRequest) +} + +void ShowPartitionRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ShowPartitionRequest_milvus_2eproto.base); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&base_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&collectionid_) - + reinterpret_cast<char*>(&base_)) + sizeof(collectionid_)); +} + +ShowPartitionRequest::~ShowPartitionRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.ShowPartitionRequest) + SharedDtor(); +} + +void ShowPartitionRequest::SharedDtor() { + db_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete base_; +} + +void ShowPartitionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ShowPartitionRequest& ShowPartitionRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ShowPartitionRequest_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void ShowPartitionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.ShowPartitionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; + collectionid_ = PROTOBUF_LONGLONG(0); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ShowPartitionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.MsgBase base = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_base(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string db_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_db_name(), ptr, ctx, "milvus.proto.milvus.ShowPartitionRequest.db_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string collection_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.milvus.ShowPartitionRequest.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 collectionID = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + collectionid_ = ::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 ShowPartitionRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.ShowPartitionRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.MsgBase base = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_base())); + } else { + goto handle_unusual; + } + break; + } + + // string db_name = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_db_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.ShowPartitionRequest.db_name")); + } else { + goto handle_unusual; + } + break; + } + + // string collection_name = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_collection_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.ShowPartitionRequest.collection_name")); + } else { + goto handle_unusual; + } + break; + } + + // int64 collectionID = 4; + case 4: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &collectionid_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.ShowPartitionRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.ShowPartitionRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ShowPartitionRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.ShowPartitionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::base(this), output); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.ShowPartitionRequest.db_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->db_name(), output); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.ShowPartitionRequest.collection_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->collection_name(), output); + } + + // int64 collectionID = 4; + if (this->collectionid() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(4, this->collectionid(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.ShowPartitionRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* ShowPartitionRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.ShowPartitionRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::base(this), target); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.ShowPartitionRequest.db_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->db_name(), target); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.ShowPartitionRequest.collection_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 3, this->collection_name(), target); + } + + // int64 collectionID = 4; + if (this->collectionid() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->collectionid(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.ShowPartitionRequest) + return target; +} + +size_t ShowPartitionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.ShowPartitionRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string db_name = 2; + if (this->db_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->db_name()); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *base_); + } + + // int64 collectionID = 4; + if (this->collectionid() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->collectionid()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ShowPartitionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.ShowPartitionRequest) + GOOGLE_DCHECK_NE(&from, this); + const ShowPartitionRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ShowPartitionRequest>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.ShowPartitionRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.ShowPartitionRequest) + MergeFrom(*source); + } +} + +void ShowPartitionRequest::MergeFrom(const ShowPartitionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.ShowPartitionRequest) + 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.db_name().size() > 0) { + + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + if (from.collection_name().size() > 0) { + + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.has_base()) { + mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(from.base()); + } + if (from.collectionid() != 0) { + set_collectionid(from.collectionid()); + } +} + +void ShowPartitionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.ShowPartitionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ShowPartitionRequest::CopyFrom(const ShowPartitionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.ShowPartitionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ShowPartitionRequest::IsInitialized() const { + return true; +} + +void ShowPartitionRequest::InternalSwap(ShowPartitionRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + db_name_.Swap(&other->db_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(base_, other->base_); + swap(collectionid_, other->collectionid_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ShowPartitionRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void ShowPartitionResponse::InitAsDefaultInstance() { + ::milvus::proto::milvus::_ShowPartitionResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( + ::milvus::proto::common::Status::internal_default_instance()); +} +class ShowPartitionResponse::_Internal { + public: + static const ::milvus::proto::common::Status& status(const ShowPartitionResponse* msg); +}; + +const ::milvus::proto::common::Status& +ShowPartitionResponse::_Internal::status(const ShowPartitionResponse* msg) { + return *msg->status_; +} +void ShowPartitionResponse::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +ShowPartitionResponse::ShowPartitionResponse() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.ShowPartitionResponse) +} +ShowPartitionResponse::ShowPartitionResponse(const ShowPartitionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + partition_names_(from.partition_names_), + partitionids_(from.partitionids_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_status()) { + status_ = new ::milvus::proto::common::Status(*from.status_); + } else { + status_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.ShowPartitionResponse) +} + +void ShowPartitionResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ShowPartitionResponse_milvus_2eproto.base); + status_ = nullptr; +} + +ShowPartitionResponse::~ShowPartitionResponse() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.ShowPartitionResponse) + SharedDtor(); +} + +void ShowPartitionResponse::SharedDtor() { + if (this != internal_default_instance()) delete status_; +} + +void ShowPartitionResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ShowPartitionResponse& ShowPartitionResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ShowPartitionResponse_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void ShowPartitionResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.ShowPartitionResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + partition_names_.Clear(); + partitionids_.Clear(); + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ShowPartitionResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated string partition_names = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_partition_names(), ptr, ctx, "milvus.proto.milvus.ShowPartitionResponse.partition_names"); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); + } else goto handle_unusual; + continue; + // repeated int64 partitionIDs = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_partitionids(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24) { + add_partitionids(::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 ShowPartitionResponse::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.ShowPartitionResponse) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.Status status = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_status())); + } else { + goto handle_unusual; + } + break; + } + + // repeated string partition_names = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->add_partition_names())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_names(this->partition_names_size() - 1).data(), + static_cast<int>(this->partition_names(this->partition_names_size() - 1).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.ShowPartitionResponse.partition_names")); + } else { + goto handle_unusual; + } + break; + } + + // repeated int64 partitionIDs = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, this->mutable_partitionids()))); + } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + 1, 26u, input, this->mutable_partitionids()))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.ShowPartitionResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.ShowPartitionResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ShowPartitionResponse::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.ShowPartitionResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); + } + + // repeated string partition_names = 2; + for (int i = 0, n = this->partition_names_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_names(i).data(), static_cast<int>(this->partition_names(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.ShowPartitionResponse.partition_names"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( + 2, this->partition_names(i), output); + } + + // repeated int64 partitionIDs = 3; + if (this->partitionids_size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(3, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_partitionids_cached_byte_size_.load( + std::memory_order_relaxed)); + } + for (int i = 0, n = this->partitionids_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( + this->partitionids(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.ShowPartitionResponse) +} + +::PROTOBUF_NAMESPACE_ID::uint8* ShowPartitionResponse::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.ShowPartitionResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); + } + + // repeated string partition_names = 2; + for (int i = 0, n = this->partition_names_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_names(i).data(), static_cast<int>(this->partition_names(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.ShowPartitionResponse.partition_names"); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteStringToArray(2, this->partition_names(i), target); + } + + // repeated int64 partitionIDs = 3; + if (this->partitionids_size() > 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( + 3, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + target); + target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( + _partitionids_cached_byte_size_.load(std::memory_order_relaxed), + target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteInt64NoTagToArray(this->partitionids_, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.ShowPartitionResponse) + return target; +} + +size_t ShowPartitionResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.ShowPartitionResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string partition_names = 2; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->partition_names_size()); + for (int i = 0, n = this->partition_names_size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->partition_names(i)); + } + + // repeated int64 partitionIDs = 3; + { + size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + Int64Size(this->partitionids_); + 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); + _partitionids_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ShowPartitionResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.ShowPartitionResponse) + GOOGLE_DCHECK_NE(&from, this); + const ShowPartitionResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ShowPartitionResponse>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.ShowPartitionResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.ShowPartitionResponse) + MergeFrom(*source); + } +} + +void ShowPartitionResponse::MergeFrom(const ShowPartitionResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.ShowPartitionResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + partition_names_.MergeFrom(from.partition_names_); + partitionids_.MergeFrom(from.partitionids_); + if (from.has_status()) { + mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); + } +} + +void ShowPartitionResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.ShowPartitionResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ShowPartitionResponse::CopyFrom(const ShowPartitionResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.ShowPartitionResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ShowPartitionResponse::IsInitialized() const { + return true; +} + +void ShowPartitionResponse::InternalSwap(ShowPartitionResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + partition_names_.InternalSwap(CastToBase(&other->partition_names_)); + partitionids_.InternalSwap(&other->partitionids_); + swap(status_, other->status_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ShowPartitionResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void DescribeSegmentRequest::InitAsDefaultInstance() { + ::milvus::proto::milvus::_DescribeSegmentRequest_default_instance_._instance.get_mutable()->base_ = const_cast< ::milvus::proto::common::MsgBase*>( + ::milvus::proto::common::MsgBase::internal_default_instance()); +} +class DescribeSegmentRequest::_Internal { + public: + static const ::milvus::proto::common::MsgBase& base(const DescribeSegmentRequest* msg); +}; + +const ::milvus::proto::common::MsgBase& +DescribeSegmentRequest::_Internal::base(const DescribeSegmentRequest* msg) { + return *msg->base_; +} +void DescribeSegmentRequest::clear_base() { + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; +} +DescribeSegmentRequest::DescribeSegmentRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.DescribeSegmentRequest) +} +DescribeSegmentRequest::DescribeSegmentRequest(const DescribeSegmentRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_base()) { + base_ = new ::milvus::proto::common::MsgBase(*from.base_); + } else { + base_ = nullptr; + } + ::memcpy(&collectionid_, &from.collectionid_, + static_cast<size_t>(reinterpret_cast<char*>(&segmentid_) - + reinterpret_cast<char*>(&collectionid_)) + sizeof(segmentid_)); + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.DescribeSegmentRequest) +} + +void DescribeSegmentRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DescribeSegmentRequest_milvus_2eproto.base); + ::memset(&base_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&segmentid_) - + reinterpret_cast<char*>(&base_)) + sizeof(segmentid_)); +} + +DescribeSegmentRequest::~DescribeSegmentRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.DescribeSegmentRequest) + SharedDtor(); +} + +void DescribeSegmentRequest::SharedDtor() { + if (this != internal_default_instance()) delete base_; +} + +void DescribeSegmentRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DescribeSegmentRequest& DescribeSegmentRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DescribeSegmentRequest_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void DescribeSegmentRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.DescribeSegmentRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; + ::memset(&collectionid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&segmentid_) - + reinterpret_cast<char*>(&collectionid_)) + sizeof(segmentid_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DescribeSegmentRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.MsgBase base = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_base(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 collectionID = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + collectionid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 segmentID = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + segmentid_ = ::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 DescribeSegmentRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.DescribeSegmentRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.MsgBase base = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_base())); + } else { + goto handle_unusual; + } + break; + } + + // int64 collectionID = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &collectionid_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 segmentID = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &segmentid_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.DescribeSegmentRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.DescribeSegmentRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DescribeSegmentRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.DescribeSegmentRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::base(this), output); + } + + // int64 collectionID = 2; + if (this->collectionid() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->collectionid(), output); + } + + // int64 segmentID = 3; + if (this->segmentid() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->segmentid(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.DescribeSegmentRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* DescribeSegmentRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.DescribeSegmentRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::base(this), target); + } + + // int64 collectionID = 2; + if (this->collectionid() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->collectionid(), target); + } + + // int64 segmentID = 3; + if (this->segmentid() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->segmentid(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.DescribeSegmentRequest) + return target; +} + +size_t DescribeSegmentRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.DescribeSegmentRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *base_); + } + + // int64 collectionID = 2; + if (this->collectionid() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->collectionid()); + } + + // int64 segmentID = 3; + if (this->segmentid() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->segmentid()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DescribeSegmentRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.DescribeSegmentRequest) + GOOGLE_DCHECK_NE(&from, this); + const DescribeSegmentRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DescribeSegmentRequest>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.DescribeSegmentRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.DescribeSegmentRequest) + MergeFrom(*source); + } +} + +void DescribeSegmentRequest::MergeFrom(const DescribeSegmentRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.DescribeSegmentRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_base()) { + mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(from.base()); + } + if (from.collectionid() != 0) { + set_collectionid(from.collectionid()); + } + if (from.segmentid() != 0) { + set_segmentid(from.segmentid()); + } +} + +void DescribeSegmentRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.DescribeSegmentRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DescribeSegmentRequest::CopyFrom(const DescribeSegmentRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.DescribeSegmentRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DescribeSegmentRequest::IsInitialized() const { + return true; +} + +void DescribeSegmentRequest::InternalSwap(DescribeSegmentRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(base_, other->base_); + swap(collectionid_, other->collectionid_); + swap(segmentid_, other->segmentid_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DescribeSegmentRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void DescribeSegmentResponse::InitAsDefaultInstance() { + ::milvus::proto::milvus::_DescribeSegmentResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( + ::milvus::proto::common::Status::internal_default_instance()); +} +class DescribeSegmentResponse::_Internal { + public: + static const ::milvus::proto::common::Status& status(const DescribeSegmentResponse* msg); +}; + +const ::milvus::proto::common::Status& +DescribeSegmentResponse::_Internal::status(const DescribeSegmentResponse* msg) { + return *msg->status_; +} +void DescribeSegmentResponse::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +DescribeSegmentResponse::DescribeSegmentResponse() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.DescribeSegmentResponse) +} +DescribeSegmentResponse::DescribeSegmentResponse(const DescribeSegmentResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_status()) { + status_ = new ::milvus::proto::common::Status(*from.status_); + } else { + status_ = nullptr; + } + indexid_ = from.indexid_; + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.DescribeSegmentResponse) +} + +void DescribeSegmentResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DescribeSegmentResponse_milvus_2eproto.base); + ::memset(&status_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&indexid_) - + reinterpret_cast<char*>(&status_)) + sizeof(indexid_)); +} + +DescribeSegmentResponse::~DescribeSegmentResponse() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.DescribeSegmentResponse) + SharedDtor(); +} + +void DescribeSegmentResponse::SharedDtor() { + if (this != internal_default_instance()) delete status_; +} + +void DescribeSegmentResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DescribeSegmentResponse& DescribeSegmentResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DescribeSegmentResponse_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void DescribeSegmentResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.DescribeSegmentResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + indexid_ = PROTOBUF_LONGLONG(0); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DescribeSegmentResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 indexID = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + indexid_ = ::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 DescribeSegmentResponse::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.DescribeSegmentResponse) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.Status status = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_status())); + } else { + goto handle_unusual; + } + break; + } + + // int64 indexID = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &indexid_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.DescribeSegmentResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.DescribeSegmentResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DescribeSegmentResponse::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.DescribeSegmentResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); + } + + // int64 indexID = 2; + if (this->indexid() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->indexid(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.DescribeSegmentResponse) +} + +::PROTOBUF_NAMESPACE_ID::uint8* DescribeSegmentResponse::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.DescribeSegmentResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); + } + + // int64 indexID = 2; + if (this->indexid() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->indexid(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.DescribeSegmentResponse) + return target; +} + +size_t DescribeSegmentResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.DescribeSegmentResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + // int64 indexID = 2; + if (this->indexid() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->indexid()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DescribeSegmentResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.DescribeSegmentResponse) + GOOGLE_DCHECK_NE(&from, this); + const DescribeSegmentResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DescribeSegmentResponse>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.DescribeSegmentResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.DescribeSegmentResponse) + MergeFrom(*source); + } +} + +void DescribeSegmentResponse::MergeFrom(const DescribeSegmentResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.DescribeSegmentResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_status()) { + mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); + } + if (from.indexid() != 0) { + set_indexid(from.indexid()); + } +} + +void DescribeSegmentResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.DescribeSegmentResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DescribeSegmentResponse::CopyFrom(const DescribeSegmentResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.DescribeSegmentResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DescribeSegmentResponse::IsInitialized() const { + return true; +} + +void DescribeSegmentResponse::InternalSwap(DescribeSegmentResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(status_, other->status_); + swap(indexid_, other->indexid_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DescribeSegmentResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void ShowSegmentRequest::InitAsDefaultInstance() { + ::milvus::proto::milvus::_ShowSegmentRequest_default_instance_._instance.get_mutable()->base_ = const_cast< ::milvus::proto::common::MsgBase*>( + ::milvus::proto::common::MsgBase::internal_default_instance()); +} +class ShowSegmentRequest::_Internal { + public: + static const ::milvus::proto::common::MsgBase& base(const ShowSegmentRequest* msg); +}; + +const ::milvus::proto::common::MsgBase& +ShowSegmentRequest::_Internal::base(const ShowSegmentRequest* msg) { + return *msg->base_; +} +void ShowSegmentRequest::clear_base() { + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; +} +ShowSegmentRequest::ShowSegmentRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.ShowSegmentRequest) +} +ShowSegmentRequest::ShowSegmentRequest(const ShowSegmentRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_base()) { + base_ = new ::milvus::proto::common::MsgBase(*from.base_); + } else { + base_ = nullptr; + } + ::memcpy(&collectionid_, &from.collectionid_, + static_cast<size_t>(reinterpret_cast<char*>(&partitionid_) - + reinterpret_cast<char*>(&collectionid_)) + sizeof(partitionid_)); + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.ShowSegmentRequest) +} + +void ShowSegmentRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ShowSegmentRequest_milvus_2eproto.base); + ::memset(&base_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&partitionid_) - + reinterpret_cast<char*>(&base_)) + sizeof(partitionid_)); +} + +ShowSegmentRequest::~ShowSegmentRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.ShowSegmentRequest) + SharedDtor(); +} + +void ShowSegmentRequest::SharedDtor() { + if (this != internal_default_instance()) delete base_; +} + +void ShowSegmentRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ShowSegmentRequest& ShowSegmentRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ShowSegmentRequest_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void ShowSegmentRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.ShowSegmentRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; + ::memset(&collectionid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&partitionid_) - + reinterpret_cast<char*>(&collectionid_)) + sizeof(partitionid_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ShowSegmentRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.MsgBase base = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_base(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 collectionID = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + collectionid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 partitionID = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + partitionid_ = ::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 ShowSegmentRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.ShowSegmentRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.MsgBase base = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_base())); + } else { + goto handle_unusual; + } + break; + } + + // int64 collectionID = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &collectionid_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 partitionID = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &partitionid_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.ShowSegmentRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.ShowSegmentRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ShowSegmentRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.ShowSegmentRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::base(this), output); + } + + // int64 collectionID = 2; + if (this->collectionid() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->collectionid(), output); + } + + // int64 partitionID = 3; + if (this->partitionid() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->partitionid(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.ShowSegmentRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* ShowSegmentRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.ShowSegmentRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::base(this), target); + } + + // int64 collectionID = 2; + if (this->collectionid() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->collectionid(), target); + } + + // int64 partitionID = 3; + if (this->partitionid() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->partitionid(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.ShowSegmentRequest) + return target; +} + +size_t ShowSegmentRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.ShowSegmentRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *base_); + } + + // int64 collectionID = 2; + if (this->collectionid() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->collectionid()); + } + + // int64 partitionID = 3; + if (this->partitionid() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->partitionid()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ShowSegmentRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.ShowSegmentRequest) + GOOGLE_DCHECK_NE(&from, this); + const ShowSegmentRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ShowSegmentRequest>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.ShowSegmentRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.ShowSegmentRequest) + MergeFrom(*source); + } +} + +void ShowSegmentRequest::MergeFrom(const ShowSegmentRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.ShowSegmentRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_base()) { + mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(from.base()); + } + if (from.collectionid() != 0) { + set_collectionid(from.collectionid()); + } + if (from.partitionid() != 0) { + set_partitionid(from.partitionid()); + } +} + +void ShowSegmentRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.ShowSegmentRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ShowSegmentRequest::CopyFrom(const ShowSegmentRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.ShowSegmentRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ShowSegmentRequest::IsInitialized() const { + return true; +} + +void ShowSegmentRequest::InternalSwap(ShowSegmentRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(base_, other->base_); + swap(collectionid_, other->collectionid_); + swap(partitionid_, other->partitionid_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ShowSegmentRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void ShowSegmentResponse::InitAsDefaultInstance() { + ::milvus::proto::milvus::_ShowSegmentResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( + ::milvus::proto::common::Status::internal_default_instance()); +} +class ShowSegmentResponse::_Internal { + public: + static const ::milvus::proto::common::Status& status(const ShowSegmentResponse* msg); +}; + +const ::milvus::proto::common::Status& +ShowSegmentResponse::_Internal::status(const ShowSegmentResponse* msg) { + return *msg->status_; +} +void ShowSegmentResponse::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +ShowSegmentResponse::ShowSegmentResponse() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.ShowSegmentResponse) +} +ShowSegmentResponse::ShowSegmentResponse(const ShowSegmentResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + segmentids_(from.segmentids_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_status()) { + status_ = new ::milvus::proto::common::Status(*from.status_); + } else { + status_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.ShowSegmentResponse) +} + +void ShowSegmentResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ShowSegmentResponse_milvus_2eproto.base); + status_ = nullptr; +} + +ShowSegmentResponse::~ShowSegmentResponse() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.ShowSegmentResponse) + SharedDtor(); +} + +void ShowSegmentResponse::SharedDtor() { + if (this != internal_default_instance()) delete status_; +} + +void ShowSegmentResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ShowSegmentResponse& ShowSegmentResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ShowSegmentResponse_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void ShowSegmentResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.ShowSegmentResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + segmentids_.Clear(); + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ShowSegmentResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated int64 segmentIDs = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_segmentids(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) { + add_segmentids(::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 ShowSegmentResponse::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.ShowSegmentResponse) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.Status status = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_status())); + } else { + goto handle_unusual; + } + break; + } + + // repeated int64 segmentIDs = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, this->mutable_segmentids()))); + } 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_segmentids()))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.ShowSegmentResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.ShowSegmentResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ShowSegmentResponse::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.ShowSegmentResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); + } + + // repeated int64 segmentIDs = 2; + if (this->segmentids_size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(2, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_segmentids_cached_byte_size_.load( + std::memory_order_relaxed)); + } + for (int i = 0, n = this->segmentids_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( + this->segmentids(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.ShowSegmentResponse) +} + +::PROTOBUF_NAMESPACE_ID::uint8* ShowSegmentResponse::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.ShowSegmentResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); + } + + // repeated int64 segmentIDs = 2; + if (this->segmentids_size() > 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( + 2, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + target); + target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( + _segmentids_cached_byte_size_.load(std::memory_order_relaxed), + target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteInt64NoTagToArray(this->segmentids_, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.ShowSegmentResponse) + return target; +} + +size_t ShowSegmentResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.ShowSegmentResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated int64 segmentIDs = 2; + { + size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + Int64Size(this->segmentids_); + 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); + _segmentids_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ShowSegmentResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.ShowSegmentResponse) + GOOGLE_DCHECK_NE(&from, this); + const ShowSegmentResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ShowSegmentResponse>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.ShowSegmentResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.ShowSegmentResponse) + MergeFrom(*source); + } +} + +void ShowSegmentResponse::MergeFrom(const ShowSegmentResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.ShowSegmentResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + segmentids_.MergeFrom(from.segmentids_); + if (from.has_status()) { + mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); + } +} + +void ShowSegmentResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.ShowSegmentResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ShowSegmentResponse::CopyFrom(const ShowSegmentResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.ShowSegmentResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ShowSegmentResponse::IsInitialized() const { + return true; +} + +void ShowSegmentResponse::InternalSwap(ShowSegmentResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + segmentids_.InternalSwap(&other->segmentids_); + swap(status_, other->status_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ShowSegmentResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void CreateIndexRequest::InitAsDefaultInstance() { + ::milvus::proto::milvus::_CreateIndexRequest_default_instance_._instance.get_mutable()->base_ = const_cast< ::milvus::proto::common::MsgBase*>( + ::milvus::proto::common::MsgBase::internal_default_instance()); +} +class CreateIndexRequest::_Internal { + public: + static const ::milvus::proto::common::MsgBase& base(const CreateIndexRequest* msg); +}; + +const ::milvus::proto::common::MsgBase& +CreateIndexRequest::_Internal::base(const CreateIndexRequest* msg) { + return *msg->base_; +} +void CreateIndexRequest::clear_base() { + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; +} +void CreateIndexRequest::clear_extra_params() { + extra_params_.Clear(); +} +CreateIndexRequest::CreateIndexRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.CreateIndexRequest) +} +CreateIndexRequest::CreateIndexRequest(const CreateIndexRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + extra_params_(from.extra_params_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.db_name().empty()) { + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.field_name().empty()) { + field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); + } + if (from.has_base()) { + base_ = new ::milvus::proto::common::MsgBase(*from.base_); + } else { + base_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.CreateIndexRequest) +} + +void CreateIndexRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CreateIndexRequest_milvus_2eproto.base); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + base_ = nullptr; +} + +CreateIndexRequest::~CreateIndexRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.CreateIndexRequest) + SharedDtor(); +} + +void CreateIndexRequest::SharedDtor() { + db_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete base_; +} + +void CreateIndexRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CreateIndexRequest& CreateIndexRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CreateIndexRequest_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void CreateIndexRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.CreateIndexRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + extra_params_.Clear(); + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CreateIndexRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.MsgBase base = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_base(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string db_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_db_name(), ptr, ctx, "milvus.proto.milvus.CreateIndexRequest.db_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string collection_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.milvus.CreateIndexRequest.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string field_name = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_field_name(), ptr, ctx, "milvus.proto.milvus.CreateIndexRequest.field_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .milvus.proto.common.KeyValuePair extra_params = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_extra_params(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 42); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CreateIndexRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.CreateIndexRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.MsgBase base = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_base())); + } else { + goto handle_unusual; + } + break; + } + + // string db_name = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_db_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.CreateIndexRequest.db_name")); + } else { + goto handle_unusual; + } + break; + } + + // string collection_name = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_collection_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.CreateIndexRequest.collection_name")); + } else { + goto handle_unusual; + } + break; + } + + // string field_name = 4; + case 4: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_field_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast<int>(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.CreateIndexRequest.field_name")); + } else { + goto handle_unusual; + } + break; + } + + // repeated .milvus.proto.common.KeyValuePair extra_params = 5; + case 5: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, add_extra_params())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.CreateIndexRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.CreateIndexRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CreateIndexRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.CreateIndexRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::base(this), output); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.CreateIndexRequest.db_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->db_name(), output); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.CreateIndexRequest.collection_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->collection_name(), output); + } + + // string field_name = 4; + if (this->field_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast<int>(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.CreateIndexRequest.field_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->field_name(), output); + } + + // repeated .milvus.proto.common.KeyValuePair extra_params = 5; + for (unsigned int i = 0, + n = static_cast<unsigned int>(this->extra_params_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, + this->extra_params(static_cast<int>(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.CreateIndexRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* CreateIndexRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.CreateIndexRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::base(this), target); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.CreateIndexRequest.db_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->db_name(), target); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.CreateIndexRequest.collection_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 3, this->collection_name(), target); + } + + // string field_name = 4; + if (this->field_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast<int>(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.CreateIndexRequest.field_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 4, this->field_name(), target); + } + + // repeated .milvus.proto.common.KeyValuePair extra_params = 5; + for (unsigned int i = 0, + n = static_cast<unsigned int>(this->extra_params_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->extra_params(static_cast<int>(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.CreateIndexRequest) + return target; +} + +size_t CreateIndexRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.CreateIndexRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .milvus.proto.common.KeyValuePair extra_params = 5; + { + unsigned int count = static_cast<unsigned int>(this->extra_params_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->extra_params(static_cast<int>(i))); + } + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->db_name()); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // string field_name = 4; + if (this->field_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->field_name()); + } + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *base_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CreateIndexRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.CreateIndexRequest) + GOOGLE_DCHECK_NE(&from, this); + const CreateIndexRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CreateIndexRequest>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.CreateIndexRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.CreateIndexRequest) + MergeFrom(*source); + } +} + +void CreateIndexRequest::MergeFrom(const CreateIndexRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.CreateIndexRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + extra_params_.MergeFrom(from.extra_params_); + if (from.db_name().size() > 0) { + + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + if (from.collection_name().size() > 0) { + + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.field_name().size() > 0) { + + field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); + } + if (from.has_base()) { + mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(from.base()); + } +} + +void CreateIndexRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.CreateIndexRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateIndexRequest::CopyFrom(const CreateIndexRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.CreateIndexRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateIndexRequest::IsInitialized() const { + return true; +} + +void CreateIndexRequest::InternalSwap(CreateIndexRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); + db_name_.Swap(&other->db_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(base_, other->base_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CreateIndexRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void DescribeIndexRequest::InitAsDefaultInstance() { + ::milvus::proto::milvus::_DescribeIndexRequest_default_instance_._instance.get_mutable()->base_ = const_cast< ::milvus::proto::common::MsgBase*>( + ::milvus::proto::common::MsgBase::internal_default_instance()); +} +class DescribeIndexRequest::_Internal { + public: + static const ::milvus::proto::common::MsgBase& base(const DescribeIndexRequest* msg); +}; + +const ::milvus::proto::common::MsgBase& +DescribeIndexRequest::_Internal::base(const DescribeIndexRequest* msg) { + return *msg->base_; +} +void DescribeIndexRequest::clear_base() { + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; +} +DescribeIndexRequest::DescribeIndexRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.DescribeIndexRequest) +} +DescribeIndexRequest::DescribeIndexRequest(const DescribeIndexRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.db_name().empty()) { + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.field_name().empty()) { + field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); + } + index_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.index_name().empty()) { + index_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.index_name_); + } + if (from.has_base()) { + base_ = new ::milvus::proto::common::MsgBase(*from.base_); + } else { + base_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.DescribeIndexRequest) +} + +void DescribeIndexRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DescribeIndexRequest_milvus_2eproto.base); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + index_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + base_ = nullptr; +} + +DescribeIndexRequest::~DescribeIndexRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.DescribeIndexRequest) + SharedDtor(); +} + +void DescribeIndexRequest::SharedDtor() { + db_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + index_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete base_; +} + +void DescribeIndexRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DescribeIndexRequest& DescribeIndexRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DescribeIndexRequest_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void DescribeIndexRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.DescribeIndexRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + index_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DescribeIndexRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.MsgBase base = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_base(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string db_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_db_name(), ptr, ctx, "milvus.proto.milvus.DescribeIndexRequest.db_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string collection_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.milvus.DescribeIndexRequest.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string field_name = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_field_name(), ptr, ctx, "milvus.proto.milvus.DescribeIndexRequest.field_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string index_name = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_index_name(), ptr, ctx, "milvus.proto.milvus.DescribeIndexRequest.index_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 DescribeIndexRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.DescribeIndexRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.MsgBase base = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_base())); + } else { + goto handle_unusual; + } + break; + } + + // string db_name = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_db_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.DescribeIndexRequest.db_name")); + } else { + goto handle_unusual; + } + break; + } + + // string collection_name = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_collection_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.DescribeIndexRequest.collection_name")); + } else { + goto handle_unusual; + } + break; + } + + // string field_name = 4; + case 4: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_field_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast<int>(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.DescribeIndexRequest.field_name")); + } else { + goto handle_unusual; + } + break; + } + + // string index_name = 5; + case 5: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_index_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->index_name().data(), static_cast<int>(this->index_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.DescribeIndexRequest.index_name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.DescribeIndexRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.DescribeIndexRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DescribeIndexRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.DescribeIndexRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::base(this), output); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.DescribeIndexRequest.db_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->db_name(), output); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.DescribeIndexRequest.collection_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->collection_name(), output); + } + + // string field_name = 4; + if (this->field_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast<int>(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.DescribeIndexRequest.field_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->field_name(), output); + } + + // string index_name = 5; + if (this->index_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->index_name().data(), static_cast<int>(this->index_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.DescribeIndexRequest.index_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->index_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.DescribeIndexRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* DescribeIndexRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.DescribeIndexRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::base(this), target); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.DescribeIndexRequest.db_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->db_name(), target); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.DescribeIndexRequest.collection_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 3, this->collection_name(), target); + } + + // string field_name = 4; + if (this->field_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast<int>(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.DescribeIndexRequest.field_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 4, this->field_name(), target); + } + + // string index_name = 5; + if (this->index_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->index_name().data(), static_cast<int>(this->index_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.DescribeIndexRequest.index_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 5, this->index_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.DescribeIndexRequest) + return target; +} + +size_t DescribeIndexRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.DescribeIndexRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string db_name = 2; + if (this->db_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->db_name()); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // string field_name = 4; + if (this->field_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->field_name()); + } + + // string index_name = 5; + if (this->index_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->index_name()); + } + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *base_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DescribeIndexRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.DescribeIndexRequest) + GOOGLE_DCHECK_NE(&from, this); + const DescribeIndexRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DescribeIndexRequest>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.DescribeIndexRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.DescribeIndexRequest) + MergeFrom(*source); + } +} + +void DescribeIndexRequest::MergeFrom(const DescribeIndexRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.DescribeIndexRequest) + 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.db_name().size() > 0) { + + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + if (from.collection_name().size() > 0) { + + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.field_name().size() > 0) { + + field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); + } + if (from.index_name().size() > 0) { + + index_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.index_name_); + } + if (from.has_base()) { + mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(from.base()); + } +} + +void DescribeIndexRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.DescribeIndexRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DescribeIndexRequest::CopyFrom(const DescribeIndexRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.DescribeIndexRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DescribeIndexRequest::IsInitialized() const { + return true; +} + +void DescribeIndexRequest::InternalSwap(DescribeIndexRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + db_name_.Swap(&other->db_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + index_name_.Swap(&other->index_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(base_, other->base_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DescribeIndexRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void IndexDescription::InitAsDefaultInstance() { +} +class IndexDescription::_Internal { + public: +}; + +void IndexDescription::clear_params() { + params_.Clear(); +} +IndexDescription::IndexDescription() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.IndexDescription) +} +IndexDescription::IndexDescription(const IndexDescription& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + params_(from.params_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + index_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.index_name().empty()) { + index_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.index_name_); + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.IndexDescription) +} + +void IndexDescription::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_IndexDescription_milvus_2eproto.base); + index_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +IndexDescription::~IndexDescription() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.IndexDescription) + SharedDtor(); +} + +void IndexDescription::SharedDtor() { + index_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void IndexDescription::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const IndexDescription& IndexDescription::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_IndexDescription_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void IndexDescription::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.IndexDescription) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + params_.Clear(); + index_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* IndexDescription::_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 index_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_index_name(), ptr, ctx, "milvus.proto.milvus.IndexDescription.index_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .milvus.proto.common.KeyValuePair params = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_params(), 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 IndexDescription::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.IndexDescription) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string index_name = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_index_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->index_name().data(), static_cast<int>(this->index_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.IndexDescription.index_name")); + } else { + goto handle_unusual; + } + break; + } + + // repeated .milvus.proto.common.KeyValuePair params = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, add_params())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.IndexDescription) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.IndexDescription) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void IndexDescription::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.IndexDescription) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string index_name = 1; + if (this->index_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->index_name().data(), static_cast<int>(this->index_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.IndexDescription.index_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->index_name(), output); + } + + // repeated .milvus.proto.common.KeyValuePair params = 2; + for (unsigned int i = 0, + n = static_cast<unsigned int>(this->params_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, + this->params(static_cast<int>(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.IndexDescription) +} + +::PROTOBUF_NAMESPACE_ID::uint8* IndexDescription::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.IndexDescription) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string index_name = 1; + if (this->index_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->index_name().data(), static_cast<int>(this->index_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.IndexDescription.index_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 1, this->index_name(), target); + } + + // repeated .milvus.proto.common.KeyValuePair params = 2; + for (unsigned int i = 0, + n = static_cast<unsigned int>(this->params_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->params(static_cast<int>(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.IndexDescription) + return target; +} + +size_t IndexDescription::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.IndexDescription) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .milvus.proto.common.KeyValuePair params = 2; + { + unsigned int count = static_cast<unsigned int>(this->params_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->params(static_cast<int>(i))); + } + } + + // string index_name = 1; + if (this->index_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->index_name()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void IndexDescription::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.IndexDescription) + GOOGLE_DCHECK_NE(&from, this); + const IndexDescription* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<IndexDescription>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.IndexDescription) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.IndexDescription) + MergeFrom(*source); + } +} + +void IndexDescription::MergeFrom(const IndexDescription& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.IndexDescription) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + params_.MergeFrom(from.params_); + if (from.index_name().size() > 0) { + + index_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.index_name_); + } +} + +void IndexDescription::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.IndexDescription) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IndexDescription::CopyFrom(const IndexDescription& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.IndexDescription) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IndexDescription::IsInitialized() const { + return true; +} + +void IndexDescription::InternalSwap(IndexDescription* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(¶ms_)->InternalSwap(CastToBase(&other->params_)); + index_name_.Swap(&other->index_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::PROTOBUF_NAMESPACE_ID::Metadata IndexDescription::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void DescribeIndexResponse::InitAsDefaultInstance() { + ::milvus::proto::milvus::_DescribeIndexResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( + ::milvus::proto::common::Status::internal_default_instance()); +} +class DescribeIndexResponse::_Internal { + public: + static const ::milvus::proto::common::Status& status(const DescribeIndexResponse* msg); +}; + +const ::milvus::proto::common::Status& +DescribeIndexResponse::_Internal::status(const DescribeIndexResponse* msg) { + return *msg->status_; +} +void DescribeIndexResponse::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +DescribeIndexResponse::DescribeIndexResponse() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.DescribeIndexResponse) +} +DescribeIndexResponse::DescribeIndexResponse(const DescribeIndexResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + index_descriptions_(from.index_descriptions_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_status()) { + status_ = new ::milvus::proto::common::Status(*from.status_); + } else { + status_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.DescribeIndexResponse) +} + +void DescribeIndexResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DescribeIndexResponse_milvus_2eproto.base); + status_ = nullptr; +} + +DescribeIndexResponse::~DescribeIndexResponse() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.DescribeIndexResponse) + SharedDtor(); +} + +void DescribeIndexResponse::SharedDtor() { + if (this != internal_default_instance()) delete status_; +} + +void DescribeIndexResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DescribeIndexResponse& DescribeIndexResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DescribeIndexResponse_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void DescribeIndexResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.DescribeIndexResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + index_descriptions_.Clear(); + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DescribeIndexResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .milvus.proto.milvus.IndexDescription index_descriptions = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_index_descriptions(), 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 DescribeIndexResponse::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.DescribeIndexResponse) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.Status status = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_status())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .milvus.proto.milvus.IndexDescription index_descriptions = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, add_index_descriptions())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.DescribeIndexResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.DescribeIndexResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DescribeIndexResponse::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.DescribeIndexResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); + } + + // repeated .milvus.proto.milvus.IndexDescription index_descriptions = 2; + for (unsigned int i = 0, + n = static_cast<unsigned int>(this->index_descriptions_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, + this->index_descriptions(static_cast<int>(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.DescribeIndexResponse) +} + +::PROTOBUF_NAMESPACE_ID::uint8* DescribeIndexResponse::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.DescribeIndexResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); + } + + // repeated .milvus.proto.milvus.IndexDescription index_descriptions = 2; + for (unsigned int i = 0, + n = static_cast<unsigned int>(this->index_descriptions_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->index_descriptions(static_cast<int>(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.DescribeIndexResponse) + return target; +} + +size_t DescribeIndexResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.DescribeIndexResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .milvus.proto.milvus.IndexDescription index_descriptions = 2; + { + unsigned int count = static_cast<unsigned int>(this->index_descriptions_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->index_descriptions(static_cast<int>(i))); + } + } + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DescribeIndexResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.DescribeIndexResponse) + GOOGLE_DCHECK_NE(&from, this); + const DescribeIndexResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DescribeIndexResponse>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.DescribeIndexResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.DescribeIndexResponse) + MergeFrom(*source); + } +} + +void DescribeIndexResponse::MergeFrom(const DescribeIndexResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.DescribeIndexResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + index_descriptions_.MergeFrom(from.index_descriptions_); + if (from.has_status()) { + mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); + } +} + +void DescribeIndexResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.DescribeIndexResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DescribeIndexResponse::CopyFrom(const DescribeIndexResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.DescribeIndexResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DescribeIndexResponse::IsInitialized() const { + return true; +} + +void DescribeIndexResponse::InternalSwap(DescribeIndexResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&index_descriptions_)->InternalSwap(CastToBase(&other->index_descriptions_)); + swap(status_, other->status_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DescribeIndexResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void IndexStateRequest::InitAsDefaultInstance() { + ::milvus::proto::milvus::_IndexStateRequest_default_instance_._instance.get_mutable()->base_ = const_cast< ::milvus::proto::common::MsgBase*>( + ::milvus::proto::common::MsgBase::internal_default_instance()); +} +class IndexStateRequest::_Internal { + public: + static const ::milvus::proto::common::MsgBase& base(const IndexStateRequest* msg); +}; + +const ::milvus::proto::common::MsgBase& +IndexStateRequest::_Internal::base(const IndexStateRequest* msg) { + return *msg->base_; +} +void IndexStateRequest::clear_base() { + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; +} +IndexStateRequest::IndexStateRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.IndexStateRequest) +} +IndexStateRequest::IndexStateRequest(const IndexStateRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.db_name().empty()) { + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.field_name().empty()) { + field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); + } + index_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.index_name().empty()) { + index_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.index_name_); + } + if (from.has_base()) { + base_ = new ::milvus::proto::common::MsgBase(*from.base_); + } else { + base_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.IndexStateRequest) +} + +void IndexStateRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_IndexStateRequest_milvus_2eproto.base); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + index_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + base_ = nullptr; +} + +IndexStateRequest::~IndexStateRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.IndexStateRequest) + SharedDtor(); +} + +void IndexStateRequest::SharedDtor() { + db_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + index_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete base_; +} + +void IndexStateRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const IndexStateRequest& IndexStateRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_IndexStateRequest_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void IndexStateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.IndexStateRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + index_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* IndexStateRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.MsgBase base = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_base(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string db_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_db_name(), ptr, ctx, "milvus.proto.milvus.IndexStateRequest.db_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string collection_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.milvus.IndexStateRequest.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string field_name = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_field_name(), ptr, ctx, "milvus.proto.milvus.IndexStateRequest.field_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string index_name = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_index_name(), ptr, ctx, "milvus.proto.milvus.IndexStateRequest.index_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 IndexStateRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.IndexStateRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.MsgBase base = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_base())); + } else { + goto handle_unusual; + } + break; + } + + // string db_name = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_db_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.IndexStateRequest.db_name")); + } else { + goto handle_unusual; + } + break; + } + + // string collection_name = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_collection_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.IndexStateRequest.collection_name")); + } else { + goto handle_unusual; + } + break; + } + + // string field_name = 4; + case 4: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_field_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast<int>(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.IndexStateRequest.field_name")); + } else { + goto handle_unusual; + } + break; + } + + // string index_name = 5; + case 5: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_index_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->index_name().data(), static_cast<int>(this->index_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.IndexStateRequest.index_name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.IndexStateRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.IndexStateRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void IndexStateRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.IndexStateRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::base(this), output); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.IndexStateRequest.db_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->db_name(), output); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.IndexStateRequest.collection_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->collection_name(), output); + } + + // string field_name = 4; + if (this->field_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast<int>(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.IndexStateRequest.field_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->field_name(), output); + } + + // string index_name = 5; + if (this->index_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->index_name().data(), static_cast<int>(this->index_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.IndexStateRequest.index_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->index_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.IndexStateRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* IndexStateRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.IndexStateRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::base(this), target); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.IndexStateRequest.db_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->db_name(), target); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.IndexStateRequest.collection_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 3, this->collection_name(), target); + } + + // string field_name = 4; + if (this->field_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast<int>(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.IndexStateRequest.field_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 4, this->field_name(), target); + } + + // string index_name = 5; + if (this->index_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->index_name().data(), static_cast<int>(this->index_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.IndexStateRequest.index_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 5, this->index_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.IndexStateRequest) + return target; +} + +size_t IndexStateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.IndexStateRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string db_name = 2; + if (this->db_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->db_name()); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // string field_name = 4; + if (this->field_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->field_name()); + } + + // string index_name = 5; + if (this->index_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->index_name()); + } + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *base_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void IndexStateRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.IndexStateRequest) + GOOGLE_DCHECK_NE(&from, this); + const IndexStateRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<IndexStateRequest>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.IndexStateRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.IndexStateRequest) + MergeFrom(*source); + } +} + +void IndexStateRequest::MergeFrom(const IndexStateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.IndexStateRequest) + 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.db_name().size() > 0) { + + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + if (from.collection_name().size() > 0) { + + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.field_name().size() > 0) { + + field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); + } + if (from.index_name().size() > 0) { + + index_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.index_name_); + } + if (from.has_base()) { + mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(from.base()); + } +} + +void IndexStateRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.IndexStateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IndexStateRequest::CopyFrom(const IndexStateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.IndexStateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IndexStateRequest::IsInitialized() const { + return true; +} + +void IndexStateRequest::InternalSwap(IndexStateRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + db_name_.Swap(&other->db_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + index_name_.Swap(&other->index_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(base_, other->base_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata IndexStateRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void IndexStateResponse::InitAsDefaultInstance() { + ::milvus::proto::milvus::_IndexStateResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( + ::milvus::proto::common::Status::internal_default_instance()); +} +class IndexStateResponse::_Internal { + public: + static const ::milvus::proto::common::Status& status(const IndexStateResponse* msg); +}; + +const ::milvus::proto::common::Status& +IndexStateResponse::_Internal::status(const IndexStateResponse* msg) { + return *msg->status_; +} +void IndexStateResponse::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +IndexStateResponse::IndexStateResponse() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.IndexStateResponse) +} +IndexStateResponse::IndexStateResponse(const IndexStateResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_status()) { + status_ = new ::milvus::proto::common::Status(*from.status_); + } else { + status_ = nullptr; + } + state_ = from.state_; + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.IndexStateResponse) +} + +void IndexStateResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_IndexStateResponse_milvus_2eproto.base); + ::memset(&status_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&state_) - + reinterpret_cast<char*>(&status_)) + sizeof(state_)); +} + +IndexStateResponse::~IndexStateResponse() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.IndexStateResponse) + SharedDtor(); +} + +void IndexStateResponse::SharedDtor() { + if (this != internal_default_instance()) delete status_; +} + +void IndexStateResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const IndexStateResponse& IndexStateResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_IndexStateResponse_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void IndexStateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.IndexStateResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + state_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* IndexStateResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.proto.common.IndexState state = 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_state(static_cast<::milvus::proto::common::IndexState>(val)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool IndexStateResponse::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.IndexStateResponse) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.Status status = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_status())); + } else { + goto handle_unusual; + } + break; + } + + // .milvus.proto.common.IndexState state = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_state(static_cast< ::milvus::proto::common::IndexState >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.IndexStateResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.IndexStateResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void IndexStateResponse::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.IndexStateResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); + } + + // .milvus.proto.common.IndexState state = 2; + if (this->state() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( + 2, this->state(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.IndexStateResponse) +} + +::PROTOBUF_NAMESPACE_ID::uint8* IndexStateResponse::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.IndexStateResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); + } + + // .milvus.proto.common.IndexState state = 2; + if (this->state() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->state(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.IndexStateResponse) + return target; +} + +size_t IndexStateResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.IndexStateResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + // .milvus.proto.common.IndexState state = 2; + if (this->state() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->state()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void IndexStateResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.IndexStateResponse) + GOOGLE_DCHECK_NE(&from, this); + const IndexStateResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<IndexStateResponse>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.IndexStateResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.IndexStateResponse) + MergeFrom(*source); + } +} + +void IndexStateResponse::MergeFrom(const IndexStateResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.IndexStateResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_status()) { + mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); + } + if (from.state() != 0) { + set_state(from.state()); + } +} + +void IndexStateResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.IndexStateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IndexStateResponse::CopyFrom(const IndexStateResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.IndexStateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IndexStateResponse::IsInitialized() const { + return true; +} + +void IndexStateResponse::InternalSwap(IndexStateResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(status_, other->status_); + swap(state_, other->state_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata IndexStateResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void InsertRequest::InitAsDefaultInstance() { + ::milvus::proto::milvus::_InsertRequest_default_instance_._instance.get_mutable()->base_ = const_cast< ::milvus::proto::common::MsgBase*>( + ::milvus::proto::common::MsgBase::internal_default_instance()); +} +class InsertRequest::_Internal { + public: + static const ::milvus::proto::common::MsgBase& base(const InsertRequest* msg); +}; + +const ::milvus::proto::common::MsgBase& +InsertRequest::_Internal::base(const InsertRequest* msg) { + return *msg->base_; +} +void InsertRequest::clear_base() { + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; +} +void InsertRequest::clear_row_data() { + row_data_.Clear(); +} +InsertRequest::InsertRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.InsertRequest) +} +InsertRequest::InsertRequest(const InsertRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + row_data_(from.row_data_), + hash_keys_(from.hash_keys_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.db_name().empty()) { + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + 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_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.partition_name().empty()) { + partition_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_name_); + } + if (from.has_base()) { + base_ = new ::milvus::proto::common::MsgBase(*from.base_); + } else { + base_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.InsertRequest) +} + +void InsertRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_InsertRequest_milvus_2eproto.base); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + partition_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + base_ = nullptr; +} + +InsertRequest::~InsertRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.InsertRequest) + SharedDtor(); +} + +void InsertRequest::SharedDtor() { + db_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + partition_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete base_; +} + +void InsertRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const InsertRequest& InsertRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_InsertRequest_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void InsertRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.InsertRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + row_data_.Clear(); + hash_keys_.Clear(); + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + partition_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* InsertRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.MsgBase base = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_base(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string db_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_db_name(), ptr, ctx, "milvus.proto.milvus.InsertRequest.db_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string collection_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.milvus.InsertRequest.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string partition_name = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_partition_name(), ptr, ctx, "milvus.proto.milvus.InsertRequest.partition_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .milvus.proto.common.Blob row_data = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_row_data(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 42); + } else goto handle_unusual; + continue; + // repeated uint32 hash_keys = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(mutable_hash_keys(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48) { + add_hash_keys(::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 InsertRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.InsertRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.MsgBase base = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_base())); + } else { + goto handle_unusual; + } + break; + } + + // string db_name = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_db_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.InsertRequest.db_name")); + } else { + goto handle_unusual; + } + break; + } + + // string collection_name = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_collection_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.InsertRequest.collection_name")); + } else { + goto handle_unusual; + } + break; + } + + // string partition_name = 4; + case 4: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_partition_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_name().data(), static_cast<int>(this->partition_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.InsertRequest.partition_name")); + } else { + goto handle_unusual; + } + break; + } + + // repeated .milvus.proto.common.Blob row_data = 5; + case 5: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, add_row_data())); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint32 hash_keys = 6; + case 6: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< + ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_hash_keys()))); + } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>( + 1, 50u, input, this->mutable_hash_keys()))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.InsertRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.InsertRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void InsertRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.InsertRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::base(this), output); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.InsertRequest.db_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->db_name(), output); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.InsertRequest.collection_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->collection_name(), output); + } + + // string partition_name = 4; + if (this->partition_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_name().data(), static_cast<int>(this->partition_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.InsertRequest.partition_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->partition_name(), output); + } + + // repeated .milvus.proto.common.Blob row_data = 5; + for (unsigned int i = 0, + n = static_cast<unsigned int>(this->row_data_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, + this->row_data(static_cast<int>(i)), + output); + } + + // repeated uint32 hash_keys = 6; + if (this->hash_keys_size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(6, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_hash_keys_cached_byte_size_.load( + std::memory_order_relaxed)); + } + for (int i = 0, n = this->hash_keys_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32NoTag( + this->hash_keys(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.InsertRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* InsertRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.InsertRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::base(this), target); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.InsertRequest.db_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->db_name(), target); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.InsertRequest.collection_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 3, this->collection_name(), target); + } + + // string partition_name = 4; + if (this->partition_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_name().data(), static_cast<int>(this->partition_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.InsertRequest.partition_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 4, this->partition_name(), target); + } + + // repeated .milvus.proto.common.Blob row_data = 5; + for (unsigned int i = 0, + n = static_cast<unsigned int>(this->row_data_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->row_data(static_cast<int>(i)), target); + } + + // repeated uint32 hash_keys = 6; + if (this->hash_keys_size() > 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( + 6, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + target); + target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( + _hash_keys_cached_byte_size_.load(std::memory_order_relaxed), + target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteUInt32NoTagToArray(this->hash_keys_, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.InsertRequest) + return target; +} + +size_t InsertRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.InsertRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .milvus.proto.common.Blob row_data = 5; + { + unsigned int count = static_cast<unsigned int>(this->row_data_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->row_data(static_cast<int>(i))); + } + } + + // repeated uint32 hash_keys = 6; + { + size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + UInt32Size(this->hash_keys_); + 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); + _hash_keys_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->db_name()); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // string partition_name = 4; + if (this->partition_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->partition_name()); + } + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *base_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void InsertRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.InsertRequest) + GOOGLE_DCHECK_NE(&from, this); + const InsertRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<InsertRequest>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.InsertRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.InsertRequest) + MergeFrom(*source); + } +} + +void InsertRequest::MergeFrom(const InsertRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.InsertRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + row_data_.MergeFrom(from.row_data_); + hash_keys_.MergeFrom(from.hash_keys_); + if (from.db_name().size() > 0) { + + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + if (from.collection_name().size() > 0) { + + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.partition_name().size() > 0) { + + partition_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_name_); + } + if (from.has_base()) { + mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(from.base()); + } +} + +void InsertRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.InsertRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void InsertRequest::CopyFrom(const InsertRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.InsertRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool InsertRequest::IsInitialized() const { + return true; +} + +void InsertRequest::InternalSwap(InsertRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&row_data_)->InternalSwap(CastToBase(&other->row_data_)); + hash_keys_.InternalSwap(&other->hash_keys_); + db_name_.Swap(&other->db_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + partition_name_.Swap(&other->partition_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(base_, other->base_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata InsertRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void InsertResponse::InitAsDefaultInstance() { + ::milvus::proto::milvus::_InsertResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( + ::milvus::proto::common::Status::internal_default_instance()); +} +class InsertResponse::_Internal { + public: + static const ::milvus::proto::common::Status& status(const InsertResponse* msg); +}; + +const ::milvus::proto::common::Status& +InsertResponse::_Internal::status(const InsertResponse* msg) { + return *msg->status_; +} +void InsertResponse::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +InsertResponse::InsertResponse() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.InsertResponse) +} +InsertResponse::InsertResponse(const InsertResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_status()) { + status_ = new ::milvus::proto::common::Status(*from.status_); + } else { + status_ = nullptr; + } + ::memcpy(&rowid_begin_, &from.rowid_begin_, + static_cast<size_t>(reinterpret_cast<char*>(&rowid_end_) - + reinterpret_cast<char*>(&rowid_begin_)) + sizeof(rowid_end_)); + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.InsertResponse) +} + +void InsertResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_InsertResponse_milvus_2eproto.base); + ::memset(&status_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&rowid_end_) - + reinterpret_cast<char*>(&status_)) + sizeof(rowid_end_)); +} + +InsertResponse::~InsertResponse() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.InsertResponse) + SharedDtor(); +} + +void InsertResponse::SharedDtor() { + if (this != internal_default_instance()) delete status_; +} + +void InsertResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const InsertResponse& InsertResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_InsertResponse_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void InsertResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.InsertResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + ::memset(&rowid_begin_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&rowid_end_) - + reinterpret_cast<char*>(&rowid_begin_)) + sizeof(rowid_end_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* InsertResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 rowID_begin = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + rowid_begin_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 rowID_end = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + rowid_end_ = ::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 InsertResponse::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.InsertResponse) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.Status status = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_status())); + } else { + goto handle_unusual; + } + break; + } + + // int64 rowID_begin = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &rowid_begin_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 rowID_end = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &rowid_end_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.InsertResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.InsertResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void InsertResponse::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.InsertResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); + } + + // int64 rowID_begin = 2; + if (this->rowid_begin() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->rowid_begin(), output); + } + + // int64 rowID_end = 3; + if (this->rowid_end() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->rowid_end(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.InsertResponse) +} + +::PROTOBUF_NAMESPACE_ID::uint8* InsertResponse::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.InsertResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); + } + + // int64 rowID_begin = 2; + if (this->rowid_begin() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->rowid_begin(), target); + } + + // int64 rowID_end = 3; + if (this->rowid_end() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->rowid_end(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.InsertResponse) + return target; +} + +size_t InsertResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.InsertResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + // int64 rowID_begin = 2; + if (this->rowid_begin() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->rowid_begin()); + } + + // int64 rowID_end = 3; + if (this->rowid_end() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->rowid_end()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void InsertResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.InsertResponse) + GOOGLE_DCHECK_NE(&from, this); + const InsertResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<InsertResponse>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.InsertResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.InsertResponse) + MergeFrom(*source); + } +} + +void InsertResponse::MergeFrom(const InsertResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.InsertResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_status()) { + mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); + } + if (from.rowid_begin() != 0) { + set_rowid_begin(from.rowid_begin()); + } + if (from.rowid_end() != 0) { + set_rowid_end(from.rowid_end()); + } +} + +void InsertResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.InsertResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void InsertResponse::CopyFrom(const InsertResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.InsertResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool InsertResponse::IsInitialized() const { + return true; +} + +void InsertResponse::InternalSwap(InsertResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(status_, other->status_); + swap(rowid_begin_, other->rowid_begin_); + swap(rowid_end_, other->rowid_end_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata InsertResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void PlaceholderValue::InitAsDefaultInstance() { +} +class PlaceholderValue::_Internal { + public: +}; + +PlaceholderValue::PlaceholderValue() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.PlaceholderValue) +} +PlaceholderValue::PlaceholderValue(const PlaceholderValue& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + values_(from.values_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.tag().empty()) { + tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.tag_); + } + type_ = from.type_; + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.PlaceholderValue) +} + +void PlaceholderValue::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PlaceholderValue_milvus_2eproto.base); + tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + type_ = 0; +} + +PlaceholderValue::~PlaceholderValue() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.PlaceholderValue) + SharedDtor(); +} + +void PlaceholderValue::SharedDtor() { + tag_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void PlaceholderValue::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const PlaceholderValue& PlaceholderValue::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PlaceholderValue_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void PlaceholderValue::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.PlaceholderValue) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + values_.Clear(); + tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + type_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* PlaceholderValue::_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 tag = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_tag(), ptr, ctx, "milvus.proto.milvus.PlaceholderValue.tag"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.proto.milvus.PlaceholderType type = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + set_type(static_cast<::milvus::proto::milvus::PlaceholderType>(val)); + } else goto handle_unusual; + continue; + // repeated bytes values = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(add_values(), ptr, ctx); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool PlaceholderValue::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.PlaceholderValue) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string tag = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_tag())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->tag().data(), static_cast<int>(this->tag().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.PlaceholderValue.tag")); + } else { + goto handle_unusual; + } + break; + } + + // .milvus.proto.milvus.PlaceholderType type = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_type(static_cast< ::milvus::proto::milvus::PlaceholderType >(value)); + } else { + goto handle_unusual; + } + break; + } + + // repeated bytes values = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes( + input, this->add_values())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.PlaceholderValue) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.PlaceholderValue) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void PlaceholderValue::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.PlaceholderValue) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string tag = 1; + if (this->tag().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->tag().data(), static_cast<int>(this->tag().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.PlaceholderValue.tag"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->tag(), output); + } + + // .milvus.proto.milvus.PlaceholderType type = 2; + if (this->type() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( + 2, this->type(), output); + } + + // repeated bytes values = 3; + for (int i = 0, n = this->values_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytes( + 3, this->values(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.PlaceholderValue) +} + +::PROTOBUF_NAMESPACE_ID::uint8* PlaceholderValue::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.PlaceholderValue) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string tag = 1; + if (this->tag().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->tag().data(), static_cast<int>(this->tag().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.PlaceholderValue.tag"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 1, this->tag(), target); + } + + // .milvus.proto.milvus.PlaceholderType type = 2; + if (this->type() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->type(), target); + } + + // repeated bytes values = 3; + for (int i = 0, n = this->values_size(); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteBytesToArray(3, this->values(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.PlaceholderValue) + return target; +} + +size_t PlaceholderValue::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.PlaceholderValue) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated bytes values = 3; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->values_size()); + for (int i = 0, n = this->values_size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->values(i)); + } + + // string tag = 1; + if (this->tag().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->tag()); + } + + // .milvus.proto.milvus.PlaceholderType type = 2; + if (this->type() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->type()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PlaceholderValue::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.PlaceholderValue) + GOOGLE_DCHECK_NE(&from, this); + const PlaceholderValue* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PlaceholderValue>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.PlaceholderValue) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.PlaceholderValue) + MergeFrom(*source); + } +} + +void PlaceholderValue::MergeFrom(const PlaceholderValue& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.PlaceholderValue) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + values_.MergeFrom(from.values_); + if (from.tag().size() > 0) { + + tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.tag_); + } + if (from.type() != 0) { + set_type(from.type()); + } +} + +void PlaceholderValue::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.PlaceholderValue) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PlaceholderValue::CopyFrom(const PlaceholderValue& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.PlaceholderValue) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PlaceholderValue::IsInitialized() const { + return true; +} + +void PlaceholderValue::InternalSwap(PlaceholderValue* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + values_.InternalSwap(CastToBase(&other->values_)); + tag_.Swap(&other->tag_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(type_, other->type_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PlaceholderValue::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void PlaceholderGroup::InitAsDefaultInstance() { +} +class PlaceholderGroup::_Internal { + public: +}; + +PlaceholderGroup::PlaceholderGroup() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.PlaceholderGroup) +} +PlaceholderGroup::PlaceholderGroup(const PlaceholderGroup& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + placeholders_(from.placeholders_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.PlaceholderGroup) +} + +void PlaceholderGroup::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PlaceholderGroup_milvus_2eproto.base); +} + +PlaceholderGroup::~PlaceholderGroup() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.PlaceholderGroup) + SharedDtor(); +} + +void PlaceholderGroup::SharedDtor() { +} + +void PlaceholderGroup::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const PlaceholderGroup& PlaceholderGroup::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PlaceholderGroup_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void PlaceholderGroup::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.PlaceholderGroup) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + placeholders_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* PlaceholderGroup::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated .milvus.proto.milvus.PlaceholderValue placeholders = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_placeholders(), 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 PlaceholderGroup::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.PlaceholderGroup) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .milvus.proto.milvus.PlaceholderValue placeholders = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, add_placeholders())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.PlaceholderGroup) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.PlaceholderGroup) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void PlaceholderGroup::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.PlaceholderGroup) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .milvus.proto.milvus.PlaceholderValue placeholders = 1; + for (unsigned int i = 0, + n = static_cast<unsigned int>(this->placeholders_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->placeholders(static_cast<int>(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.PlaceholderGroup) +} + +::PROTOBUF_NAMESPACE_ID::uint8* PlaceholderGroup::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.PlaceholderGroup) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .milvus.proto.milvus.PlaceholderValue placeholders = 1; + for (unsigned int i = 0, + n = static_cast<unsigned int>(this->placeholders_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->placeholders(static_cast<int>(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.PlaceholderGroup) + return target; +} + +size_t PlaceholderGroup::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.PlaceholderGroup) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .milvus.proto.milvus.PlaceholderValue placeholders = 1; + { + unsigned int count = static_cast<unsigned int>(this->placeholders_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->placeholders(static_cast<int>(i))); + } + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PlaceholderGroup::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.PlaceholderGroup) + GOOGLE_DCHECK_NE(&from, this); + const PlaceholderGroup* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PlaceholderGroup>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.PlaceholderGroup) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.PlaceholderGroup) + MergeFrom(*source); + } +} + +void PlaceholderGroup::MergeFrom(const PlaceholderGroup& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.PlaceholderGroup) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + placeholders_.MergeFrom(from.placeholders_); +} + +void PlaceholderGroup::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.PlaceholderGroup) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PlaceholderGroup::CopyFrom(const PlaceholderGroup& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.PlaceholderGroup) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PlaceholderGroup::IsInitialized() const { + return true; +} + +void PlaceholderGroup::InternalSwap(PlaceholderGroup* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&placeholders_)->InternalSwap(CastToBase(&other->placeholders_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PlaceholderGroup::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void SearchRequest::InitAsDefaultInstance() { + ::milvus::proto::milvus::_SearchRequest_default_instance_._instance.get_mutable()->base_ = const_cast< ::milvus::proto::common::MsgBase*>( + ::milvus::proto::common::MsgBase::internal_default_instance()); +} +class SearchRequest::_Internal { + public: + static const ::milvus::proto::common::MsgBase& base(const SearchRequest* msg); +}; + +const ::milvus::proto::common::MsgBase& +SearchRequest::_Internal::base(const SearchRequest* msg) { + return *msg->base_; +} +void SearchRequest::clear_base() { + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; +} +SearchRequest::SearchRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.SearchRequest) +} +SearchRequest::SearchRequest(const SearchRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + partition_names_(from.partition_names_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.db_name().empty()) { + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + dsl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.dsl().empty()) { + dsl_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.dsl_); + } + placeholder_group_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.placeholder_group().empty()) { + placeholder_group_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.placeholder_group_); + } + if (from.has_base()) { + base_ = new ::milvus::proto::common::MsgBase(*from.base_); + } else { + base_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.SearchRequest) +} + +void SearchRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SearchRequest_milvus_2eproto.base); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + dsl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + placeholder_group_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + base_ = nullptr; +} + +SearchRequest::~SearchRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.SearchRequest) + SharedDtor(); +} + +void SearchRequest::SharedDtor() { + db_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + dsl_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + placeholder_group_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete base_; +} + +void SearchRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SearchRequest& SearchRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchRequest_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void SearchRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.SearchRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + partition_names_.Clear(); + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + dsl_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + placeholder_group_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SearchRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.MsgBase base = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_base(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string db_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_db_name(), ptr, ctx, "milvus.proto.milvus.SearchRequest.db_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string collection_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.milvus.SearchRequest.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated string partition_names = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_partition_names(), ptr, ctx, "milvus.proto.milvus.SearchRequest.partition_names"); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34); + } else goto handle_unusual; + continue; + // string dsl = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_dsl(), ptr, ctx, "milvus.proto.milvus.SearchRequest.dsl"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bytes placeholder_group = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(mutable_placeholder_group(), 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 SearchRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.SearchRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.MsgBase base = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_base())); + } else { + goto handle_unusual; + } + break; + } + + // string db_name = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_db_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.SearchRequest.db_name")); + } else { + goto handle_unusual; + } + break; + } + + // string collection_name = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_collection_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.SearchRequest.collection_name")); + } else { + goto handle_unusual; + } + break; + } + + // repeated string partition_names = 4; + case 4: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->add_partition_names())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_names(this->partition_names_size() - 1).data(), + static_cast<int>(this->partition_names(this->partition_names_size() - 1).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.SearchRequest.partition_names")); + } else { + goto handle_unusual; + } + break; + } + + // string dsl = 5; + case 5: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_dsl())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->dsl().data(), static_cast<int>(this->dsl().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.SearchRequest.dsl")); + } else { + goto handle_unusual; + } + break; + } + + // bytes placeholder_group = 6; + case 6: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes( + input, this->mutable_placeholder_group())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.SearchRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.SearchRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void SearchRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.SearchRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::base(this), output); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.SearchRequest.db_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->db_name(), output); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.SearchRequest.collection_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->collection_name(), output); + } + + // repeated string partition_names = 4; + for (int i = 0, n = this->partition_names_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_names(i).data(), static_cast<int>(this->partition_names(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.SearchRequest.partition_names"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( + 4, this->partition_names(i), output); + } + + // string dsl = 5; + if (this->dsl().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->dsl().data(), static_cast<int>(this->dsl().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.SearchRequest.dsl"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->dsl(), output); + } + + // bytes placeholder_group = 6; + if (this->placeholder_group().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased( + 6, this->placeholder_group(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.SearchRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* SearchRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.SearchRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::base(this), target); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.SearchRequest.db_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->db_name(), target); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.SearchRequest.collection_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 3, this->collection_name(), target); + } + + // repeated string partition_names = 4; + for (int i = 0, n = this->partition_names_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_names(i).data(), static_cast<int>(this->partition_names(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.SearchRequest.partition_names"); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteStringToArray(4, this->partition_names(i), target); + } + + // string dsl = 5; + if (this->dsl().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->dsl().data(), static_cast<int>(this->dsl().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.SearchRequest.dsl"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 5, this->dsl(), target); + } + + // bytes placeholder_group = 6; + if (this->placeholder_group().size() > 0) { + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesToArray( + 6, this->placeholder_group(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.SearchRequest) + return target; +} + +size_t SearchRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.SearchRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string partition_names = 4; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->partition_names_size()); + for (int i = 0, n = this->partition_names_size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->partition_names(i)); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->db_name()); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // string dsl = 5; + if (this->dsl().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->dsl()); + } + + // bytes placeholder_group = 6; + if (this->placeholder_group().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->placeholder_group()); + } + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *base_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SearchRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.SearchRequest) + GOOGLE_DCHECK_NE(&from, this); + const SearchRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SearchRequest>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.SearchRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.SearchRequest) + MergeFrom(*source); + } +} + +void SearchRequest::MergeFrom(const SearchRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.SearchRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + partition_names_.MergeFrom(from.partition_names_); + if (from.db_name().size() > 0) { + + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + if (from.collection_name().size() > 0) { + + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.dsl().size() > 0) { + + dsl_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.dsl_); + } + if (from.placeholder_group().size() > 0) { + + placeholder_group_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.placeholder_group_); + } + if (from.has_base()) { + mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(from.base()); + } +} + +void SearchRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.SearchRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SearchRequest::CopyFrom(const SearchRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.SearchRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SearchRequest::IsInitialized() const { + return true; +} + +void SearchRequest::InternalSwap(SearchRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + partition_names_.InternalSwap(CastToBase(&other->partition_names_)); + db_name_.Swap(&other->db_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + dsl_.Swap(&other->dsl_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + placeholder_group_.Swap(&other->placeholder_group_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(base_, other->base_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SearchRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void Hits::InitAsDefaultInstance() { +} +class Hits::_Internal { + public: +}; + +Hits::Hits() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.Hits) +} +Hits::Hits(const Hits& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + ids_(from.ids_), + row_data_(from.row_data_), + scores_(from.scores_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.Hits) +} + +void Hits::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Hits_milvus_2eproto.base); +} + +Hits::~Hits() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.Hits) + SharedDtor(); +} + +void Hits::SharedDtor() { +} + +void Hits::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Hits& Hits::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Hits_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void Hits::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.Hits) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ids_.Clear(); + row_data_.Clear(); + scores_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Hits::_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 int64 IDs = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_ids(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) { + add_ids(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated bytes row_data = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(add_row_data(), ptr, ctx); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); + } else goto handle_unusual; + continue; + // repeated float scores = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(mutable_scores(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29) { + add_scores(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr)); + ptr += sizeof(float); + } 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 Hits::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.Hits) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated int64 IDs = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, this->mutable_ids()))); + } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + 1, 10u, input, this->mutable_ids()))); + } else { + goto handle_unusual; + } + break; + } + + // repeated bytes row_data = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes( + input, this->add_row_data())); + } else { + goto handle_unusual; + } + break; + } + + // repeated float scores = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< + float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( + input, this->mutable_scores()))); + } 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_scores()))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.Hits) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.Hits) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Hits::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.Hits) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated int64 IDs = 1; + if (this->ids_size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(1, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_ids_cached_byte_size_.load( + std::memory_order_relaxed)); + } + for (int i = 0, n = this->ids_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( + this->ids(i), output); + } + + // repeated bytes row_data = 2; + for (int i = 0, n = this->row_data_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytes( + 2, this->row_data(i), output); + } + + // repeated float scores = 3; + if (this->scores_size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(3, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_scores_cached_byte_size_.load( + std::memory_order_relaxed)); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatArray( + this->scores().data(), this->scores_size(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.Hits) +} + +::PROTOBUF_NAMESPACE_ID::uint8* Hits::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.Hits) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated int64 IDs = 1; + if (this->ids_size() > 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( + 1, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + target); + target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( + _ids_cached_byte_size_.load(std::memory_order_relaxed), + target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteInt64NoTagToArray(this->ids_, target); + } + + // repeated bytes row_data = 2; + for (int i = 0, n = this->row_data_size(); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteBytesToArray(2, this->row_data(i), target); + } + + // repeated float scores = 3; + if (this->scores_size() > 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( + 3, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + target); + target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( + _scores_cached_byte_size_.load(std::memory_order_relaxed), + target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteFloatNoTagToArray(this->scores_, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.Hits) + return target; +} + +size_t Hits::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.Hits) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated int64 IDs = 1; + { + size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + Int64Size(this->ids_); + if (data_size > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _ids_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + // repeated bytes row_data = 2; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->row_data_size()); + for (int i = 0, n = this->row_data_size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->row_data(i)); + } + + // repeated float scores = 3; + { + unsigned int count = static_cast<unsigned int>(this->scores_size()); + size_t data_size = 4UL * count; + if (data_size > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _scores_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Hits::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.Hits) + GOOGLE_DCHECK_NE(&from, this); + const Hits* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Hits>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.Hits) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.Hits) + MergeFrom(*source); + } +} + +void Hits::MergeFrom(const Hits& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.Hits) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + ids_.MergeFrom(from.ids_); + row_data_.MergeFrom(from.row_data_); + scores_.MergeFrom(from.scores_); +} + +void Hits::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.Hits) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Hits::CopyFrom(const Hits& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.Hits) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Hits::IsInitialized() const { + return true; +} + +void Hits::InternalSwap(Hits* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + ids_.InternalSwap(&other->ids_); + row_data_.InternalSwap(CastToBase(&other->row_data_)); + scores_.InternalSwap(&other->scores_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Hits::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void SearchResults::InitAsDefaultInstance() { + ::milvus::proto::milvus::_SearchResults_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( + ::milvus::proto::common::Status::internal_default_instance()); +} +class SearchResults::_Internal { + public: + static const ::milvus::proto::common::Status& status(const SearchResults* msg); +}; + +const ::milvus::proto::common::Status& +SearchResults::_Internal::status(const SearchResults* msg) { + return *msg->status_; +} +void SearchResults::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +SearchResults::SearchResults() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.SearchResults) +} +SearchResults::SearchResults(const SearchResults& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + hits_(from.hits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_status()) { + status_ = new ::milvus::proto::common::Status(*from.status_); + } else { + status_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.SearchResults) +} + +void SearchResults::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SearchResults_milvus_2eproto.base); + status_ = nullptr; +} + +SearchResults::~SearchResults() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.SearchResults) + SharedDtor(); +} + +void SearchResults::SharedDtor() { + if (this != internal_default_instance()) delete status_; +} + +void SearchResults::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SearchResults& SearchResults::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchResults_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void SearchResults::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.SearchResults) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + hits_.Clear(); + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SearchResults::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated bytes hits = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(add_hits(), ptr, ctx); + 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 SearchResults::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.SearchResults) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.Status status = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_status())); + } else { + goto handle_unusual; + } + break; + } + + // repeated bytes hits = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes( + input, this->add_hits())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.SearchResults) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.SearchResults) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void SearchResults::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.SearchResults) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); + } + + // repeated bytes hits = 2; + for (int i = 0, n = this->hits_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytes( + 2, this->hits(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.SearchResults) +} + +::PROTOBUF_NAMESPACE_ID::uint8* SearchResults::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.SearchResults) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); + } + + // repeated bytes hits = 2; + for (int i = 0, n = this->hits_size(); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteBytesToArray(2, this->hits(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.SearchResults) + return target; +} + +size_t SearchResults::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.SearchResults) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated bytes hits = 2; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->hits_size()); + for (int i = 0, n = this->hits_size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->hits(i)); + } + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SearchResults::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.SearchResults) + GOOGLE_DCHECK_NE(&from, this); + const SearchResults* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SearchResults>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.SearchResults) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.SearchResults) + MergeFrom(*source); + } +} + +void SearchResults::MergeFrom(const SearchResults& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.SearchResults) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + hits_.MergeFrom(from.hits_); + if (from.has_status()) { + mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); + } +} + +void SearchResults::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.SearchResults) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SearchResults::CopyFrom(const SearchResults& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.SearchResults) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SearchResults::IsInitialized() const { + return true; +} + +void SearchResults::InternalSwap(SearchResults* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + hits_.InternalSwap(CastToBase(&other->hits_)); + swap(status_, other->status_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SearchResults::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void FlushRequest::InitAsDefaultInstance() { + ::milvus::proto::milvus::_FlushRequest_default_instance_._instance.get_mutable()->base_ = const_cast< ::milvus::proto::common::MsgBase*>( + ::milvus::proto::common::MsgBase::internal_default_instance()); +} +class FlushRequest::_Internal { + public: + static const ::milvus::proto::common::MsgBase& base(const FlushRequest* msg); +}; + +const ::milvus::proto::common::MsgBase& +FlushRequest::_Internal::base(const FlushRequest* msg) { + return *msg->base_; +} +void FlushRequest::clear_base() { + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; +} +FlushRequest::FlushRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.FlushRequest) +} +FlushRequest::FlushRequest(const FlushRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.db_name().empty()) { + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.has_base()) { + base_ = new ::milvus::proto::common::MsgBase(*from.base_); + } else { + base_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.FlushRequest) +} + +void FlushRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FlushRequest_milvus_2eproto.base); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + base_ = nullptr; +} + +FlushRequest::~FlushRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.FlushRequest) + SharedDtor(); +} + +void FlushRequest::SharedDtor() { + db_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete base_; +} + +void FlushRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const FlushRequest& FlushRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FlushRequest_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void FlushRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.FlushRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* FlushRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.MsgBase base = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_base(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string db_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_db_name(), ptr, ctx, "milvus.proto.milvus.FlushRequest.db_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string collection_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.milvus.FlushRequest.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool FlushRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.FlushRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.MsgBase base = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_base())); + } else { + goto handle_unusual; + } + break; + } + + // string db_name = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_db_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.FlushRequest.db_name")); + } else { + goto handle_unusual; + } + break; + } + + // string collection_name = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_collection_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.FlushRequest.collection_name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.FlushRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.FlushRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void FlushRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.FlushRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::base(this), output); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.FlushRequest.db_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->db_name(), output); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.FlushRequest.collection_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->collection_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.FlushRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* FlushRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.FlushRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::base(this), target); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast<int>(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.FlushRequest.db_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->db_name(), target); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast<int>(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.FlushRequest.collection_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 3, this->collection_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.FlushRequest) + return target; +} + +size_t FlushRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.FlushRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string db_name = 2; + if (this->db_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->db_name()); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *base_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void FlushRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.FlushRequest) + GOOGLE_DCHECK_NE(&from, this); + const FlushRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<FlushRequest>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.FlushRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.FlushRequest) + MergeFrom(*source); + } +} + +void FlushRequest::MergeFrom(const FlushRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.FlushRequest) + 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.db_name().size() > 0) { + + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + if (from.collection_name().size() > 0) { + + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.has_base()) { + mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(from.base()); + } +} + +void FlushRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.FlushRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FlushRequest::CopyFrom(const FlushRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.FlushRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FlushRequest::IsInitialized() const { + return true; +} + +void FlushRequest::InternalSwap(FlushRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + db_name_.Swap(&other->db_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(base_, other->base_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FlushRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace milvus +} // namespace proto +} // namespace milvus +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::CreateCollectionRequest* Arena::CreateMaybeMessage< ::milvus::proto::milvus::CreateCollectionRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::CreateCollectionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::DropCollectionRequest* Arena::CreateMaybeMessage< ::milvus::proto::milvus::DropCollectionRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::DropCollectionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::HasCollectionRequest* Arena::CreateMaybeMessage< ::milvus::proto::milvus::HasCollectionRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::HasCollectionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::BoolResponse* Arena::CreateMaybeMessage< ::milvus::proto::milvus::BoolResponse >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::BoolResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::StringResponse* Arena::CreateMaybeMessage< ::milvus::proto::milvus::StringResponse >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::StringResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::DescribeCollectionRequest* Arena::CreateMaybeMessage< ::milvus::proto::milvus::DescribeCollectionRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::DescribeCollectionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::DescribeCollectionResponse* Arena::CreateMaybeMessage< ::milvus::proto::milvus::DescribeCollectionResponse >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::DescribeCollectionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::LoadCollectionRequest* Arena::CreateMaybeMessage< ::milvus::proto::milvus::LoadCollectionRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::LoadCollectionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::ReleaseCollectionRequest* Arena::CreateMaybeMessage< ::milvus::proto::milvus::ReleaseCollectionRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::ReleaseCollectionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::CollectionStatsRequest* Arena::CreateMaybeMessage< ::milvus::proto::milvus::CollectionStatsRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::CollectionStatsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::CollectionStatsResponse* Arena::CreateMaybeMessage< ::milvus::proto::milvus::CollectionStatsResponse >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::CollectionStatsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::ShowCollectionRequest* Arena::CreateMaybeMessage< ::milvus::proto::milvus::ShowCollectionRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::ShowCollectionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::ShowCollectionResponse* Arena::CreateMaybeMessage< ::milvus::proto::milvus::ShowCollectionResponse >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::ShowCollectionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::CreatePartitionRequest* Arena::CreateMaybeMessage< ::milvus::proto::milvus::CreatePartitionRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::CreatePartitionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::DropPartitionRequest* Arena::CreateMaybeMessage< ::milvus::proto::milvus::DropPartitionRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::DropPartitionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::HasPartitionRequest* Arena::CreateMaybeMessage< ::milvus::proto::milvus::HasPartitionRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::HasPartitionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::LoadPartitonRequest* Arena::CreateMaybeMessage< ::milvus::proto::milvus::LoadPartitonRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::LoadPartitonRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::ReleasePartitionRequest* Arena::CreateMaybeMessage< ::milvus::proto::milvus::ReleasePartitionRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::ReleasePartitionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::PartitionStatsRequest* Arena::CreateMaybeMessage< ::milvus::proto::milvus::PartitionStatsRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::PartitionStatsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::PartitionStatsResponse* Arena::CreateMaybeMessage< ::milvus::proto::milvus::PartitionStatsResponse >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::PartitionStatsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::ShowPartitionRequest* Arena::CreateMaybeMessage< ::milvus::proto::milvus::ShowPartitionRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::ShowPartitionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::ShowPartitionResponse* Arena::CreateMaybeMessage< ::milvus::proto::milvus::ShowPartitionResponse >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::ShowPartitionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::DescribeSegmentRequest* Arena::CreateMaybeMessage< ::milvus::proto::milvus::DescribeSegmentRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::DescribeSegmentRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::DescribeSegmentResponse* Arena::CreateMaybeMessage< ::milvus::proto::milvus::DescribeSegmentResponse >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::DescribeSegmentResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::ShowSegmentRequest* Arena::CreateMaybeMessage< ::milvus::proto::milvus::ShowSegmentRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::ShowSegmentRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::ShowSegmentResponse* Arena::CreateMaybeMessage< ::milvus::proto::milvus::ShowSegmentResponse >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::ShowSegmentResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::CreateIndexRequest* Arena::CreateMaybeMessage< ::milvus::proto::milvus::CreateIndexRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::CreateIndexRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::DescribeIndexRequest* Arena::CreateMaybeMessage< ::milvus::proto::milvus::DescribeIndexRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::DescribeIndexRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::IndexDescription* Arena::CreateMaybeMessage< ::milvus::proto::milvus::IndexDescription >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::IndexDescription >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::DescribeIndexResponse* Arena::CreateMaybeMessage< ::milvus::proto::milvus::DescribeIndexResponse >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::DescribeIndexResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::IndexStateRequest* Arena::CreateMaybeMessage< ::milvus::proto::milvus::IndexStateRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::IndexStateRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::IndexStateResponse* Arena::CreateMaybeMessage< ::milvus::proto::milvus::IndexStateResponse >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::IndexStateResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::InsertRequest* Arena::CreateMaybeMessage< ::milvus::proto::milvus::InsertRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::InsertRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::InsertResponse* Arena::CreateMaybeMessage< ::milvus::proto::milvus::InsertResponse >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::InsertResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::PlaceholderValue* Arena::CreateMaybeMessage< ::milvus::proto::milvus::PlaceholderValue >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::PlaceholderValue >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::PlaceholderGroup* Arena::CreateMaybeMessage< ::milvus::proto::milvus::PlaceholderGroup >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::PlaceholderGroup >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::SearchRequest* Arena::CreateMaybeMessage< ::milvus::proto::milvus::SearchRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::SearchRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::Hits* Arena::CreateMaybeMessage< ::milvus::proto::milvus::Hits >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::Hits >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::SearchResults* Arena::CreateMaybeMessage< ::milvus::proto::milvus::SearchResults >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::SearchResults >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::FlushRequest* Arena::CreateMaybeMessage< ::milvus::proto::milvus::FlushRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::FlushRequest >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include <google/protobuf/port_undef.inc> diff --git a/internal/core/src/pb/milvus.pb.h b/internal/core/src/pb/milvus.pb.h new file mode 100644 index 0000000000000000000000000000000000000000..b474b5ca3202856df85f1bfa64360c7dadc76271 --- /dev/null +++ b/internal/core/src/pb/milvus.pb.h @@ -0,0 +1,12578 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: milvus.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_milvus_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_milvus_2eproto + +#include <limits> +#include <string> + +#include <google/protobuf/port_def.inc> +#if PROTOBUF_VERSION < 3009000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3009000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/port_undef.inc> +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/inlined_string_field.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/generated_message_reflection.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/generated_enum_reflection.h> +#include <google/protobuf/unknown_field_set.h> +#include "common.pb.h" +#include "schema.pb.h" +// @@protoc_insertion_point(includes) +#include <google/protobuf/port_def.inc> +#define PROTOBUF_INTERNAL_EXPORT_milvus_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_milvus_2eproto { + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[40] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; + static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_milvus_2eproto; +namespace milvus { +namespace proto { +namespace milvus { +class BoolResponse; +class BoolResponseDefaultTypeInternal; +extern BoolResponseDefaultTypeInternal _BoolResponse_default_instance_; +class CollectionStatsRequest; +class CollectionStatsRequestDefaultTypeInternal; +extern CollectionStatsRequestDefaultTypeInternal _CollectionStatsRequest_default_instance_; +class CollectionStatsResponse; +class CollectionStatsResponseDefaultTypeInternal; +extern CollectionStatsResponseDefaultTypeInternal _CollectionStatsResponse_default_instance_; +class CreateCollectionRequest; +class CreateCollectionRequestDefaultTypeInternal; +extern CreateCollectionRequestDefaultTypeInternal _CreateCollectionRequest_default_instance_; +class CreateIndexRequest; +class CreateIndexRequestDefaultTypeInternal; +extern CreateIndexRequestDefaultTypeInternal _CreateIndexRequest_default_instance_; +class CreatePartitionRequest; +class CreatePartitionRequestDefaultTypeInternal; +extern CreatePartitionRequestDefaultTypeInternal _CreatePartitionRequest_default_instance_; +class DescribeCollectionRequest; +class DescribeCollectionRequestDefaultTypeInternal; +extern DescribeCollectionRequestDefaultTypeInternal _DescribeCollectionRequest_default_instance_; +class DescribeCollectionResponse; +class DescribeCollectionResponseDefaultTypeInternal; +extern DescribeCollectionResponseDefaultTypeInternal _DescribeCollectionResponse_default_instance_; +class DescribeIndexRequest; +class DescribeIndexRequestDefaultTypeInternal; +extern DescribeIndexRequestDefaultTypeInternal _DescribeIndexRequest_default_instance_; +class DescribeIndexResponse; +class DescribeIndexResponseDefaultTypeInternal; +extern DescribeIndexResponseDefaultTypeInternal _DescribeIndexResponse_default_instance_; +class DescribeSegmentRequest; +class DescribeSegmentRequestDefaultTypeInternal; +extern DescribeSegmentRequestDefaultTypeInternal _DescribeSegmentRequest_default_instance_; +class DescribeSegmentResponse; +class DescribeSegmentResponseDefaultTypeInternal; +extern DescribeSegmentResponseDefaultTypeInternal _DescribeSegmentResponse_default_instance_; +class DropCollectionRequest; +class DropCollectionRequestDefaultTypeInternal; +extern DropCollectionRequestDefaultTypeInternal _DropCollectionRequest_default_instance_; +class DropPartitionRequest; +class DropPartitionRequestDefaultTypeInternal; +extern DropPartitionRequestDefaultTypeInternal _DropPartitionRequest_default_instance_; +class FlushRequest; +class FlushRequestDefaultTypeInternal; +extern FlushRequestDefaultTypeInternal _FlushRequest_default_instance_; +class HasCollectionRequest; +class HasCollectionRequestDefaultTypeInternal; +extern HasCollectionRequestDefaultTypeInternal _HasCollectionRequest_default_instance_; +class HasPartitionRequest; +class HasPartitionRequestDefaultTypeInternal; +extern HasPartitionRequestDefaultTypeInternal _HasPartitionRequest_default_instance_; +class Hits; +class HitsDefaultTypeInternal; +extern HitsDefaultTypeInternal _Hits_default_instance_; +class IndexDescription; +class IndexDescriptionDefaultTypeInternal; +extern IndexDescriptionDefaultTypeInternal _IndexDescription_default_instance_; +class IndexStateRequest; +class IndexStateRequestDefaultTypeInternal; +extern IndexStateRequestDefaultTypeInternal _IndexStateRequest_default_instance_; +class IndexStateResponse; +class IndexStateResponseDefaultTypeInternal; +extern IndexStateResponseDefaultTypeInternal _IndexStateResponse_default_instance_; +class InsertRequest; +class InsertRequestDefaultTypeInternal; +extern InsertRequestDefaultTypeInternal _InsertRequest_default_instance_; +class InsertResponse; +class InsertResponseDefaultTypeInternal; +extern InsertResponseDefaultTypeInternal _InsertResponse_default_instance_; +class LoadCollectionRequest; +class LoadCollectionRequestDefaultTypeInternal; +extern LoadCollectionRequestDefaultTypeInternal _LoadCollectionRequest_default_instance_; +class LoadPartitonRequest; +class LoadPartitonRequestDefaultTypeInternal; +extern LoadPartitonRequestDefaultTypeInternal _LoadPartitonRequest_default_instance_; +class PartitionStatsRequest; +class PartitionStatsRequestDefaultTypeInternal; +extern PartitionStatsRequestDefaultTypeInternal _PartitionStatsRequest_default_instance_; +class PartitionStatsResponse; +class PartitionStatsResponseDefaultTypeInternal; +extern PartitionStatsResponseDefaultTypeInternal _PartitionStatsResponse_default_instance_; +class PlaceholderGroup; +class PlaceholderGroupDefaultTypeInternal; +extern PlaceholderGroupDefaultTypeInternal _PlaceholderGroup_default_instance_; +class PlaceholderValue; +class PlaceholderValueDefaultTypeInternal; +extern PlaceholderValueDefaultTypeInternal _PlaceholderValue_default_instance_; +class ReleaseCollectionRequest; +class ReleaseCollectionRequestDefaultTypeInternal; +extern ReleaseCollectionRequestDefaultTypeInternal _ReleaseCollectionRequest_default_instance_; +class ReleasePartitionRequest; +class ReleasePartitionRequestDefaultTypeInternal; +extern ReleasePartitionRequestDefaultTypeInternal _ReleasePartitionRequest_default_instance_; +class SearchRequest; +class SearchRequestDefaultTypeInternal; +extern SearchRequestDefaultTypeInternal _SearchRequest_default_instance_; +class SearchResults; +class SearchResultsDefaultTypeInternal; +extern SearchResultsDefaultTypeInternal _SearchResults_default_instance_; +class ShowCollectionRequest; +class ShowCollectionRequestDefaultTypeInternal; +extern ShowCollectionRequestDefaultTypeInternal _ShowCollectionRequest_default_instance_; +class ShowCollectionResponse; +class ShowCollectionResponseDefaultTypeInternal; +extern ShowCollectionResponseDefaultTypeInternal _ShowCollectionResponse_default_instance_; +class ShowPartitionRequest; +class ShowPartitionRequestDefaultTypeInternal; +extern ShowPartitionRequestDefaultTypeInternal _ShowPartitionRequest_default_instance_; +class ShowPartitionResponse; +class ShowPartitionResponseDefaultTypeInternal; +extern ShowPartitionResponseDefaultTypeInternal _ShowPartitionResponse_default_instance_; +class ShowSegmentRequest; +class ShowSegmentRequestDefaultTypeInternal; +extern ShowSegmentRequestDefaultTypeInternal _ShowSegmentRequest_default_instance_; +class ShowSegmentResponse; +class ShowSegmentResponseDefaultTypeInternal; +extern ShowSegmentResponseDefaultTypeInternal _ShowSegmentResponse_default_instance_; +class StringResponse; +class StringResponseDefaultTypeInternal; +extern StringResponseDefaultTypeInternal _StringResponse_default_instance_; +} // namespace milvus +} // namespace proto +} // namespace milvus +PROTOBUF_NAMESPACE_OPEN +template<> ::milvus::proto::milvus::BoolResponse* Arena::CreateMaybeMessage<::milvus::proto::milvus::BoolResponse>(Arena*); +template<> ::milvus::proto::milvus::CollectionStatsRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::CollectionStatsRequest>(Arena*); +template<> ::milvus::proto::milvus::CollectionStatsResponse* Arena::CreateMaybeMessage<::milvus::proto::milvus::CollectionStatsResponse>(Arena*); +template<> ::milvus::proto::milvus::CreateCollectionRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::CreateCollectionRequest>(Arena*); +template<> ::milvus::proto::milvus::CreateIndexRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::CreateIndexRequest>(Arena*); +template<> ::milvus::proto::milvus::CreatePartitionRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::CreatePartitionRequest>(Arena*); +template<> ::milvus::proto::milvus::DescribeCollectionRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::DescribeCollectionRequest>(Arena*); +template<> ::milvus::proto::milvus::DescribeCollectionResponse* Arena::CreateMaybeMessage<::milvus::proto::milvus::DescribeCollectionResponse>(Arena*); +template<> ::milvus::proto::milvus::DescribeIndexRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::DescribeIndexRequest>(Arena*); +template<> ::milvus::proto::milvus::DescribeIndexResponse* Arena::CreateMaybeMessage<::milvus::proto::milvus::DescribeIndexResponse>(Arena*); +template<> ::milvus::proto::milvus::DescribeSegmentRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::DescribeSegmentRequest>(Arena*); +template<> ::milvus::proto::milvus::DescribeSegmentResponse* Arena::CreateMaybeMessage<::milvus::proto::milvus::DescribeSegmentResponse>(Arena*); +template<> ::milvus::proto::milvus::DropCollectionRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::DropCollectionRequest>(Arena*); +template<> ::milvus::proto::milvus::DropPartitionRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::DropPartitionRequest>(Arena*); +template<> ::milvus::proto::milvus::FlushRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::FlushRequest>(Arena*); +template<> ::milvus::proto::milvus::HasCollectionRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::HasCollectionRequest>(Arena*); +template<> ::milvus::proto::milvus::HasPartitionRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::HasPartitionRequest>(Arena*); +template<> ::milvus::proto::milvus::Hits* Arena::CreateMaybeMessage<::milvus::proto::milvus::Hits>(Arena*); +template<> ::milvus::proto::milvus::IndexDescription* Arena::CreateMaybeMessage<::milvus::proto::milvus::IndexDescription>(Arena*); +template<> ::milvus::proto::milvus::IndexStateRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::IndexStateRequest>(Arena*); +template<> ::milvus::proto::milvus::IndexStateResponse* Arena::CreateMaybeMessage<::milvus::proto::milvus::IndexStateResponse>(Arena*); +template<> ::milvus::proto::milvus::InsertRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::InsertRequest>(Arena*); +template<> ::milvus::proto::milvus::InsertResponse* Arena::CreateMaybeMessage<::milvus::proto::milvus::InsertResponse>(Arena*); +template<> ::milvus::proto::milvus::LoadCollectionRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::LoadCollectionRequest>(Arena*); +template<> ::milvus::proto::milvus::LoadPartitonRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::LoadPartitonRequest>(Arena*); +template<> ::milvus::proto::milvus::PartitionStatsRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::PartitionStatsRequest>(Arena*); +template<> ::milvus::proto::milvus::PartitionStatsResponse* Arena::CreateMaybeMessage<::milvus::proto::milvus::PartitionStatsResponse>(Arena*); +template<> ::milvus::proto::milvus::PlaceholderGroup* Arena::CreateMaybeMessage<::milvus::proto::milvus::PlaceholderGroup>(Arena*); +template<> ::milvus::proto::milvus::PlaceholderValue* Arena::CreateMaybeMessage<::milvus::proto::milvus::PlaceholderValue>(Arena*); +template<> ::milvus::proto::milvus::ReleaseCollectionRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::ReleaseCollectionRequest>(Arena*); +template<> ::milvus::proto::milvus::ReleasePartitionRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::ReleasePartitionRequest>(Arena*); +template<> ::milvus::proto::milvus::SearchRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::SearchRequest>(Arena*); +template<> ::milvus::proto::milvus::SearchResults* Arena::CreateMaybeMessage<::milvus::proto::milvus::SearchResults>(Arena*); +template<> ::milvus::proto::milvus::ShowCollectionRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::ShowCollectionRequest>(Arena*); +template<> ::milvus::proto::milvus::ShowCollectionResponse* Arena::CreateMaybeMessage<::milvus::proto::milvus::ShowCollectionResponse>(Arena*); +template<> ::milvus::proto::milvus::ShowPartitionRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::ShowPartitionRequest>(Arena*); +template<> ::milvus::proto::milvus::ShowPartitionResponse* Arena::CreateMaybeMessage<::milvus::proto::milvus::ShowPartitionResponse>(Arena*); +template<> ::milvus::proto::milvus::ShowSegmentRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::ShowSegmentRequest>(Arena*); +template<> ::milvus::proto::milvus::ShowSegmentResponse* Arena::CreateMaybeMessage<::milvus::proto::milvus::ShowSegmentResponse>(Arena*); +template<> ::milvus::proto::milvus::StringResponse* Arena::CreateMaybeMessage<::milvus::proto::milvus::StringResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace milvus { +namespace proto { +namespace milvus { + +enum PlaceholderType : int { + NONE = 0, + VECTOR_BINARY = 100, + VECTOR_FLOAT = 101, + PlaceholderType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), + PlaceholderType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() +}; +bool PlaceholderType_IsValid(int value); +constexpr PlaceholderType PlaceholderType_MIN = NONE; +constexpr PlaceholderType PlaceholderType_MAX = VECTOR_FLOAT; +constexpr int PlaceholderType_ARRAYSIZE = PlaceholderType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PlaceholderType_descriptor(); +template<typename T> +inline const std::string& PlaceholderType_Name(T enum_t_value) { + static_assert(::std::is_same<T, PlaceholderType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function PlaceholderType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + PlaceholderType_descriptor(), enum_t_value); +} +inline bool PlaceholderType_Parse( + const std::string& name, PlaceholderType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<PlaceholderType>( + PlaceholderType_descriptor(), name, value); +} +// =================================================================== + +class CreateCollectionRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.CreateCollectionRequest) */ { + public: + CreateCollectionRequest(); + virtual ~CreateCollectionRequest(); + + CreateCollectionRequest(const CreateCollectionRequest& from); + CreateCollectionRequest(CreateCollectionRequest&& from) noexcept + : CreateCollectionRequest() { + *this = ::std::move(from); + } + + inline CreateCollectionRequest& operator=(const CreateCollectionRequest& from) { + CopyFrom(from); + return *this; + } + inline CreateCollectionRequest& operator=(CreateCollectionRequest&& 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 CreateCollectionRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CreateCollectionRequest* internal_default_instance() { + return reinterpret_cast<const CreateCollectionRequest*>( + &_CreateCollectionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(CreateCollectionRequest& a, CreateCollectionRequest& b) { + a.Swap(&b); + } + inline void Swap(CreateCollectionRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline CreateCollectionRequest* New() const final { + return CreateMaybeMessage<CreateCollectionRequest>(nullptr); + } + + CreateCollectionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<CreateCollectionRequest>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const CreateCollectionRequest& from); + void MergeFrom(const CreateCollectionRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateCollectionRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.CreateCollectionRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDbNameFieldNumber = 2, + kCollectionNameFieldNumber = 3, + kSchemaFieldNumber = 4, + kBaseFieldNumber = 1, + }; + // string db_name = 2; + void clear_db_name(); + const std::string& db_name() const; + void set_db_name(const std::string& value); + void set_db_name(std::string&& value); + void set_db_name(const char* value); + void set_db_name(const char* value, size_t size); + std::string* mutable_db_name(); + std::string* release_db_name(); + void set_allocated_db_name(std::string* db_name); + + // string collection_name = 3; + 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); + + // bytes schema = 4; + void clear_schema(); + const std::string& schema() const; + void set_schema(const std::string& value); + void set_schema(std::string&& value); + void set_schema(const char* value); + void set_schema(const void* value, size_t size); + std::string* mutable_schema(); + std::string* release_schema(); + void set_allocated_schema(std::string* schema); + + // .milvus.proto.common.MsgBase base = 1; + bool has_base() const; + void clear_base(); + const ::milvus::proto::common::MsgBase& base() const; + ::milvus::proto::common::MsgBase* release_base(); + ::milvus::proto::common::MsgBase* mutable_base(); + void set_allocated_base(::milvus::proto::common::MsgBase* base); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.CreateCollectionRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_; + ::milvus::proto::common::MsgBase* base_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class DropCollectionRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.DropCollectionRequest) */ { + public: + DropCollectionRequest(); + virtual ~DropCollectionRequest(); + + DropCollectionRequest(const DropCollectionRequest& from); + DropCollectionRequest(DropCollectionRequest&& from) noexcept + : DropCollectionRequest() { + *this = ::std::move(from); + } + + inline DropCollectionRequest& operator=(const DropCollectionRequest& from) { + CopyFrom(from); + return *this; + } + inline DropCollectionRequest& operator=(DropCollectionRequest&& 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 DropCollectionRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DropCollectionRequest* internal_default_instance() { + return reinterpret_cast<const DropCollectionRequest*>( + &_DropCollectionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(DropCollectionRequest& a, DropCollectionRequest& b) { + a.Swap(&b); + } + inline void Swap(DropCollectionRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline DropCollectionRequest* New() const final { + return CreateMaybeMessage<DropCollectionRequest>(nullptr); + } + + DropCollectionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<DropCollectionRequest>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const DropCollectionRequest& from); + void MergeFrom(const DropCollectionRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DropCollectionRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.DropCollectionRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDbNameFieldNumber = 2, + kCollectionNameFieldNumber = 3, + kBaseFieldNumber = 1, + }; + // string db_name = 2; + void clear_db_name(); + const std::string& db_name() const; + void set_db_name(const std::string& value); + void set_db_name(std::string&& value); + void set_db_name(const char* value); + void set_db_name(const char* value, size_t size); + std::string* mutable_db_name(); + std::string* release_db_name(); + void set_allocated_db_name(std::string* db_name); + + // string collection_name = 3; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // .milvus.proto.common.MsgBase base = 1; + bool has_base() const; + void clear_base(); + const ::milvus::proto::common::MsgBase& base() const; + ::milvus::proto::common::MsgBase* release_base(); + ::milvus::proto::common::MsgBase* mutable_base(); + void set_allocated_base(::milvus::proto::common::MsgBase* base); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.DropCollectionRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::milvus::proto::common::MsgBase* base_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class HasCollectionRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.HasCollectionRequest) */ { + public: + HasCollectionRequest(); + virtual ~HasCollectionRequest(); + + HasCollectionRequest(const HasCollectionRequest& from); + HasCollectionRequest(HasCollectionRequest&& from) noexcept + : HasCollectionRequest() { + *this = ::std::move(from); + } + + inline HasCollectionRequest& operator=(const HasCollectionRequest& from) { + CopyFrom(from); + return *this; + } + inline HasCollectionRequest& operator=(HasCollectionRequest&& 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 HasCollectionRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HasCollectionRequest* internal_default_instance() { + return reinterpret_cast<const HasCollectionRequest*>( + &_HasCollectionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(HasCollectionRequest& a, HasCollectionRequest& b) { + a.Swap(&b); + } + inline void Swap(HasCollectionRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline HasCollectionRequest* New() const final { + return CreateMaybeMessage<HasCollectionRequest>(nullptr); + } + + HasCollectionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<HasCollectionRequest>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const HasCollectionRequest& from); + void MergeFrom(const HasCollectionRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HasCollectionRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.HasCollectionRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDbNameFieldNumber = 2, + kCollectionNameFieldNumber = 3, + kBaseFieldNumber = 1, + }; + // string db_name = 2; + void clear_db_name(); + const std::string& db_name() const; + void set_db_name(const std::string& value); + void set_db_name(std::string&& value); + void set_db_name(const char* value); + void set_db_name(const char* value, size_t size); + std::string* mutable_db_name(); + std::string* release_db_name(); + void set_allocated_db_name(std::string* db_name); + + // string collection_name = 3; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // .milvus.proto.common.MsgBase base = 1; + bool has_base() const; + void clear_base(); + const ::milvus::proto::common::MsgBase& base() const; + ::milvus::proto::common::MsgBase* release_base(); + ::milvus::proto::common::MsgBase* mutable_base(); + void set_allocated_base(::milvus::proto::common::MsgBase* base); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.HasCollectionRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::milvus::proto::common::MsgBase* base_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class BoolResponse : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.BoolResponse) */ { + public: + BoolResponse(); + virtual ~BoolResponse(); + + BoolResponse(const BoolResponse& from); + BoolResponse(BoolResponse&& from) noexcept + : BoolResponse() { + *this = ::std::move(from); + } + + inline BoolResponse& operator=(const BoolResponse& from) { + CopyFrom(from); + return *this; + } + inline BoolResponse& operator=(BoolResponse&& 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 BoolResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BoolResponse* internal_default_instance() { + return reinterpret_cast<const BoolResponse*>( + &_BoolResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(BoolResponse& a, BoolResponse& b) { + a.Swap(&b); + } + inline void Swap(BoolResponse* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline BoolResponse* New() const final { + return CreateMaybeMessage<BoolResponse>(nullptr); + } + + BoolResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<BoolResponse>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const BoolResponse& from); + void MergeFrom(const BoolResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BoolResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.BoolResponse"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kStatusFieldNumber = 1, + kValueFieldNumber = 2, + }; + // .milvus.proto.common.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::proto::common::Status& status() const; + ::milvus::proto::common::Status* release_status(); + ::milvus::proto::common::Status* mutable_status(); + void set_allocated_status(::milvus::proto::common::Status* status); + + // bool value = 2; + void clear_value(); + bool value() const; + void set_value(bool value); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.BoolResponse) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::milvus::proto::common::Status* status_; + bool value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class StringResponse : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.StringResponse) */ { + public: + StringResponse(); + virtual ~StringResponse(); + + StringResponse(const StringResponse& from); + StringResponse(StringResponse&& from) noexcept + : StringResponse() { + *this = ::std::move(from); + } + + inline StringResponse& operator=(const StringResponse& from) { + CopyFrom(from); + return *this; + } + inline StringResponse& operator=(StringResponse&& 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 StringResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StringResponse* internal_default_instance() { + return reinterpret_cast<const StringResponse*>( + &_StringResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(StringResponse& a, StringResponse& b) { + a.Swap(&b); + } + inline void Swap(StringResponse* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline StringResponse* New() const final { + return CreateMaybeMessage<StringResponse>(nullptr); + } + + StringResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<StringResponse>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const StringResponse& from); + void MergeFrom(const StringResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StringResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.StringResponse"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kValueFieldNumber = 2, + kStatusFieldNumber = 1, + }; + // string value = 2; + void clear_value(); + const std::string& value() const; + void set_value(const std::string& value); + void set_value(std::string&& value); + void set_value(const char* value); + void set_value(const char* value, size_t size); + std::string* mutable_value(); + std::string* release_value(); + void set_allocated_value(std::string* value); + + // .milvus.proto.common.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::proto::common::Status& status() const; + ::milvus::proto::common::Status* release_status(); + ::milvus::proto::common::Status* mutable_status(); + void set_allocated_status(::milvus::proto::common::Status* status); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.StringResponse) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_; + ::milvus::proto::common::Status* status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class DescribeCollectionRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.DescribeCollectionRequest) */ { + public: + DescribeCollectionRequest(); + virtual ~DescribeCollectionRequest(); + + DescribeCollectionRequest(const DescribeCollectionRequest& from); + DescribeCollectionRequest(DescribeCollectionRequest&& from) noexcept + : DescribeCollectionRequest() { + *this = ::std::move(from); + } + + inline DescribeCollectionRequest& operator=(const DescribeCollectionRequest& from) { + CopyFrom(from); + return *this; + } + inline DescribeCollectionRequest& operator=(DescribeCollectionRequest&& 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 DescribeCollectionRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DescribeCollectionRequest* internal_default_instance() { + return reinterpret_cast<const DescribeCollectionRequest*>( + &_DescribeCollectionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(DescribeCollectionRequest& a, DescribeCollectionRequest& b) { + a.Swap(&b); + } + inline void Swap(DescribeCollectionRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline DescribeCollectionRequest* New() const final { + return CreateMaybeMessage<DescribeCollectionRequest>(nullptr); + } + + DescribeCollectionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<DescribeCollectionRequest>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const DescribeCollectionRequest& from); + void MergeFrom(const DescribeCollectionRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DescribeCollectionRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.DescribeCollectionRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDbNameFieldNumber = 2, + kCollectionNameFieldNumber = 3, + kBaseFieldNumber = 1, + }; + // string db_name = 2; + void clear_db_name(); + const std::string& db_name() const; + void set_db_name(const std::string& value); + void set_db_name(std::string&& value); + void set_db_name(const char* value); + void set_db_name(const char* value, size_t size); + std::string* mutable_db_name(); + std::string* release_db_name(); + void set_allocated_db_name(std::string* db_name); + + // string collection_name = 3; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // .milvus.proto.common.MsgBase base = 1; + bool has_base() const; + void clear_base(); + const ::milvus::proto::common::MsgBase& base() const; + ::milvus::proto::common::MsgBase* release_base(); + ::milvus::proto::common::MsgBase* mutable_base(); + void set_allocated_base(::milvus::proto::common::MsgBase* base); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.DescribeCollectionRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::milvus::proto::common::MsgBase* base_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class DescribeCollectionResponse : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.DescribeCollectionResponse) */ { + public: + DescribeCollectionResponse(); + virtual ~DescribeCollectionResponse(); + + DescribeCollectionResponse(const DescribeCollectionResponse& from); + DescribeCollectionResponse(DescribeCollectionResponse&& from) noexcept + : DescribeCollectionResponse() { + *this = ::std::move(from); + } + + inline DescribeCollectionResponse& operator=(const DescribeCollectionResponse& from) { + CopyFrom(from); + return *this; + } + inline DescribeCollectionResponse& operator=(DescribeCollectionResponse&& 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 DescribeCollectionResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DescribeCollectionResponse* internal_default_instance() { + return reinterpret_cast<const DescribeCollectionResponse*>( + &_DescribeCollectionResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(DescribeCollectionResponse& a, DescribeCollectionResponse& b) { + a.Swap(&b); + } + inline void Swap(DescribeCollectionResponse* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline DescribeCollectionResponse* New() const final { + return CreateMaybeMessage<DescribeCollectionResponse>(nullptr); + } + + DescribeCollectionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<DescribeCollectionResponse>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const DescribeCollectionResponse& from); + void MergeFrom(const DescribeCollectionResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DescribeCollectionResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.DescribeCollectionResponse"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kStatusFieldNumber = 1, + kSchemaFieldNumber = 2, + }; + // .milvus.proto.common.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::proto::common::Status& status() const; + ::milvus::proto::common::Status* release_status(); + ::milvus::proto::common::Status* mutable_status(); + void set_allocated_status(::milvus::proto::common::Status* status); + + // .milvus.proto.schema.CollectionSchema schema = 2; + bool has_schema() const; + void clear_schema(); + const ::milvus::proto::schema::CollectionSchema& schema() const; + ::milvus::proto::schema::CollectionSchema* release_schema(); + ::milvus::proto::schema::CollectionSchema* mutable_schema(); + void set_allocated_schema(::milvus::proto::schema::CollectionSchema* schema); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.DescribeCollectionResponse) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::milvus::proto::common::Status* status_; + ::milvus::proto::schema::CollectionSchema* schema_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class LoadCollectionRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.LoadCollectionRequest) */ { + public: + LoadCollectionRequest(); + virtual ~LoadCollectionRequest(); + + LoadCollectionRequest(const LoadCollectionRequest& from); + LoadCollectionRequest(LoadCollectionRequest&& from) noexcept + : LoadCollectionRequest() { + *this = ::std::move(from); + } + + inline LoadCollectionRequest& operator=(const LoadCollectionRequest& from) { + CopyFrom(from); + return *this; + } + inline LoadCollectionRequest& operator=(LoadCollectionRequest&& 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 LoadCollectionRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LoadCollectionRequest* internal_default_instance() { + return reinterpret_cast<const LoadCollectionRequest*>( + &_LoadCollectionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(LoadCollectionRequest& a, LoadCollectionRequest& b) { + a.Swap(&b); + } + inline void Swap(LoadCollectionRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline LoadCollectionRequest* New() const final { + return CreateMaybeMessage<LoadCollectionRequest>(nullptr); + } + + LoadCollectionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<LoadCollectionRequest>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const LoadCollectionRequest& from); + void MergeFrom(const LoadCollectionRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LoadCollectionRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.LoadCollectionRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDbNameFieldNumber = 2, + kCollectionNameFieldNumber = 3, + kBaseFieldNumber = 1, + }; + // string db_name = 2; + void clear_db_name(); + const std::string& db_name() const; + void set_db_name(const std::string& value); + void set_db_name(std::string&& value); + void set_db_name(const char* value); + void set_db_name(const char* value, size_t size); + std::string* mutable_db_name(); + std::string* release_db_name(); + void set_allocated_db_name(std::string* db_name); + + // string collection_name = 3; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // .milvus.proto.common.MsgBase base = 1; + bool has_base() const; + void clear_base(); + const ::milvus::proto::common::MsgBase& base() const; + ::milvus::proto::common::MsgBase* release_base(); + ::milvus::proto::common::MsgBase* mutable_base(); + void set_allocated_base(::milvus::proto::common::MsgBase* base); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.LoadCollectionRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::milvus::proto::common::MsgBase* base_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class ReleaseCollectionRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.ReleaseCollectionRequest) */ { + public: + ReleaseCollectionRequest(); + virtual ~ReleaseCollectionRequest(); + + ReleaseCollectionRequest(const ReleaseCollectionRequest& from); + ReleaseCollectionRequest(ReleaseCollectionRequest&& from) noexcept + : ReleaseCollectionRequest() { + *this = ::std::move(from); + } + + inline ReleaseCollectionRequest& operator=(const ReleaseCollectionRequest& from) { + CopyFrom(from); + return *this; + } + inline ReleaseCollectionRequest& operator=(ReleaseCollectionRequest&& 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 ReleaseCollectionRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ReleaseCollectionRequest* internal_default_instance() { + return reinterpret_cast<const ReleaseCollectionRequest*>( + &_ReleaseCollectionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(ReleaseCollectionRequest& a, ReleaseCollectionRequest& b) { + a.Swap(&b); + } + inline void Swap(ReleaseCollectionRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ReleaseCollectionRequest* New() const final { + return CreateMaybeMessage<ReleaseCollectionRequest>(nullptr); + } + + ReleaseCollectionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<ReleaseCollectionRequest>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ReleaseCollectionRequest& from); + void MergeFrom(const ReleaseCollectionRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ReleaseCollectionRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.ReleaseCollectionRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDbNameFieldNumber = 2, + kCollectionNameFieldNumber = 3, + kBaseFieldNumber = 1, + }; + // string db_name = 2; + void clear_db_name(); + const std::string& db_name() const; + void set_db_name(const std::string& value); + void set_db_name(std::string&& value); + void set_db_name(const char* value); + void set_db_name(const char* value, size_t size); + std::string* mutable_db_name(); + std::string* release_db_name(); + void set_allocated_db_name(std::string* db_name); + + // string collection_name = 3; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // .milvus.proto.common.MsgBase base = 1; + bool has_base() const; + void clear_base(); + const ::milvus::proto::common::MsgBase& base() const; + ::milvus::proto::common::MsgBase* release_base(); + ::milvus::proto::common::MsgBase* mutable_base(); + void set_allocated_base(::milvus::proto::common::MsgBase* base); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.ReleaseCollectionRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::milvus::proto::common::MsgBase* base_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class CollectionStatsRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.CollectionStatsRequest) */ { + public: + CollectionStatsRequest(); + virtual ~CollectionStatsRequest(); + + CollectionStatsRequest(const CollectionStatsRequest& from); + CollectionStatsRequest(CollectionStatsRequest&& from) noexcept + : CollectionStatsRequest() { + *this = ::std::move(from); + } + + inline CollectionStatsRequest& operator=(const CollectionStatsRequest& from) { + CopyFrom(from); + return *this; + } + inline CollectionStatsRequest& operator=(CollectionStatsRequest&& 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 CollectionStatsRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CollectionStatsRequest* internal_default_instance() { + return reinterpret_cast<const CollectionStatsRequest*>( + &_CollectionStatsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(CollectionStatsRequest& a, CollectionStatsRequest& b) { + a.Swap(&b); + } + inline void Swap(CollectionStatsRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline CollectionStatsRequest* New() const final { + return CreateMaybeMessage<CollectionStatsRequest>(nullptr); + } + + CollectionStatsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<CollectionStatsRequest>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const CollectionStatsRequest& from); + void MergeFrom(const CollectionStatsRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CollectionStatsRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.CollectionStatsRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDbNameFieldNumber = 2, + kCollectionNameFieldNumber = 3, + kBaseFieldNumber = 1, + }; + // string db_name = 2; + void clear_db_name(); + const std::string& db_name() const; + void set_db_name(const std::string& value); + void set_db_name(std::string&& value); + void set_db_name(const char* value); + void set_db_name(const char* value, size_t size); + std::string* mutable_db_name(); + std::string* release_db_name(); + void set_allocated_db_name(std::string* db_name); + + // string collection_name = 3; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // .milvus.proto.common.MsgBase base = 1; + bool has_base() const; + void clear_base(); + const ::milvus::proto::common::MsgBase& base() const; + ::milvus::proto::common::MsgBase* release_base(); + ::milvus::proto::common::MsgBase* mutable_base(); + void set_allocated_base(::milvus::proto::common::MsgBase* base); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.CollectionStatsRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::milvus::proto::common::MsgBase* base_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class CollectionStatsResponse : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.CollectionStatsResponse) */ { + public: + CollectionStatsResponse(); + virtual ~CollectionStatsResponse(); + + CollectionStatsResponse(const CollectionStatsResponse& from); + CollectionStatsResponse(CollectionStatsResponse&& from) noexcept + : CollectionStatsResponse() { + *this = ::std::move(from); + } + + inline CollectionStatsResponse& operator=(const CollectionStatsResponse& from) { + CopyFrom(from); + return *this; + } + inline CollectionStatsResponse& operator=(CollectionStatsResponse&& 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 CollectionStatsResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CollectionStatsResponse* internal_default_instance() { + return reinterpret_cast<const CollectionStatsResponse*>( + &_CollectionStatsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(CollectionStatsResponse& a, CollectionStatsResponse& b) { + a.Swap(&b); + } + inline void Swap(CollectionStatsResponse* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline CollectionStatsResponse* New() const final { + return CreateMaybeMessage<CollectionStatsResponse>(nullptr); + } + + CollectionStatsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<CollectionStatsResponse>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const CollectionStatsResponse& from); + void MergeFrom(const CollectionStatsResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CollectionStatsResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.CollectionStatsResponse"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kStatsFieldNumber = 2, + kStatusFieldNumber = 1, + }; + // repeated .milvus.proto.common.KeyValuePair stats = 2; + int stats_size() const; + void clear_stats(); + ::milvus::proto::common::KeyValuePair* mutable_stats(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >* + mutable_stats(); + const ::milvus::proto::common::KeyValuePair& stats(int index) const; + ::milvus::proto::common::KeyValuePair* add_stats(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >& + stats() const; + + // .milvus.proto.common.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::proto::common::Status& status() const; + ::milvus::proto::common::Status* release_status(); + ::milvus::proto::common::Status* mutable_status(); + void set_allocated_status(::milvus::proto::common::Status* status); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.CollectionStatsResponse) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair > stats_; + ::milvus::proto::common::Status* status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class ShowCollectionRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.ShowCollectionRequest) */ { + public: + ShowCollectionRequest(); + virtual ~ShowCollectionRequest(); + + ShowCollectionRequest(const ShowCollectionRequest& from); + ShowCollectionRequest(ShowCollectionRequest&& from) noexcept + : ShowCollectionRequest() { + *this = ::std::move(from); + } + + inline ShowCollectionRequest& operator=(const ShowCollectionRequest& from) { + CopyFrom(from); + return *this; + } + inline ShowCollectionRequest& operator=(ShowCollectionRequest&& 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 ShowCollectionRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ShowCollectionRequest* internal_default_instance() { + return reinterpret_cast<const ShowCollectionRequest*>( + &_ShowCollectionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(ShowCollectionRequest& a, ShowCollectionRequest& b) { + a.Swap(&b); + } + inline void Swap(ShowCollectionRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ShowCollectionRequest* New() const final { + return CreateMaybeMessage<ShowCollectionRequest>(nullptr); + } + + ShowCollectionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<ShowCollectionRequest>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ShowCollectionRequest& from); + void MergeFrom(const ShowCollectionRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ShowCollectionRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.ShowCollectionRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDbNameFieldNumber = 2, + kBaseFieldNumber = 1, + }; + // string db_name = 2; + void clear_db_name(); + const std::string& db_name() const; + void set_db_name(const std::string& value); + void set_db_name(std::string&& value); + void set_db_name(const char* value); + void set_db_name(const char* value, size_t size); + std::string* mutable_db_name(); + std::string* release_db_name(); + void set_allocated_db_name(std::string* db_name); + + // .milvus.proto.common.MsgBase base = 1; + bool has_base() const; + void clear_base(); + const ::milvus::proto::common::MsgBase& base() const; + ::milvus::proto::common::MsgBase* release_base(); + ::milvus::proto::common::MsgBase* mutable_base(); + void set_allocated_base(::milvus::proto::common::MsgBase* base); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.ShowCollectionRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_name_; + ::milvus::proto::common::MsgBase* base_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class ShowCollectionResponse : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.ShowCollectionResponse) */ { + public: + ShowCollectionResponse(); + virtual ~ShowCollectionResponse(); + + ShowCollectionResponse(const ShowCollectionResponse& from); + ShowCollectionResponse(ShowCollectionResponse&& from) noexcept + : ShowCollectionResponse() { + *this = ::std::move(from); + } + + inline ShowCollectionResponse& operator=(const ShowCollectionResponse& from) { + CopyFrom(from); + return *this; + } + inline ShowCollectionResponse& operator=(ShowCollectionResponse&& 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 ShowCollectionResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ShowCollectionResponse* internal_default_instance() { + return reinterpret_cast<const ShowCollectionResponse*>( + &_ShowCollectionResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(ShowCollectionResponse& a, ShowCollectionResponse& b) { + a.Swap(&b); + } + inline void Swap(ShowCollectionResponse* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ShowCollectionResponse* New() const final { + return CreateMaybeMessage<ShowCollectionResponse>(nullptr); + } + + ShowCollectionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<ShowCollectionResponse>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ShowCollectionResponse& from); + void MergeFrom(const ShowCollectionResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ShowCollectionResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.ShowCollectionResponse"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCollectionNamesFieldNumber = 2, + kStatusFieldNumber = 1, + }; + // repeated string collection_names = 2; + int collection_names_size() const; + void clear_collection_names(); + const std::string& collection_names(int index) const; + std::string* mutable_collection_names(int index); + void set_collection_names(int index, const std::string& value); + void set_collection_names(int index, std::string&& value); + void set_collection_names(int index, const char* value); + void set_collection_names(int index, const char* value, size_t size); + std::string* add_collection_names(); + void add_collection_names(const std::string& value); + void add_collection_names(std::string&& value); + void add_collection_names(const char* value); + void add_collection_names(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& collection_names() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_collection_names(); + + // .milvus.proto.common.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::proto::common::Status& status() const; + ::milvus::proto::common::Status* release_status(); + ::milvus::proto::common::Status* mutable_status(); + void set_allocated_status(::milvus::proto::common::Status* status); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.ShowCollectionResponse) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> collection_names_; + ::milvus::proto::common::Status* status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class CreatePartitionRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.CreatePartitionRequest) */ { + public: + CreatePartitionRequest(); + virtual ~CreatePartitionRequest(); + + CreatePartitionRequest(const CreatePartitionRequest& from); + CreatePartitionRequest(CreatePartitionRequest&& from) noexcept + : CreatePartitionRequest() { + *this = ::std::move(from); + } + + inline CreatePartitionRequest& operator=(const CreatePartitionRequest& from) { + CopyFrom(from); + return *this; + } + inline CreatePartitionRequest& operator=(CreatePartitionRequest&& 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 CreatePartitionRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CreatePartitionRequest* internal_default_instance() { + return reinterpret_cast<const CreatePartitionRequest*>( + &_CreatePartitionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(CreatePartitionRequest& a, CreatePartitionRequest& b) { + a.Swap(&b); + } + inline void Swap(CreatePartitionRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline CreatePartitionRequest* New() const final { + return CreateMaybeMessage<CreatePartitionRequest>(nullptr); + } + + CreatePartitionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<CreatePartitionRequest>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const CreatePartitionRequest& from); + void MergeFrom(const CreatePartitionRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreatePartitionRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.CreatePartitionRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDbNameFieldNumber = 2, + kCollectionNameFieldNumber = 3, + kPartitionNameFieldNumber = 4, + kBaseFieldNumber = 1, + }; + // string db_name = 2; + void clear_db_name(); + const std::string& db_name() const; + void set_db_name(const std::string& value); + void set_db_name(std::string&& value); + void set_db_name(const char* value); + void set_db_name(const char* value, size_t size); + std::string* mutable_db_name(); + std::string* release_db_name(); + void set_allocated_db_name(std::string* db_name); + + // string collection_name = 3; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // string partition_name = 4; + void clear_partition_name(); + const std::string& partition_name() const; + void set_partition_name(const std::string& value); + void set_partition_name(std::string&& value); + void set_partition_name(const char* value); + void set_partition_name(const char* value, size_t size); + std::string* mutable_partition_name(); + std::string* release_partition_name(); + void set_allocated_partition_name(std::string* partition_name); + + // .milvus.proto.common.MsgBase base = 1; + bool has_base() const; + void clear_base(); + const ::milvus::proto::common::MsgBase& base() const; + ::milvus::proto::common::MsgBase* release_base(); + ::milvus::proto::common::MsgBase* mutable_base(); + void set_allocated_base(::milvus::proto::common::MsgBase* base); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.CreatePartitionRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr partition_name_; + ::milvus::proto::common::MsgBase* base_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class DropPartitionRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.DropPartitionRequest) */ { + public: + DropPartitionRequest(); + virtual ~DropPartitionRequest(); + + DropPartitionRequest(const DropPartitionRequest& from); + DropPartitionRequest(DropPartitionRequest&& from) noexcept + : DropPartitionRequest() { + *this = ::std::move(from); + } + + inline DropPartitionRequest& operator=(const DropPartitionRequest& from) { + CopyFrom(from); + return *this; + } + inline DropPartitionRequest& operator=(DropPartitionRequest&& 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 DropPartitionRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DropPartitionRequest* internal_default_instance() { + return reinterpret_cast<const DropPartitionRequest*>( + &_DropPartitionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(DropPartitionRequest& a, DropPartitionRequest& b) { + a.Swap(&b); + } + inline void Swap(DropPartitionRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline DropPartitionRequest* New() const final { + return CreateMaybeMessage<DropPartitionRequest>(nullptr); + } + + DropPartitionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<DropPartitionRequest>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const DropPartitionRequest& from); + void MergeFrom(const DropPartitionRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DropPartitionRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.DropPartitionRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDbNameFieldNumber = 2, + kCollectionNameFieldNumber = 3, + kPartitionNameFieldNumber = 4, + kBaseFieldNumber = 1, + }; + // string db_name = 2; + void clear_db_name(); + const std::string& db_name() const; + void set_db_name(const std::string& value); + void set_db_name(std::string&& value); + void set_db_name(const char* value); + void set_db_name(const char* value, size_t size); + std::string* mutable_db_name(); + std::string* release_db_name(); + void set_allocated_db_name(std::string* db_name); + + // string collection_name = 3; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // string partition_name = 4; + void clear_partition_name(); + const std::string& partition_name() const; + void set_partition_name(const std::string& value); + void set_partition_name(std::string&& value); + void set_partition_name(const char* value); + void set_partition_name(const char* value, size_t size); + std::string* mutable_partition_name(); + std::string* release_partition_name(); + void set_allocated_partition_name(std::string* partition_name); + + // .milvus.proto.common.MsgBase base = 1; + bool has_base() const; + void clear_base(); + const ::milvus::proto::common::MsgBase& base() const; + ::milvus::proto::common::MsgBase* release_base(); + ::milvus::proto::common::MsgBase* mutable_base(); + void set_allocated_base(::milvus::proto::common::MsgBase* base); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.DropPartitionRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr partition_name_; + ::milvus::proto::common::MsgBase* base_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class HasPartitionRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.HasPartitionRequest) */ { + public: + HasPartitionRequest(); + virtual ~HasPartitionRequest(); + + HasPartitionRequest(const HasPartitionRequest& from); + HasPartitionRequest(HasPartitionRequest&& from) noexcept + : HasPartitionRequest() { + *this = ::std::move(from); + } + + inline HasPartitionRequest& operator=(const HasPartitionRequest& from) { + CopyFrom(from); + return *this; + } + inline HasPartitionRequest& operator=(HasPartitionRequest&& 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 HasPartitionRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HasPartitionRequest* internal_default_instance() { + return reinterpret_cast<const HasPartitionRequest*>( + &_HasPartitionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + friend void swap(HasPartitionRequest& a, HasPartitionRequest& b) { + a.Swap(&b); + } + inline void Swap(HasPartitionRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline HasPartitionRequest* New() const final { + return CreateMaybeMessage<HasPartitionRequest>(nullptr); + } + + HasPartitionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<HasPartitionRequest>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const HasPartitionRequest& from); + void MergeFrom(const HasPartitionRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HasPartitionRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.HasPartitionRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDbNameFieldNumber = 2, + kCollectionNameFieldNumber = 3, + kPartitionNameFieldNumber = 4, + kBaseFieldNumber = 1, + }; + // string db_name = 2; + void clear_db_name(); + const std::string& db_name() const; + void set_db_name(const std::string& value); + void set_db_name(std::string&& value); + void set_db_name(const char* value); + void set_db_name(const char* value, size_t size); + std::string* mutable_db_name(); + std::string* release_db_name(); + void set_allocated_db_name(std::string* db_name); + + // string collection_name = 3; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // string partition_name = 4; + void clear_partition_name(); + const std::string& partition_name() const; + void set_partition_name(const std::string& value); + void set_partition_name(std::string&& value); + void set_partition_name(const char* value); + void set_partition_name(const char* value, size_t size); + std::string* mutable_partition_name(); + std::string* release_partition_name(); + void set_allocated_partition_name(std::string* partition_name); + + // .milvus.proto.common.MsgBase base = 1; + bool has_base() const; + void clear_base(); + const ::milvus::proto::common::MsgBase& base() const; + ::milvus::proto::common::MsgBase* release_base(); + ::milvus::proto::common::MsgBase* mutable_base(); + void set_allocated_base(::milvus::proto::common::MsgBase* base); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.HasPartitionRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr partition_name_; + ::milvus::proto::common::MsgBase* base_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class LoadPartitonRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.LoadPartitonRequest) */ { + public: + LoadPartitonRequest(); + virtual ~LoadPartitonRequest(); + + LoadPartitonRequest(const LoadPartitonRequest& from); + LoadPartitonRequest(LoadPartitonRequest&& from) noexcept + : LoadPartitonRequest() { + *this = ::std::move(from); + } + + inline LoadPartitonRequest& operator=(const LoadPartitonRequest& from) { + CopyFrom(from); + return *this; + } + inline LoadPartitonRequest& operator=(LoadPartitonRequest&& 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 LoadPartitonRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LoadPartitonRequest* internal_default_instance() { + return reinterpret_cast<const LoadPartitonRequest*>( + &_LoadPartitonRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + friend void swap(LoadPartitonRequest& a, LoadPartitonRequest& b) { + a.Swap(&b); + } + inline void Swap(LoadPartitonRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline LoadPartitonRequest* New() const final { + return CreateMaybeMessage<LoadPartitonRequest>(nullptr); + } + + LoadPartitonRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<LoadPartitonRequest>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const LoadPartitonRequest& from); + void MergeFrom(const LoadPartitonRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LoadPartitonRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.LoadPartitonRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPartitionNamesFieldNumber = 4, + kDbNameFieldNumber = 2, + kCollectionNameFieldNumber = 3, + kBaseFieldNumber = 1, + }; + // repeated string partition_names = 4; + int partition_names_size() const; + void clear_partition_names(); + const std::string& partition_names(int index) const; + std::string* mutable_partition_names(int index); + void set_partition_names(int index, const std::string& value); + void set_partition_names(int index, std::string&& value); + void set_partition_names(int index, const char* value); + void set_partition_names(int index, const char* value, size_t size); + std::string* add_partition_names(); + void add_partition_names(const std::string& value); + void add_partition_names(std::string&& value); + void add_partition_names(const char* value); + void add_partition_names(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& partition_names() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_partition_names(); + + // string db_name = 2; + void clear_db_name(); + const std::string& db_name() const; + void set_db_name(const std::string& value); + void set_db_name(std::string&& value); + void set_db_name(const char* value); + void set_db_name(const char* value, size_t size); + std::string* mutable_db_name(); + std::string* release_db_name(); + void set_allocated_db_name(std::string* db_name); + + // string collection_name = 3; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // .milvus.proto.common.MsgBase base = 1; + bool has_base() const; + void clear_base(); + const ::milvus::proto::common::MsgBase& base() const; + ::milvus::proto::common::MsgBase* release_base(); + ::milvus::proto::common::MsgBase* mutable_base(); + void set_allocated_base(::milvus::proto::common::MsgBase* base); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.LoadPartitonRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> partition_names_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::milvus::proto::common::MsgBase* base_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class ReleasePartitionRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.ReleasePartitionRequest) */ { + public: + ReleasePartitionRequest(); + virtual ~ReleasePartitionRequest(); + + ReleasePartitionRequest(const ReleasePartitionRequest& from); + ReleasePartitionRequest(ReleasePartitionRequest&& from) noexcept + : ReleasePartitionRequest() { + *this = ::std::move(from); + } + + inline ReleasePartitionRequest& operator=(const ReleasePartitionRequest& from) { + CopyFrom(from); + return *this; + } + inline ReleasePartitionRequest& operator=(ReleasePartitionRequest&& 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 ReleasePartitionRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ReleasePartitionRequest* internal_default_instance() { + return reinterpret_cast<const ReleasePartitionRequest*>( + &_ReleasePartitionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + friend void swap(ReleasePartitionRequest& a, ReleasePartitionRequest& b) { + a.Swap(&b); + } + inline void Swap(ReleasePartitionRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ReleasePartitionRequest* New() const final { + return CreateMaybeMessage<ReleasePartitionRequest>(nullptr); + } + + ReleasePartitionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<ReleasePartitionRequest>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ReleasePartitionRequest& from); + void MergeFrom(const ReleasePartitionRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ReleasePartitionRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.ReleasePartitionRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPartitionNamesFieldNumber = 4, + kDbNameFieldNumber = 2, + kCollectionNameFieldNumber = 3, + kBaseFieldNumber = 1, + }; + // repeated string partition_names = 4; + int partition_names_size() const; + void clear_partition_names(); + const std::string& partition_names(int index) const; + std::string* mutable_partition_names(int index); + void set_partition_names(int index, const std::string& value); + void set_partition_names(int index, std::string&& value); + void set_partition_names(int index, const char* value); + void set_partition_names(int index, const char* value, size_t size); + std::string* add_partition_names(); + void add_partition_names(const std::string& value); + void add_partition_names(std::string&& value); + void add_partition_names(const char* value); + void add_partition_names(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& partition_names() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_partition_names(); + + // string db_name = 2; + void clear_db_name(); + const std::string& db_name() const; + void set_db_name(const std::string& value); + void set_db_name(std::string&& value); + void set_db_name(const char* value); + void set_db_name(const char* value, size_t size); + std::string* mutable_db_name(); + std::string* release_db_name(); + void set_allocated_db_name(std::string* db_name); + + // string collection_name = 3; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // .milvus.proto.common.MsgBase base = 1; + bool has_base() const; + void clear_base(); + const ::milvus::proto::common::MsgBase& base() const; + ::milvus::proto::common::MsgBase* release_base(); + ::milvus::proto::common::MsgBase* mutable_base(); + void set_allocated_base(::milvus::proto::common::MsgBase* base); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.ReleasePartitionRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> partition_names_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::milvus::proto::common::MsgBase* base_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class PartitionStatsRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.PartitionStatsRequest) */ { + public: + PartitionStatsRequest(); + virtual ~PartitionStatsRequest(); + + PartitionStatsRequest(const PartitionStatsRequest& from); + PartitionStatsRequest(PartitionStatsRequest&& from) noexcept + : PartitionStatsRequest() { + *this = ::std::move(from); + } + + inline PartitionStatsRequest& operator=(const PartitionStatsRequest& from) { + CopyFrom(from); + return *this; + } + inline PartitionStatsRequest& operator=(PartitionStatsRequest&& 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 PartitionStatsRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PartitionStatsRequest* internal_default_instance() { + return reinterpret_cast<const PartitionStatsRequest*>( + &_PartitionStatsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + friend void swap(PartitionStatsRequest& a, PartitionStatsRequest& b) { + a.Swap(&b); + } + inline void Swap(PartitionStatsRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline PartitionStatsRequest* New() const final { + return CreateMaybeMessage<PartitionStatsRequest>(nullptr); + } + + PartitionStatsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<PartitionStatsRequest>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const PartitionStatsRequest& from); + void MergeFrom(const PartitionStatsRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PartitionStatsRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.PartitionStatsRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDbNameFieldNumber = 2, + kCollectionNameFieldNumber = 3, + kPartitionNameFieldNumber = 4, + kBaseFieldNumber = 1, + }; + // string db_name = 2; + void clear_db_name(); + const std::string& db_name() const; + void set_db_name(const std::string& value); + void set_db_name(std::string&& value); + void set_db_name(const char* value); + void set_db_name(const char* value, size_t size); + std::string* mutable_db_name(); + std::string* release_db_name(); + void set_allocated_db_name(std::string* db_name); + + // string collection_name = 3; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // string partition_name = 4; + void clear_partition_name(); + const std::string& partition_name() const; + void set_partition_name(const std::string& value); + void set_partition_name(std::string&& value); + void set_partition_name(const char* value); + void set_partition_name(const char* value, size_t size); + std::string* mutable_partition_name(); + std::string* release_partition_name(); + void set_allocated_partition_name(std::string* partition_name); + + // .milvus.proto.common.MsgBase base = 1; + bool has_base() const; + void clear_base(); + const ::milvus::proto::common::MsgBase& base() const; + ::milvus::proto::common::MsgBase* release_base(); + ::milvus::proto::common::MsgBase* mutable_base(); + void set_allocated_base(::milvus::proto::common::MsgBase* base); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.PartitionStatsRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr partition_name_; + ::milvus::proto::common::MsgBase* base_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class PartitionStatsResponse : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.PartitionStatsResponse) */ { + public: + PartitionStatsResponse(); + virtual ~PartitionStatsResponse(); + + PartitionStatsResponse(const PartitionStatsResponse& from); + PartitionStatsResponse(PartitionStatsResponse&& from) noexcept + : PartitionStatsResponse() { + *this = ::std::move(from); + } + + inline PartitionStatsResponse& operator=(const PartitionStatsResponse& from) { + CopyFrom(from); + return *this; + } + inline PartitionStatsResponse& operator=(PartitionStatsResponse&& 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 PartitionStatsResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PartitionStatsResponse* internal_default_instance() { + return reinterpret_cast<const PartitionStatsResponse*>( + &_PartitionStatsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + friend void swap(PartitionStatsResponse& a, PartitionStatsResponse& b) { + a.Swap(&b); + } + inline void Swap(PartitionStatsResponse* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline PartitionStatsResponse* New() const final { + return CreateMaybeMessage<PartitionStatsResponse>(nullptr); + } + + PartitionStatsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<PartitionStatsResponse>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const PartitionStatsResponse& from); + void MergeFrom(const PartitionStatsResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PartitionStatsResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.PartitionStatsResponse"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kStatsFieldNumber = 2, + kStatusFieldNumber = 1, + }; + // repeated .milvus.proto.common.KeyValuePair stats = 2; + int stats_size() const; + void clear_stats(); + ::milvus::proto::common::KeyValuePair* mutable_stats(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >* + mutable_stats(); + const ::milvus::proto::common::KeyValuePair& stats(int index) const; + ::milvus::proto::common::KeyValuePair* add_stats(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >& + stats() const; + + // .milvus.proto.common.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::proto::common::Status& status() const; + ::milvus::proto::common::Status* release_status(); + ::milvus::proto::common::Status* mutable_status(); + void set_allocated_status(::milvus::proto::common::Status* status); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.PartitionStatsResponse) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair > stats_; + ::milvus::proto::common::Status* status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class ShowPartitionRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.ShowPartitionRequest) */ { + public: + ShowPartitionRequest(); + virtual ~ShowPartitionRequest(); + + ShowPartitionRequest(const ShowPartitionRequest& from); + ShowPartitionRequest(ShowPartitionRequest&& from) noexcept + : ShowPartitionRequest() { + *this = ::std::move(from); + } + + inline ShowPartitionRequest& operator=(const ShowPartitionRequest& from) { + CopyFrom(from); + return *this; + } + inline ShowPartitionRequest& operator=(ShowPartitionRequest&& 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 ShowPartitionRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ShowPartitionRequest* internal_default_instance() { + return reinterpret_cast<const ShowPartitionRequest*>( + &_ShowPartitionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 20; + + friend void swap(ShowPartitionRequest& a, ShowPartitionRequest& b) { + a.Swap(&b); + } + inline void Swap(ShowPartitionRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ShowPartitionRequest* New() const final { + return CreateMaybeMessage<ShowPartitionRequest>(nullptr); + } + + ShowPartitionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<ShowPartitionRequest>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ShowPartitionRequest& from); + void MergeFrom(const ShowPartitionRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ShowPartitionRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.ShowPartitionRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDbNameFieldNumber = 2, + kCollectionNameFieldNumber = 3, + kBaseFieldNumber = 1, + kCollectionIDFieldNumber = 4, + }; + // string db_name = 2; + void clear_db_name(); + const std::string& db_name() const; + void set_db_name(const std::string& value); + void set_db_name(std::string&& value); + void set_db_name(const char* value); + void set_db_name(const char* value, size_t size); + std::string* mutable_db_name(); + std::string* release_db_name(); + void set_allocated_db_name(std::string* db_name); + + // string collection_name = 3; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // .milvus.proto.common.MsgBase base = 1; + bool has_base() const; + void clear_base(); + const ::milvus::proto::common::MsgBase& base() const; + ::milvus::proto::common::MsgBase* release_base(); + ::milvus::proto::common::MsgBase* mutable_base(); + void set_allocated_base(::milvus::proto::common::MsgBase* base); + + // int64 collectionID = 4; + void clear_collectionid(); + ::PROTOBUF_NAMESPACE_ID::int64 collectionid() const; + void set_collectionid(::PROTOBUF_NAMESPACE_ID::int64 value); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.ShowPartitionRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::milvus::proto::common::MsgBase* base_; + ::PROTOBUF_NAMESPACE_ID::int64 collectionid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class ShowPartitionResponse : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.ShowPartitionResponse) */ { + public: + ShowPartitionResponse(); + virtual ~ShowPartitionResponse(); + + ShowPartitionResponse(const ShowPartitionResponse& from); + ShowPartitionResponse(ShowPartitionResponse&& from) noexcept + : ShowPartitionResponse() { + *this = ::std::move(from); + } + + inline ShowPartitionResponse& operator=(const ShowPartitionResponse& from) { + CopyFrom(from); + return *this; + } + inline ShowPartitionResponse& operator=(ShowPartitionResponse&& 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 ShowPartitionResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ShowPartitionResponse* internal_default_instance() { + return reinterpret_cast<const ShowPartitionResponse*>( + &_ShowPartitionResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 21; + + friend void swap(ShowPartitionResponse& a, ShowPartitionResponse& b) { + a.Swap(&b); + } + inline void Swap(ShowPartitionResponse* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ShowPartitionResponse* New() const final { + return CreateMaybeMessage<ShowPartitionResponse>(nullptr); + } + + ShowPartitionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<ShowPartitionResponse>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ShowPartitionResponse& from); + void MergeFrom(const ShowPartitionResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ShowPartitionResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.ShowPartitionResponse"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPartitionNamesFieldNumber = 2, + kPartitionIDsFieldNumber = 3, + kStatusFieldNumber = 1, + }; + // repeated string partition_names = 2; + int partition_names_size() const; + void clear_partition_names(); + const std::string& partition_names(int index) const; + std::string* mutable_partition_names(int index); + void set_partition_names(int index, const std::string& value); + void set_partition_names(int index, std::string&& value); + void set_partition_names(int index, const char* value); + void set_partition_names(int index, const char* value, size_t size); + std::string* add_partition_names(); + void add_partition_names(const std::string& value); + void add_partition_names(std::string&& value); + void add_partition_names(const char* value); + void add_partition_names(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& partition_names() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_partition_names(); + + // repeated int64 partitionIDs = 3; + int partitionids_size() const; + void clear_partitionids(); + ::PROTOBUF_NAMESPACE_ID::int64 partitionids(int index) const; + void set_partitionids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); + void add_partitionids(::PROTOBUF_NAMESPACE_ID::int64 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& + partitionids() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* + mutable_partitionids(); + + // .milvus.proto.common.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::proto::common::Status& status() const; + ::milvus::proto::common::Status* release_status(); + ::milvus::proto::common::Status* mutable_status(); + void set_allocated_status(::milvus::proto::common::Status* status); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.ShowPartitionResponse) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> partition_names_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > partitionids_; + mutable std::atomic<int> _partitionids_cached_byte_size_; + ::milvus::proto::common::Status* status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class DescribeSegmentRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.DescribeSegmentRequest) */ { + public: + DescribeSegmentRequest(); + virtual ~DescribeSegmentRequest(); + + DescribeSegmentRequest(const DescribeSegmentRequest& from); + DescribeSegmentRequest(DescribeSegmentRequest&& from) noexcept + : DescribeSegmentRequest() { + *this = ::std::move(from); + } + + inline DescribeSegmentRequest& operator=(const DescribeSegmentRequest& from) { + CopyFrom(from); + return *this; + } + inline DescribeSegmentRequest& operator=(DescribeSegmentRequest&& 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 DescribeSegmentRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DescribeSegmentRequest* internal_default_instance() { + return reinterpret_cast<const DescribeSegmentRequest*>( + &_DescribeSegmentRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 22; + + friend void swap(DescribeSegmentRequest& a, DescribeSegmentRequest& b) { + a.Swap(&b); + } + inline void Swap(DescribeSegmentRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline DescribeSegmentRequest* New() const final { + return CreateMaybeMessage<DescribeSegmentRequest>(nullptr); + } + + DescribeSegmentRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<DescribeSegmentRequest>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const DescribeSegmentRequest& from); + void MergeFrom(const DescribeSegmentRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DescribeSegmentRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.DescribeSegmentRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kBaseFieldNumber = 1, + kCollectionIDFieldNumber = 2, + kSegmentIDFieldNumber = 3, + }; + // .milvus.proto.common.MsgBase base = 1; + bool has_base() const; + void clear_base(); + const ::milvus::proto::common::MsgBase& base() const; + ::milvus::proto::common::MsgBase* release_base(); + ::milvus::proto::common::MsgBase* mutable_base(); + void set_allocated_base(::milvus::proto::common::MsgBase* base); + + // int64 collectionID = 2; + void clear_collectionid(); + ::PROTOBUF_NAMESPACE_ID::int64 collectionid() const; + void set_collectionid(::PROTOBUF_NAMESPACE_ID::int64 value); + + // int64 segmentID = 3; + void clear_segmentid(); + ::PROTOBUF_NAMESPACE_ID::int64 segmentid() const; + void set_segmentid(::PROTOBUF_NAMESPACE_ID::int64 value); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.DescribeSegmentRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::milvus::proto::common::MsgBase* base_; + ::PROTOBUF_NAMESPACE_ID::int64 collectionid_; + ::PROTOBUF_NAMESPACE_ID::int64 segmentid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class DescribeSegmentResponse : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.DescribeSegmentResponse) */ { + public: + DescribeSegmentResponse(); + virtual ~DescribeSegmentResponse(); + + DescribeSegmentResponse(const DescribeSegmentResponse& from); + DescribeSegmentResponse(DescribeSegmentResponse&& from) noexcept + : DescribeSegmentResponse() { + *this = ::std::move(from); + } + + inline DescribeSegmentResponse& operator=(const DescribeSegmentResponse& from) { + CopyFrom(from); + return *this; + } + inline DescribeSegmentResponse& operator=(DescribeSegmentResponse&& 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 DescribeSegmentResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DescribeSegmentResponse* internal_default_instance() { + return reinterpret_cast<const DescribeSegmentResponse*>( + &_DescribeSegmentResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 23; + + friend void swap(DescribeSegmentResponse& a, DescribeSegmentResponse& b) { + a.Swap(&b); + } + inline void Swap(DescribeSegmentResponse* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline DescribeSegmentResponse* New() const final { + return CreateMaybeMessage<DescribeSegmentResponse>(nullptr); + } + + DescribeSegmentResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<DescribeSegmentResponse>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const DescribeSegmentResponse& from); + void MergeFrom(const DescribeSegmentResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DescribeSegmentResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.DescribeSegmentResponse"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kStatusFieldNumber = 1, + kIndexIDFieldNumber = 2, + }; + // .milvus.proto.common.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::proto::common::Status& status() const; + ::milvus::proto::common::Status* release_status(); + ::milvus::proto::common::Status* mutable_status(); + void set_allocated_status(::milvus::proto::common::Status* status); + + // int64 indexID = 2; + void clear_indexid(); + ::PROTOBUF_NAMESPACE_ID::int64 indexid() const; + void set_indexid(::PROTOBUF_NAMESPACE_ID::int64 value); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.DescribeSegmentResponse) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::milvus::proto::common::Status* status_; + ::PROTOBUF_NAMESPACE_ID::int64 indexid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class ShowSegmentRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.ShowSegmentRequest) */ { + public: + ShowSegmentRequest(); + virtual ~ShowSegmentRequest(); + + ShowSegmentRequest(const ShowSegmentRequest& from); + ShowSegmentRequest(ShowSegmentRequest&& from) noexcept + : ShowSegmentRequest() { + *this = ::std::move(from); + } + + inline ShowSegmentRequest& operator=(const ShowSegmentRequest& from) { + CopyFrom(from); + return *this; + } + inline ShowSegmentRequest& operator=(ShowSegmentRequest&& 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 ShowSegmentRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ShowSegmentRequest* internal_default_instance() { + return reinterpret_cast<const ShowSegmentRequest*>( + &_ShowSegmentRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 24; + + friend void swap(ShowSegmentRequest& a, ShowSegmentRequest& b) { + a.Swap(&b); + } + inline void Swap(ShowSegmentRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ShowSegmentRequest* New() const final { + return CreateMaybeMessage<ShowSegmentRequest>(nullptr); + } + + ShowSegmentRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<ShowSegmentRequest>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ShowSegmentRequest& from); + void MergeFrom(const ShowSegmentRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ShowSegmentRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.ShowSegmentRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kBaseFieldNumber = 1, + kCollectionIDFieldNumber = 2, + kPartitionIDFieldNumber = 3, + }; + // .milvus.proto.common.MsgBase base = 1; + bool has_base() const; + void clear_base(); + const ::milvus::proto::common::MsgBase& base() const; + ::milvus::proto::common::MsgBase* release_base(); + ::milvus::proto::common::MsgBase* mutable_base(); + void set_allocated_base(::milvus::proto::common::MsgBase* base); + + // int64 collectionID = 2; + void clear_collectionid(); + ::PROTOBUF_NAMESPACE_ID::int64 collectionid() const; + void set_collectionid(::PROTOBUF_NAMESPACE_ID::int64 value); + + // int64 partitionID = 3; + void clear_partitionid(); + ::PROTOBUF_NAMESPACE_ID::int64 partitionid() const; + void set_partitionid(::PROTOBUF_NAMESPACE_ID::int64 value); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.ShowSegmentRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::milvus::proto::common::MsgBase* base_; + ::PROTOBUF_NAMESPACE_ID::int64 collectionid_; + ::PROTOBUF_NAMESPACE_ID::int64 partitionid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class ShowSegmentResponse : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.ShowSegmentResponse) */ { + public: + ShowSegmentResponse(); + virtual ~ShowSegmentResponse(); + + ShowSegmentResponse(const ShowSegmentResponse& from); + ShowSegmentResponse(ShowSegmentResponse&& from) noexcept + : ShowSegmentResponse() { + *this = ::std::move(from); + } + + inline ShowSegmentResponse& operator=(const ShowSegmentResponse& from) { + CopyFrom(from); + return *this; + } + inline ShowSegmentResponse& operator=(ShowSegmentResponse&& 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 ShowSegmentResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ShowSegmentResponse* internal_default_instance() { + return reinterpret_cast<const ShowSegmentResponse*>( + &_ShowSegmentResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 25; + + friend void swap(ShowSegmentResponse& a, ShowSegmentResponse& b) { + a.Swap(&b); + } + inline void Swap(ShowSegmentResponse* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ShowSegmentResponse* New() const final { + return CreateMaybeMessage<ShowSegmentResponse>(nullptr); + } + + ShowSegmentResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<ShowSegmentResponse>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ShowSegmentResponse& from); + void MergeFrom(const ShowSegmentResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ShowSegmentResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.ShowSegmentResponse"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kSegmentIDsFieldNumber = 2, + kStatusFieldNumber = 1, + }; + // repeated int64 segmentIDs = 2; + int segmentids_size() const; + void clear_segmentids(); + ::PROTOBUF_NAMESPACE_ID::int64 segmentids(int index) const; + void set_segmentids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); + void add_segmentids(::PROTOBUF_NAMESPACE_ID::int64 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& + segmentids() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* + mutable_segmentids(); + + // .milvus.proto.common.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::proto::common::Status& status() const; + ::milvus::proto::common::Status* release_status(); + ::milvus::proto::common::Status* mutable_status(); + void set_allocated_status(::milvus::proto::common::Status* status); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.ShowSegmentResponse) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > segmentids_; + mutable std::atomic<int> _segmentids_cached_byte_size_; + ::milvus::proto::common::Status* status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateIndexRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.CreateIndexRequest) */ { + public: + CreateIndexRequest(); + virtual ~CreateIndexRequest(); + + CreateIndexRequest(const CreateIndexRequest& from); + CreateIndexRequest(CreateIndexRequest&& from) noexcept + : CreateIndexRequest() { + *this = ::std::move(from); + } + + inline CreateIndexRequest& operator=(const CreateIndexRequest& from) { + CopyFrom(from); + return *this; + } + inline CreateIndexRequest& operator=(CreateIndexRequest&& 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 CreateIndexRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CreateIndexRequest* internal_default_instance() { + return reinterpret_cast<const CreateIndexRequest*>( + &_CreateIndexRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 26; + + friend void swap(CreateIndexRequest& a, CreateIndexRequest& b) { + a.Swap(&b); + } + inline void Swap(CreateIndexRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline CreateIndexRequest* New() const final { + return CreateMaybeMessage<CreateIndexRequest>(nullptr); + } + + CreateIndexRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<CreateIndexRequest>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const CreateIndexRequest& from); + void MergeFrom(const CreateIndexRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateIndexRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.CreateIndexRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kExtraParamsFieldNumber = 5, + kDbNameFieldNumber = 2, + kCollectionNameFieldNumber = 3, + kFieldNameFieldNumber = 4, + kBaseFieldNumber = 1, + }; + // repeated .milvus.proto.common.KeyValuePair extra_params = 5; + int extra_params_size() const; + void clear_extra_params(); + ::milvus::proto::common::KeyValuePair* mutable_extra_params(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >* + mutable_extra_params(); + const ::milvus::proto::common::KeyValuePair& extra_params(int index) const; + ::milvus::proto::common::KeyValuePair* add_extra_params(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >& + extra_params() const; + + // string db_name = 2; + void clear_db_name(); + const std::string& db_name() const; + void set_db_name(const std::string& value); + void set_db_name(std::string&& value); + void set_db_name(const char* value); + void set_db_name(const char* value, size_t size); + std::string* mutable_db_name(); + std::string* release_db_name(); + void set_allocated_db_name(std::string* db_name); + + // string collection_name = 3; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // string field_name = 4; + void clear_field_name(); + const std::string& field_name() const; + void set_field_name(const std::string& value); + void set_field_name(std::string&& value); + void set_field_name(const char* value); + void set_field_name(const char* value, size_t size); + std::string* mutable_field_name(); + std::string* release_field_name(); + void set_allocated_field_name(std::string* field_name); + + // .milvus.proto.common.MsgBase base = 1; + bool has_base() const; + void clear_base(); + const ::milvus::proto::common::MsgBase& base() const; + ::milvus::proto::common::MsgBase* release_base(); + ::milvus::proto::common::MsgBase* mutable_base(); + void set_allocated_base(::milvus::proto::common::MsgBase* base); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.CreateIndexRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair > extra_params_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; + ::milvus::proto::common::MsgBase* base_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class DescribeIndexRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.DescribeIndexRequest) */ { + public: + DescribeIndexRequest(); + virtual ~DescribeIndexRequest(); + + DescribeIndexRequest(const DescribeIndexRequest& from); + DescribeIndexRequest(DescribeIndexRequest&& from) noexcept + : DescribeIndexRequest() { + *this = ::std::move(from); + } + + inline DescribeIndexRequest& operator=(const DescribeIndexRequest& from) { + CopyFrom(from); + return *this; + } + inline DescribeIndexRequest& operator=(DescribeIndexRequest&& 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 DescribeIndexRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DescribeIndexRequest* internal_default_instance() { + return reinterpret_cast<const DescribeIndexRequest*>( + &_DescribeIndexRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 27; + + friend void swap(DescribeIndexRequest& a, DescribeIndexRequest& b) { + a.Swap(&b); + } + inline void Swap(DescribeIndexRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline DescribeIndexRequest* New() const final { + return CreateMaybeMessage<DescribeIndexRequest>(nullptr); + } + + DescribeIndexRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<DescribeIndexRequest>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const DescribeIndexRequest& from); + void MergeFrom(const DescribeIndexRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DescribeIndexRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.DescribeIndexRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDbNameFieldNumber = 2, + kCollectionNameFieldNumber = 3, + kFieldNameFieldNumber = 4, + kIndexNameFieldNumber = 5, + kBaseFieldNumber = 1, + }; + // string db_name = 2; + void clear_db_name(); + const std::string& db_name() const; + void set_db_name(const std::string& value); + void set_db_name(std::string&& value); + void set_db_name(const char* value); + void set_db_name(const char* value, size_t size); + std::string* mutable_db_name(); + std::string* release_db_name(); + void set_allocated_db_name(std::string* db_name); + + // string collection_name = 3; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // string field_name = 4; + void clear_field_name(); + const std::string& field_name() const; + void set_field_name(const std::string& value); + void set_field_name(std::string&& value); + void set_field_name(const char* value); + void set_field_name(const char* value, size_t size); + std::string* mutable_field_name(); + std::string* release_field_name(); + void set_allocated_field_name(std::string* field_name); + + // string index_name = 5; + void clear_index_name(); + const std::string& index_name() const; + void set_index_name(const std::string& value); + void set_index_name(std::string&& value); + void set_index_name(const char* value); + void set_index_name(const char* value, size_t size); + std::string* mutable_index_name(); + std::string* release_index_name(); + void set_allocated_index_name(std::string* index_name); + + // .milvus.proto.common.MsgBase base = 1; + bool has_base() const; + void clear_base(); + const ::milvus::proto::common::MsgBase& base() const; + ::milvus::proto::common::MsgBase* release_base(); + ::milvus::proto::common::MsgBase* mutable_base(); + void set_allocated_base(::milvus::proto::common::MsgBase* base); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.DescribeIndexRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr index_name_; + ::milvus::proto::common::MsgBase* base_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class IndexDescription : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.IndexDescription) */ { + public: + IndexDescription(); + virtual ~IndexDescription(); + + IndexDescription(const IndexDescription& from); + IndexDescription(IndexDescription&& from) noexcept + : IndexDescription() { + *this = ::std::move(from); + } + + inline IndexDescription& operator=(const IndexDescription& from) { + CopyFrom(from); + return *this; + } + inline IndexDescription& operator=(IndexDescription&& 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 IndexDescription& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const IndexDescription* internal_default_instance() { + return reinterpret_cast<const IndexDescription*>( + &_IndexDescription_default_instance_); + } + static constexpr int kIndexInFileMessages = + 28; + + friend void swap(IndexDescription& a, IndexDescription& b) { + a.Swap(&b); + } + inline void Swap(IndexDescription* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline IndexDescription* New() const final { + return CreateMaybeMessage<IndexDescription>(nullptr); + } + + IndexDescription* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<IndexDescription>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const IndexDescription& from); + void MergeFrom(const IndexDescription& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IndexDescription* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.IndexDescription"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kParamsFieldNumber = 2, + kIndexNameFieldNumber = 1, + }; + // repeated .milvus.proto.common.KeyValuePair params = 2; + int params_size() const; + void clear_params(); + ::milvus::proto::common::KeyValuePair* mutable_params(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >* + mutable_params(); + const ::milvus::proto::common::KeyValuePair& params(int index) const; + ::milvus::proto::common::KeyValuePair* add_params(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >& + params() const; + + // string index_name = 1; + void clear_index_name(); + const std::string& index_name() const; + void set_index_name(const std::string& value); + void set_index_name(std::string&& value); + void set_index_name(const char* value); + void set_index_name(const char* value, size_t size); + std::string* mutable_index_name(); + std::string* release_index_name(); + void set_allocated_index_name(std::string* index_name); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.IndexDescription) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair > params_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr index_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class DescribeIndexResponse : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.DescribeIndexResponse) */ { + public: + DescribeIndexResponse(); + virtual ~DescribeIndexResponse(); + + DescribeIndexResponse(const DescribeIndexResponse& from); + DescribeIndexResponse(DescribeIndexResponse&& from) noexcept + : DescribeIndexResponse() { + *this = ::std::move(from); + } + + inline DescribeIndexResponse& operator=(const DescribeIndexResponse& from) { + CopyFrom(from); + return *this; + } + inline DescribeIndexResponse& operator=(DescribeIndexResponse&& 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 DescribeIndexResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DescribeIndexResponse* internal_default_instance() { + return reinterpret_cast<const DescribeIndexResponse*>( + &_DescribeIndexResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 29; + + friend void swap(DescribeIndexResponse& a, DescribeIndexResponse& b) { + a.Swap(&b); + } + inline void Swap(DescribeIndexResponse* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline DescribeIndexResponse* New() const final { + return CreateMaybeMessage<DescribeIndexResponse>(nullptr); + } + + DescribeIndexResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<DescribeIndexResponse>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const DescribeIndexResponse& from); + void MergeFrom(const DescribeIndexResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DescribeIndexResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.DescribeIndexResponse"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kIndexDescriptionsFieldNumber = 2, + kStatusFieldNumber = 1, + }; + // repeated .milvus.proto.milvus.IndexDescription index_descriptions = 2; + int index_descriptions_size() const; + void clear_index_descriptions(); + ::milvus::proto::milvus::IndexDescription* mutable_index_descriptions(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::milvus::IndexDescription >* + mutable_index_descriptions(); + const ::milvus::proto::milvus::IndexDescription& index_descriptions(int index) const; + ::milvus::proto::milvus::IndexDescription* add_index_descriptions(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::milvus::IndexDescription >& + index_descriptions() const; + + // .milvus.proto.common.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::proto::common::Status& status() const; + ::milvus::proto::common::Status* release_status(); + ::milvus::proto::common::Status* mutable_status(); + void set_allocated_status(::milvus::proto::common::Status* status); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.DescribeIndexResponse) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::milvus::IndexDescription > index_descriptions_; + ::milvus::proto::common::Status* status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class IndexStateRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.IndexStateRequest) */ { + public: + IndexStateRequest(); + virtual ~IndexStateRequest(); + + IndexStateRequest(const IndexStateRequest& from); + IndexStateRequest(IndexStateRequest&& from) noexcept + : IndexStateRequest() { + *this = ::std::move(from); + } + + inline IndexStateRequest& operator=(const IndexStateRequest& from) { + CopyFrom(from); + return *this; + } + inline IndexStateRequest& operator=(IndexStateRequest&& 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 IndexStateRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const IndexStateRequest* internal_default_instance() { + return reinterpret_cast<const IndexStateRequest*>( + &_IndexStateRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 30; + + friend void swap(IndexStateRequest& a, IndexStateRequest& b) { + a.Swap(&b); + } + inline void Swap(IndexStateRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline IndexStateRequest* New() const final { + return CreateMaybeMessage<IndexStateRequest>(nullptr); + } + + IndexStateRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<IndexStateRequest>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const IndexStateRequest& from); + void MergeFrom(const IndexStateRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IndexStateRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.IndexStateRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDbNameFieldNumber = 2, + kCollectionNameFieldNumber = 3, + kFieldNameFieldNumber = 4, + kIndexNameFieldNumber = 5, + kBaseFieldNumber = 1, + }; + // string db_name = 2; + void clear_db_name(); + const std::string& db_name() const; + void set_db_name(const std::string& value); + void set_db_name(std::string&& value); + void set_db_name(const char* value); + void set_db_name(const char* value, size_t size); + std::string* mutable_db_name(); + std::string* release_db_name(); + void set_allocated_db_name(std::string* db_name); + + // string collection_name = 3; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // string field_name = 4; + void clear_field_name(); + const std::string& field_name() const; + void set_field_name(const std::string& value); + void set_field_name(std::string&& value); + void set_field_name(const char* value); + void set_field_name(const char* value, size_t size); + std::string* mutable_field_name(); + std::string* release_field_name(); + void set_allocated_field_name(std::string* field_name); + + // string index_name = 5; + void clear_index_name(); + const std::string& index_name() const; + void set_index_name(const std::string& value); + void set_index_name(std::string&& value); + void set_index_name(const char* value); + void set_index_name(const char* value, size_t size); + std::string* mutable_index_name(); + std::string* release_index_name(); + void set_allocated_index_name(std::string* index_name); + + // .milvus.proto.common.MsgBase base = 1; + bool has_base() const; + void clear_base(); + const ::milvus::proto::common::MsgBase& base() const; + ::milvus::proto::common::MsgBase* release_base(); + ::milvus::proto::common::MsgBase* mutable_base(); + void set_allocated_base(::milvus::proto::common::MsgBase* base); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.IndexStateRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr index_name_; + ::milvus::proto::common::MsgBase* base_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class IndexStateResponse : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.IndexStateResponse) */ { + public: + IndexStateResponse(); + virtual ~IndexStateResponse(); + + IndexStateResponse(const IndexStateResponse& from); + IndexStateResponse(IndexStateResponse&& from) noexcept + : IndexStateResponse() { + *this = ::std::move(from); + } + + inline IndexStateResponse& operator=(const IndexStateResponse& from) { + CopyFrom(from); + return *this; + } + inline IndexStateResponse& operator=(IndexStateResponse&& 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 IndexStateResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const IndexStateResponse* internal_default_instance() { + return reinterpret_cast<const IndexStateResponse*>( + &_IndexStateResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 31; + + friend void swap(IndexStateResponse& a, IndexStateResponse& b) { + a.Swap(&b); + } + inline void Swap(IndexStateResponse* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline IndexStateResponse* New() const final { + return CreateMaybeMessage<IndexStateResponse>(nullptr); + } + + IndexStateResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<IndexStateResponse>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const IndexStateResponse& from); + void MergeFrom(const IndexStateResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IndexStateResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.IndexStateResponse"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kStatusFieldNumber = 1, + kStateFieldNumber = 2, + }; + // .milvus.proto.common.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::proto::common::Status& status() const; + ::milvus::proto::common::Status* release_status(); + ::milvus::proto::common::Status* mutable_status(); + void set_allocated_status(::milvus::proto::common::Status* status); + + // .milvus.proto.common.IndexState state = 2; + void clear_state(); + ::milvus::proto::common::IndexState state() const; + void set_state(::milvus::proto::common::IndexState value); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.IndexStateResponse) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::milvus::proto::common::Status* status_; + int state_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class InsertRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.InsertRequest) */ { + public: + InsertRequest(); + virtual ~InsertRequest(); + + InsertRequest(const InsertRequest& from); + InsertRequest(InsertRequest&& from) noexcept + : InsertRequest() { + *this = ::std::move(from); + } + + inline InsertRequest& operator=(const InsertRequest& from) { + CopyFrom(from); + return *this; + } + inline InsertRequest& operator=(InsertRequest&& 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 InsertRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const InsertRequest* internal_default_instance() { + return reinterpret_cast<const InsertRequest*>( + &_InsertRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 32; + + friend void swap(InsertRequest& a, InsertRequest& b) { + a.Swap(&b); + } + inline void Swap(InsertRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline InsertRequest* New() const final { + return CreateMaybeMessage<InsertRequest>(nullptr); + } + + InsertRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<InsertRequest>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const InsertRequest& from); + void MergeFrom(const InsertRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(InsertRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.InsertRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kRowDataFieldNumber = 5, + kHashKeysFieldNumber = 6, + kDbNameFieldNumber = 2, + kCollectionNameFieldNumber = 3, + kPartitionNameFieldNumber = 4, + kBaseFieldNumber = 1, + }; + // repeated .milvus.proto.common.Blob row_data = 5; + int row_data_size() const; + void clear_row_data(); + ::milvus::proto::common::Blob* mutable_row_data(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::Blob >* + mutable_row_data(); + const ::milvus::proto::common::Blob& row_data(int index) const; + ::milvus::proto::common::Blob* add_row_data(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::Blob >& + row_data() const; + + // repeated uint32 hash_keys = 6; + int hash_keys_size() const; + void clear_hash_keys(); + ::PROTOBUF_NAMESPACE_ID::uint32 hash_keys(int index) const; + void set_hash_keys(int index, ::PROTOBUF_NAMESPACE_ID::uint32 value); + void add_hash_keys(::PROTOBUF_NAMESPACE_ID::uint32 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& + hash_keys() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* + mutable_hash_keys(); + + // string db_name = 2; + void clear_db_name(); + const std::string& db_name() const; + void set_db_name(const std::string& value); + void set_db_name(std::string&& value); + void set_db_name(const char* value); + void set_db_name(const char* value, size_t size); + std::string* mutable_db_name(); + std::string* release_db_name(); + void set_allocated_db_name(std::string* db_name); + + // string collection_name = 3; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // string partition_name = 4; + void clear_partition_name(); + const std::string& partition_name() const; + void set_partition_name(const std::string& value); + void set_partition_name(std::string&& value); + void set_partition_name(const char* value); + void set_partition_name(const char* value, size_t size); + std::string* mutable_partition_name(); + std::string* release_partition_name(); + void set_allocated_partition_name(std::string* partition_name); + + // .milvus.proto.common.MsgBase base = 1; + bool has_base() const; + void clear_base(); + const ::milvus::proto::common::MsgBase& base() const; + ::milvus::proto::common::MsgBase* release_base(); + ::milvus::proto::common::MsgBase* mutable_base(); + void set_allocated_base(::milvus::proto::common::MsgBase* base); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.InsertRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::Blob > row_data_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 > hash_keys_; + mutable std::atomic<int> _hash_keys_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr partition_name_; + ::milvus::proto::common::MsgBase* base_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class InsertResponse : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.InsertResponse) */ { + public: + InsertResponse(); + virtual ~InsertResponse(); + + InsertResponse(const InsertResponse& from); + InsertResponse(InsertResponse&& from) noexcept + : InsertResponse() { + *this = ::std::move(from); + } + + inline InsertResponse& operator=(const InsertResponse& from) { + CopyFrom(from); + return *this; + } + inline InsertResponse& operator=(InsertResponse&& 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 InsertResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const InsertResponse* internal_default_instance() { + return reinterpret_cast<const InsertResponse*>( + &_InsertResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 33; + + friend void swap(InsertResponse& a, InsertResponse& b) { + a.Swap(&b); + } + inline void Swap(InsertResponse* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline InsertResponse* New() const final { + return CreateMaybeMessage<InsertResponse>(nullptr); + } + + InsertResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<InsertResponse>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const InsertResponse& from); + void MergeFrom(const InsertResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(InsertResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.InsertResponse"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kStatusFieldNumber = 1, + kRowIDBeginFieldNumber = 2, + kRowIDEndFieldNumber = 3, + }; + // .milvus.proto.common.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::proto::common::Status& status() const; + ::milvus::proto::common::Status* release_status(); + ::milvus::proto::common::Status* mutable_status(); + void set_allocated_status(::milvus::proto::common::Status* status); + + // int64 rowID_begin = 2; + void clear_rowid_begin(); + ::PROTOBUF_NAMESPACE_ID::int64 rowid_begin() const; + void set_rowid_begin(::PROTOBUF_NAMESPACE_ID::int64 value); + + // int64 rowID_end = 3; + void clear_rowid_end(); + ::PROTOBUF_NAMESPACE_ID::int64 rowid_end() const; + void set_rowid_end(::PROTOBUF_NAMESPACE_ID::int64 value); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.InsertResponse) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::milvus::proto::common::Status* status_; + ::PROTOBUF_NAMESPACE_ID::int64 rowid_begin_; + ::PROTOBUF_NAMESPACE_ID::int64 rowid_end_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class PlaceholderValue : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.PlaceholderValue) */ { + public: + PlaceholderValue(); + virtual ~PlaceholderValue(); + + PlaceholderValue(const PlaceholderValue& from); + PlaceholderValue(PlaceholderValue&& from) noexcept + : PlaceholderValue() { + *this = ::std::move(from); + } + + inline PlaceholderValue& operator=(const PlaceholderValue& from) { + CopyFrom(from); + return *this; + } + inline PlaceholderValue& operator=(PlaceholderValue&& 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 PlaceholderValue& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PlaceholderValue* internal_default_instance() { + return reinterpret_cast<const PlaceholderValue*>( + &_PlaceholderValue_default_instance_); + } + static constexpr int kIndexInFileMessages = + 34; + + friend void swap(PlaceholderValue& a, PlaceholderValue& b) { + a.Swap(&b); + } + inline void Swap(PlaceholderValue* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline PlaceholderValue* New() const final { + return CreateMaybeMessage<PlaceholderValue>(nullptr); + } + + PlaceholderValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<PlaceholderValue>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const PlaceholderValue& from); + void MergeFrom(const PlaceholderValue& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PlaceholderValue* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.PlaceholderValue"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kValuesFieldNumber = 3, + kTagFieldNumber = 1, + kTypeFieldNumber = 2, + }; + // repeated bytes values = 3; + int values_size() const; + void clear_values(); + const std::string& values(int index) const; + std::string* mutable_values(int index); + void set_values(int index, const std::string& value); + void set_values(int index, std::string&& value); + void set_values(int index, const char* value); + void set_values(int index, const void* value, size_t size); + std::string* add_values(); + void add_values(const std::string& value); + void add_values(std::string&& value); + void add_values(const char* value); + void add_values(const void* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& values() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_values(); + + // string tag = 1; + void clear_tag(); + const std::string& tag() const; + void set_tag(const std::string& value); + void set_tag(std::string&& value); + void set_tag(const char* value); + void set_tag(const char* value, size_t size); + std::string* mutable_tag(); + std::string* release_tag(); + void set_allocated_tag(std::string* tag); + + // .milvus.proto.milvus.PlaceholderType type = 2; + void clear_type(); + ::milvus::proto::milvus::PlaceholderType type() const; + void set_type(::milvus::proto::milvus::PlaceholderType value); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.PlaceholderValue) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> values_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tag_; + int type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class PlaceholderGroup : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.PlaceholderGroup) */ { + public: + PlaceholderGroup(); + virtual ~PlaceholderGroup(); + + PlaceholderGroup(const PlaceholderGroup& from); + PlaceholderGroup(PlaceholderGroup&& from) noexcept + : PlaceholderGroup() { + *this = ::std::move(from); + } + + inline PlaceholderGroup& operator=(const PlaceholderGroup& from) { + CopyFrom(from); + return *this; + } + inline PlaceholderGroup& operator=(PlaceholderGroup&& 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 PlaceholderGroup& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PlaceholderGroup* internal_default_instance() { + return reinterpret_cast<const PlaceholderGroup*>( + &_PlaceholderGroup_default_instance_); + } + static constexpr int kIndexInFileMessages = + 35; + + friend void swap(PlaceholderGroup& a, PlaceholderGroup& b) { + a.Swap(&b); + } + inline void Swap(PlaceholderGroup* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline PlaceholderGroup* New() const final { + return CreateMaybeMessage<PlaceholderGroup>(nullptr); + } + + PlaceholderGroup* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<PlaceholderGroup>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const PlaceholderGroup& from); + void MergeFrom(const PlaceholderGroup& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PlaceholderGroup* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.PlaceholderGroup"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPlaceholdersFieldNumber = 1, + }; + // repeated .milvus.proto.milvus.PlaceholderValue placeholders = 1; + int placeholders_size() const; + void clear_placeholders(); + ::milvus::proto::milvus::PlaceholderValue* mutable_placeholders(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::milvus::PlaceholderValue >* + mutable_placeholders(); + const ::milvus::proto::milvus::PlaceholderValue& placeholders(int index) const; + ::milvus::proto::milvus::PlaceholderValue* add_placeholders(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::milvus::PlaceholderValue >& + placeholders() const; + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.PlaceholderGroup) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::milvus::PlaceholderValue > placeholders_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class SearchRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.SearchRequest) */ { + public: + SearchRequest(); + virtual ~SearchRequest(); + + SearchRequest(const SearchRequest& from); + SearchRequest(SearchRequest&& from) noexcept + : SearchRequest() { + *this = ::std::move(from); + } + + inline SearchRequest& operator=(const SearchRequest& from) { + CopyFrom(from); + return *this; + } + inline SearchRequest& operator=(SearchRequest&& 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 SearchRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SearchRequest* internal_default_instance() { + return reinterpret_cast<const SearchRequest*>( + &_SearchRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 36; + + friend void swap(SearchRequest& a, SearchRequest& b) { + a.Swap(&b); + } + inline void Swap(SearchRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline SearchRequest* New() const final { + return CreateMaybeMessage<SearchRequest>(nullptr); + } + + SearchRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<SearchRequest>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const SearchRequest& from); + void MergeFrom(const SearchRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SearchRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.SearchRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPartitionNamesFieldNumber = 4, + kDbNameFieldNumber = 2, + kCollectionNameFieldNumber = 3, + kDslFieldNumber = 5, + kPlaceholderGroupFieldNumber = 6, + kBaseFieldNumber = 1, + }; + // repeated string partition_names = 4; + int partition_names_size() const; + void clear_partition_names(); + const std::string& partition_names(int index) const; + std::string* mutable_partition_names(int index); + void set_partition_names(int index, const std::string& value); + void set_partition_names(int index, std::string&& value); + void set_partition_names(int index, const char* value); + void set_partition_names(int index, const char* value, size_t size); + std::string* add_partition_names(); + void add_partition_names(const std::string& value); + void add_partition_names(std::string&& value); + void add_partition_names(const char* value); + void add_partition_names(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& partition_names() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_partition_names(); + + // string db_name = 2; + void clear_db_name(); + const std::string& db_name() const; + void set_db_name(const std::string& value); + void set_db_name(std::string&& value); + void set_db_name(const char* value); + void set_db_name(const char* value, size_t size); + std::string* mutable_db_name(); + std::string* release_db_name(); + void set_allocated_db_name(std::string* db_name); + + // string collection_name = 3; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // string dsl = 5; + void clear_dsl(); + const std::string& dsl() const; + void set_dsl(const std::string& value); + void set_dsl(std::string&& value); + void set_dsl(const char* value); + void set_dsl(const char* value, size_t size); + std::string* mutable_dsl(); + std::string* release_dsl(); + void set_allocated_dsl(std::string* dsl); + + // bytes placeholder_group = 6; + void clear_placeholder_group(); + const std::string& placeholder_group() const; + void set_placeholder_group(const std::string& value); + void set_placeholder_group(std::string&& value); + void set_placeholder_group(const char* value); + void set_placeholder_group(const void* value, size_t size); + std::string* mutable_placeholder_group(); + std::string* release_placeholder_group(); + void set_allocated_placeholder_group(std::string* placeholder_group); + + // .milvus.proto.common.MsgBase base = 1; + bool has_base() const; + void clear_base(); + const ::milvus::proto::common::MsgBase& base() const; + ::milvus::proto::common::MsgBase* release_base(); + ::milvus::proto::common::MsgBase* mutable_base(); + void set_allocated_base(::milvus::proto::common::MsgBase* base); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.SearchRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> partition_names_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dsl_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr placeholder_group_; + ::milvus::proto::common::MsgBase* base_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class Hits : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.Hits) */ { + public: + Hits(); + virtual ~Hits(); + + Hits(const Hits& from); + Hits(Hits&& from) noexcept + : Hits() { + *this = ::std::move(from); + } + + inline Hits& operator=(const Hits& from) { + CopyFrom(from); + return *this; + } + inline Hits& operator=(Hits&& 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 Hits& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Hits* internal_default_instance() { + return reinterpret_cast<const Hits*>( + &_Hits_default_instance_); + } + static constexpr int kIndexInFileMessages = + 37; + + friend void swap(Hits& a, Hits& b) { + a.Swap(&b); + } + inline void Swap(Hits* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Hits* New() const final { + return CreateMaybeMessage<Hits>(nullptr); + } + + Hits* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<Hits>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const Hits& from); + void MergeFrom(const Hits& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Hits* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.Hits"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kIDsFieldNumber = 1, + kRowDataFieldNumber = 2, + kScoresFieldNumber = 3, + }; + // repeated int64 IDs = 1; + int ids_size() const; + void clear_ids(); + ::PROTOBUF_NAMESPACE_ID::int64 ids(int index) const; + void set_ids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); + void add_ids(::PROTOBUF_NAMESPACE_ID::int64 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& + ids() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* + mutable_ids(); + + // repeated bytes row_data = 2; + int row_data_size() const; + void clear_row_data(); + const std::string& row_data(int index) const; + std::string* mutable_row_data(int index); + void set_row_data(int index, const std::string& value); + void set_row_data(int index, std::string&& value); + void set_row_data(int index, const char* value); + void set_row_data(int index, const void* value, size_t size); + std::string* add_row_data(); + void add_row_data(const std::string& value); + void add_row_data(std::string&& value); + void add_row_data(const char* value); + void add_row_data(const void* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& row_data() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_row_data(); + + // repeated float scores = 3; + int scores_size() const; + void clear_scores(); + float scores(int index) const; + void set_scores(int index, float value); + void add_scores(float value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& + scores() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* + mutable_scores(); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.Hits) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > ids_; + mutable std::atomic<int> _ids_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> row_data_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > scores_; + mutable std::atomic<int> _scores_cached_byte_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class SearchResults : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.SearchResults) */ { + public: + SearchResults(); + virtual ~SearchResults(); + + SearchResults(const SearchResults& from); + SearchResults(SearchResults&& from) noexcept + : SearchResults() { + *this = ::std::move(from); + } + + inline SearchResults& operator=(const SearchResults& from) { + CopyFrom(from); + return *this; + } + inline SearchResults& operator=(SearchResults&& 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 SearchResults& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SearchResults* internal_default_instance() { + return reinterpret_cast<const SearchResults*>( + &_SearchResults_default_instance_); + } + static constexpr int kIndexInFileMessages = + 38; + + friend void swap(SearchResults& a, SearchResults& b) { + a.Swap(&b); + } + inline void Swap(SearchResults* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline SearchResults* New() const final { + return CreateMaybeMessage<SearchResults>(nullptr); + } + + SearchResults* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<SearchResults>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const SearchResults& from); + void MergeFrom(const SearchResults& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SearchResults* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.SearchResults"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kHitsFieldNumber = 2, + kStatusFieldNumber = 1, + }; + // repeated bytes hits = 2; + int hits_size() const; + void clear_hits(); + const std::string& hits(int index) const; + std::string* mutable_hits(int index); + void set_hits(int index, const std::string& value); + void set_hits(int index, std::string&& value); + void set_hits(int index, const char* value); + void set_hits(int index, const void* value, size_t size); + std::string* add_hits(); + void add_hits(const std::string& value); + void add_hits(std::string&& value); + void add_hits(const char* value); + void add_hits(const void* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& hits() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_hits(); + + // .milvus.proto.common.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::proto::common::Status& status() const; + ::milvus::proto::common::Status* release_status(); + ::milvus::proto::common::Status* mutable_status(); + void set_allocated_status(::milvus::proto::common::Status* status); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.SearchResults) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> hits_; + ::milvus::proto::common::Status* status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class FlushRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.FlushRequest) */ { + public: + FlushRequest(); + virtual ~FlushRequest(); + + FlushRequest(const FlushRequest& from); + FlushRequest(FlushRequest&& from) noexcept + : FlushRequest() { + *this = ::std::move(from); + } + + inline FlushRequest& operator=(const FlushRequest& from) { + CopyFrom(from); + return *this; + } + inline FlushRequest& operator=(FlushRequest&& 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 FlushRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FlushRequest* internal_default_instance() { + return reinterpret_cast<const FlushRequest*>( + &_FlushRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 39; + + friend void swap(FlushRequest& a, FlushRequest& b) { + a.Swap(&b); + } + inline void Swap(FlushRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline FlushRequest* New() const final { + return CreateMaybeMessage<FlushRequest>(nullptr); + } + + FlushRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<FlushRequest>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const FlushRequest& from); + void MergeFrom(const FlushRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FlushRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.FlushRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDbNameFieldNumber = 2, + kCollectionNameFieldNumber = 3, + kBaseFieldNumber = 1, + }; + // string db_name = 2; + void clear_db_name(); + const std::string& db_name() const; + void set_db_name(const std::string& value); + void set_db_name(std::string&& value); + void set_db_name(const char* value); + void set_db_name(const char* value, size_t size); + std::string* mutable_db_name(); + std::string* release_db_name(); + void set_allocated_db_name(std::string* db_name); + + // string collection_name = 3; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // .milvus.proto.common.MsgBase base = 1; + bool has_base() const; + void clear_base(); + const ::milvus::proto::common::MsgBase& base() const; + ::milvus::proto::common::MsgBase* release_base(); + ::milvus::proto::common::MsgBase* mutable_base(); + void set_allocated_base(::milvus::proto::common::MsgBase* base); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.FlushRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::milvus::proto::common::MsgBase* base_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// CreateCollectionRequest + +// .milvus.proto.common.MsgBase base = 1; +inline bool CreateCollectionRequest::has_base() const { + return this != internal_default_instance() && base_ != nullptr; +} +inline const ::milvus::proto::common::MsgBase& CreateCollectionRequest::base() const { + const ::milvus::proto::common::MsgBase* p = base_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.CreateCollectionRequest.base) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::MsgBase*>( + &::milvus::proto::common::_MsgBase_default_instance_); +} +inline ::milvus::proto::common::MsgBase* CreateCollectionRequest::release_base() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.CreateCollectionRequest.base) + + ::milvus::proto::common::MsgBase* temp = base_; + base_ = nullptr; + return temp; +} +inline ::milvus::proto::common::MsgBase* CreateCollectionRequest::mutable_base() { + + if (base_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::MsgBase>(GetArenaNoVirtual()); + base_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.CreateCollectionRequest.base) + return base_; +} +inline void CreateCollectionRequest::set_allocated_base(::milvus::proto::common::MsgBase* base) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_); + } + if (base) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + base = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, base, submessage_arena); + } + + } else { + + } + base_ = base; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.CreateCollectionRequest.base) +} + +// string db_name = 2; +inline void CreateCollectionRequest::clear_db_name() { + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& CreateCollectionRequest::db_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.CreateCollectionRequest.db_name) + return db_name_.GetNoArena(); +} +inline void CreateCollectionRequest::set_db_name(const std::string& value) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.CreateCollectionRequest.db_name) +} +inline void CreateCollectionRequest::set_db_name(std::string&& value) { + + db_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.CreateCollectionRequest.db_name) +} +inline void CreateCollectionRequest::set_db_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.CreateCollectionRequest.db_name) +} +inline void CreateCollectionRequest::set_db_name(const char* value, size_t size) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.CreateCollectionRequest.db_name) +} +inline std::string* CreateCollectionRequest::mutable_db_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.CreateCollectionRequest.db_name) + return db_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* CreateCollectionRequest::release_db_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.CreateCollectionRequest.db_name) + + return db_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void CreateCollectionRequest::set_allocated_db_name(std::string* db_name) { + if (db_name != nullptr) { + + } else { + + } + db_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), db_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.CreateCollectionRequest.db_name) +} + +// string collection_name = 3; +inline void CreateCollectionRequest::clear_collection_name() { + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& CreateCollectionRequest::collection_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.CreateCollectionRequest.collection_name) + return collection_name_.GetNoArena(); +} +inline void CreateCollectionRequest::set_collection_name(const std::string& value) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.CreateCollectionRequest.collection_name) +} +inline void CreateCollectionRequest::set_collection_name(std::string&& value) { + + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.CreateCollectionRequest.collection_name) +} +inline void CreateCollectionRequest::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.CreateCollectionRequest.collection_name) +} +inline void CreateCollectionRequest::set_collection_name(const char* value, size_t size) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.CreateCollectionRequest.collection_name) +} +inline std::string* CreateCollectionRequest::mutable_collection_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.CreateCollectionRequest.collection_name) + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* CreateCollectionRequest::release_collection_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.CreateCollectionRequest.collection_name) + + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void CreateCollectionRequest::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { + + } else { + + } + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.CreateCollectionRequest.collection_name) +} + +// bytes schema = 4; +inline void CreateCollectionRequest::clear_schema() { + schema_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& CreateCollectionRequest::schema() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.CreateCollectionRequest.schema) + return schema_.GetNoArena(); +} +inline void CreateCollectionRequest::set_schema(const std::string& value) { + + schema_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.CreateCollectionRequest.schema) +} +inline void CreateCollectionRequest::set_schema(std::string&& value) { + + schema_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.CreateCollectionRequest.schema) +} +inline void CreateCollectionRequest::set_schema(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + schema_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.CreateCollectionRequest.schema) +} +inline void CreateCollectionRequest::set_schema(const void* value, size_t size) { + + schema_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.CreateCollectionRequest.schema) +} +inline std::string* CreateCollectionRequest::mutable_schema() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.CreateCollectionRequest.schema) + return schema_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* CreateCollectionRequest::release_schema() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.CreateCollectionRequest.schema) + + return schema_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void CreateCollectionRequest::set_allocated_schema(std::string* schema) { + if (schema != nullptr) { + + } else { + + } + schema_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), schema); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.CreateCollectionRequest.schema) +} + +// ------------------------------------------------------------------- + +// DropCollectionRequest + +// .milvus.proto.common.MsgBase base = 1; +inline bool DropCollectionRequest::has_base() const { + return this != internal_default_instance() && base_ != nullptr; +} +inline const ::milvus::proto::common::MsgBase& DropCollectionRequest::base() const { + const ::milvus::proto::common::MsgBase* p = base_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.DropCollectionRequest.base) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::MsgBase*>( + &::milvus::proto::common::_MsgBase_default_instance_); +} +inline ::milvus::proto::common::MsgBase* DropCollectionRequest::release_base() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.DropCollectionRequest.base) + + ::milvus::proto::common::MsgBase* temp = base_; + base_ = nullptr; + return temp; +} +inline ::milvus::proto::common::MsgBase* DropCollectionRequest::mutable_base() { + + if (base_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::MsgBase>(GetArenaNoVirtual()); + base_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.DropCollectionRequest.base) + return base_; +} +inline void DropCollectionRequest::set_allocated_base(::milvus::proto::common::MsgBase* base) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_); + } + if (base) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + base = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, base, submessage_arena); + } + + } else { + + } + base_ = base; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.DropCollectionRequest.base) +} + +// string db_name = 2; +inline void DropCollectionRequest::clear_db_name() { + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& DropCollectionRequest::db_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.DropCollectionRequest.db_name) + return db_name_.GetNoArena(); +} +inline void DropCollectionRequest::set_db_name(const std::string& value) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.DropCollectionRequest.db_name) +} +inline void DropCollectionRequest::set_db_name(std::string&& value) { + + db_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.DropCollectionRequest.db_name) +} +inline void DropCollectionRequest::set_db_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.DropCollectionRequest.db_name) +} +inline void DropCollectionRequest::set_db_name(const char* value, size_t size) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.DropCollectionRequest.db_name) +} +inline std::string* DropCollectionRequest::mutable_db_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.DropCollectionRequest.db_name) + return db_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* DropCollectionRequest::release_db_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.DropCollectionRequest.db_name) + + return db_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void DropCollectionRequest::set_allocated_db_name(std::string* db_name) { + if (db_name != nullptr) { + + } else { + + } + db_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), db_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.DropCollectionRequest.db_name) +} + +// string collection_name = 3; +inline void DropCollectionRequest::clear_collection_name() { + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& DropCollectionRequest::collection_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.DropCollectionRequest.collection_name) + return collection_name_.GetNoArena(); +} +inline void DropCollectionRequest::set_collection_name(const std::string& value) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.DropCollectionRequest.collection_name) +} +inline void DropCollectionRequest::set_collection_name(std::string&& value) { + + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.DropCollectionRequest.collection_name) +} +inline void DropCollectionRequest::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.DropCollectionRequest.collection_name) +} +inline void DropCollectionRequest::set_collection_name(const char* value, size_t size) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.DropCollectionRequest.collection_name) +} +inline std::string* DropCollectionRequest::mutable_collection_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.DropCollectionRequest.collection_name) + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* DropCollectionRequest::release_collection_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.DropCollectionRequest.collection_name) + + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void DropCollectionRequest::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { + + } else { + + } + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.DropCollectionRequest.collection_name) +} + +// ------------------------------------------------------------------- + +// HasCollectionRequest + +// .milvus.proto.common.MsgBase base = 1; +inline bool HasCollectionRequest::has_base() const { + return this != internal_default_instance() && base_ != nullptr; +} +inline const ::milvus::proto::common::MsgBase& HasCollectionRequest::base() const { + const ::milvus::proto::common::MsgBase* p = base_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.HasCollectionRequest.base) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::MsgBase*>( + &::milvus::proto::common::_MsgBase_default_instance_); +} +inline ::milvus::proto::common::MsgBase* HasCollectionRequest::release_base() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.HasCollectionRequest.base) + + ::milvus::proto::common::MsgBase* temp = base_; + base_ = nullptr; + return temp; +} +inline ::milvus::proto::common::MsgBase* HasCollectionRequest::mutable_base() { + + if (base_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::MsgBase>(GetArenaNoVirtual()); + base_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.HasCollectionRequest.base) + return base_; +} +inline void HasCollectionRequest::set_allocated_base(::milvus::proto::common::MsgBase* base) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_); + } + if (base) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + base = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, base, submessage_arena); + } + + } else { + + } + base_ = base; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.HasCollectionRequest.base) +} + +// string db_name = 2; +inline void HasCollectionRequest::clear_db_name() { + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& HasCollectionRequest::db_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.HasCollectionRequest.db_name) + return db_name_.GetNoArena(); +} +inline void HasCollectionRequest::set_db_name(const std::string& value) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.HasCollectionRequest.db_name) +} +inline void HasCollectionRequest::set_db_name(std::string&& value) { + + db_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.HasCollectionRequest.db_name) +} +inline void HasCollectionRequest::set_db_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.HasCollectionRequest.db_name) +} +inline void HasCollectionRequest::set_db_name(const char* value, size_t size) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.HasCollectionRequest.db_name) +} +inline std::string* HasCollectionRequest::mutable_db_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.HasCollectionRequest.db_name) + return db_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* HasCollectionRequest::release_db_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.HasCollectionRequest.db_name) + + return db_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void HasCollectionRequest::set_allocated_db_name(std::string* db_name) { + if (db_name != nullptr) { + + } else { + + } + db_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), db_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.HasCollectionRequest.db_name) +} + +// string collection_name = 3; +inline void HasCollectionRequest::clear_collection_name() { + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& HasCollectionRequest::collection_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.HasCollectionRequest.collection_name) + return collection_name_.GetNoArena(); +} +inline void HasCollectionRequest::set_collection_name(const std::string& value) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.HasCollectionRequest.collection_name) +} +inline void HasCollectionRequest::set_collection_name(std::string&& value) { + + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.HasCollectionRequest.collection_name) +} +inline void HasCollectionRequest::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.HasCollectionRequest.collection_name) +} +inline void HasCollectionRequest::set_collection_name(const char* value, size_t size) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.HasCollectionRequest.collection_name) +} +inline std::string* HasCollectionRequest::mutable_collection_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.HasCollectionRequest.collection_name) + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* HasCollectionRequest::release_collection_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.HasCollectionRequest.collection_name) + + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void HasCollectionRequest::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { + + } else { + + } + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.HasCollectionRequest.collection_name) +} + +// ------------------------------------------------------------------- + +// BoolResponse + +// .milvus.proto.common.Status status = 1; +inline bool BoolResponse::has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline const ::milvus::proto::common::Status& BoolResponse::status() const { + const ::milvus::proto::common::Status* p = status_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.BoolResponse.status) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::Status*>( + &::milvus::proto::common::_Status_default_instance_); +} +inline ::milvus::proto::common::Status* BoolResponse::release_status() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.BoolResponse.status) + + ::milvus::proto::common::Status* temp = status_; + status_ = nullptr; + return temp; +} +inline ::milvus::proto::common::Status* BoolResponse::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.BoolResponse.status) + return status_; +} +inline void BoolResponse::set_allocated_status(::milvus::proto::common::Status* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.BoolResponse.status) +} + +// bool value = 2; +inline void BoolResponse::clear_value() { + value_ = false; +} +inline bool BoolResponse::value() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.BoolResponse.value) + return value_; +} +inline void BoolResponse::set_value(bool value) { + + value_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.milvus.BoolResponse.value) +} + +// ------------------------------------------------------------------- + +// StringResponse + +// .milvus.proto.common.Status status = 1; +inline bool StringResponse::has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline const ::milvus::proto::common::Status& StringResponse::status() const { + const ::milvus::proto::common::Status* p = status_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.StringResponse.status) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::Status*>( + &::milvus::proto::common::_Status_default_instance_); +} +inline ::milvus::proto::common::Status* StringResponse::release_status() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.StringResponse.status) + + ::milvus::proto::common::Status* temp = status_; + status_ = nullptr; + return temp; +} +inline ::milvus::proto::common::Status* StringResponse::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.StringResponse.status) + return status_; +} +inline void StringResponse::set_allocated_status(::milvus::proto::common::Status* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.StringResponse.status) +} + +// string value = 2; +inline void StringResponse::clear_value() { + value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& StringResponse::value() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.StringResponse.value) + return value_.GetNoArena(); +} +inline void StringResponse::set_value(const std::string& value) { + + value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.StringResponse.value) +} +inline void StringResponse::set_value(std::string&& value) { + + value_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.StringResponse.value) +} +inline void StringResponse::set_value(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.StringResponse.value) +} +inline void StringResponse::set_value(const char* value, size_t size) { + + value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.StringResponse.value) +} +inline std::string* StringResponse::mutable_value() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.StringResponse.value) + return value_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* StringResponse::release_value() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.StringResponse.value) + + return value_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void StringResponse::set_allocated_value(std::string* value) { + if (value != nullptr) { + + } else { + + } + value_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.StringResponse.value) +} + +// ------------------------------------------------------------------- + +// DescribeCollectionRequest + +// .milvus.proto.common.MsgBase base = 1; +inline bool DescribeCollectionRequest::has_base() const { + return this != internal_default_instance() && base_ != nullptr; +} +inline const ::milvus::proto::common::MsgBase& DescribeCollectionRequest::base() const { + const ::milvus::proto::common::MsgBase* p = base_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.DescribeCollectionRequest.base) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::MsgBase*>( + &::milvus::proto::common::_MsgBase_default_instance_); +} +inline ::milvus::proto::common::MsgBase* DescribeCollectionRequest::release_base() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.DescribeCollectionRequest.base) + + ::milvus::proto::common::MsgBase* temp = base_; + base_ = nullptr; + return temp; +} +inline ::milvus::proto::common::MsgBase* DescribeCollectionRequest::mutable_base() { + + if (base_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::MsgBase>(GetArenaNoVirtual()); + base_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.DescribeCollectionRequest.base) + return base_; +} +inline void DescribeCollectionRequest::set_allocated_base(::milvus::proto::common::MsgBase* base) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_); + } + if (base) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + base = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, base, submessage_arena); + } + + } else { + + } + base_ = base; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.DescribeCollectionRequest.base) +} + +// string db_name = 2; +inline void DescribeCollectionRequest::clear_db_name() { + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& DescribeCollectionRequest::db_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.DescribeCollectionRequest.db_name) + return db_name_.GetNoArena(); +} +inline void DescribeCollectionRequest::set_db_name(const std::string& value) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.DescribeCollectionRequest.db_name) +} +inline void DescribeCollectionRequest::set_db_name(std::string&& value) { + + db_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.DescribeCollectionRequest.db_name) +} +inline void DescribeCollectionRequest::set_db_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.DescribeCollectionRequest.db_name) +} +inline void DescribeCollectionRequest::set_db_name(const char* value, size_t size) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.DescribeCollectionRequest.db_name) +} +inline std::string* DescribeCollectionRequest::mutable_db_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.DescribeCollectionRequest.db_name) + return db_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* DescribeCollectionRequest::release_db_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.DescribeCollectionRequest.db_name) + + return db_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void DescribeCollectionRequest::set_allocated_db_name(std::string* db_name) { + if (db_name != nullptr) { + + } else { + + } + db_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), db_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.DescribeCollectionRequest.db_name) +} + +// string collection_name = 3; +inline void DescribeCollectionRequest::clear_collection_name() { + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& DescribeCollectionRequest::collection_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.DescribeCollectionRequest.collection_name) + return collection_name_.GetNoArena(); +} +inline void DescribeCollectionRequest::set_collection_name(const std::string& value) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.DescribeCollectionRequest.collection_name) +} +inline void DescribeCollectionRequest::set_collection_name(std::string&& value) { + + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.DescribeCollectionRequest.collection_name) +} +inline void DescribeCollectionRequest::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.DescribeCollectionRequest.collection_name) +} +inline void DescribeCollectionRequest::set_collection_name(const char* value, size_t size) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.DescribeCollectionRequest.collection_name) +} +inline std::string* DescribeCollectionRequest::mutable_collection_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.DescribeCollectionRequest.collection_name) + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* DescribeCollectionRequest::release_collection_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.DescribeCollectionRequest.collection_name) + + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void DescribeCollectionRequest::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { + + } else { + + } + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.DescribeCollectionRequest.collection_name) +} + +// ------------------------------------------------------------------- + +// DescribeCollectionResponse + +// .milvus.proto.common.Status status = 1; +inline bool DescribeCollectionResponse::has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline const ::milvus::proto::common::Status& DescribeCollectionResponse::status() const { + const ::milvus::proto::common::Status* p = status_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.DescribeCollectionResponse.status) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::Status*>( + &::milvus::proto::common::_Status_default_instance_); +} +inline ::milvus::proto::common::Status* DescribeCollectionResponse::release_status() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.DescribeCollectionResponse.status) + + ::milvus::proto::common::Status* temp = status_; + status_ = nullptr; + return temp; +} +inline ::milvus::proto::common::Status* DescribeCollectionResponse::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.DescribeCollectionResponse.status) + return status_; +} +inline void DescribeCollectionResponse::set_allocated_status(::milvus::proto::common::Status* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.DescribeCollectionResponse.status) +} + +// .milvus.proto.schema.CollectionSchema schema = 2; +inline bool DescribeCollectionResponse::has_schema() const { + return this != internal_default_instance() && schema_ != nullptr; +} +inline const ::milvus::proto::schema::CollectionSchema& DescribeCollectionResponse::schema() const { + const ::milvus::proto::schema::CollectionSchema* p = schema_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.DescribeCollectionResponse.schema) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::schema::CollectionSchema*>( + &::milvus::proto::schema::_CollectionSchema_default_instance_); +} +inline ::milvus::proto::schema::CollectionSchema* DescribeCollectionResponse::release_schema() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.DescribeCollectionResponse.schema) + + ::milvus::proto::schema::CollectionSchema* temp = schema_; + schema_ = nullptr; + return temp; +} +inline ::milvus::proto::schema::CollectionSchema* DescribeCollectionResponse::mutable_schema() { + + if (schema_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::schema::CollectionSchema>(GetArenaNoVirtual()); + schema_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.DescribeCollectionResponse.schema) + return schema_; +} +inline void DescribeCollectionResponse::set_allocated_schema(::milvus::proto::schema::CollectionSchema* schema) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(schema_); + } + if (schema) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + schema = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, schema, submessage_arena); + } + + } else { + + } + schema_ = schema; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.DescribeCollectionResponse.schema) +} + +// ------------------------------------------------------------------- + +// LoadCollectionRequest + +// .milvus.proto.common.MsgBase base = 1; +inline bool LoadCollectionRequest::has_base() const { + return this != internal_default_instance() && base_ != nullptr; +} +inline const ::milvus::proto::common::MsgBase& LoadCollectionRequest::base() const { + const ::milvus::proto::common::MsgBase* p = base_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.LoadCollectionRequest.base) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::MsgBase*>( + &::milvus::proto::common::_MsgBase_default_instance_); +} +inline ::milvus::proto::common::MsgBase* LoadCollectionRequest::release_base() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.LoadCollectionRequest.base) + + ::milvus::proto::common::MsgBase* temp = base_; + base_ = nullptr; + return temp; +} +inline ::milvus::proto::common::MsgBase* LoadCollectionRequest::mutable_base() { + + if (base_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::MsgBase>(GetArenaNoVirtual()); + base_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.LoadCollectionRequest.base) + return base_; +} +inline void LoadCollectionRequest::set_allocated_base(::milvus::proto::common::MsgBase* base) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_); + } + if (base) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + base = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, base, submessage_arena); + } + + } else { + + } + base_ = base; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.LoadCollectionRequest.base) +} + +// string db_name = 2; +inline void LoadCollectionRequest::clear_db_name() { + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& LoadCollectionRequest::db_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.LoadCollectionRequest.db_name) + return db_name_.GetNoArena(); +} +inline void LoadCollectionRequest::set_db_name(const std::string& value) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.LoadCollectionRequest.db_name) +} +inline void LoadCollectionRequest::set_db_name(std::string&& value) { + + db_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.LoadCollectionRequest.db_name) +} +inline void LoadCollectionRequest::set_db_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.LoadCollectionRequest.db_name) +} +inline void LoadCollectionRequest::set_db_name(const char* value, size_t size) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.LoadCollectionRequest.db_name) +} +inline std::string* LoadCollectionRequest::mutable_db_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.LoadCollectionRequest.db_name) + return db_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* LoadCollectionRequest::release_db_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.LoadCollectionRequest.db_name) + + return db_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void LoadCollectionRequest::set_allocated_db_name(std::string* db_name) { + if (db_name != nullptr) { + + } else { + + } + db_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), db_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.LoadCollectionRequest.db_name) +} + +// string collection_name = 3; +inline void LoadCollectionRequest::clear_collection_name() { + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& LoadCollectionRequest::collection_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.LoadCollectionRequest.collection_name) + return collection_name_.GetNoArena(); +} +inline void LoadCollectionRequest::set_collection_name(const std::string& value) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.LoadCollectionRequest.collection_name) +} +inline void LoadCollectionRequest::set_collection_name(std::string&& value) { + + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.LoadCollectionRequest.collection_name) +} +inline void LoadCollectionRequest::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.LoadCollectionRequest.collection_name) +} +inline void LoadCollectionRequest::set_collection_name(const char* value, size_t size) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.LoadCollectionRequest.collection_name) +} +inline std::string* LoadCollectionRequest::mutable_collection_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.LoadCollectionRequest.collection_name) + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* LoadCollectionRequest::release_collection_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.LoadCollectionRequest.collection_name) + + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void LoadCollectionRequest::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { + + } else { + + } + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.LoadCollectionRequest.collection_name) +} + +// ------------------------------------------------------------------- + +// ReleaseCollectionRequest + +// .milvus.proto.common.MsgBase base = 1; +inline bool ReleaseCollectionRequest::has_base() const { + return this != internal_default_instance() && base_ != nullptr; +} +inline const ::milvus::proto::common::MsgBase& ReleaseCollectionRequest::base() const { + const ::milvus::proto::common::MsgBase* p = base_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.ReleaseCollectionRequest.base) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::MsgBase*>( + &::milvus::proto::common::_MsgBase_default_instance_); +} +inline ::milvus::proto::common::MsgBase* ReleaseCollectionRequest::release_base() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.ReleaseCollectionRequest.base) + + ::milvus::proto::common::MsgBase* temp = base_; + base_ = nullptr; + return temp; +} +inline ::milvus::proto::common::MsgBase* ReleaseCollectionRequest::mutable_base() { + + if (base_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::MsgBase>(GetArenaNoVirtual()); + base_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.ReleaseCollectionRequest.base) + return base_; +} +inline void ReleaseCollectionRequest::set_allocated_base(::milvus::proto::common::MsgBase* base) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_); + } + if (base) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + base = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, base, submessage_arena); + } + + } else { + + } + base_ = base; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.ReleaseCollectionRequest.base) +} + +// string db_name = 2; +inline void ReleaseCollectionRequest::clear_db_name() { + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& ReleaseCollectionRequest::db_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.ReleaseCollectionRequest.db_name) + return db_name_.GetNoArena(); +} +inline void ReleaseCollectionRequest::set_db_name(const std::string& value) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.ReleaseCollectionRequest.db_name) +} +inline void ReleaseCollectionRequest::set_db_name(std::string&& value) { + + db_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.ReleaseCollectionRequest.db_name) +} +inline void ReleaseCollectionRequest::set_db_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.ReleaseCollectionRequest.db_name) +} +inline void ReleaseCollectionRequest::set_db_name(const char* value, size_t size) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.ReleaseCollectionRequest.db_name) +} +inline std::string* ReleaseCollectionRequest::mutable_db_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.ReleaseCollectionRequest.db_name) + return db_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* ReleaseCollectionRequest::release_db_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.ReleaseCollectionRequest.db_name) + + return db_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void ReleaseCollectionRequest::set_allocated_db_name(std::string* db_name) { + if (db_name != nullptr) { + + } else { + + } + db_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), db_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.ReleaseCollectionRequest.db_name) +} + +// string collection_name = 3; +inline void ReleaseCollectionRequest::clear_collection_name() { + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& ReleaseCollectionRequest::collection_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.ReleaseCollectionRequest.collection_name) + return collection_name_.GetNoArena(); +} +inline void ReleaseCollectionRequest::set_collection_name(const std::string& value) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.ReleaseCollectionRequest.collection_name) +} +inline void ReleaseCollectionRequest::set_collection_name(std::string&& value) { + + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.ReleaseCollectionRequest.collection_name) +} +inline void ReleaseCollectionRequest::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.ReleaseCollectionRequest.collection_name) +} +inline void ReleaseCollectionRequest::set_collection_name(const char* value, size_t size) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.ReleaseCollectionRequest.collection_name) +} +inline std::string* ReleaseCollectionRequest::mutable_collection_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.ReleaseCollectionRequest.collection_name) + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* ReleaseCollectionRequest::release_collection_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.ReleaseCollectionRequest.collection_name) + + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void ReleaseCollectionRequest::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { + + } else { + + } + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.ReleaseCollectionRequest.collection_name) +} + +// ------------------------------------------------------------------- + +// CollectionStatsRequest + +// .milvus.proto.common.MsgBase base = 1; +inline bool CollectionStatsRequest::has_base() const { + return this != internal_default_instance() && base_ != nullptr; +} +inline const ::milvus::proto::common::MsgBase& CollectionStatsRequest::base() const { + const ::milvus::proto::common::MsgBase* p = base_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.CollectionStatsRequest.base) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::MsgBase*>( + &::milvus::proto::common::_MsgBase_default_instance_); +} +inline ::milvus::proto::common::MsgBase* CollectionStatsRequest::release_base() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.CollectionStatsRequest.base) + + ::milvus::proto::common::MsgBase* temp = base_; + base_ = nullptr; + return temp; +} +inline ::milvus::proto::common::MsgBase* CollectionStatsRequest::mutable_base() { + + if (base_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::MsgBase>(GetArenaNoVirtual()); + base_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.CollectionStatsRequest.base) + return base_; +} +inline void CollectionStatsRequest::set_allocated_base(::milvus::proto::common::MsgBase* base) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_); + } + if (base) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + base = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, base, submessage_arena); + } + + } else { + + } + base_ = base; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.CollectionStatsRequest.base) +} + +// string db_name = 2; +inline void CollectionStatsRequest::clear_db_name() { + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& CollectionStatsRequest::db_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.CollectionStatsRequest.db_name) + return db_name_.GetNoArena(); +} +inline void CollectionStatsRequest::set_db_name(const std::string& value) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.CollectionStatsRequest.db_name) +} +inline void CollectionStatsRequest::set_db_name(std::string&& value) { + + db_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.CollectionStatsRequest.db_name) +} +inline void CollectionStatsRequest::set_db_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.CollectionStatsRequest.db_name) +} +inline void CollectionStatsRequest::set_db_name(const char* value, size_t size) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.CollectionStatsRequest.db_name) +} +inline std::string* CollectionStatsRequest::mutable_db_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.CollectionStatsRequest.db_name) + return db_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* CollectionStatsRequest::release_db_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.CollectionStatsRequest.db_name) + + return db_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void CollectionStatsRequest::set_allocated_db_name(std::string* db_name) { + if (db_name != nullptr) { + + } else { + + } + db_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), db_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.CollectionStatsRequest.db_name) +} + +// string collection_name = 3; +inline void CollectionStatsRequest::clear_collection_name() { + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& CollectionStatsRequest::collection_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.CollectionStatsRequest.collection_name) + return collection_name_.GetNoArena(); +} +inline void CollectionStatsRequest::set_collection_name(const std::string& value) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.CollectionStatsRequest.collection_name) +} +inline void CollectionStatsRequest::set_collection_name(std::string&& value) { + + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.CollectionStatsRequest.collection_name) +} +inline void CollectionStatsRequest::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.CollectionStatsRequest.collection_name) +} +inline void CollectionStatsRequest::set_collection_name(const char* value, size_t size) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.CollectionStatsRequest.collection_name) +} +inline std::string* CollectionStatsRequest::mutable_collection_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.CollectionStatsRequest.collection_name) + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* CollectionStatsRequest::release_collection_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.CollectionStatsRequest.collection_name) + + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void CollectionStatsRequest::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { + + } else { + + } + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.CollectionStatsRequest.collection_name) +} + +// ------------------------------------------------------------------- + +// CollectionStatsResponse + +// .milvus.proto.common.Status status = 1; +inline bool CollectionStatsResponse::has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline const ::milvus::proto::common::Status& CollectionStatsResponse::status() const { + const ::milvus::proto::common::Status* p = status_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.CollectionStatsResponse.status) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::Status*>( + &::milvus::proto::common::_Status_default_instance_); +} +inline ::milvus::proto::common::Status* CollectionStatsResponse::release_status() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.CollectionStatsResponse.status) + + ::milvus::proto::common::Status* temp = status_; + status_ = nullptr; + return temp; +} +inline ::milvus::proto::common::Status* CollectionStatsResponse::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.CollectionStatsResponse.status) + return status_; +} +inline void CollectionStatsResponse::set_allocated_status(::milvus::proto::common::Status* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.CollectionStatsResponse.status) +} + +// repeated .milvus.proto.common.KeyValuePair stats = 2; +inline int CollectionStatsResponse::stats_size() const { + return stats_.size(); +} +inline ::milvus::proto::common::KeyValuePair* CollectionStatsResponse::mutable_stats(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.CollectionStatsResponse.stats) + return stats_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >* +CollectionStatsResponse::mutable_stats() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.milvus.CollectionStatsResponse.stats) + return &stats_; +} +inline const ::milvus::proto::common::KeyValuePair& CollectionStatsResponse::stats(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.CollectionStatsResponse.stats) + return stats_.Get(index); +} +inline ::milvus::proto::common::KeyValuePair* CollectionStatsResponse::add_stats() { + // @@protoc_insertion_point(field_add:milvus.proto.milvus.CollectionStatsResponse.stats) + return stats_.Add(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >& +CollectionStatsResponse::stats() const { + // @@protoc_insertion_point(field_list:milvus.proto.milvus.CollectionStatsResponse.stats) + return stats_; +} + +// ------------------------------------------------------------------- + +// ShowCollectionRequest + +// .milvus.proto.common.MsgBase base = 1; +inline bool ShowCollectionRequest::has_base() const { + return this != internal_default_instance() && base_ != nullptr; +} +inline const ::milvus::proto::common::MsgBase& ShowCollectionRequest::base() const { + const ::milvus::proto::common::MsgBase* p = base_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.ShowCollectionRequest.base) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::MsgBase*>( + &::milvus::proto::common::_MsgBase_default_instance_); +} +inline ::milvus::proto::common::MsgBase* ShowCollectionRequest::release_base() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.ShowCollectionRequest.base) + + ::milvus::proto::common::MsgBase* temp = base_; + base_ = nullptr; + return temp; +} +inline ::milvus::proto::common::MsgBase* ShowCollectionRequest::mutable_base() { + + if (base_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::MsgBase>(GetArenaNoVirtual()); + base_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.ShowCollectionRequest.base) + return base_; +} +inline void ShowCollectionRequest::set_allocated_base(::milvus::proto::common::MsgBase* base) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_); + } + if (base) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + base = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, base, submessage_arena); + } + + } else { + + } + base_ = base; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.ShowCollectionRequest.base) +} + +// string db_name = 2; +inline void ShowCollectionRequest::clear_db_name() { + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& ShowCollectionRequest::db_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.ShowCollectionRequest.db_name) + return db_name_.GetNoArena(); +} +inline void ShowCollectionRequest::set_db_name(const std::string& value) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.ShowCollectionRequest.db_name) +} +inline void ShowCollectionRequest::set_db_name(std::string&& value) { + + db_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.ShowCollectionRequest.db_name) +} +inline void ShowCollectionRequest::set_db_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.ShowCollectionRequest.db_name) +} +inline void ShowCollectionRequest::set_db_name(const char* value, size_t size) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.ShowCollectionRequest.db_name) +} +inline std::string* ShowCollectionRequest::mutable_db_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.ShowCollectionRequest.db_name) + return db_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* ShowCollectionRequest::release_db_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.ShowCollectionRequest.db_name) + + return db_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void ShowCollectionRequest::set_allocated_db_name(std::string* db_name) { + if (db_name != nullptr) { + + } else { + + } + db_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), db_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.ShowCollectionRequest.db_name) +} + +// ------------------------------------------------------------------- + +// ShowCollectionResponse + +// .milvus.proto.common.Status status = 1; +inline bool ShowCollectionResponse::has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline const ::milvus::proto::common::Status& ShowCollectionResponse::status() const { + const ::milvus::proto::common::Status* p = status_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.ShowCollectionResponse.status) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::Status*>( + &::milvus::proto::common::_Status_default_instance_); +} +inline ::milvus::proto::common::Status* ShowCollectionResponse::release_status() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.ShowCollectionResponse.status) + + ::milvus::proto::common::Status* temp = status_; + status_ = nullptr; + return temp; +} +inline ::milvus::proto::common::Status* ShowCollectionResponse::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.ShowCollectionResponse.status) + return status_; +} +inline void ShowCollectionResponse::set_allocated_status(::milvus::proto::common::Status* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.ShowCollectionResponse.status) +} + +// repeated string collection_names = 2; +inline int ShowCollectionResponse::collection_names_size() const { + return collection_names_.size(); +} +inline void ShowCollectionResponse::clear_collection_names() { + collection_names_.Clear(); +} +inline const std::string& ShowCollectionResponse::collection_names(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.ShowCollectionResponse.collection_names) + return collection_names_.Get(index); +} +inline std::string* ShowCollectionResponse::mutable_collection_names(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.ShowCollectionResponse.collection_names) + return collection_names_.Mutable(index); +} +inline void ShowCollectionResponse::set_collection_names(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:milvus.proto.milvus.ShowCollectionResponse.collection_names) + collection_names_.Mutable(index)->assign(value); +} +inline void ShowCollectionResponse::set_collection_names(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.proto.milvus.ShowCollectionResponse.collection_names) + collection_names_.Mutable(index)->assign(std::move(value)); +} +inline void ShowCollectionResponse::set_collection_names(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + collection_names_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.ShowCollectionResponse.collection_names) +} +inline void ShowCollectionResponse::set_collection_names(int index, const char* value, size_t size) { + collection_names_.Mutable(index)->assign( + reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.ShowCollectionResponse.collection_names) +} +inline std::string* ShowCollectionResponse::add_collection_names() { + // @@protoc_insertion_point(field_add_mutable:milvus.proto.milvus.ShowCollectionResponse.collection_names) + return collection_names_.Add(); +} +inline void ShowCollectionResponse::add_collection_names(const std::string& value) { + collection_names_.Add()->assign(value); + // @@protoc_insertion_point(field_add:milvus.proto.milvus.ShowCollectionResponse.collection_names) +} +inline void ShowCollectionResponse::add_collection_names(std::string&& value) { + collection_names_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:milvus.proto.milvus.ShowCollectionResponse.collection_names) +} +inline void ShowCollectionResponse::add_collection_names(const char* value) { + GOOGLE_DCHECK(value != nullptr); + collection_names_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:milvus.proto.milvus.ShowCollectionResponse.collection_names) +} +inline void ShowCollectionResponse::add_collection_names(const char* value, size_t size) { + collection_names_.Add()->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_add_pointer:milvus.proto.milvus.ShowCollectionResponse.collection_names) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& +ShowCollectionResponse::collection_names() const { + // @@protoc_insertion_point(field_list:milvus.proto.milvus.ShowCollectionResponse.collection_names) + return collection_names_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* +ShowCollectionResponse::mutable_collection_names() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.milvus.ShowCollectionResponse.collection_names) + return &collection_names_; +} + +// ------------------------------------------------------------------- + +// CreatePartitionRequest + +// .milvus.proto.common.MsgBase base = 1; +inline bool CreatePartitionRequest::has_base() const { + return this != internal_default_instance() && base_ != nullptr; +} +inline const ::milvus::proto::common::MsgBase& CreatePartitionRequest::base() const { + const ::milvus::proto::common::MsgBase* p = base_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.CreatePartitionRequest.base) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::MsgBase*>( + &::milvus::proto::common::_MsgBase_default_instance_); +} +inline ::milvus::proto::common::MsgBase* CreatePartitionRequest::release_base() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.CreatePartitionRequest.base) + + ::milvus::proto::common::MsgBase* temp = base_; + base_ = nullptr; + return temp; +} +inline ::milvus::proto::common::MsgBase* CreatePartitionRequest::mutable_base() { + + if (base_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::MsgBase>(GetArenaNoVirtual()); + base_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.CreatePartitionRequest.base) + return base_; +} +inline void CreatePartitionRequest::set_allocated_base(::milvus::proto::common::MsgBase* base) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_); + } + if (base) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + base = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, base, submessage_arena); + } + + } else { + + } + base_ = base; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.CreatePartitionRequest.base) +} + +// string db_name = 2; +inline void CreatePartitionRequest::clear_db_name() { + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& CreatePartitionRequest::db_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.CreatePartitionRequest.db_name) + return db_name_.GetNoArena(); +} +inline void CreatePartitionRequest::set_db_name(const std::string& value) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.CreatePartitionRequest.db_name) +} +inline void CreatePartitionRequest::set_db_name(std::string&& value) { + + db_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.CreatePartitionRequest.db_name) +} +inline void CreatePartitionRequest::set_db_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.CreatePartitionRequest.db_name) +} +inline void CreatePartitionRequest::set_db_name(const char* value, size_t size) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.CreatePartitionRequest.db_name) +} +inline std::string* CreatePartitionRequest::mutable_db_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.CreatePartitionRequest.db_name) + return db_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* CreatePartitionRequest::release_db_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.CreatePartitionRequest.db_name) + + return db_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void CreatePartitionRequest::set_allocated_db_name(std::string* db_name) { + if (db_name != nullptr) { + + } else { + + } + db_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), db_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.CreatePartitionRequest.db_name) +} + +// string collection_name = 3; +inline void CreatePartitionRequest::clear_collection_name() { + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& CreatePartitionRequest::collection_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.CreatePartitionRequest.collection_name) + return collection_name_.GetNoArena(); +} +inline void CreatePartitionRequest::set_collection_name(const std::string& value) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.CreatePartitionRequest.collection_name) +} +inline void CreatePartitionRequest::set_collection_name(std::string&& value) { + + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.CreatePartitionRequest.collection_name) +} +inline void CreatePartitionRequest::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.CreatePartitionRequest.collection_name) +} +inline void CreatePartitionRequest::set_collection_name(const char* value, size_t size) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.CreatePartitionRequest.collection_name) +} +inline std::string* CreatePartitionRequest::mutable_collection_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.CreatePartitionRequest.collection_name) + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* CreatePartitionRequest::release_collection_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.CreatePartitionRequest.collection_name) + + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void CreatePartitionRequest::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { + + } else { + + } + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.CreatePartitionRequest.collection_name) +} + +// string partition_name = 4; +inline void CreatePartitionRequest::clear_partition_name() { + partition_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& CreatePartitionRequest::partition_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.CreatePartitionRequest.partition_name) + return partition_name_.GetNoArena(); +} +inline void CreatePartitionRequest::set_partition_name(const std::string& value) { + + partition_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.CreatePartitionRequest.partition_name) +} +inline void CreatePartitionRequest::set_partition_name(std::string&& value) { + + partition_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.CreatePartitionRequest.partition_name) +} +inline void CreatePartitionRequest::set_partition_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + partition_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.CreatePartitionRequest.partition_name) +} +inline void CreatePartitionRequest::set_partition_name(const char* value, size_t size) { + + partition_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.CreatePartitionRequest.partition_name) +} +inline std::string* CreatePartitionRequest::mutable_partition_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.CreatePartitionRequest.partition_name) + return partition_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* CreatePartitionRequest::release_partition_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.CreatePartitionRequest.partition_name) + + return partition_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void CreatePartitionRequest::set_allocated_partition_name(std::string* partition_name) { + if (partition_name != nullptr) { + + } else { + + } + partition_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), partition_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.CreatePartitionRequest.partition_name) +} + +// ------------------------------------------------------------------- + +// DropPartitionRequest + +// .milvus.proto.common.MsgBase base = 1; +inline bool DropPartitionRequest::has_base() const { + return this != internal_default_instance() && base_ != nullptr; +} +inline const ::milvus::proto::common::MsgBase& DropPartitionRequest::base() const { + const ::milvus::proto::common::MsgBase* p = base_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.DropPartitionRequest.base) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::MsgBase*>( + &::milvus::proto::common::_MsgBase_default_instance_); +} +inline ::milvus::proto::common::MsgBase* DropPartitionRequest::release_base() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.DropPartitionRequest.base) + + ::milvus::proto::common::MsgBase* temp = base_; + base_ = nullptr; + return temp; +} +inline ::milvus::proto::common::MsgBase* DropPartitionRequest::mutable_base() { + + if (base_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::MsgBase>(GetArenaNoVirtual()); + base_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.DropPartitionRequest.base) + return base_; +} +inline void DropPartitionRequest::set_allocated_base(::milvus::proto::common::MsgBase* base) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_); + } + if (base) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + base = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, base, submessage_arena); + } + + } else { + + } + base_ = base; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.DropPartitionRequest.base) +} + +// string db_name = 2; +inline void DropPartitionRequest::clear_db_name() { + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& DropPartitionRequest::db_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.DropPartitionRequest.db_name) + return db_name_.GetNoArena(); +} +inline void DropPartitionRequest::set_db_name(const std::string& value) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.DropPartitionRequest.db_name) +} +inline void DropPartitionRequest::set_db_name(std::string&& value) { + + db_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.DropPartitionRequest.db_name) +} +inline void DropPartitionRequest::set_db_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.DropPartitionRequest.db_name) +} +inline void DropPartitionRequest::set_db_name(const char* value, size_t size) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.DropPartitionRequest.db_name) +} +inline std::string* DropPartitionRequest::mutable_db_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.DropPartitionRequest.db_name) + return db_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* DropPartitionRequest::release_db_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.DropPartitionRequest.db_name) + + return db_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void DropPartitionRequest::set_allocated_db_name(std::string* db_name) { + if (db_name != nullptr) { + + } else { + + } + db_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), db_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.DropPartitionRequest.db_name) +} + +// string collection_name = 3; +inline void DropPartitionRequest::clear_collection_name() { + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& DropPartitionRequest::collection_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.DropPartitionRequest.collection_name) + return collection_name_.GetNoArena(); +} +inline void DropPartitionRequest::set_collection_name(const std::string& value) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.DropPartitionRequest.collection_name) +} +inline void DropPartitionRequest::set_collection_name(std::string&& value) { + + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.DropPartitionRequest.collection_name) +} +inline void DropPartitionRequest::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.DropPartitionRequest.collection_name) +} +inline void DropPartitionRequest::set_collection_name(const char* value, size_t size) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.DropPartitionRequest.collection_name) +} +inline std::string* DropPartitionRequest::mutable_collection_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.DropPartitionRequest.collection_name) + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* DropPartitionRequest::release_collection_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.DropPartitionRequest.collection_name) + + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void DropPartitionRequest::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { + + } else { + + } + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.DropPartitionRequest.collection_name) +} + +// string partition_name = 4; +inline void DropPartitionRequest::clear_partition_name() { + partition_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& DropPartitionRequest::partition_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.DropPartitionRequest.partition_name) + return partition_name_.GetNoArena(); +} +inline void DropPartitionRequest::set_partition_name(const std::string& value) { + + partition_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.DropPartitionRequest.partition_name) +} +inline void DropPartitionRequest::set_partition_name(std::string&& value) { + + partition_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.DropPartitionRequest.partition_name) +} +inline void DropPartitionRequest::set_partition_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + partition_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.DropPartitionRequest.partition_name) +} +inline void DropPartitionRequest::set_partition_name(const char* value, size_t size) { + + partition_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.DropPartitionRequest.partition_name) +} +inline std::string* DropPartitionRequest::mutable_partition_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.DropPartitionRequest.partition_name) + return partition_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* DropPartitionRequest::release_partition_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.DropPartitionRequest.partition_name) + + return partition_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void DropPartitionRequest::set_allocated_partition_name(std::string* partition_name) { + if (partition_name != nullptr) { + + } else { + + } + partition_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), partition_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.DropPartitionRequest.partition_name) +} + +// ------------------------------------------------------------------- + +// HasPartitionRequest + +// .milvus.proto.common.MsgBase base = 1; +inline bool HasPartitionRequest::has_base() const { + return this != internal_default_instance() && base_ != nullptr; +} +inline const ::milvus::proto::common::MsgBase& HasPartitionRequest::base() const { + const ::milvus::proto::common::MsgBase* p = base_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.HasPartitionRequest.base) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::MsgBase*>( + &::milvus::proto::common::_MsgBase_default_instance_); +} +inline ::milvus::proto::common::MsgBase* HasPartitionRequest::release_base() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.HasPartitionRequest.base) + + ::milvus::proto::common::MsgBase* temp = base_; + base_ = nullptr; + return temp; +} +inline ::milvus::proto::common::MsgBase* HasPartitionRequest::mutable_base() { + + if (base_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::MsgBase>(GetArenaNoVirtual()); + base_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.HasPartitionRequest.base) + return base_; +} +inline void HasPartitionRequest::set_allocated_base(::milvus::proto::common::MsgBase* base) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_); + } + if (base) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + base = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, base, submessage_arena); + } + + } else { + + } + base_ = base; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.HasPartitionRequest.base) +} + +// string db_name = 2; +inline void HasPartitionRequest::clear_db_name() { + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& HasPartitionRequest::db_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.HasPartitionRequest.db_name) + return db_name_.GetNoArena(); +} +inline void HasPartitionRequest::set_db_name(const std::string& value) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.HasPartitionRequest.db_name) +} +inline void HasPartitionRequest::set_db_name(std::string&& value) { + + db_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.HasPartitionRequest.db_name) +} +inline void HasPartitionRequest::set_db_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.HasPartitionRequest.db_name) +} +inline void HasPartitionRequest::set_db_name(const char* value, size_t size) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.HasPartitionRequest.db_name) +} +inline std::string* HasPartitionRequest::mutable_db_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.HasPartitionRequest.db_name) + return db_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* HasPartitionRequest::release_db_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.HasPartitionRequest.db_name) + + return db_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void HasPartitionRequest::set_allocated_db_name(std::string* db_name) { + if (db_name != nullptr) { + + } else { + + } + db_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), db_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.HasPartitionRequest.db_name) +} + +// string collection_name = 3; +inline void HasPartitionRequest::clear_collection_name() { + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& HasPartitionRequest::collection_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.HasPartitionRequest.collection_name) + return collection_name_.GetNoArena(); +} +inline void HasPartitionRequest::set_collection_name(const std::string& value) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.HasPartitionRequest.collection_name) +} +inline void HasPartitionRequest::set_collection_name(std::string&& value) { + + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.HasPartitionRequest.collection_name) +} +inline void HasPartitionRequest::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.HasPartitionRequest.collection_name) +} +inline void HasPartitionRequest::set_collection_name(const char* value, size_t size) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.HasPartitionRequest.collection_name) +} +inline std::string* HasPartitionRequest::mutable_collection_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.HasPartitionRequest.collection_name) + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* HasPartitionRequest::release_collection_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.HasPartitionRequest.collection_name) + + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void HasPartitionRequest::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { + + } else { + + } + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.HasPartitionRequest.collection_name) +} + +// string partition_name = 4; +inline void HasPartitionRequest::clear_partition_name() { + partition_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& HasPartitionRequest::partition_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.HasPartitionRequest.partition_name) + return partition_name_.GetNoArena(); +} +inline void HasPartitionRequest::set_partition_name(const std::string& value) { + + partition_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.HasPartitionRequest.partition_name) +} +inline void HasPartitionRequest::set_partition_name(std::string&& value) { + + partition_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.HasPartitionRequest.partition_name) +} +inline void HasPartitionRequest::set_partition_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + partition_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.HasPartitionRequest.partition_name) +} +inline void HasPartitionRequest::set_partition_name(const char* value, size_t size) { + + partition_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.HasPartitionRequest.partition_name) +} +inline std::string* HasPartitionRequest::mutable_partition_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.HasPartitionRequest.partition_name) + return partition_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* HasPartitionRequest::release_partition_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.HasPartitionRequest.partition_name) + + return partition_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void HasPartitionRequest::set_allocated_partition_name(std::string* partition_name) { + if (partition_name != nullptr) { + + } else { + + } + partition_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), partition_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.HasPartitionRequest.partition_name) +} + +// ------------------------------------------------------------------- + +// LoadPartitonRequest + +// .milvus.proto.common.MsgBase base = 1; +inline bool LoadPartitonRequest::has_base() const { + return this != internal_default_instance() && base_ != nullptr; +} +inline const ::milvus::proto::common::MsgBase& LoadPartitonRequest::base() const { + const ::milvus::proto::common::MsgBase* p = base_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.LoadPartitonRequest.base) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::MsgBase*>( + &::milvus::proto::common::_MsgBase_default_instance_); +} +inline ::milvus::proto::common::MsgBase* LoadPartitonRequest::release_base() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.LoadPartitonRequest.base) + + ::milvus::proto::common::MsgBase* temp = base_; + base_ = nullptr; + return temp; +} +inline ::milvus::proto::common::MsgBase* LoadPartitonRequest::mutable_base() { + + if (base_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::MsgBase>(GetArenaNoVirtual()); + base_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.LoadPartitonRequest.base) + return base_; +} +inline void LoadPartitonRequest::set_allocated_base(::milvus::proto::common::MsgBase* base) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_); + } + if (base) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + base = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, base, submessage_arena); + } + + } else { + + } + base_ = base; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.LoadPartitonRequest.base) +} + +// string db_name = 2; +inline void LoadPartitonRequest::clear_db_name() { + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& LoadPartitonRequest::db_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.LoadPartitonRequest.db_name) + return db_name_.GetNoArena(); +} +inline void LoadPartitonRequest::set_db_name(const std::string& value) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.LoadPartitonRequest.db_name) +} +inline void LoadPartitonRequest::set_db_name(std::string&& value) { + + db_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.LoadPartitonRequest.db_name) +} +inline void LoadPartitonRequest::set_db_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.LoadPartitonRequest.db_name) +} +inline void LoadPartitonRequest::set_db_name(const char* value, size_t size) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.LoadPartitonRequest.db_name) +} +inline std::string* LoadPartitonRequest::mutable_db_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.LoadPartitonRequest.db_name) + return db_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* LoadPartitonRequest::release_db_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.LoadPartitonRequest.db_name) + + return db_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void LoadPartitonRequest::set_allocated_db_name(std::string* db_name) { + if (db_name != nullptr) { + + } else { + + } + db_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), db_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.LoadPartitonRequest.db_name) +} + +// string collection_name = 3; +inline void LoadPartitonRequest::clear_collection_name() { + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& LoadPartitonRequest::collection_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.LoadPartitonRequest.collection_name) + return collection_name_.GetNoArena(); +} +inline void LoadPartitonRequest::set_collection_name(const std::string& value) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.LoadPartitonRequest.collection_name) +} +inline void LoadPartitonRequest::set_collection_name(std::string&& value) { + + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.LoadPartitonRequest.collection_name) +} +inline void LoadPartitonRequest::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.LoadPartitonRequest.collection_name) +} +inline void LoadPartitonRequest::set_collection_name(const char* value, size_t size) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.LoadPartitonRequest.collection_name) +} +inline std::string* LoadPartitonRequest::mutable_collection_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.LoadPartitonRequest.collection_name) + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* LoadPartitonRequest::release_collection_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.LoadPartitonRequest.collection_name) + + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void LoadPartitonRequest::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { + + } else { + + } + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.LoadPartitonRequest.collection_name) +} + +// repeated string partition_names = 4; +inline int LoadPartitonRequest::partition_names_size() const { + return partition_names_.size(); +} +inline void LoadPartitonRequest::clear_partition_names() { + partition_names_.Clear(); +} +inline const std::string& LoadPartitonRequest::partition_names(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.LoadPartitonRequest.partition_names) + return partition_names_.Get(index); +} +inline std::string* LoadPartitonRequest::mutable_partition_names(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.LoadPartitonRequest.partition_names) + return partition_names_.Mutable(index); +} +inline void LoadPartitonRequest::set_partition_names(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:milvus.proto.milvus.LoadPartitonRequest.partition_names) + partition_names_.Mutable(index)->assign(value); +} +inline void LoadPartitonRequest::set_partition_names(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.proto.milvus.LoadPartitonRequest.partition_names) + partition_names_.Mutable(index)->assign(std::move(value)); +} +inline void LoadPartitonRequest::set_partition_names(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + partition_names_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.LoadPartitonRequest.partition_names) +} +inline void LoadPartitonRequest::set_partition_names(int index, const char* value, size_t size) { + partition_names_.Mutable(index)->assign( + reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.LoadPartitonRequest.partition_names) +} +inline std::string* LoadPartitonRequest::add_partition_names() { + // @@protoc_insertion_point(field_add_mutable:milvus.proto.milvus.LoadPartitonRequest.partition_names) + return partition_names_.Add(); +} +inline void LoadPartitonRequest::add_partition_names(const std::string& value) { + partition_names_.Add()->assign(value); + // @@protoc_insertion_point(field_add:milvus.proto.milvus.LoadPartitonRequest.partition_names) +} +inline void LoadPartitonRequest::add_partition_names(std::string&& value) { + partition_names_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:milvus.proto.milvus.LoadPartitonRequest.partition_names) +} +inline void LoadPartitonRequest::add_partition_names(const char* value) { + GOOGLE_DCHECK(value != nullptr); + partition_names_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:milvus.proto.milvus.LoadPartitonRequest.partition_names) +} +inline void LoadPartitonRequest::add_partition_names(const char* value, size_t size) { + partition_names_.Add()->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_add_pointer:milvus.proto.milvus.LoadPartitonRequest.partition_names) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& +LoadPartitonRequest::partition_names() const { + // @@protoc_insertion_point(field_list:milvus.proto.milvus.LoadPartitonRequest.partition_names) + return partition_names_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* +LoadPartitonRequest::mutable_partition_names() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.milvus.LoadPartitonRequest.partition_names) + return &partition_names_; +} + +// ------------------------------------------------------------------- + +// ReleasePartitionRequest + +// .milvus.proto.common.MsgBase base = 1; +inline bool ReleasePartitionRequest::has_base() const { + return this != internal_default_instance() && base_ != nullptr; +} +inline const ::milvus::proto::common::MsgBase& ReleasePartitionRequest::base() const { + const ::milvus::proto::common::MsgBase* p = base_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.ReleasePartitionRequest.base) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::MsgBase*>( + &::milvus::proto::common::_MsgBase_default_instance_); +} +inline ::milvus::proto::common::MsgBase* ReleasePartitionRequest::release_base() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.ReleasePartitionRequest.base) + + ::milvus::proto::common::MsgBase* temp = base_; + base_ = nullptr; + return temp; +} +inline ::milvus::proto::common::MsgBase* ReleasePartitionRequest::mutable_base() { + + if (base_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::MsgBase>(GetArenaNoVirtual()); + base_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.ReleasePartitionRequest.base) + return base_; +} +inline void ReleasePartitionRequest::set_allocated_base(::milvus::proto::common::MsgBase* base) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_); + } + if (base) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + base = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, base, submessage_arena); + } + + } else { + + } + base_ = base; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.ReleasePartitionRequest.base) +} + +// string db_name = 2; +inline void ReleasePartitionRequest::clear_db_name() { + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& ReleasePartitionRequest::db_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.ReleasePartitionRequest.db_name) + return db_name_.GetNoArena(); +} +inline void ReleasePartitionRequest::set_db_name(const std::string& value) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.ReleasePartitionRequest.db_name) +} +inline void ReleasePartitionRequest::set_db_name(std::string&& value) { + + db_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.ReleasePartitionRequest.db_name) +} +inline void ReleasePartitionRequest::set_db_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.ReleasePartitionRequest.db_name) +} +inline void ReleasePartitionRequest::set_db_name(const char* value, size_t size) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.ReleasePartitionRequest.db_name) +} +inline std::string* ReleasePartitionRequest::mutable_db_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.ReleasePartitionRequest.db_name) + return db_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* ReleasePartitionRequest::release_db_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.ReleasePartitionRequest.db_name) + + return db_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void ReleasePartitionRequest::set_allocated_db_name(std::string* db_name) { + if (db_name != nullptr) { + + } else { + + } + db_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), db_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.ReleasePartitionRequest.db_name) +} + +// string collection_name = 3; +inline void ReleasePartitionRequest::clear_collection_name() { + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& ReleasePartitionRequest::collection_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.ReleasePartitionRequest.collection_name) + return collection_name_.GetNoArena(); +} +inline void ReleasePartitionRequest::set_collection_name(const std::string& value) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.ReleasePartitionRequest.collection_name) +} +inline void ReleasePartitionRequest::set_collection_name(std::string&& value) { + + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.ReleasePartitionRequest.collection_name) +} +inline void ReleasePartitionRequest::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.ReleasePartitionRequest.collection_name) +} +inline void ReleasePartitionRequest::set_collection_name(const char* value, size_t size) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.ReleasePartitionRequest.collection_name) +} +inline std::string* ReleasePartitionRequest::mutable_collection_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.ReleasePartitionRequest.collection_name) + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* ReleasePartitionRequest::release_collection_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.ReleasePartitionRequest.collection_name) + + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void ReleasePartitionRequest::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { + + } else { + + } + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.ReleasePartitionRequest.collection_name) +} + +// repeated string partition_names = 4; +inline int ReleasePartitionRequest::partition_names_size() const { + return partition_names_.size(); +} +inline void ReleasePartitionRequest::clear_partition_names() { + partition_names_.Clear(); +} +inline const std::string& ReleasePartitionRequest::partition_names(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.ReleasePartitionRequest.partition_names) + return partition_names_.Get(index); +} +inline std::string* ReleasePartitionRequest::mutable_partition_names(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.ReleasePartitionRequest.partition_names) + return partition_names_.Mutable(index); +} +inline void ReleasePartitionRequest::set_partition_names(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:milvus.proto.milvus.ReleasePartitionRequest.partition_names) + partition_names_.Mutable(index)->assign(value); +} +inline void ReleasePartitionRequest::set_partition_names(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.proto.milvus.ReleasePartitionRequest.partition_names) + partition_names_.Mutable(index)->assign(std::move(value)); +} +inline void ReleasePartitionRequest::set_partition_names(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + partition_names_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.ReleasePartitionRequest.partition_names) +} +inline void ReleasePartitionRequest::set_partition_names(int index, const char* value, size_t size) { + partition_names_.Mutable(index)->assign( + reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.ReleasePartitionRequest.partition_names) +} +inline std::string* ReleasePartitionRequest::add_partition_names() { + // @@protoc_insertion_point(field_add_mutable:milvus.proto.milvus.ReleasePartitionRequest.partition_names) + return partition_names_.Add(); +} +inline void ReleasePartitionRequest::add_partition_names(const std::string& value) { + partition_names_.Add()->assign(value); + // @@protoc_insertion_point(field_add:milvus.proto.milvus.ReleasePartitionRequest.partition_names) +} +inline void ReleasePartitionRequest::add_partition_names(std::string&& value) { + partition_names_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:milvus.proto.milvus.ReleasePartitionRequest.partition_names) +} +inline void ReleasePartitionRequest::add_partition_names(const char* value) { + GOOGLE_DCHECK(value != nullptr); + partition_names_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:milvus.proto.milvus.ReleasePartitionRequest.partition_names) +} +inline void ReleasePartitionRequest::add_partition_names(const char* value, size_t size) { + partition_names_.Add()->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_add_pointer:milvus.proto.milvus.ReleasePartitionRequest.partition_names) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& +ReleasePartitionRequest::partition_names() const { + // @@protoc_insertion_point(field_list:milvus.proto.milvus.ReleasePartitionRequest.partition_names) + return partition_names_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* +ReleasePartitionRequest::mutable_partition_names() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.milvus.ReleasePartitionRequest.partition_names) + return &partition_names_; +} + +// ------------------------------------------------------------------- + +// PartitionStatsRequest + +// .milvus.proto.common.MsgBase base = 1; +inline bool PartitionStatsRequest::has_base() const { + return this != internal_default_instance() && base_ != nullptr; +} +inline const ::milvus::proto::common::MsgBase& PartitionStatsRequest::base() const { + const ::milvus::proto::common::MsgBase* p = base_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.PartitionStatsRequest.base) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::MsgBase*>( + &::milvus::proto::common::_MsgBase_default_instance_); +} +inline ::milvus::proto::common::MsgBase* PartitionStatsRequest::release_base() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.PartitionStatsRequest.base) + + ::milvus::proto::common::MsgBase* temp = base_; + base_ = nullptr; + return temp; +} +inline ::milvus::proto::common::MsgBase* PartitionStatsRequest::mutable_base() { + + if (base_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::MsgBase>(GetArenaNoVirtual()); + base_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.PartitionStatsRequest.base) + return base_; +} +inline void PartitionStatsRequest::set_allocated_base(::milvus::proto::common::MsgBase* base) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_); + } + if (base) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + base = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, base, submessage_arena); + } + + } else { + + } + base_ = base; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.PartitionStatsRequest.base) +} + +// string db_name = 2; +inline void PartitionStatsRequest::clear_db_name() { + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& PartitionStatsRequest::db_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.PartitionStatsRequest.db_name) + return db_name_.GetNoArena(); +} +inline void PartitionStatsRequest::set_db_name(const std::string& value) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.PartitionStatsRequest.db_name) +} +inline void PartitionStatsRequest::set_db_name(std::string&& value) { + + db_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.PartitionStatsRequest.db_name) +} +inline void PartitionStatsRequest::set_db_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.PartitionStatsRequest.db_name) +} +inline void PartitionStatsRequest::set_db_name(const char* value, size_t size) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.PartitionStatsRequest.db_name) +} +inline std::string* PartitionStatsRequest::mutable_db_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.PartitionStatsRequest.db_name) + return db_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* PartitionStatsRequest::release_db_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.PartitionStatsRequest.db_name) + + return db_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void PartitionStatsRequest::set_allocated_db_name(std::string* db_name) { + if (db_name != nullptr) { + + } else { + + } + db_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), db_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.PartitionStatsRequest.db_name) +} + +// string collection_name = 3; +inline void PartitionStatsRequest::clear_collection_name() { + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& PartitionStatsRequest::collection_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.PartitionStatsRequest.collection_name) + return collection_name_.GetNoArena(); +} +inline void PartitionStatsRequest::set_collection_name(const std::string& value) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.PartitionStatsRequest.collection_name) +} +inline void PartitionStatsRequest::set_collection_name(std::string&& value) { + + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.PartitionStatsRequest.collection_name) +} +inline void PartitionStatsRequest::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.PartitionStatsRequest.collection_name) +} +inline void PartitionStatsRequest::set_collection_name(const char* value, size_t size) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.PartitionStatsRequest.collection_name) +} +inline std::string* PartitionStatsRequest::mutable_collection_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.PartitionStatsRequest.collection_name) + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* PartitionStatsRequest::release_collection_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.PartitionStatsRequest.collection_name) + + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void PartitionStatsRequest::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { + + } else { + + } + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.PartitionStatsRequest.collection_name) +} + +// string partition_name = 4; +inline void PartitionStatsRequest::clear_partition_name() { + partition_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& PartitionStatsRequest::partition_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.PartitionStatsRequest.partition_name) + return partition_name_.GetNoArena(); +} +inline void PartitionStatsRequest::set_partition_name(const std::string& value) { + + partition_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.PartitionStatsRequest.partition_name) +} +inline void PartitionStatsRequest::set_partition_name(std::string&& value) { + + partition_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.PartitionStatsRequest.partition_name) +} +inline void PartitionStatsRequest::set_partition_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + partition_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.PartitionStatsRequest.partition_name) +} +inline void PartitionStatsRequest::set_partition_name(const char* value, size_t size) { + + partition_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.PartitionStatsRequest.partition_name) +} +inline std::string* PartitionStatsRequest::mutable_partition_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.PartitionStatsRequest.partition_name) + return partition_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* PartitionStatsRequest::release_partition_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.PartitionStatsRequest.partition_name) + + return partition_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void PartitionStatsRequest::set_allocated_partition_name(std::string* partition_name) { + if (partition_name != nullptr) { + + } else { + + } + partition_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), partition_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.PartitionStatsRequest.partition_name) +} + +// ------------------------------------------------------------------- + +// PartitionStatsResponse + +// .milvus.proto.common.Status status = 1; +inline bool PartitionStatsResponse::has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline const ::milvus::proto::common::Status& PartitionStatsResponse::status() const { + const ::milvus::proto::common::Status* p = status_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.PartitionStatsResponse.status) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::Status*>( + &::milvus::proto::common::_Status_default_instance_); +} +inline ::milvus::proto::common::Status* PartitionStatsResponse::release_status() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.PartitionStatsResponse.status) + + ::milvus::proto::common::Status* temp = status_; + status_ = nullptr; + return temp; +} +inline ::milvus::proto::common::Status* PartitionStatsResponse::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.PartitionStatsResponse.status) + return status_; +} +inline void PartitionStatsResponse::set_allocated_status(::milvus::proto::common::Status* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.PartitionStatsResponse.status) +} + +// repeated .milvus.proto.common.KeyValuePair stats = 2; +inline int PartitionStatsResponse::stats_size() const { + return stats_.size(); +} +inline ::milvus::proto::common::KeyValuePair* PartitionStatsResponse::mutable_stats(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.PartitionStatsResponse.stats) + return stats_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >* +PartitionStatsResponse::mutable_stats() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.milvus.PartitionStatsResponse.stats) + return &stats_; +} +inline const ::milvus::proto::common::KeyValuePair& PartitionStatsResponse::stats(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.PartitionStatsResponse.stats) + return stats_.Get(index); +} +inline ::milvus::proto::common::KeyValuePair* PartitionStatsResponse::add_stats() { + // @@protoc_insertion_point(field_add:milvus.proto.milvus.PartitionStatsResponse.stats) + return stats_.Add(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >& +PartitionStatsResponse::stats() const { + // @@protoc_insertion_point(field_list:milvus.proto.milvus.PartitionStatsResponse.stats) + return stats_; +} + +// ------------------------------------------------------------------- + +// ShowPartitionRequest + +// .milvus.proto.common.MsgBase base = 1; +inline bool ShowPartitionRequest::has_base() const { + return this != internal_default_instance() && base_ != nullptr; +} +inline const ::milvus::proto::common::MsgBase& ShowPartitionRequest::base() const { + const ::milvus::proto::common::MsgBase* p = base_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.ShowPartitionRequest.base) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::MsgBase*>( + &::milvus::proto::common::_MsgBase_default_instance_); +} +inline ::milvus::proto::common::MsgBase* ShowPartitionRequest::release_base() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.ShowPartitionRequest.base) + + ::milvus::proto::common::MsgBase* temp = base_; + base_ = nullptr; + return temp; +} +inline ::milvus::proto::common::MsgBase* ShowPartitionRequest::mutable_base() { + + if (base_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::MsgBase>(GetArenaNoVirtual()); + base_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.ShowPartitionRequest.base) + return base_; +} +inline void ShowPartitionRequest::set_allocated_base(::milvus::proto::common::MsgBase* base) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_); + } + if (base) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + base = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, base, submessage_arena); + } + + } else { + + } + base_ = base; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.ShowPartitionRequest.base) +} + +// string db_name = 2; +inline void ShowPartitionRequest::clear_db_name() { + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& ShowPartitionRequest::db_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.ShowPartitionRequest.db_name) + return db_name_.GetNoArena(); +} +inline void ShowPartitionRequest::set_db_name(const std::string& value) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.ShowPartitionRequest.db_name) +} +inline void ShowPartitionRequest::set_db_name(std::string&& value) { + + db_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.ShowPartitionRequest.db_name) +} +inline void ShowPartitionRequest::set_db_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.ShowPartitionRequest.db_name) +} +inline void ShowPartitionRequest::set_db_name(const char* value, size_t size) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.ShowPartitionRequest.db_name) +} +inline std::string* ShowPartitionRequest::mutable_db_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.ShowPartitionRequest.db_name) + return db_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* ShowPartitionRequest::release_db_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.ShowPartitionRequest.db_name) + + return db_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void ShowPartitionRequest::set_allocated_db_name(std::string* db_name) { + if (db_name != nullptr) { + + } else { + + } + db_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), db_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.ShowPartitionRequest.db_name) +} + +// string collection_name = 3; +inline void ShowPartitionRequest::clear_collection_name() { + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& ShowPartitionRequest::collection_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.ShowPartitionRequest.collection_name) + return collection_name_.GetNoArena(); +} +inline void ShowPartitionRequest::set_collection_name(const std::string& value) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.ShowPartitionRequest.collection_name) +} +inline void ShowPartitionRequest::set_collection_name(std::string&& value) { + + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.ShowPartitionRequest.collection_name) +} +inline void ShowPartitionRequest::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.ShowPartitionRequest.collection_name) +} +inline void ShowPartitionRequest::set_collection_name(const char* value, size_t size) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.ShowPartitionRequest.collection_name) +} +inline std::string* ShowPartitionRequest::mutable_collection_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.ShowPartitionRequest.collection_name) + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* ShowPartitionRequest::release_collection_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.ShowPartitionRequest.collection_name) + + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void ShowPartitionRequest::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { + + } else { + + } + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.ShowPartitionRequest.collection_name) +} + +// int64 collectionID = 4; +inline void ShowPartitionRequest::clear_collectionid() { + collectionid_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 ShowPartitionRequest::collectionid() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.ShowPartitionRequest.collectionID) + return collectionid_; +} +inline void ShowPartitionRequest::set_collectionid(::PROTOBUF_NAMESPACE_ID::int64 value) { + + collectionid_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.milvus.ShowPartitionRequest.collectionID) +} + +// ------------------------------------------------------------------- + +// ShowPartitionResponse + +// .milvus.proto.common.Status status = 1; +inline bool ShowPartitionResponse::has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline const ::milvus::proto::common::Status& ShowPartitionResponse::status() const { + const ::milvus::proto::common::Status* p = status_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.ShowPartitionResponse.status) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::Status*>( + &::milvus::proto::common::_Status_default_instance_); +} +inline ::milvus::proto::common::Status* ShowPartitionResponse::release_status() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.ShowPartitionResponse.status) + + ::milvus::proto::common::Status* temp = status_; + status_ = nullptr; + return temp; +} +inline ::milvus::proto::common::Status* ShowPartitionResponse::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.ShowPartitionResponse.status) + return status_; +} +inline void ShowPartitionResponse::set_allocated_status(::milvus::proto::common::Status* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.ShowPartitionResponse.status) +} + +// repeated string partition_names = 2; +inline int ShowPartitionResponse::partition_names_size() const { + return partition_names_.size(); +} +inline void ShowPartitionResponse::clear_partition_names() { + partition_names_.Clear(); +} +inline const std::string& ShowPartitionResponse::partition_names(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.ShowPartitionResponse.partition_names) + return partition_names_.Get(index); +} +inline std::string* ShowPartitionResponse::mutable_partition_names(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.ShowPartitionResponse.partition_names) + return partition_names_.Mutable(index); +} +inline void ShowPartitionResponse::set_partition_names(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:milvus.proto.milvus.ShowPartitionResponse.partition_names) + partition_names_.Mutable(index)->assign(value); +} +inline void ShowPartitionResponse::set_partition_names(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.proto.milvus.ShowPartitionResponse.partition_names) + partition_names_.Mutable(index)->assign(std::move(value)); +} +inline void ShowPartitionResponse::set_partition_names(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + partition_names_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.ShowPartitionResponse.partition_names) +} +inline void ShowPartitionResponse::set_partition_names(int index, const char* value, size_t size) { + partition_names_.Mutable(index)->assign( + reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.ShowPartitionResponse.partition_names) +} +inline std::string* ShowPartitionResponse::add_partition_names() { + // @@protoc_insertion_point(field_add_mutable:milvus.proto.milvus.ShowPartitionResponse.partition_names) + return partition_names_.Add(); +} +inline void ShowPartitionResponse::add_partition_names(const std::string& value) { + partition_names_.Add()->assign(value); + // @@protoc_insertion_point(field_add:milvus.proto.milvus.ShowPartitionResponse.partition_names) +} +inline void ShowPartitionResponse::add_partition_names(std::string&& value) { + partition_names_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:milvus.proto.milvus.ShowPartitionResponse.partition_names) +} +inline void ShowPartitionResponse::add_partition_names(const char* value) { + GOOGLE_DCHECK(value != nullptr); + partition_names_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:milvus.proto.milvus.ShowPartitionResponse.partition_names) +} +inline void ShowPartitionResponse::add_partition_names(const char* value, size_t size) { + partition_names_.Add()->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_add_pointer:milvus.proto.milvus.ShowPartitionResponse.partition_names) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& +ShowPartitionResponse::partition_names() const { + // @@protoc_insertion_point(field_list:milvus.proto.milvus.ShowPartitionResponse.partition_names) + return partition_names_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* +ShowPartitionResponse::mutable_partition_names() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.milvus.ShowPartitionResponse.partition_names) + return &partition_names_; +} + +// repeated int64 partitionIDs = 3; +inline int ShowPartitionResponse::partitionids_size() const { + return partitionids_.size(); +} +inline void ShowPartitionResponse::clear_partitionids() { + partitionids_.Clear(); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 ShowPartitionResponse::partitionids(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.ShowPartitionResponse.partitionIDs) + return partitionids_.Get(index); +} +inline void ShowPartitionResponse::set_partitionids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { + partitionids_.Set(index, value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.ShowPartitionResponse.partitionIDs) +} +inline void ShowPartitionResponse::add_partitionids(::PROTOBUF_NAMESPACE_ID::int64 value) { + partitionids_.Add(value); + // @@protoc_insertion_point(field_add:milvus.proto.milvus.ShowPartitionResponse.partitionIDs) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& +ShowPartitionResponse::partitionids() const { + // @@protoc_insertion_point(field_list:milvus.proto.milvus.ShowPartitionResponse.partitionIDs) + return partitionids_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* +ShowPartitionResponse::mutable_partitionids() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.milvus.ShowPartitionResponse.partitionIDs) + return &partitionids_; +} + +// ------------------------------------------------------------------- + +// DescribeSegmentRequest + +// .milvus.proto.common.MsgBase base = 1; +inline bool DescribeSegmentRequest::has_base() const { + return this != internal_default_instance() && base_ != nullptr; +} +inline const ::milvus::proto::common::MsgBase& DescribeSegmentRequest::base() const { + const ::milvus::proto::common::MsgBase* p = base_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.DescribeSegmentRequest.base) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::MsgBase*>( + &::milvus::proto::common::_MsgBase_default_instance_); +} +inline ::milvus::proto::common::MsgBase* DescribeSegmentRequest::release_base() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.DescribeSegmentRequest.base) + + ::milvus::proto::common::MsgBase* temp = base_; + base_ = nullptr; + return temp; +} +inline ::milvus::proto::common::MsgBase* DescribeSegmentRequest::mutable_base() { + + if (base_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::MsgBase>(GetArenaNoVirtual()); + base_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.DescribeSegmentRequest.base) + return base_; +} +inline void DescribeSegmentRequest::set_allocated_base(::milvus::proto::common::MsgBase* base) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_); + } + if (base) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + base = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, base, submessage_arena); + } + + } else { + + } + base_ = base; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.DescribeSegmentRequest.base) +} + +// int64 collectionID = 2; +inline void DescribeSegmentRequest::clear_collectionid() { + collectionid_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 DescribeSegmentRequest::collectionid() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.DescribeSegmentRequest.collectionID) + return collectionid_; +} +inline void DescribeSegmentRequest::set_collectionid(::PROTOBUF_NAMESPACE_ID::int64 value) { + + collectionid_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.milvus.DescribeSegmentRequest.collectionID) +} + +// int64 segmentID = 3; +inline void DescribeSegmentRequest::clear_segmentid() { + segmentid_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 DescribeSegmentRequest::segmentid() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.DescribeSegmentRequest.segmentID) + return segmentid_; +} +inline void DescribeSegmentRequest::set_segmentid(::PROTOBUF_NAMESPACE_ID::int64 value) { + + segmentid_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.milvus.DescribeSegmentRequest.segmentID) +} + +// ------------------------------------------------------------------- + +// DescribeSegmentResponse + +// .milvus.proto.common.Status status = 1; +inline bool DescribeSegmentResponse::has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline const ::milvus::proto::common::Status& DescribeSegmentResponse::status() const { + const ::milvus::proto::common::Status* p = status_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.DescribeSegmentResponse.status) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::Status*>( + &::milvus::proto::common::_Status_default_instance_); +} +inline ::milvus::proto::common::Status* DescribeSegmentResponse::release_status() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.DescribeSegmentResponse.status) + + ::milvus::proto::common::Status* temp = status_; + status_ = nullptr; + return temp; +} +inline ::milvus::proto::common::Status* DescribeSegmentResponse::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.DescribeSegmentResponse.status) + return status_; +} +inline void DescribeSegmentResponse::set_allocated_status(::milvus::proto::common::Status* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.DescribeSegmentResponse.status) +} + +// int64 indexID = 2; +inline void DescribeSegmentResponse::clear_indexid() { + indexid_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 DescribeSegmentResponse::indexid() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.DescribeSegmentResponse.indexID) + return indexid_; +} +inline void DescribeSegmentResponse::set_indexid(::PROTOBUF_NAMESPACE_ID::int64 value) { + + indexid_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.milvus.DescribeSegmentResponse.indexID) +} + +// ------------------------------------------------------------------- + +// ShowSegmentRequest + +// .milvus.proto.common.MsgBase base = 1; +inline bool ShowSegmentRequest::has_base() const { + return this != internal_default_instance() && base_ != nullptr; +} +inline const ::milvus::proto::common::MsgBase& ShowSegmentRequest::base() const { + const ::milvus::proto::common::MsgBase* p = base_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.ShowSegmentRequest.base) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::MsgBase*>( + &::milvus::proto::common::_MsgBase_default_instance_); +} +inline ::milvus::proto::common::MsgBase* ShowSegmentRequest::release_base() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.ShowSegmentRequest.base) + + ::milvus::proto::common::MsgBase* temp = base_; + base_ = nullptr; + return temp; +} +inline ::milvus::proto::common::MsgBase* ShowSegmentRequest::mutable_base() { + + if (base_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::MsgBase>(GetArenaNoVirtual()); + base_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.ShowSegmentRequest.base) + return base_; +} +inline void ShowSegmentRequest::set_allocated_base(::milvus::proto::common::MsgBase* base) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_); + } + if (base) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + base = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, base, submessage_arena); + } + + } else { + + } + base_ = base; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.ShowSegmentRequest.base) +} + +// int64 collectionID = 2; +inline void ShowSegmentRequest::clear_collectionid() { + collectionid_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 ShowSegmentRequest::collectionid() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.ShowSegmentRequest.collectionID) + return collectionid_; +} +inline void ShowSegmentRequest::set_collectionid(::PROTOBUF_NAMESPACE_ID::int64 value) { + + collectionid_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.milvus.ShowSegmentRequest.collectionID) +} + +// int64 partitionID = 3; +inline void ShowSegmentRequest::clear_partitionid() { + partitionid_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 ShowSegmentRequest::partitionid() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.ShowSegmentRequest.partitionID) + return partitionid_; +} +inline void ShowSegmentRequest::set_partitionid(::PROTOBUF_NAMESPACE_ID::int64 value) { + + partitionid_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.milvus.ShowSegmentRequest.partitionID) +} + +// ------------------------------------------------------------------- + +// ShowSegmentResponse + +// .milvus.proto.common.Status status = 1; +inline bool ShowSegmentResponse::has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline const ::milvus::proto::common::Status& ShowSegmentResponse::status() const { + const ::milvus::proto::common::Status* p = status_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.ShowSegmentResponse.status) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::Status*>( + &::milvus::proto::common::_Status_default_instance_); +} +inline ::milvus::proto::common::Status* ShowSegmentResponse::release_status() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.ShowSegmentResponse.status) + + ::milvus::proto::common::Status* temp = status_; + status_ = nullptr; + return temp; +} +inline ::milvus::proto::common::Status* ShowSegmentResponse::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.ShowSegmentResponse.status) + return status_; +} +inline void ShowSegmentResponse::set_allocated_status(::milvus::proto::common::Status* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.ShowSegmentResponse.status) +} + +// repeated int64 segmentIDs = 2; +inline int ShowSegmentResponse::segmentids_size() const { + return segmentids_.size(); +} +inline void ShowSegmentResponse::clear_segmentids() { + segmentids_.Clear(); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 ShowSegmentResponse::segmentids(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.ShowSegmentResponse.segmentIDs) + return segmentids_.Get(index); +} +inline void ShowSegmentResponse::set_segmentids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { + segmentids_.Set(index, value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.ShowSegmentResponse.segmentIDs) +} +inline void ShowSegmentResponse::add_segmentids(::PROTOBUF_NAMESPACE_ID::int64 value) { + segmentids_.Add(value); + // @@protoc_insertion_point(field_add:milvus.proto.milvus.ShowSegmentResponse.segmentIDs) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& +ShowSegmentResponse::segmentids() const { + // @@protoc_insertion_point(field_list:milvus.proto.milvus.ShowSegmentResponse.segmentIDs) + return segmentids_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* +ShowSegmentResponse::mutable_segmentids() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.milvus.ShowSegmentResponse.segmentIDs) + return &segmentids_; +} + +// ------------------------------------------------------------------- + +// CreateIndexRequest + +// .milvus.proto.common.MsgBase base = 1; +inline bool CreateIndexRequest::has_base() const { + return this != internal_default_instance() && base_ != nullptr; +} +inline const ::milvus::proto::common::MsgBase& CreateIndexRequest::base() const { + const ::milvus::proto::common::MsgBase* p = base_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.CreateIndexRequest.base) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::MsgBase*>( + &::milvus::proto::common::_MsgBase_default_instance_); +} +inline ::milvus::proto::common::MsgBase* CreateIndexRequest::release_base() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.CreateIndexRequest.base) + + ::milvus::proto::common::MsgBase* temp = base_; + base_ = nullptr; + return temp; +} +inline ::milvus::proto::common::MsgBase* CreateIndexRequest::mutable_base() { + + if (base_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::MsgBase>(GetArenaNoVirtual()); + base_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.CreateIndexRequest.base) + return base_; +} +inline void CreateIndexRequest::set_allocated_base(::milvus::proto::common::MsgBase* base) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_); + } + if (base) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + base = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, base, submessage_arena); + } + + } else { + + } + base_ = base; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.CreateIndexRequest.base) +} + +// string db_name = 2; +inline void CreateIndexRequest::clear_db_name() { + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& CreateIndexRequest::db_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.CreateIndexRequest.db_name) + return db_name_.GetNoArena(); +} +inline void CreateIndexRequest::set_db_name(const std::string& value) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.CreateIndexRequest.db_name) +} +inline void CreateIndexRequest::set_db_name(std::string&& value) { + + db_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.CreateIndexRequest.db_name) +} +inline void CreateIndexRequest::set_db_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.CreateIndexRequest.db_name) +} +inline void CreateIndexRequest::set_db_name(const char* value, size_t size) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.CreateIndexRequest.db_name) +} +inline std::string* CreateIndexRequest::mutable_db_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.CreateIndexRequest.db_name) + return db_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* CreateIndexRequest::release_db_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.CreateIndexRequest.db_name) + + return db_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void CreateIndexRequest::set_allocated_db_name(std::string* db_name) { + if (db_name != nullptr) { + + } else { + + } + db_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), db_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.CreateIndexRequest.db_name) +} + +// string collection_name = 3; +inline void CreateIndexRequest::clear_collection_name() { + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& CreateIndexRequest::collection_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.CreateIndexRequest.collection_name) + return collection_name_.GetNoArena(); +} +inline void CreateIndexRequest::set_collection_name(const std::string& value) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.CreateIndexRequest.collection_name) +} +inline void CreateIndexRequest::set_collection_name(std::string&& value) { + + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.CreateIndexRequest.collection_name) +} +inline void CreateIndexRequest::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.CreateIndexRequest.collection_name) +} +inline void CreateIndexRequest::set_collection_name(const char* value, size_t size) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.CreateIndexRequest.collection_name) +} +inline std::string* CreateIndexRequest::mutable_collection_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.CreateIndexRequest.collection_name) + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* CreateIndexRequest::release_collection_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.CreateIndexRequest.collection_name) + + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void CreateIndexRequest::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { + + } else { + + } + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.CreateIndexRequest.collection_name) +} + +// string field_name = 4; +inline void CreateIndexRequest::clear_field_name() { + field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& CreateIndexRequest::field_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.CreateIndexRequest.field_name) + return field_name_.GetNoArena(); +} +inline void CreateIndexRequest::set_field_name(const std::string& value) { + + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.CreateIndexRequest.field_name) +} +inline void CreateIndexRequest::set_field_name(std::string&& value) { + + field_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.CreateIndexRequest.field_name) +} +inline void CreateIndexRequest::set_field_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.CreateIndexRequest.field_name) +} +inline void CreateIndexRequest::set_field_name(const char* value, size_t size) { + + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.CreateIndexRequest.field_name) +} +inline std::string* CreateIndexRequest::mutable_field_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.CreateIndexRequest.field_name) + return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* CreateIndexRequest::release_field_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.CreateIndexRequest.field_name) + + return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void CreateIndexRequest::set_allocated_field_name(std::string* field_name) { + if (field_name != nullptr) { + + } else { + + } + field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.CreateIndexRequest.field_name) +} + +// repeated .milvus.proto.common.KeyValuePair extra_params = 5; +inline int CreateIndexRequest::extra_params_size() const { + return extra_params_.size(); +} +inline ::milvus::proto::common::KeyValuePair* CreateIndexRequest::mutable_extra_params(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.CreateIndexRequest.extra_params) + return extra_params_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >* +CreateIndexRequest::mutable_extra_params() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.milvus.CreateIndexRequest.extra_params) + return &extra_params_; +} +inline const ::milvus::proto::common::KeyValuePair& CreateIndexRequest::extra_params(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.CreateIndexRequest.extra_params) + return extra_params_.Get(index); +} +inline ::milvus::proto::common::KeyValuePair* CreateIndexRequest::add_extra_params() { + // @@protoc_insertion_point(field_add:milvus.proto.milvus.CreateIndexRequest.extra_params) + return extra_params_.Add(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >& +CreateIndexRequest::extra_params() const { + // @@protoc_insertion_point(field_list:milvus.proto.milvus.CreateIndexRequest.extra_params) + return extra_params_; +} + +// ------------------------------------------------------------------- + +// DescribeIndexRequest + +// .milvus.proto.common.MsgBase base = 1; +inline bool DescribeIndexRequest::has_base() const { + return this != internal_default_instance() && base_ != nullptr; +} +inline const ::milvus::proto::common::MsgBase& DescribeIndexRequest::base() const { + const ::milvus::proto::common::MsgBase* p = base_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.DescribeIndexRequest.base) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::MsgBase*>( + &::milvus::proto::common::_MsgBase_default_instance_); +} +inline ::milvus::proto::common::MsgBase* DescribeIndexRequest::release_base() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.DescribeIndexRequest.base) + + ::milvus::proto::common::MsgBase* temp = base_; + base_ = nullptr; + return temp; +} +inline ::milvus::proto::common::MsgBase* DescribeIndexRequest::mutable_base() { + + if (base_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::MsgBase>(GetArenaNoVirtual()); + base_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.DescribeIndexRequest.base) + return base_; +} +inline void DescribeIndexRequest::set_allocated_base(::milvus::proto::common::MsgBase* base) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_); + } + if (base) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + base = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, base, submessage_arena); + } + + } else { + + } + base_ = base; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.DescribeIndexRequest.base) +} + +// string db_name = 2; +inline void DescribeIndexRequest::clear_db_name() { + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& DescribeIndexRequest::db_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.DescribeIndexRequest.db_name) + return db_name_.GetNoArena(); +} +inline void DescribeIndexRequest::set_db_name(const std::string& value) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.DescribeIndexRequest.db_name) +} +inline void DescribeIndexRequest::set_db_name(std::string&& value) { + + db_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.DescribeIndexRequest.db_name) +} +inline void DescribeIndexRequest::set_db_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.DescribeIndexRequest.db_name) +} +inline void DescribeIndexRequest::set_db_name(const char* value, size_t size) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.DescribeIndexRequest.db_name) +} +inline std::string* DescribeIndexRequest::mutable_db_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.DescribeIndexRequest.db_name) + return db_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* DescribeIndexRequest::release_db_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.DescribeIndexRequest.db_name) + + return db_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void DescribeIndexRequest::set_allocated_db_name(std::string* db_name) { + if (db_name != nullptr) { + + } else { + + } + db_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), db_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.DescribeIndexRequest.db_name) +} + +// string collection_name = 3; +inline void DescribeIndexRequest::clear_collection_name() { + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& DescribeIndexRequest::collection_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.DescribeIndexRequest.collection_name) + return collection_name_.GetNoArena(); +} +inline void DescribeIndexRequest::set_collection_name(const std::string& value) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.DescribeIndexRequest.collection_name) +} +inline void DescribeIndexRequest::set_collection_name(std::string&& value) { + + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.DescribeIndexRequest.collection_name) +} +inline void DescribeIndexRequest::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.DescribeIndexRequest.collection_name) +} +inline void DescribeIndexRequest::set_collection_name(const char* value, size_t size) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.DescribeIndexRequest.collection_name) +} +inline std::string* DescribeIndexRequest::mutable_collection_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.DescribeIndexRequest.collection_name) + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* DescribeIndexRequest::release_collection_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.DescribeIndexRequest.collection_name) + + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void DescribeIndexRequest::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { + + } else { + + } + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.DescribeIndexRequest.collection_name) +} + +// string field_name = 4; +inline void DescribeIndexRequest::clear_field_name() { + field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& DescribeIndexRequest::field_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.DescribeIndexRequest.field_name) + return field_name_.GetNoArena(); +} +inline void DescribeIndexRequest::set_field_name(const std::string& value) { + + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.DescribeIndexRequest.field_name) +} +inline void DescribeIndexRequest::set_field_name(std::string&& value) { + + field_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.DescribeIndexRequest.field_name) +} +inline void DescribeIndexRequest::set_field_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.DescribeIndexRequest.field_name) +} +inline void DescribeIndexRequest::set_field_name(const char* value, size_t size) { + + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.DescribeIndexRequest.field_name) +} +inline std::string* DescribeIndexRequest::mutable_field_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.DescribeIndexRequest.field_name) + return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* DescribeIndexRequest::release_field_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.DescribeIndexRequest.field_name) + + return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void DescribeIndexRequest::set_allocated_field_name(std::string* field_name) { + if (field_name != nullptr) { + + } else { + + } + field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.DescribeIndexRequest.field_name) +} + +// string index_name = 5; +inline void DescribeIndexRequest::clear_index_name() { + index_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& DescribeIndexRequest::index_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.DescribeIndexRequest.index_name) + return index_name_.GetNoArena(); +} +inline void DescribeIndexRequest::set_index_name(const std::string& value) { + + index_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.DescribeIndexRequest.index_name) +} +inline void DescribeIndexRequest::set_index_name(std::string&& value) { + + index_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.DescribeIndexRequest.index_name) +} +inline void DescribeIndexRequest::set_index_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + index_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.DescribeIndexRequest.index_name) +} +inline void DescribeIndexRequest::set_index_name(const char* value, size_t size) { + + index_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.DescribeIndexRequest.index_name) +} +inline std::string* DescribeIndexRequest::mutable_index_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.DescribeIndexRequest.index_name) + return index_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* DescribeIndexRequest::release_index_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.DescribeIndexRequest.index_name) + + return index_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void DescribeIndexRequest::set_allocated_index_name(std::string* index_name) { + if (index_name != nullptr) { + + } else { + + } + index_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), index_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.DescribeIndexRequest.index_name) +} + +// ------------------------------------------------------------------- + +// IndexDescription + +// string index_name = 1; +inline void IndexDescription::clear_index_name() { + index_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& IndexDescription::index_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.IndexDescription.index_name) + return index_name_.GetNoArena(); +} +inline void IndexDescription::set_index_name(const std::string& value) { + + index_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.IndexDescription.index_name) +} +inline void IndexDescription::set_index_name(std::string&& value) { + + index_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.IndexDescription.index_name) +} +inline void IndexDescription::set_index_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + index_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.IndexDescription.index_name) +} +inline void IndexDescription::set_index_name(const char* value, size_t size) { + + index_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.IndexDescription.index_name) +} +inline std::string* IndexDescription::mutable_index_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.IndexDescription.index_name) + return index_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* IndexDescription::release_index_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.IndexDescription.index_name) + + return index_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void IndexDescription::set_allocated_index_name(std::string* index_name) { + if (index_name != nullptr) { + + } else { + + } + index_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), index_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.IndexDescription.index_name) +} + +// repeated .milvus.proto.common.KeyValuePair params = 2; +inline int IndexDescription::params_size() const { + return params_.size(); +} +inline ::milvus::proto::common::KeyValuePair* IndexDescription::mutable_params(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.IndexDescription.params) + return params_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >* +IndexDescription::mutable_params() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.milvus.IndexDescription.params) + return ¶ms_; +} +inline const ::milvus::proto::common::KeyValuePair& IndexDescription::params(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.IndexDescription.params) + return params_.Get(index); +} +inline ::milvus::proto::common::KeyValuePair* IndexDescription::add_params() { + // @@protoc_insertion_point(field_add:milvus.proto.milvus.IndexDescription.params) + return params_.Add(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >& +IndexDescription::params() const { + // @@protoc_insertion_point(field_list:milvus.proto.milvus.IndexDescription.params) + return params_; +} + +// ------------------------------------------------------------------- + +// DescribeIndexResponse + +// .milvus.proto.common.Status status = 1; +inline bool DescribeIndexResponse::has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline const ::milvus::proto::common::Status& DescribeIndexResponse::status() const { + const ::milvus::proto::common::Status* p = status_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.DescribeIndexResponse.status) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::Status*>( + &::milvus::proto::common::_Status_default_instance_); +} +inline ::milvus::proto::common::Status* DescribeIndexResponse::release_status() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.DescribeIndexResponse.status) + + ::milvus::proto::common::Status* temp = status_; + status_ = nullptr; + return temp; +} +inline ::milvus::proto::common::Status* DescribeIndexResponse::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.DescribeIndexResponse.status) + return status_; +} +inline void DescribeIndexResponse::set_allocated_status(::milvus::proto::common::Status* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.DescribeIndexResponse.status) +} + +// repeated .milvus.proto.milvus.IndexDescription index_descriptions = 2; +inline int DescribeIndexResponse::index_descriptions_size() const { + return index_descriptions_.size(); +} +inline void DescribeIndexResponse::clear_index_descriptions() { + index_descriptions_.Clear(); +} +inline ::milvus::proto::milvus::IndexDescription* DescribeIndexResponse::mutable_index_descriptions(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.DescribeIndexResponse.index_descriptions) + return index_descriptions_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::milvus::IndexDescription >* +DescribeIndexResponse::mutable_index_descriptions() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.milvus.DescribeIndexResponse.index_descriptions) + return &index_descriptions_; +} +inline const ::milvus::proto::milvus::IndexDescription& DescribeIndexResponse::index_descriptions(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.DescribeIndexResponse.index_descriptions) + return index_descriptions_.Get(index); +} +inline ::milvus::proto::milvus::IndexDescription* DescribeIndexResponse::add_index_descriptions() { + // @@protoc_insertion_point(field_add:milvus.proto.milvus.DescribeIndexResponse.index_descriptions) + return index_descriptions_.Add(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::milvus::IndexDescription >& +DescribeIndexResponse::index_descriptions() const { + // @@protoc_insertion_point(field_list:milvus.proto.milvus.DescribeIndexResponse.index_descriptions) + return index_descriptions_; +} + +// ------------------------------------------------------------------- + +// IndexStateRequest + +// .milvus.proto.common.MsgBase base = 1; +inline bool IndexStateRequest::has_base() const { + return this != internal_default_instance() && base_ != nullptr; +} +inline const ::milvus::proto::common::MsgBase& IndexStateRequest::base() const { + const ::milvus::proto::common::MsgBase* p = base_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.IndexStateRequest.base) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::MsgBase*>( + &::milvus::proto::common::_MsgBase_default_instance_); +} +inline ::milvus::proto::common::MsgBase* IndexStateRequest::release_base() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.IndexStateRequest.base) + + ::milvus::proto::common::MsgBase* temp = base_; + base_ = nullptr; + return temp; +} +inline ::milvus::proto::common::MsgBase* IndexStateRequest::mutable_base() { + + if (base_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::MsgBase>(GetArenaNoVirtual()); + base_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.IndexStateRequest.base) + return base_; +} +inline void IndexStateRequest::set_allocated_base(::milvus::proto::common::MsgBase* base) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_); + } + if (base) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + base = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, base, submessage_arena); + } + + } else { + + } + base_ = base; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.IndexStateRequest.base) +} + +// string db_name = 2; +inline void IndexStateRequest::clear_db_name() { + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& IndexStateRequest::db_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.IndexStateRequest.db_name) + return db_name_.GetNoArena(); +} +inline void IndexStateRequest::set_db_name(const std::string& value) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.IndexStateRequest.db_name) +} +inline void IndexStateRequest::set_db_name(std::string&& value) { + + db_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.IndexStateRequest.db_name) +} +inline void IndexStateRequest::set_db_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.IndexStateRequest.db_name) +} +inline void IndexStateRequest::set_db_name(const char* value, size_t size) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.IndexStateRequest.db_name) +} +inline std::string* IndexStateRequest::mutable_db_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.IndexStateRequest.db_name) + return db_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* IndexStateRequest::release_db_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.IndexStateRequest.db_name) + + return db_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void IndexStateRequest::set_allocated_db_name(std::string* db_name) { + if (db_name != nullptr) { + + } else { + + } + db_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), db_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.IndexStateRequest.db_name) +} + +// string collection_name = 3; +inline void IndexStateRequest::clear_collection_name() { + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& IndexStateRequest::collection_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.IndexStateRequest.collection_name) + return collection_name_.GetNoArena(); +} +inline void IndexStateRequest::set_collection_name(const std::string& value) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.IndexStateRequest.collection_name) +} +inline void IndexStateRequest::set_collection_name(std::string&& value) { + + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.IndexStateRequest.collection_name) +} +inline void IndexStateRequest::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.IndexStateRequest.collection_name) +} +inline void IndexStateRequest::set_collection_name(const char* value, size_t size) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.IndexStateRequest.collection_name) +} +inline std::string* IndexStateRequest::mutable_collection_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.IndexStateRequest.collection_name) + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* IndexStateRequest::release_collection_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.IndexStateRequest.collection_name) + + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void IndexStateRequest::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { + + } else { + + } + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.IndexStateRequest.collection_name) +} + +// string field_name = 4; +inline void IndexStateRequest::clear_field_name() { + field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& IndexStateRequest::field_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.IndexStateRequest.field_name) + return field_name_.GetNoArena(); +} +inline void IndexStateRequest::set_field_name(const std::string& value) { + + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.IndexStateRequest.field_name) +} +inline void IndexStateRequest::set_field_name(std::string&& value) { + + field_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.IndexStateRequest.field_name) +} +inline void IndexStateRequest::set_field_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.IndexStateRequest.field_name) +} +inline void IndexStateRequest::set_field_name(const char* value, size_t size) { + + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.IndexStateRequest.field_name) +} +inline std::string* IndexStateRequest::mutable_field_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.IndexStateRequest.field_name) + return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* IndexStateRequest::release_field_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.IndexStateRequest.field_name) + + return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void IndexStateRequest::set_allocated_field_name(std::string* field_name) { + if (field_name != nullptr) { + + } else { + + } + field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.IndexStateRequest.field_name) +} + +// string index_name = 5; +inline void IndexStateRequest::clear_index_name() { + index_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& IndexStateRequest::index_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.IndexStateRequest.index_name) + return index_name_.GetNoArena(); +} +inline void IndexStateRequest::set_index_name(const std::string& value) { + + index_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.IndexStateRequest.index_name) +} +inline void IndexStateRequest::set_index_name(std::string&& value) { + + index_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.IndexStateRequest.index_name) +} +inline void IndexStateRequest::set_index_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + index_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.IndexStateRequest.index_name) +} +inline void IndexStateRequest::set_index_name(const char* value, size_t size) { + + index_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.IndexStateRequest.index_name) +} +inline std::string* IndexStateRequest::mutable_index_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.IndexStateRequest.index_name) + return index_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* IndexStateRequest::release_index_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.IndexStateRequest.index_name) + + return index_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void IndexStateRequest::set_allocated_index_name(std::string* index_name) { + if (index_name != nullptr) { + + } else { + + } + index_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), index_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.IndexStateRequest.index_name) +} + +// ------------------------------------------------------------------- + +// IndexStateResponse + +// .milvus.proto.common.Status status = 1; +inline bool IndexStateResponse::has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline const ::milvus::proto::common::Status& IndexStateResponse::status() const { + const ::milvus::proto::common::Status* p = status_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.IndexStateResponse.status) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::Status*>( + &::milvus::proto::common::_Status_default_instance_); +} +inline ::milvus::proto::common::Status* IndexStateResponse::release_status() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.IndexStateResponse.status) + + ::milvus::proto::common::Status* temp = status_; + status_ = nullptr; + return temp; +} +inline ::milvus::proto::common::Status* IndexStateResponse::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.IndexStateResponse.status) + return status_; +} +inline void IndexStateResponse::set_allocated_status(::milvus::proto::common::Status* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.IndexStateResponse.status) +} + +// .milvus.proto.common.IndexState state = 2; +inline void IndexStateResponse::clear_state() { + state_ = 0; +} +inline ::milvus::proto::common::IndexState IndexStateResponse::state() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.IndexStateResponse.state) + return static_cast< ::milvus::proto::common::IndexState >(state_); +} +inline void IndexStateResponse::set_state(::milvus::proto::common::IndexState value) { + + state_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.milvus.IndexStateResponse.state) +} + +// ------------------------------------------------------------------- + +// InsertRequest + +// .milvus.proto.common.MsgBase base = 1; +inline bool InsertRequest::has_base() const { + return this != internal_default_instance() && base_ != nullptr; +} +inline const ::milvus::proto::common::MsgBase& InsertRequest::base() const { + const ::milvus::proto::common::MsgBase* p = base_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.InsertRequest.base) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::MsgBase*>( + &::milvus::proto::common::_MsgBase_default_instance_); +} +inline ::milvus::proto::common::MsgBase* InsertRequest::release_base() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.InsertRequest.base) + + ::milvus::proto::common::MsgBase* temp = base_; + base_ = nullptr; + return temp; +} +inline ::milvus::proto::common::MsgBase* InsertRequest::mutable_base() { + + if (base_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::MsgBase>(GetArenaNoVirtual()); + base_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.InsertRequest.base) + return base_; +} +inline void InsertRequest::set_allocated_base(::milvus::proto::common::MsgBase* base) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_); + } + if (base) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + base = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, base, submessage_arena); + } + + } else { + + } + base_ = base; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.InsertRequest.base) +} + +// string db_name = 2; +inline void InsertRequest::clear_db_name() { + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& InsertRequest::db_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.InsertRequest.db_name) + return db_name_.GetNoArena(); +} +inline void InsertRequest::set_db_name(const std::string& value) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.InsertRequest.db_name) +} +inline void InsertRequest::set_db_name(std::string&& value) { + + db_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.InsertRequest.db_name) +} +inline void InsertRequest::set_db_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.InsertRequest.db_name) +} +inline void InsertRequest::set_db_name(const char* value, size_t size) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.InsertRequest.db_name) +} +inline std::string* InsertRequest::mutable_db_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.InsertRequest.db_name) + return db_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* InsertRequest::release_db_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.InsertRequest.db_name) + + return db_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void InsertRequest::set_allocated_db_name(std::string* db_name) { + if (db_name != nullptr) { + + } else { + + } + db_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), db_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.InsertRequest.db_name) +} + +// string collection_name = 3; +inline void InsertRequest::clear_collection_name() { + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& InsertRequest::collection_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.InsertRequest.collection_name) + return collection_name_.GetNoArena(); +} +inline void InsertRequest::set_collection_name(const std::string& value) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.InsertRequest.collection_name) +} +inline void InsertRequest::set_collection_name(std::string&& value) { + + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.InsertRequest.collection_name) +} +inline void InsertRequest::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.InsertRequest.collection_name) +} +inline void InsertRequest::set_collection_name(const char* value, size_t size) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.InsertRequest.collection_name) +} +inline std::string* InsertRequest::mutable_collection_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.InsertRequest.collection_name) + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* InsertRequest::release_collection_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.InsertRequest.collection_name) + + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void InsertRequest::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { + + } else { + + } + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.InsertRequest.collection_name) +} + +// string partition_name = 4; +inline void InsertRequest::clear_partition_name() { + partition_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& InsertRequest::partition_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.InsertRequest.partition_name) + return partition_name_.GetNoArena(); +} +inline void InsertRequest::set_partition_name(const std::string& value) { + + partition_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.InsertRequest.partition_name) +} +inline void InsertRequest::set_partition_name(std::string&& value) { + + partition_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.InsertRequest.partition_name) +} +inline void InsertRequest::set_partition_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + partition_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.InsertRequest.partition_name) +} +inline void InsertRequest::set_partition_name(const char* value, size_t size) { + + partition_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.InsertRequest.partition_name) +} +inline std::string* InsertRequest::mutable_partition_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.InsertRequest.partition_name) + return partition_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* InsertRequest::release_partition_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.InsertRequest.partition_name) + + return partition_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void InsertRequest::set_allocated_partition_name(std::string* partition_name) { + if (partition_name != nullptr) { + + } else { + + } + partition_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), partition_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.InsertRequest.partition_name) +} + +// repeated .milvus.proto.common.Blob row_data = 5; +inline int InsertRequest::row_data_size() const { + return row_data_.size(); +} +inline ::milvus::proto::common::Blob* InsertRequest::mutable_row_data(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.InsertRequest.row_data) + return row_data_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::Blob >* +InsertRequest::mutable_row_data() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.milvus.InsertRequest.row_data) + return &row_data_; +} +inline const ::milvus::proto::common::Blob& InsertRequest::row_data(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.InsertRequest.row_data) + return row_data_.Get(index); +} +inline ::milvus::proto::common::Blob* InsertRequest::add_row_data() { + // @@protoc_insertion_point(field_add:milvus.proto.milvus.InsertRequest.row_data) + return row_data_.Add(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::Blob >& +InsertRequest::row_data() const { + // @@protoc_insertion_point(field_list:milvus.proto.milvus.InsertRequest.row_data) + return row_data_; +} + +// repeated uint32 hash_keys = 6; +inline int InsertRequest::hash_keys_size() const { + return hash_keys_.size(); +} +inline void InsertRequest::clear_hash_keys() { + hash_keys_.Clear(); +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 InsertRequest::hash_keys(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.InsertRequest.hash_keys) + return hash_keys_.Get(index); +} +inline void InsertRequest::set_hash_keys(int index, ::PROTOBUF_NAMESPACE_ID::uint32 value) { + hash_keys_.Set(index, value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.InsertRequest.hash_keys) +} +inline void InsertRequest::add_hash_keys(::PROTOBUF_NAMESPACE_ID::uint32 value) { + hash_keys_.Add(value); + // @@protoc_insertion_point(field_add:milvus.proto.milvus.InsertRequest.hash_keys) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& +InsertRequest::hash_keys() const { + // @@protoc_insertion_point(field_list:milvus.proto.milvus.InsertRequest.hash_keys) + return hash_keys_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* +InsertRequest::mutable_hash_keys() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.milvus.InsertRequest.hash_keys) + return &hash_keys_; +} + +// ------------------------------------------------------------------- + +// InsertResponse + +// .milvus.proto.common.Status status = 1; +inline bool InsertResponse::has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline const ::milvus::proto::common::Status& InsertResponse::status() const { + const ::milvus::proto::common::Status* p = status_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.InsertResponse.status) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::Status*>( + &::milvus::proto::common::_Status_default_instance_); +} +inline ::milvus::proto::common::Status* InsertResponse::release_status() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.InsertResponse.status) + + ::milvus::proto::common::Status* temp = status_; + status_ = nullptr; + return temp; +} +inline ::milvus::proto::common::Status* InsertResponse::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.InsertResponse.status) + return status_; +} +inline void InsertResponse::set_allocated_status(::milvus::proto::common::Status* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.InsertResponse.status) +} + +// int64 rowID_begin = 2; +inline void InsertResponse::clear_rowid_begin() { + rowid_begin_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 InsertResponse::rowid_begin() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.InsertResponse.rowID_begin) + return rowid_begin_; +} +inline void InsertResponse::set_rowid_begin(::PROTOBUF_NAMESPACE_ID::int64 value) { + + rowid_begin_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.milvus.InsertResponse.rowID_begin) +} + +// int64 rowID_end = 3; +inline void InsertResponse::clear_rowid_end() { + rowid_end_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 InsertResponse::rowid_end() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.InsertResponse.rowID_end) + return rowid_end_; +} +inline void InsertResponse::set_rowid_end(::PROTOBUF_NAMESPACE_ID::int64 value) { + + rowid_end_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.milvus.InsertResponse.rowID_end) +} + +// ------------------------------------------------------------------- + +// PlaceholderValue + +// string tag = 1; +inline void PlaceholderValue::clear_tag() { + tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& PlaceholderValue::tag() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.PlaceholderValue.tag) + return tag_.GetNoArena(); +} +inline void PlaceholderValue::set_tag(const std::string& value) { + + tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.PlaceholderValue.tag) +} +inline void PlaceholderValue::set_tag(std::string&& value) { + + tag_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.PlaceholderValue.tag) +} +inline void PlaceholderValue::set_tag(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.PlaceholderValue.tag) +} +inline void PlaceholderValue::set_tag(const char* value, size_t size) { + + tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.PlaceholderValue.tag) +} +inline std::string* PlaceholderValue::mutable_tag() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.PlaceholderValue.tag) + return tag_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* PlaceholderValue::release_tag() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.PlaceholderValue.tag) + + return tag_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void PlaceholderValue::set_allocated_tag(std::string* tag) { + if (tag != nullptr) { + + } else { + + } + tag_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), tag); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.PlaceholderValue.tag) +} + +// .milvus.proto.milvus.PlaceholderType type = 2; +inline void PlaceholderValue::clear_type() { + type_ = 0; +} +inline ::milvus::proto::milvus::PlaceholderType PlaceholderValue::type() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.PlaceholderValue.type) + return static_cast< ::milvus::proto::milvus::PlaceholderType >(type_); +} +inline void PlaceholderValue::set_type(::milvus::proto::milvus::PlaceholderType value) { + + type_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.milvus.PlaceholderValue.type) +} + +// repeated bytes values = 3; +inline int PlaceholderValue::values_size() const { + return values_.size(); +} +inline void PlaceholderValue::clear_values() { + values_.Clear(); +} +inline const std::string& PlaceholderValue::values(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.PlaceholderValue.values) + return values_.Get(index); +} +inline std::string* PlaceholderValue::mutable_values(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.PlaceholderValue.values) + return values_.Mutable(index); +} +inline void PlaceholderValue::set_values(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:milvus.proto.milvus.PlaceholderValue.values) + values_.Mutable(index)->assign(value); +} +inline void PlaceholderValue::set_values(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.proto.milvus.PlaceholderValue.values) + values_.Mutable(index)->assign(std::move(value)); +} +inline void PlaceholderValue::set_values(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + values_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.PlaceholderValue.values) +} +inline void PlaceholderValue::set_values(int index, const void* value, size_t size) { + values_.Mutable(index)->assign( + reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.PlaceholderValue.values) +} +inline std::string* PlaceholderValue::add_values() { + // @@protoc_insertion_point(field_add_mutable:milvus.proto.milvus.PlaceholderValue.values) + return values_.Add(); +} +inline void PlaceholderValue::add_values(const std::string& value) { + values_.Add()->assign(value); + // @@protoc_insertion_point(field_add:milvus.proto.milvus.PlaceholderValue.values) +} +inline void PlaceholderValue::add_values(std::string&& value) { + values_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:milvus.proto.milvus.PlaceholderValue.values) +} +inline void PlaceholderValue::add_values(const char* value) { + GOOGLE_DCHECK(value != nullptr); + values_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:milvus.proto.milvus.PlaceholderValue.values) +} +inline void PlaceholderValue::add_values(const void* value, size_t size) { + values_.Add()->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_add_pointer:milvus.proto.milvus.PlaceholderValue.values) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& +PlaceholderValue::values() const { + // @@protoc_insertion_point(field_list:milvus.proto.milvus.PlaceholderValue.values) + return values_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* +PlaceholderValue::mutable_values() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.milvus.PlaceholderValue.values) + return &values_; +} + +// ------------------------------------------------------------------- + +// PlaceholderGroup + +// repeated .milvus.proto.milvus.PlaceholderValue placeholders = 1; +inline int PlaceholderGroup::placeholders_size() const { + return placeholders_.size(); +} +inline void PlaceholderGroup::clear_placeholders() { + placeholders_.Clear(); +} +inline ::milvus::proto::milvus::PlaceholderValue* PlaceholderGroup::mutable_placeholders(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.PlaceholderGroup.placeholders) + return placeholders_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::milvus::PlaceholderValue >* +PlaceholderGroup::mutable_placeholders() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.milvus.PlaceholderGroup.placeholders) + return &placeholders_; +} +inline const ::milvus::proto::milvus::PlaceholderValue& PlaceholderGroup::placeholders(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.PlaceholderGroup.placeholders) + return placeholders_.Get(index); +} +inline ::milvus::proto::milvus::PlaceholderValue* PlaceholderGroup::add_placeholders() { + // @@protoc_insertion_point(field_add:milvus.proto.milvus.PlaceholderGroup.placeholders) + return placeholders_.Add(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::milvus::PlaceholderValue >& +PlaceholderGroup::placeholders() const { + // @@protoc_insertion_point(field_list:milvus.proto.milvus.PlaceholderGroup.placeholders) + return placeholders_; +} + +// ------------------------------------------------------------------- + +// SearchRequest + +// .milvus.proto.common.MsgBase base = 1; +inline bool SearchRequest::has_base() const { + return this != internal_default_instance() && base_ != nullptr; +} +inline const ::milvus::proto::common::MsgBase& SearchRequest::base() const { + const ::milvus::proto::common::MsgBase* p = base_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.SearchRequest.base) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::MsgBase*>( + &::milvus::proto::common::_MsgBase_default_instance_); +} +inline ::milvus::proto::common::MsgBase* SearchRequest::release_base() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.SearchRequest.base) + + ::milvus::proto::common::MsgBase* temp = base_; + base_ = nullptr; + return temp; +} +inline ::milvus::proto::common::MsgBase* SearchRequest::mutable_base() { + + if (base_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::MsgBase>(GetArenaNoVirtual()); + base_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.SearchRequest.base) + return base_; +} +inline void SearchRequest::set_allocated_base(::milvus::proto::common::MsgBase* base) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_); + } + if (base) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + base = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, base, submessage_arena); + } + + } else { + + } + base_ = base; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.SearchRequest.base) +} + +// string db_name = 2; +inline void SearchRequest::clear_db_name() { + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& SearchRequest::db_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.SearchRequest.db_name) + return db_name_.GetNoArena(); +} +inline void SearchRequest::set_db_name(const std::string& value) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.SearchRequest.db_name) +} +inline void SearchRequest::set_db_name(std::string&& value) { + + db_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.SearchRequest.db_name) +} +inline void SearchRequest::set_db_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.SearchRequest.db_name) +} +inline void SearchRequest::set_db_name(const char* value, size_t size) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.SearchRequest.db_name) +} +inline std::string* SearchRequest::mutable_db_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.SearchRequest.db_name) + return db_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* SearchRequest::release_db_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.SearchRequest.db_name) + + return db_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void SearchRequest::set_allocated_db_name(std::string* db_name) { + if (db_name != nullptr) { + + } else { + + } + db_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), db_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.SearchRequest.db_name) +} + +// string collection_name = 3; +inline void SearchRequest::clear_collection_name() { + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& SearchRequest::collection_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.SearchRequest.collection_name) + return collection_name_.GetNoArena(); +} +inline void SearchRequest::set_collection_name(const std::string& value) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.SearchRequest.collection_name) +} +inline void SearchRequest::set_collection_name(std::string&& value) { + + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.SearchRequest.collection_name) +} +inline void SearchRequest::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.SearchRequest.collection_name) +} +inline void SearchRequest::set_collection_name(const char* value, size_t size) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.SearchRequest.collection_name) +} +inline std::string* SearchRequest::mutable_collection_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.SearchRequest.collection_name) + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* SearchRequest::release_collection_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.SearchRequest.collection_name) + + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void SearchRequest::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { + + } else { + + } + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.SearchRequest.collection_name) +} + +// repeated string partition_names = 4; +inline int SearchRequest::partition_names_size() const { + return partition_names_.size(); +} +inline void SearchRequest::clear_partition_names() { + partition_names_.Clear(); +} +inline const std::string& SearchRequest::partition_names(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.SearchRequest.partition_names) + return partition_names_.Get(index); +} +inline std::string* SearchRequest::mutable_partition_names(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.SearchRequest.partition_names) + return partition_names_.Mutable(index); +} +inline void SearchRequest::set_partition_names(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:milvus.proto.milvus.SearchRequest.partition_names) + partition_names_.Mutable(index)->assign(value); +} +inline void SearchRequest::set_partition_names(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.proto.milvus.SearchRequest.partition_names) + partition_names_.Mutable(index)->assign(std::move(value)); +} +inline void SearchRequest::set_partition_names(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + partition_names_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.SearchRequest.partition_names) +} +inline void SearchRequest::set_partition_names(int index, const char* value, size_t size) { + partition_names_.Mutable(index)->assign( + reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.SearchRequest.partition_names) +} +inline std::string* SearchRequest::add_partition_names() { + // @@protoc_insertion_point(field_add_mutable:milvus.proto.milvus.SearchRequest.partition_names) + return partition_names_.Add(); +} +inline void SearchRequest::add_partition_names(const std::string& value) { + partition_names_.Add()->assign(value); + // @@protoc_insertion_point(field_add:milvus.proto.milvus.SearchRequest.partition_names) +} +inline void SearchRequest::add_partition_names(std::string&& value) { + partition_names_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:milvus.proto.milvus.SearchRequest.partition_names) +} +inline void SearchRequest::add_partition_names(const char* value) { + GOOGLE_DCHECK(value != nullptr); + partition_names_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:milvus.proto.milvus.SearchRequest.partition_names) +} +inline void SearchRequest::add_partition_names(const char* value, size_t size) { + partition_names_.Add()->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_add_pointer:milvus.proto.milvus.SearchRequest.partition_names) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& +SearchRequest::partition_names() const { + // @@protoc_insertion_point(field_list:milvus.proto.milvus.SearchRequest.partition_names) + return partition_names_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* +SearchRequest::mutable_partition_names() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.milvus.SearchRequest.partition_names) + return &partition_names_; +} + +// string dsl = 5; +inline void SearchRequest::clear_dsl() { + dsl_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& SearchRequest::dsl() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.SearchRequest.dsl) + return dsl_.GetNoArena(); +} +inline void SearchRequest::set_dsl(const std::string& value) { + + dsl_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.SearchRequest.dsl) +} +inline void SearchRequest::set_dsl(std::string&& value) { + + dsl_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.SearchRequest.dsl) +} +inline void SearchRequest::set_dsl(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + dsl_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.SearchRequest.dsl) +} +inline void SearchRequest::set_dsl(const char* value, size_t size) { + + dsl_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.SearchRequest.dsl) +} +inline std::string* SearchRequest::mutable_dsl() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.SearchRequest.dsl) + return dsl_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* SearchRequest::release_dsl() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.SearchRequest.dsl) + + return dsl_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void SearchRequest::set_allocated_dsl(std::string* dsl) { + if (dsl != nullptr) { + + } else { + + } + dsl_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), dsl); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.SearchRequest.dsl) +} + +// bytes placeholder_group = 6; +inline void SearchRequest::clear_placeholder_group() { + placeholder_group_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& SearchRequest::placeholder_group() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.SearchRequest.placeholder_group) + return placeholder_group_.GetNoArena(); +} +inline void SearchRequest::set_placeholder_group(const std::string& value) { + + placeholder_group_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.SearchRequest.placeholder_group) +} +inline void SearchRequest::set_placeholder_group(std::string&& value) { + + placeholder_group_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.SearchRequest.placeholder_group) +} +inline void SearchRequest::set_placeholder_group(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + placeholder_group_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.SearchRequest.placeholder_group) +} +inline void SearchRequest::set_placeholder_group(const void* value, size_t size) { + + placeholder_group_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.SearchRequest.placeholder_group) +} +inline std::string* SearchRequest::mutable_placeholder_group() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.SearchRequest.placeholder_group) + return placeholder_group_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* SearchRequest::release_placeholder_group() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.SearchRequest.placeholder_group) + + return placeholder_group_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void SearchRequest::set_allocated_placeholder_group(std::string* placeholder_group) { + if (placeholder_group != nullptr) { + + } else { + + } + placeholder_group_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), placeholder_group); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.SearchRequest.placeholder_group) +} + +// ------------------------------------------------------------------- + +// Hits + +// repeated int64 IDs = 1; +inline int Hits::ids_size() const { + return ids_.size(); +} +inline void Hits::clear_ids() { + ids_.Clear(); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 Hits::ids(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.Hits.IDs) + return ids_.Get(index); +} +inline void Hits::set_ids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { + ids_.Set(index, value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.Hits.IDs) +} +inline void Hits::add_ids(::PROTOBUF_NAMESPACE_ID::int64 value) { + ids_.Add(value); + // @@protoc_insertion_point(field_add:milvus.proto.milvus.Hits.IDs) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& +Hits::ids() const { + // @@protoc_insertion_point(field_list:milvus.proto.milvus.Hits.IDs) + return ids_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* +Hits::mutable_ids() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.milvus.Hits.IDs) + return &ids_; +} + +// repeated bytes row_data = 2; +inline int Hits::row_data_size() const { + return row_data_.size(); +} +inline void Hits::clear_row_data() { + row_data_.Clear(); +} +inline const std::string& Hits::row_data(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.Hits.row_data) + return row_data_.Get(index); +} +inline std::string* Hits::mutable_row_data(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.Hits.row_data) + return row_data_.Mutable(index); +} +inline void Hits::set_row_data(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:milvus.proto.milvus.Hits.row_data) + row_data_.Mutable(index)->assign(value); +} +inline void Hits::set_row_data(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.proto.milvus.Hits.row_data) + row_data_.Mutable(index)->assign(std::move(value)); +} +inline void Hits::set_row_data(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + row_data_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.Hits.row_data) +} +inline void Hits::set_row_data(int index, const void* value, size_t size) { + row_data_.Mutable(index)->assign( + reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.Hits.row_data) +} +inline std::string* Hits::add_row_data() { + // @@protoc_insertion_point(field_add_mutable:milvus.proto.milvus.Hits.row_data) + return row_data_.Add(); +} +inline void Hits::add_row_data(const std::string& value) { + row_data_.Add()->assign(value); + // @@protoc_insertion_point(field_add:milvus.proto.milvus.Hits.row_data) +} +inline void Hits::add_row_data(std::string&& value) { + row_data_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:milvus.proto.milvus.Hits.row_data) +} +inline void Hits::add_row_data(const char* value) { + GOOGLE_DCHECK(value != nullptr); + row_data_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:milvus.proto.milvus.Hits.row_data) +} +inline void Hits::add_row_data(const void* value, size_t size) { + row_data_.Add()->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_add_pointer:milvus.proto.milvus.Hits.row_data) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& +Hits::row_data() const { + // @@protoc_insertion_point(field_list:milvus.proto.milvus.Hits.row_data) + return row_data_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* +Hits::mutable_row_data() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.milvus.Hits.row_data) + return &row_data_; +} + +// repeated float scores = 3; +inline int Hits::scores_size() const { + return scores_.size(); +} +inline void Hits::clear_scores() { + scores_.Clear(); +} +inline float Hits::scores(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.Hits.scores) + return scores_.Get(index); +} +inline void Hits::set_scores(int index, float value) { + scores_.Set(index, value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.Hits.scores) +} +inline void Hits::add_scores(float value) { + scores_.Add(value); + // @@protoc_insertion_point(field_add:milvus.proto.milvus.Hits.scores) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& +Hits::scores() const { + // @@protoc_insertion_point(field_list:milvus.proto.milvus.Hits.scores) + return scores_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* +Hits::mutable_scores() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.milvus.Hits.scores) + return &scores_; +} + +// ------------------------------------------------------------------- + +// SearchResults + +// .milvus.proto.common.Status status = 1; +inline bool SearchResults::has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline const ::milvus::proto::common::Status& SearchResults::status() const { + const ::milvus::proto::common::Status* p = status_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.SearchResults.status) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::Status*>( + &::milvus::proto::common::_Status_default_instance_); +} +inline ::milvus::proto::common::Status* SearchResults::release_status() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.SearchResults.status) + + ::milvus::proto::common::Status* temp = status_; + status_ = nullptr; + return temp; +} +inline ::milvus::proto::common::Status* SearchResults::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.SearchResults.status) + return status_; +} +inline void SearchResults::set_allocated_status(::milvus::proto::common::Status* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.SearchResults.status) +} + +// repeated bytes hits = 2; +inline int SearchResults::hits_size() const { + return hits_.size(); +} +inline void SearchResults::clear_hits() { + hits_.Clear(); +} +inline const std::string& SearchResults::hits(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.SearchResults.hits) + return hits_.Get(index); +} +inline std::string* SearchResults::mutable_hits(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.SearchResults.hits) + return hits_.Mutable(index); +} +inline void SearchResults::set_hits(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:milvus.proto.milvus.SearchResults.hits) + hits_.Mutable(index)->assign(value); +} +inline void SearchResults::set_hits(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.proto.milvus.SearchResults.hits) + hits_.Mutable(index)->assign(std::move(value)); +} +inline void SearchResults::set_hits(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + hits_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.SearchResults.hits) +} +inline void SearchResults::set_hits(int index, const void* value, size_t size) { + hits_.Mutable(index)->assign( + reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.SearchResults.hits) +} +inline std::string* SearchResults::add_hits() { + // @@protoc_insertion_point(field_add_mutable:milvus.proto.milvus.SearchResults.hits) + return hits_.Add(); +} +inline void SearchResults::add_hits(const std::string& value) { + hits_.Add()->assign(value); + // @@protoc_insertion_point(field_add:milvus.proto.milvus.SearchResults.hits) +} +inline void SearchResults::add_hits(std::string&& value) { + hits_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:milvus.proto.milvus.SearchResults.hits) +} +inline void SearchResults::add_hits(const char* value) { + GOOGLE_DCHECK(value != nullptr); + hits_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:milvus.proto.milvus.SearchResults.hits) +} +inline void SearchResults::add_hits(const void* value, size_t size) { + hits_.Add()->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_add_pointer:milvus.proto.milvus.SearchResults.hits) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& +SearchResults::hits() const { + // @@protoc_insertion_point(field_list:milvus.proto.milvus.SearchResults.hits) + return hits_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* +SearchResults::mutable_hits() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.milvus.SearchResults.hits) + return &hits_; +} + +// ------------------------------------------------------------------- + +// FlushRequest + +// .milvus.proto.common.MsgBase base = 1; +inline bool FlushRequest::has_base() const { + return this != internal_default_instance() && base_ != nullptr; +} +inline const ::milvus::proto::common::MsgBase& FlushRequest::base() const { + const ::milvus::proto::common::MsgBase* p = base_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.FlushRequest.base) + return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::MsgBase*>( + &::milvus::proto::common::_MsgBase_default_instance_); +} +inline ::milvus::proto::common::MsgBase* FlushRequest::release_base() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.FlushRequest.base) + + ::milvus::proto::common::MsgBase* temp = base_; + base_ = nullptr; + return temp; +} +inline ::milvus::proto::common::MsgBase* FlushRequest::mutable_base() { + + if (base_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::MsgBase>(GetArenaNoVirtual()); + base_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.FlushRequest.base) + return base_; +} +inline void FlushRequest::set_allocated_base(::milvus::proto::common::MsgBase* base) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_); + } + if (base) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + base = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, base, submessage_arena); + } + + } else { + + } + base_ = base; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.FlushRequest.base) +} + +// string db_name = 2; +inline void FlushRequest::clear_db_name() { + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& FlushRequest::db_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.FlushRequest.db_name) + return db_name_.GetNoArena(); +} +inline void FlushRequest::set_db_name(const std::string& value) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.FlushRequest.db_name) +} +inline void FlushRequest::set_db_name(std::string&& value) { + + db_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.FlushRequest.db_name) +} +inline void FlushRequest::set_db_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.FlushRequest.db_name) +} +inline void FlushRequest::set_db_name(const char* value, size_t size) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.FlushRequest.db_name) +} +inline std::string* FlushRequest::mutable_db_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.FlushRequest.db_name) + return db_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* FlushRequest::release_db_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.FlushRequest.db_name) + + return db_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void FlushRequest::set_allocated_db_name(std::string* db_name) { + if (db_name != nullptr) { + + } else { + + } + db_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), db_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.FlushRequest.db_name) +} + +// string collection_name = 3; +inline void FlushRequest::clear_collection_name() { + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& FlushRequest::collection_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.FlushRequest.collection_name) + return collection_name_.GetNoArena(); +} +inline void FlushRequest::set_collection_name(const std::string& value) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.FlushRequest.collection_name) +} +inline void FlushRequest::set_collection_name(std::string&& value) { + + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.FlushRequest.collection_name) +} +inline void FlushRequest::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.FlushRequest.collection_name) +} +inline void FlushRequest::set_collection_name(const char* value, size_t size) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.FlushRequest.collection_name) +} +inline std::string* FlushRequest::mutable_collection_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.FlushRequest.collection_name) + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* FlushRequest::release_collection_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.FlushRequest.collection_name) + + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void FlushRequest::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { + + } else { + + } + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.FlushRequest.collection_name) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace milvus +} // namespace proto +} // namespace milvus + +PROTOBUF_NAMESPACE_OPEN + +template <> struct is_proto_enum< ::milvus::proto::milvus::PlaceholderType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::milvus::proto::milvus::PlaceholderType>() { + return ::milvus::proto::milvus::PlaceholderType_descriptor(); +} + +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) + +#include <google/protobuf/port_undef.inc> +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_milvus_2eproto diff --git a/internal/core/src/pb/service_msg.pb.cc b/internal/core/src/pb/service_msg.pb.cc deleted file mode 100644 index 3df052810c87ad725875c4862c71b94d4e1f3174..0000000000000000000000000000000000000000 --- a/internal/core/src/pb/service_msg.pb.cc +++ /dev/null @@ -1,8001 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: service_msg.proto - -#include "service_msg.pb.h" - -#include <algorithm> - -#include <google/protobuf/stubs/common.h> -#include <google/protobuf/io/coded_stream.h> -#include <google/protobuf/extension_set.h> -#include <google/protobuf/wire_format_lite.h> -#include <google/protobuf/descriptor.h> -#include <google/protobuf/generated_message_reflection.h> -#include <google/protobuf/reflection_ops.h> -#include <google/protobuf/wire_format.h> -// @@protoc_insertion_point(includes) -#include <google/protobuf/port_def.inc> -extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Blob_common_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KeyValuePair_common_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Status_common_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_schema_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionSchema_schema_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_service_5fmsg_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PartitionName_service_5fmsg_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_service_5fmsg_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PlaceholderValue_service_5fmsg_2eproto; -namespace milvus { -namespace proto { -namespace service { -class CollectionNameDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CollectionName> _instance; -} _CollectionName_default_instance_; -class PartitionNameDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PartitionName> _instance; -} _PartitionName_default_instance_; -class RowBatchDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<RowBatch> _instance; -} _RowBatch_default_instance_; -class PlaceholderValueDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PlaceholderValue> _instance; -} _PlaceholderValue_default_instance_; -class PlaceholderGroupDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PlaceholderGroup> _instance; -} _PlaceholderGroup_default_instance_; -class QueryDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Query> _instance; -} _Query_default_instance_; -class StringResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<StringResponse> _instance; -} _StringResponse_default_instance_; -class BoolResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<BoolResponse> _instance; -} _BoolResponse_default_instance_; -class StringListResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<StringListResponse> _instance; -} _StringListResponse_default_instance_; -class IntegerListResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<IntegerListResponse> _instance; -} _IntegerListResponse_default_instance_; -class IntegerRangeResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<IntegerRangeResponse> _instance; -} _IntegerRangeResponse_default_instance_; -class CollectionDescriptionDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CollectionDescription> _instance; -} _CollectionDescription_default_instance_; -class PartitionDescriptionDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PartitionDescription> _instance; -} _PartitionDescription_default_instance_; -class SysConfigResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<SysConfigResponse> _instance; -} _SysConfigResponse_default_instance_; -class HitsDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Hits> _instance; -} _Hits_default_instance_; -class QueryResultDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<QueryResult> _instance; -} _QueryResult_default_instance_; -class IndexParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<IndexParam> _instance; -} _IndexParam_default_instance_; -class DescribeIndexRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DescribeIndexRequest> _instance; -} _DescribeIndexRequest_default_instance_; -class DescribeIndexProgressRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DescribeIndexProgressRequest> _instance; -} _DescribeIndexProgressRequest_default_instance_; -class DescribeIndexResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DescribeIndexResponse> _instance; -} _DescribeIndexResponse_default_instance_; -} // namespace service -} // namespace proto -} // namespace milvus -static void InitDefaultsscc_info_BoolResponse_service_5fmsg_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::service::_BoolResponse_default_instance_; - new (ptr) ::milvus::proto::service::BoolResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::service::BoolResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_BoolResponse_service_5fmsg_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_BoolResponse_service_5fmsg_2eproto}, { - &scc_info_Status_common_2eproto.base,}}; - -static void InitDefaultsscc_info_CollectionDescription_service_5fmsg_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::service::_CollectionDescription_default_instance_; - new (ptr) ::milvus::proto::service::CollectionDescription(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::service::CollectionDescription::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_CollectionDescription_service_5fmsg_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_CollectionDescription_service_5fmsg_2eproto}, { - &scc_info_Status_common_2eproto.base, - &scc_info_CollectionSchema_schema_2eproto.base, - &scc_info_KeyValuePair_common_2eproto.base,}}; - -static void InitDefaultsscc_info_CollectionName_service_5fmsg_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::service::_CollectionName_default_instance_; - new (ptr) ::milvus::proto::service::CollectionName(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::service::CollectionName::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CollectionName_service_5fmsg_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CollectionName_service_5fmsg_2eproto}, {}}; - -static void InitDefaultsscc_info_DescribeIndexProgressRequest_service_5fmsg_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::service::_DescribeIndexProgressRequest_default_instance_; - new (ptr) ::milvus::proto::service::DescribeIndexProgressRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::service::DescribeIndexProgressRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DescribeIndexProgressRequest_service_5fmsg_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_DescribeIndexProgressRequest_service_5fmsg_2eproto}, {}}; - -static void InitDefaultsscc_info_DescribeIndexRequest_service_5fmsg_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::service::_DescribeIndexRequest_default_instance_; - new (ptr) ::milvus::proto::service::DescribeIndexRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::service::DescribeIndexRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DescribeIndexRequest_service_5fmsg_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_DescribeIndexRequest_service_5fmsg_2eproto}, {}}; - -static void InitDefaultsscc_info_DescribeIndexResponse_service_5fmsg_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::service::_DescribeIndexResponse_default_instance_; - new (ptr) ::milvus::proto::service::DescribeIndexResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::service::DescribeIndexResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_DescribeIndexResponse_service_5fmsg_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_DescribeIndexResponse_service_5fmsg_2eproto}, { - &scc_info_Status_common_2eproto.base, - &scc_info_KeyValuePair_common_2eproto.base,}}; - -static void InitDefaultsscc_info_Hits_service_5fmsg_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::service::_Hits_default_instance_; - new (ptr) ::milvus::proto::service::Hits(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::service::Hits::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Hits_service_5fmsg_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_Hits_service_5fmsg_2eproto}, {}}; - -static void InitDefaultsscc_info_IndexParam_service_5fmsg_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::service::_IndexParam_default_instance_; - new (ptr) ::milvus::proto::service::IndexParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::service::IndexParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_IndexParam_service_5fmsg_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_IndexParam_service_5fmsg_2eproto}, { - &scc_info_KeyValuePair_common_2eproto.base,}}; - -static void InitDefaultsscc_info_IntegerListResponse_service_5fmsg_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::service::_IntegerListResponse_default_instance_; - new (ptr) ::milvus::proto::service::IntegerListResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::service::IntegerListResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_IntegerListResponse_service_5fmsg_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_IntegerListResponse_service_5fmsg_2eproto}, { - &scc_info_Status_common_2eproto.base,}}; - -static void InitDefaultsscc_info_IntegerRangeResponse_service_5fmsg_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::service::_IntegerRangeResponse_default_instance_; - new (ptr) ::milvus::proto::service::IntegerRangeResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::service::IntegerRangeResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_IntegerRangeResponse_service_5fmsg_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_IntegerRangeResponse_service_5fmsg_2eproto}, { - &scc_info_Status_common_2eproto.base,}}; - -static void InitDefaultsscc_info_PartitionDescription_service_5fmsg_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::service::_PartitionDescription_default_instance_; - new (ptr) ::milvus::proto::service::PartitionDescription(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::service::PartitionDescription::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_PartitionDescription_service_5fmsg_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_PartitionDescription_service_5fmsg_2eproto}, { - &scc_info_Status_common_2eproto.base, - &scc_info_PartitionName_service_5fmsg_2eproto.base, - &scc_info_KeyValuePair_common_2eproto.base,}}; - -static void InitDefaultsscc_info_PartitionName_service_5fmsg_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::service::_PartitionName_default_instance_; - new (ptr) ::milvus::proto::service::PartitionName(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::service::PartitionName::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PartitionName_service_5fmsg_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_PartitionName_service_5fmsg_2eproto}, {}}; - -static void InitDefaultsscc_info_PlaceholderGroup_service_5fmsg_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::service::_PlaceholderGroup_default_instance_; - new (ptr) ::milvus::proto::service::PlaceholderGroup(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::service::PlaceholderGroup::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PlaceholderGroup_service_5fmsg_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_PlaceholderGroup_service_5fmsg_2eproto}, { - &scc_info_PlaceholderValue_service_5fmsg_2eproto.base,}}; - -static void InitDefaultsscc_info_PlaceholderValue_service_5fmsg_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::service::_PlaceholderValue_default_instance_; - new (ptr) ::milvus::proto::service::PlaceholderValue(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::service::PlaceholderValue::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PlaceholderValue_service_5fmsg_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_PlaceholderValue_service_5fmsg_2eproto}, {}}; - -static void InitDefaultsscc_info_Query_service_5fmsg_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::service::_Query_default_instance_; - new (ptr) ::milvus::proto::service::Query(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::service::Query::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Query_service_5fmsg_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_Query_service_5fmsg_2eproto}, {}}; - -static void InitDefaultsscc_info_QueryResult_service_5fmsg_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::service::_QueryResult_default_instance_; - new (ptr) ::milvus::proto::service::QueryResult(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::service::QueryResult::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_QueryResult_service_5fmsg_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_QueryResult_service_5fmsg_2eproto}, { - &scc_info_Status_common_2eproto.base,}}; - -static void InitDefaultsscc_info_RowBatch_service_5fmsg_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::service::_RowBatch_default_instance_; - new (ptr) ::milvus::proto::service::RowBatch(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::service::RowBatch::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_RowBatch_service_5fmsg_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_RowBatch_service_5fmsg_2eproto}, { - &scc_info_Blob_common_2eproto.base,}}; - -static void InitDefaultsscc_info_StringListResponse_service_5fmsg_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::service::_StringListResponse_default_instance_; - new (ptr) ::milvus::proto::service::StringListResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::service::StringListResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_StringListResponse_service_5fmsg_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_StringListResponse_service_5fmsg_2eproto}, { - &scc_info_Status_common_2eproto.base,}}; - -static void InitDefaultsscc_info_StringResponse_service_5fmsg_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::service::_StringResponse_default_instance_; - new (ptr) ::milvus::proto::service::StringResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::service::StringResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_StringResponse_service_5fmsg_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_StringResponse_service_5fmsg_2eproto}, { - &scc_info_Status_common_2eproto.base,}}; - -static void InitDefaultsscc_info_SysConfigResponse_service_5fmsg_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::service::_SysConfigResponse_default_instance_; - new (ptr) ::milvus::proto::service::SysConfigResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::service::SysConfigResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SysConfigResponse_service_5fmsg_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_SysConfigResponse_service_5fmsg_2eproto}, { - &scc_info_Status_common_2eproto.base,}}; - -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_service_5fmsg_2eproto[20]; -static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_service_5fmsg_2eproto[1]; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_service_5fmsg_2eproto = nullptr; - -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_service_5fmsg_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::CollectionName, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::CollectionName, collection_name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::PartitionName, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::PartitionName, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::PartitionName, tag_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::RowBatch, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::RowBatch, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::RowBatch, partition_tag_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::RowBatch, row_data_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::RowBatch, hash_keys_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::PlaceholderValue, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::PlaceholderValue, tag_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::PlaceholderValue, type_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::PlaceholderValue, values_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::PlaceholderGroup, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::PlaceholderGroup, placeholders_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::Query, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::Query, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::Query, partition_tags_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::Query, dsl_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::Query, placeholder_group_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::StringResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::StringResponse, status_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::StringResponse, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::BoolResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::BoolResponse, status_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::BoolResponse, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::StringListResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::StringListResponse, status_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::StringListResponse, values_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::IntegerListResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::IntegerListResponse, status_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::IntegerListResponse, values_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::IntegerRangeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::IntegerRangeResponse, status_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::IntegerRangeResponse, begin_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::IntegerRangeResponse, end_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::CollectionDescription, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::CollectionDescription, status_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::CollectionDescription, schema_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::CollectionDescription, statistics_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::PartitionDescription, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::PartitionDescription, status_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::PartitionDescription, name_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::PartitionDescription, statistics_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::SysConfigResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::SysConfigResponse, status_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::SysConfigResponse, keys_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::SysConfigResponse, values_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::Hits, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::Hits, ids_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::Hits, row_data_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::Hits, scores_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::QueryResult, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::QueryResult, status_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::QueryResult, hits_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::IndexParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::IndexParam, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::IndexParam, field_name_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::IndexParam, extra_params_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::DescribeIndexRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::DescribeIndexRequest, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::DescribeIndexRequest, field_name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::DescribeIndexProgressRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::DescribeIndexProgressRequest, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::DescribeIndexProgressRequest, field_name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::DescribeIndexResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::DescribeIndexResponse, status_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::DescribeIndexResponse, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::DescribeIndexResponse, field_name_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::service::DescribeIndexResponse, extra_params_), -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::milvus::proto::service::CollectionName)}, - { 6, -1, sizeof(::milvus::proto::service::PartitionName)}, - { 13, -1, sizeof(::milvus::proto::service::RowBatch)}, - { 22, -1, sizeof(::milvus::proto::service::PlaceholderValue)}, - { 30, -1, sizeof(::milvus::proto::service::PlaceholderGroup)}, - { 36, -1, sizeof(::milvus::proto::service::Query)}, - { 45, -1, sizeof(::milvus::proto::service::StringResponse)}, - { 52, -1, sizeof(::milvus::proto::service::BoolResponse)}, - { 59, -1, sizeof(::milvus::proto::service::StringListResponse)}, - { 66, -1, sizeof(::milvus::proto::service::IntegerListResponse)}, - { 73, -1, sizeof(::milvus::proto::service::IntegerRangeResponse)}, - { 81, -1, sizeof(::milvus::proto::service::CollectionDescription)}, - { 89, -1, sizeof(::milvus::proto::service::PartitionDescription)}, - { 97, -1, sizeof(::milvus::proto::service::SysConfigResponse)}, - { 105, -1, sizeof(::milvus::proto::service::Hits)}, - { 113, -1, sizeof(::milvus::proto::service::QueryResult)}, - { 120, -1, sizeof(::milvus::proto::service::IndexParam)}, - { 128, -1, sizeof(::milvus::proto::service::DescribeIndexRequest)}, - { 135, -1, sizeof(::milvus::proto::service::DescribeIndexProgressRequest)}, - { 142, -1, sizeof(::milvus::proto::service::DescribeIndexResponse)}, -}; - -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::service::_CollectionName_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::service::_PartitionName_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::service::_RowBatch_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::service::_PlaceholderValue_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::service::_PlaceholderGroup_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::service::_Query_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::service::_StringResponse_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::service::_BoolResponse_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::service::_StringListResponse_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::service::_IntegerListResponse_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::service::_IntegerRangeResponse_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::service::_CollectionDescription_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::service::_PartitionDescription_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::service::_SysConfigResponse_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::service::_Hits_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::service::_QueryResult_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::service::_IndexParam_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::service::_DescribeIndexRequest_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::service::_DescribeIndexProgressRequest_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::milvus::proto::service::_DescribeIndexResponse_default_instance_), -}; - -const char descriptor_table_protodef_service_5fmsg_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\021service_msg.proto\022\024milvus.proto.servic" - "e\032\014common.proto\032\014schema.proto\")\n\016Collect" - "ionName\022\027\n\017collection_name\030\001 \001(\t\"5\n\rPart" - "itionName\022\027\n\017collection_name\030\001 \001(\t\022\013\n\003ta" - "g\030\002 \001(\t\"z\n\010RowBatch\022\027\n\017collection_name\030\001" - " \001(\t\022\025\n\rpartition_tag\030\002 \001(\t\022+\n\010row_data\030" - "\003 \003(\0132\031.milvus.proto.common.Blob\022\021\n\thash" - "_keys\030\004 \003(\r\"d\n\020PlaceholderValue\022\013\n\003tag\030\001" - " \001(\t\0223\n\004type\030\002 \001(\0162%.milvus.proto.servic" - "e.PlaceholderType\022\016\n\006values\030\003 \003(\014\"P\n\020Pla" - "ceholderGroup\022<\n\014placeholders\030\001 \003(\0132&.mi" - "lvus.proto.service.PlaceholderValue\"`\n\005Q" - "uery\022\027\n\017collection_name\030\001 \001(\t\022\026\n\016partiti" - "on_tags\030\002 \003(\t\022\013\n\003dsl\030\003 \001(\t\022\031\n\021placeholde" - "r_group\030\004 \001(\014\"L\n\016StringResponse\022+\n\006statu" - "s\030\001 \001(\0132\033.milvus.proto.common.Status\022\r\n\005" - "value\030\002 \001(\t\"J\n\014BoolResponse\022+\n\006status\030\001 " - "\001(\0132\033.milvus.proto.common.Status\022\r\n\005valu" - "e\030\002 \001(\010\"Q\n\022StringListResponse\022+\n\006status\030" - "\001 \001(\0132\033.milvus.proto.common.Status\022\016\n\006va" - "lues\030\002 \003(\t\"R\n\023IntegerListResponse\022+\n\006sta" - "tus\030\001 \001(\0132\033.milvus.proto.common.Status\022\016" - "\n\006values\030\002 \003(\003\"_\n\024IntegerRangeResponse\022+" - "\n\006status\030\001 \001(\0132\033.milvus.proto.common.Sta" - "tus\022\r\n\005begin\030\002 \001(\003\022\013\n\003end\030\003 \001(\003\"\262\001\n\025Coll" - "ectionDescription\022+\n\006status\030\001 \001(\0132\033.milv" - "us.proto.common.Status\0225\n\006schema\030\002 \001(\0132%" - ".milvus.proto.schema.CollectionSchema\0225\n" - "\nstatistics\030\003 \003(\0132!.milvus.proto.common." - "KeyValuePair\"\255\001\n\024PartitionDescription\022+\n" - "\006status\030\001 \001(\0132\033.milvus.proto.common.Stat" - "us\0221\n\004name\030\002 \001(\0132#.milvus.proto.service." - "PartitionName\0225\n\nstatistics\030\003 \003(\0132!.milv" - "us.proto.common.KeyValuePair\"^\n\021SysConfi" - "gResponse\022+\n\006status\030\001 \001(\0132\033.milvus.proto" - ".common.Status\022\014\n\004keys\030\002 \003(\t\022\016\n\006values\030\003" - " \003(\t\"5\n\004Hits\022\013\n\003IDs\030\001 \003(\003\022\020\n\010row_data\030\002 " - "\003(\014\022\016\n\006scores\030\003 \003(\002\"H\n\013QueryResult\022+\n\006st" - "atus\030\001 \001(\0132\033.milvus.proto.common.Status\022" - "\014\n\004hits\030\002 \003(\014\"r\n\nIndexParam\022\027\n\017collectio" - "n_name\030\001 \001(\t\022\022\n\nfield_name\030\002 \001(\t\0227\n\014extr" - "a_params\030\003 \003(\0132!.milvus.proto.common.Key" - "ValuePair\"C\n\024DescribeIndexRequest\022\027\n\017col" - "lection_name\030\001 \001(\t\022\022\n\nfield_name\030\002 \001(\t\"K" - "\n\034DescribeIndexProgressRequest\022\027\n\017collec" - "tion_name\030\001 \001(\t\022\022\n\nfield_name\030\002 \001(\t\"\252\001\n\025" - "DescribeIndexResponse\022+\n\006status\030\001 \001(\0132\033." - "milvus.proto.common.Status\022\027\n\017collection" - "_name\030\002 \001(\t\022\022\n\nfield_name\030\003 \001(\t\0227\n\014extra" - "_params\030\004 \003(\0132!.milvus.proto.common.KeyV" - "aluePair*@\n\017PlaceholderType\022\010\n\004NONE\020\000\022\021\n" - "\rVECTOR_BINARY\020d\022\020\n\014VECTOR_FLOAT\020eBCZAgi" - "thub.com/zilliztech/milvus-distributed/i" - "nternal/proto/servicepbb\006proto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_service_5fmsg_2eproto_deps[2] = { - &::descriptor_table_common_2eproto, - &::descriptor_table_schema_2eproto, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_service_5fmsg_2eproto_sccs[20] = { - &scc_info_BoolResponse_service_5fmsg_2eproto.base, - &scc_info_CollectionDescription_service_5fmsg_2eproto.base, - &scc_info_CollectionName_service_5fmsg_2eproto.base, - &scc_info_DescribeIndexProgressRequest_service_5fmsg_2eproto.base, - &scc_info_DescribeIndexRequest_service_5fmsg_2eproto.base, - &scc_info_DescribeIndexResponse_service_5fmsg_2eproto.base, - &scc_info_Hits_service_5fmsg_2eproto.base, - &scc_info_IndexParam_service_5fmsg_2eproto.base, - &scc_info_IntegerListResponse_service_5fmsg_2eproto.base, - &scc_info_IntegerRangeResponse_service_5fmsg_2eproto.base, - &scc_info_PartitionDescription_service_5fmsg_2eproto.base, - &scc_info_PartitionName_service_5fmsg_2eproto.base, - &scc_info_PlaceholderGroup_service_5fmsg_2eproto.base, - &scc_info_PlaceholderValue_service_5fmsg_2eproto.base, - &scc_info_Query_service_5fmsg_2eproto.base, - &scc_info_QueryResult_service_5fmsg_2eproto.base, - &scc_info_RowBatch_service_5fmsg_2eproto.base, - &scc_info_StringListResponse_service_5fmsg_2eproto.base, - &scc_info_StringResponse_service_5fmsg_2eproto.base, - &scc_info_SysConfigResponse_service_5fmsg_2eproto.base, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_service_5fmsg_2eproto_once; -static bool descriptor_table_service_5fmsg_2eproto_initialized = false; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_service_5fmsg_2eproto = { - &descriptor_table_service_5fmsg_2eproto_initialized, descriptor_table_protodef_service_5fmsg_2eproto, "service_msg.proto", 2151, - &descriptor_table_service_5fmsg_2eproto_once, descriptor_table_service_5fmsg_2eproto_sccs, descriptor_table_service_5fmsg_2eproto_deps, 20, 2, - schemas, file_default_instances, TableStruct_service_5fmsg_2eproto::offsets, - file_level_metadata_service_5fmsg_2eproto, 20, file_level_enum_descriptors_service_5fmsg_2eproto, file_level_service_descriptors_service_5fmsg_2eproto, -}; - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_service_5fmsg_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_service_5fmsg_2eproto), true); -namespace milvus { -namespace proto { -namespace service { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PlaceholderType_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_service_5fmsg_2eproto); - return file_level_enum_descriptors_service_5fmsg_2eproto[0]; -} -bool PlaceholderType_IsValid(int value) { - switch (value) { - case 0: - case 100: - case 101: - return true; - default: - return false; - } -} - - -// =================================================================== - -void CollectionName::InitAsDefaultInstance() { -} -class CollectionName::_Internal { - public: -}; - -CollectionName::CollectionName() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.service.CollectionName) -} -CollectionName::CollectionName(const CollectionName& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - // @@protoc_insertion_point(copy_constructor:milvus.proto.service.CollectionName) -} - -void CollectionName::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionName_service_5fmsg_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -CollectionName::~CollectionName() { - // @@protoc_insertion_point(destructor:milvus.proto.service.CollectionName) - SharedDtor(); -} - -void CollectionName::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void CollectionName::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CollectionName& CollectionName::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionName_service_5fmsg_2eproto.base); - return *internal_default_instance(); -} - - -void CollectionName::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.service.CollectionName) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CollectionName::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.service.CollectionName.collection_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CollectionName::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.proto.service.CollectionName) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string collection_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast<int>(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.service.CollectionName.collection_name")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.proto.service.CollectionName) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.service.CollectionName) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CollectionName::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.service.CollectionName) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast<int>(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.CollectionName.collection_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.proto.service.CollectionName) -} - -::PROTOBUF_NAMESPACE_ID::uint8* CollectionName::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.CollectionName) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast<int>(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.CollectionName.collection_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.CollectionName) - return target; -} - -size_t CollectionName::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.CollectionName) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CollectionName::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.CollectionName) - GOOGLE_DCHECK_NE(&from, this); - const CollectionName* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CollectionName>( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.CollectionName) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.CollectionName) - MergeFrom(*source); - } -} - -void CollectionName::MergeFrom(const CollectionName& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.CollectionName) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } -} - -void CollectionName::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.CollectionName) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CollectionName::CopyFrom(const CollectionName& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.CollectionName) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CollectionName::IsInitialized() const { - return true; -} - -void CollectionName::InternalSwap(CollectionName* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata CollectionName::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void PartitionName::InitAsDefaultInstance() { -} -class PartitionName::_Internal { - public: -}; - -PartitionName::PartitionName() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.service.PartitionName) -} -PartitionName::PartitionName(const PartitionName& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.tag().empty()) { - tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.tag_); - } - // @@protoc_insertion_point(copy_constructor:milvus.proto.service.PartitionName) -} - -void PartitionName::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PartitionName_service_5fmsg_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -PartitionName::~PartitionName() { - // @@protoc_insertion_point(destructor:milvus.proto.service.PartitionName) - SharedDtor(); -} - -void PartitionName::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - tag_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void PartitionName::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PartitionName& PartitionName::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PartitionName_service_5fmsg_2eproto.base); - return *internal_default_instance(); -} - - -void PartitionName::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.service.PartitionName) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PartitionName::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.service.PartitionName.collection_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string tag = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_tag(), ptr, ctx, "milvus.proto.service.PartitionName.tag"); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool PartitionName::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.proto.service.PartitionName) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string collection_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast<int>(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.service.PartitionName.collection_name")); - } else { - goto handle_unusual; - } - break; - } - - // string tag = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_tag())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->tag().data(), static_cast<int>(this->tag().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.service.PartitionName.tag")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.proto.service.PartitionName) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.service.PartitionName) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PartitionName::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.service.PartitionName) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast<int>(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.PartitionName.collection_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // string tag = 2; - if (this->tag().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->tag().data(), static_cast<int>(this->tag().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.PartitionName.tag"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->tag(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.proto.service.PartitionName) -} - -::PROTOBUF_NAMESPACE_ID::uint8* PartitionName::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.PartitionName) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast<int>(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.PartitionName.collection_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // string tag = 2; - if (this->tag().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->tag().data(), static_cast<int>(this->tag().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.PartitionName.tag"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 2, this->tag(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.PartitionName) - return target; -} - -size_t PartitionName::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.PartitionName) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // string tag = 2; - if (this->tag().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->tag()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PartitionName::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.PartitionName) - GOOGLE_DCHECK_NE(&from, this); - const PartitionName* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PartitionName>( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.PartitionName) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.PartitionName) - MergeFrom(*source); - } -} - -void PartitionName::MergeFrom(const PartitionName& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.PartitionName) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.tag().size() > 0) { - - tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.tag_); - } -} - -void PartitionName::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.PartitionName) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PartitionName::CopyFrom(const PartitionName& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.PartitionName) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PartitionName::IsInitialized() const { - return true; -} - -void PartitionName::InternalSwap(PartitionName* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - tag_.Swap(&other->tag_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PartitionName::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void RowBatch::InitAsDefaultInstance() { -} -class RowBatch::_Internal { - public: -}; - -void RowBatch::clear_row_data() { - row_data_.Clear(); -} -RowBatch::RowBatch() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.service.RowBatch) -} -RowBatch::RowBatch(const RowBatch& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - row_data_(from.row_data_), - hash_keys_(from.hash_keys_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - partition_tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.partition_tag().empty()) { - partition_tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); - } - // @@protoc_insertion_point(copy_constructor:milvus.proto.service.RowBatch) -} - -void RowBatch::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RowBatch_service_5fmsg_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - partition_tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -RowBatch::~RowBatch() { - // @@protoc_insertion_point(destructor:milvus.proto.service.RowBatch) - SharedDtor(); -} - -void RowBatch::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - partition_tag_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void RowBatch::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const RowBatch& RowBatch::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RowBatch_service_5fmsg_2eproto.base); - return *internal_default_instance(); -} - - -void RowBatch::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.service.RowBatch) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - row_data_.Clear(); - hash_keys_.Clear(); - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - partition_tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* RowBatch::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.service.RowBatch.collection_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string partition_tag = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_partition_tag(), ptr, ctx, "milvus.proto.service.RowBatch.partition_tag"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.proto.common.Blob row_data = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_row_data(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); - } else goto handle_unusual; - continue; - // repeated uint32 hash_keys = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(mutable_hash_keys(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32) { - add_hash_keys(::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 RowBatch::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.proto.service.RowBatch) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string collection_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast<int>(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.service.RowBatch.collection_name")); - } else { - goto handle_unusual; - } - break; - } - - // string partition_tag = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_partition_tag())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), static_cast<int>(this->partition_tag().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.service.RowBatch.partition_tag")); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.proto.common.Blob row_data = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_row_data())); - } else { - goto handle_unusual; - } - break; - } - - // repeated uint32 hash_keys = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< - ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_hash_keys()))); - } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>( - 1, 34u, input, this->mutable_hash_keys()))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.proto.service.RowBatch) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.service.RowBatch) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void RowBatch::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.service.RowBatch) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast<int>(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.RowBatch.collection_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // string partition_tag = 2; - if (this->partition_tag().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), static_cast<int>(this->partition_tag().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.RowBatch.partition_tag"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->partition_tag(), output); - } - - // repeated .milvus.proto.common.Blob row_data = 3; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->row_data_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, - this->row_data(static_cast<int>(i)), - output); - } - - // repeated uint32 hash_keys = 4; - if (this->hash_keys_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(4, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_hash_keys_cached_byte_size_.load( - std::memory_order_relaxed)); - } - for (int i = 0, n = this->hash_keys_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32NoTag( - this->hash_keys(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.proto.service.RowBatch) -} - -::PROTOBUF_NAMESPACE_ID::uint8* RowBatch::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.RowBatch) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast<int>(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.RowBatch.collection_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // string partition_tag = 2; - if (this->partition_tag().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), static_cast<int>(this->partition_tag().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.RowBatch.partition_tag"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 2, this->partition_tag(), target); - } - - // repeated .milvus.proto.common.Blob row_data = 3; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->row_data_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->row_data(static_cast<int>(i)), target); - } - - // repeated uint32 hash_keys = 4; - if (this->hash_keys_size() > 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( - 4, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( - _hash_keys_cached_byte_size_.load(std::memory_order_relaxed), - target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteUInt32NoTagToArray(this->hash_keys_, target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.RowBatch) - return target; -} - -size_t RowBatch::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.RowBatch) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.proto.common.Blob row_data = 3; - { - unsigned int count = static_cast<unsigned int>(this->row_data_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->row_data(static_cast<int>(i))); - } - } - - // repeated uint32 hash_keys = 4; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - UInt32Size(this->hash_keys_); - 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); - _hash_keys_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // string partition_tag = 2; - if (this->partition_tag().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->partition_tag()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void RowBatch::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.RowBatch) - GOOGLE_DCHECK_NE(&from, this); - const RowBatch* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<RowBatch>( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.RowBatch) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.RowBatch) - MergeFrom(*source); - } -} - -void RowBatch::MergeFrom(const RowBatch& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.RowBatch) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - row_data_.MergeFrom(from.row_data_); - hash_keys_.MergeFrom(from.hash_keys_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.partition_tag().size() > 0) { - - partition_tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); - } -} - -void RowBatch::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.RowBatch) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RowBatch::CopyFrom(const RowBatch& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.RowBatch) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RowBatch::IsInitialized() const { - return true; -} - -void RowBatch::InternalSwap(RowBatch* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&row_data_)->InternalSwap(CastToBase(&other->row_data_)); - hash_keys_.InternalSwap(&other->hash_keys_); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - partition_tag_.Swap(&other->partition_tag_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata RowBatch::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void PlaceholderValue::InitAsDefaultInstance() { -} -class PlaceholderValue::_Internal { - public: -}; - -PlaceholderValue::PlaceholderValue() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.service.PlaceholderValue) -} -PlaceholderValue::PlaceholderValue(const PlaceholderValue& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - values_(from.values_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.tag().empty()) { - tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.tag_); - } - type_ = from.type_; - // @@protoc_insertion_point(copy_constructor:milvus.proto.service.PlaceholderValue) -} - -void PlaceholderValue::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PlaceholderValue_service_5fmsg_2eproto.base); - tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - type_ = 0; -} - -PlaceholderValue::~PlaceholderValue() { - // @@protoc_insertion_point(destructor:milvus.proto.service.PlaceholderValue) - SharedDtor(); -} - -void PlaceholderValue::SharedDtor() { - tag_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void PlaceholderValue::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PlaceholderValue& PlaceholderValue::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PlaceholderValue_service_5fmsg_2eproto.base); - return *internal_default_instance(); -} - - -void PlaceholderValue::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.service.PlaceholderValue) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - values_.Clear(); - tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - type_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PlaceholderValue::_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 tag = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_tag(), ptr, ctx, "milvus.proto.service.PlaceholderValue.tag"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.proto.service.PlaceholderType type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - set_type(static_cast<::milvus::proto::service::PlaceholderType>(val)); - } else goto handle_unusual; - continue; - // repeated bytes values = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(add_values(), ptr, ctx); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool PlaceholderValue::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.proto.service.PlaceholderValue) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string tag = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_tag())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->tag().data(), static_cast<int>(this->tag().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.service.PlaceholderValue.tag")); - } else { - goto handle_unusual; - } - break; - } - - // .milvus.proto.service.PlaceholderType type = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_type(static_cast< ::milvus::proto::service::PlaceholderType >(value)); - } else { - goto handle_unusual; - } - break; - } - - // repeated bytes values = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes( - input, this->add_values())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.proto.service.PlaceholderValue) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.service.PlaceholderValue) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PlaceholderValue::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.service.PlaceholderValue) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string tag = 1; - if (this->tag().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->tag().data(), static_cast<int>(this->tag().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.PlaceholderValue.tag"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->tag(), output); - } - - // .milvus.proto.service.PlaceholderType type = 2; - if (this->type() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( - 2, this->type(), output); - } - - // repeated bytes values = 3; - for (int i = 0, n = this->values_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytes( - 3, this->values(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.proto.service.PlaceholderValue) -} - -::PROTOBUF_NAMESPACE_ID::uint8* PlaceholderValue::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.PlaceholderValue) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string tag = 1; - if (this->tag().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->tag().data(), static_cast<int>(this->tag().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.PlaceholderValue.tag"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->tag(), target); - } - - // .milvus.proto.service.PlaceholderType type = 2; - if (this->type() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->type(), target); - } - - // repeated bytes values = 3; - for (int i = 0, n = this->values_size(); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteBytesToArray(3, this->values(i), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.PlaceholderValue) - return target; -} - -size_t PlaceholderValue::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.PlaceholderValue) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated bytes values = 3; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->values_size()); - for (int i = 0, n = this->values_size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->values(i)); - } - - // string tag = 1; - if (this->tag().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->tag()); - } - - // .milvus.proto.service.PlaceholderType type = 2; - if (this->type() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->type()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PlaceholderValue::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.PlaceholderValue) - GOOGLE_DCHECK_NE(&from, this); - const PlaceholderValue* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PlaceholderValue>( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.PlaceholderValue) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.PlaceholderValue) - MergeFrom(*source); - } -} - -void PlaceholderValue::MergeFrom(const PlaceholderValue& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.PlaceholderValue) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - values_.MergeFrom(from.values_); - if (from.tag().size() > 0) { - - tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.tag_); - } - if (from.type() != 0) { - set_type(from.type()); - } -} - -void PlaceholderValue::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.PlaceholderValue) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PlaceholderValue::CopyFrom(const PlaceholderValue& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.PlaceholderValue) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PlaceholderValue::IsInitialized() const { - return true; -} - -void PlaceholderValue::InternalSwap(PlaceholderValue* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - values_.InternalSwap(CastToBase(&other->values_)); - tag_.Swap(&other->tag_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(type_, other->type_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PlaceholderValue::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void PlaceholderGroup::InitAsDefaultInstance() { -} -class PlaceholderGroup::_Internal { - public: -}; - -PlaceholderGroup::PlaceholderGroup() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.service.PlaceholderGroup) -} -PlaceholderGroup::PlaceholderGroup(const PlaceholderGroup& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - placeholders_(from.placeholders_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:milvus.proto.service.PlaceholderGroup) -} - -void PlaceholderGroup::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PlaceholderGroup_service_5fmsg_2eproto.base); -} - -PlaceholderGroup::~PlaceholderGroup() { - // @@protoc_insertion_point(destructor:milvus.proto.service.PlaceholderGroup) - SharedDtor(); -} - -void PlaceholderGroup::SharedDtor() { -} - -void PlaceholderGroup::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PlaceholderGroup& PlaceholderGroup::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PlaceholderGroup_service_5fmsg_2eproto.base); - return *internal_default_instance(); -} - - -void PlaceholderGroup::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.service.PlaceholderGroup) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - placeholders_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PlaceholderGroup::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .milvus.proto.service.PlaceholderValue placeholders = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_placeholders(), 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 PlaceholderGroup::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.proto.service.PlaceholderGroup) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .milvus.proto.service.PlaceholderValue placeholders = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_placeholders())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.proto.service.PlaceholderGroup) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.service.PlaceholderGroup) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PlaceholderGroup::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.service.PlaceholderGroup) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .milvus.proto.service.PlaceholderValue placeholders = 1; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->placeholders_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->placeholders(static_cast<int>(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.proto.service.PlaceholderGroup) -} - -::PROTOBUF_NAMESPACE_ID::uint8* PlaceholderGroup::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.PlaceholderGroup) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .milvus.proto.service.PlaceholderValue placeholders = 1; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->placeholders_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->placeholders(static_cast<int>(i)), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.PlaceholderGroup) - return target; -} - -size_t PlaceholderGroup::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.PlaceholderGroup) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.proto.service.PlaceholderValue placeholders = 1; - { - unsigned int count = static_cast<unsigned int>(this->placeholders_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->placeholders(static_cast<int>(i))); - } - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PlaceholderGroup::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.PlaceholderGroup) - GOOGLE_DCHECK_NE(&from, this); - const PlaceholderGroup* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PlaceholderGroup>( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.PlaceholderGroup) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.PlaceholderGroup) - MergeFrom(*source); - } -} - -void PlaceholderGroup::MergeFrom(const PlaceholderGroup& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.PlaceholderGroup) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - placeholders_.MergeFrom(from.placeholders_); -} - -void PlaceholderGroup::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.PlaceholderGroup) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PlaceholderGroup::CopyFrom(const PlaceholderGroup& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.PlaceholderGroup) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PlaceholderGroup::IsInitialized() const { - return true; -} - -void PlaceholderGroup::InternalSwap(PlaceholderGroup* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&placeholders_)->InternalSwap(CastToBase(&other->placeholders_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PlaceholderGroup::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void Query::InitAsDefaultInstance() { -} -class Query::_Internal { - public: -}; - -Query::Query() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.service.Query) -} -Query::Query(const Query& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - partition_tags_(from.partition_tags_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - dsl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.dsl().empty()) { - dsl_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.dsl_); - } - placeholder_group_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.placeholder_group().empty()) { - placeholder_group_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.placeholder_group_); - } - // @@protoc_insertion_point(copy_constructor:milvus.proto.service.Query) -} - -void Query::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Query_service_5fmsg_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - dsl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - placeholder_group_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -Query::~Query() { - // @@protoc_insertion_point(destructor:milvus.proto.service.Query) - SharedDtor(); -} - -void Query::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - dsl_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - placeholder_group_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void Query::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Query& Query::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Query_service_5fmsg_2eproto.base); - return *internal_default_instance(); -} - - -void Query::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.service.Query) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - partition_tags_.Clear(); - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - dsl_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - placeholder_group_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Query::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.service.Query.collection_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated string partition_tags = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_partition_tags(), ptr, ctx, "milvus.proto.service.Query.partition_tags"); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); - } else goto handle_unusual; - continue; - // string dsl = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_dsl(), ptr, ctx, "milvus.proto.service.Query.dsl"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bytes placeholder_group = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(mutable_placeholder_group(), 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 Query::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.proto.service.Query) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string collection_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast<int>(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.service.Query.collection_name")); - } else { - goto handle_unusual; - } - break; - } - - // repeated string partition_tags = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->add_partition_tags())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partition_tags(this->partition_tags_size() - 1).data(), - static_cast<int>(this->partition_tags(this->partition_tags_size() - 1).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.service.Query.partition_tags")); - } else { - goto handle_unusual; - } - break; - } - - // string dsl = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_dsl())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->dsl().data(), static_cast<int>(this->dsl().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.service.Query.dsl")); - } else { - goto handle_unusual; - } - break; - } - - // bytes placeholder_group = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes( - input, this->mutable_placeholder_group())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.proto.service.Query) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.service.Query) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Query::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.service.Query) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast<int>(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.Query.collection_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // repeated string partition_tags = 2; - for (int i = 0, n = this->partition_tags_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partition_tags(i).data(), static_cast<int>(this->partition_tags(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.Query.partition_tags"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( - 2, this->partition_tags(i), output); - } - - // string dsl = 3; - if (this->dsl().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->dsl().data(), static_cast<int>(this->dsl().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.Query.dsl"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->dsl(), output); - } - - // bytes placeholder_group = 4; - if (this->placeholder_group().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased( - 4, this->placeholder_group(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.proto.service.Query) -} - -::PROTOBUF_NAMESPACE_ID::uint8* Query::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.Query) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast<int>(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.Query.collection_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // repeated string partition_tags = 2; - for (int i = 0, n = this->partition_tags_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partition_tags(i).data(), static_cast<int>(this->partition_tags(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.Query.partition_tags"); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteStringToArray(2, this->partition_tags(i), target); - } - - // string dsl = 3; - if (this->dsl().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->dsl().data(), static_cast<int>(this->dsl().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.Query.dsl"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 3, this->dsl(), target); - } - - // bytes placeholder_group = 4; - if (this->placeholder_group().size() > 0) { - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesToArray( - 4, this->placeholder_group(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.Query) - return target; -} - -size_t Query::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.Query) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated string partition_tags = 2; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->partition_tags_size()); - for (int i = 0, n = this->partition_tags_size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->partition_tags(i)); - } - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // string dsl = 3; - if (this->dsl().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->dsl()); - } - - // bytes placeholder_group = 4; - if (this->placeholder_group().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->placeholder_group()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Query::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.Query) - GOOGLE_DCHECK_NE(&from, this); - const Query* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Query>( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.Query) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.Query) - MergeFrom(*source); - } -} - -void Query::MergeFrom(const Query& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.Query) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - partition_tags_.MergeFrom(from.partition_tags_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.dsl().size() > 0) { - - dsl_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.dsl_); - } - if (from.placeholder_group().size() > 0) { - - placeholder_group_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.placeholder_group_); - } -} - -void Query::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.Query) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Query::CopyFrom(const Query& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.Query) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Query::IsInitialized() const { - return true; -} - -void Query::InternalSwap(Query* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - partition_tags_.InternalSwap(CastToBase(&other->partition_tags_)); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - dsl_.Swap(&other->dsl_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - placeholder_group_.Swap(&other->placeholder_group_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata Query::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void StringResponse::InitAsDefaultInstance() { - ::milvus::proto::service::_StringResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( - ::milvus::proto::common::Status::internal_default_instance()); -} -class StringResponse::_Internal { - public: - static const ::milvus::proto::common::Status& status(const StringResponse* msg); -}; - -const ::milvus::proto::common::Status& -StringResponse::_Internal::status(const StringResponse* msg) { - return *msg->status_; -} -void StringResponse::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -StringResponse::StringResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.service.StringResponse) -} -StringResponse::StringResponse(const StringResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.value().empty()) { - value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.value_); - } - if (from.has_status()) { - status_ = new ::milvus::proto::common::Status(*from.status_); - } else { - status_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.proto.service.StringResponse) -} - -void StringResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_StringResponse_service_5fmsg_2eproto.base); - value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - status_ = nullptr; -} - -StringResponse::~StringResponse() { - // @@protoc_insertion_point(destructor:milvus.proto.service.StringResponse) - SharedDtor(); -} - -void StringResponse::SharedDtor() { - value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete status_; -} - -void StringResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const StringResponse& StringResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StringResponse_service_5fmsg_2eproto.base); - return *internal_default_instance(); -} - - -void StringResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.service.StringResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* StringResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.proto.common.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string value = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_value(), ptr, ctx, "milvus.proto.service.StringResponse.value"); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool StringResponse::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.proto.service.StringResponse) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.proto.common.Status status = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_status())); - } else { - goto handle_unusual; - } - break; - } - - // string value = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_value())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast<int>(this->value().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.service.StringResponse.value")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.proto.service.StringResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.service.StringResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void StringResponse::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.service.StringResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::status(this), output); - } - - // string value = 2; - if (this->value().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast<int>(this->value().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.StringResponse.value"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->value(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.proto.service.StringResponse) -} - -::PROTOBUF_NAMESPACE_ID::uint8* StringResponse::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.StringResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::status(this), target); - } - - // string value = 2; - if (this->value().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast<int>(this->value().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.StringResponse.value"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 2, this->value(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.StringResponse) - return target; -} - -size_t StringResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.StringResponse) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string value = 2; - if (this->value().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->value()); - } - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void StringResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.StringResponse) - GOOGLE_DCHECK_NE(&from, this); - const StringResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<StringResponse>( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.StringResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.StringResponse) - MergeFrom(*source); - } -} - -void StringResponse::MergeFrom(const StringResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.StringResponse) - 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.value().size() > 0) { - - value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.value_); - } - if (from.has_status()) { - mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); - } -} - -void StringResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.StringResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StringResponse::CopyFrom(const StringResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.StringResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StringResponse::IsInitialized() const { - return true; -} - -void StringResponse::InternalSwap(StringResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - value_.Swap(&other->value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(status_, other->status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata StringResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void BoolResponse::InitAsDefaultInstance() { - ::milvus::proto::service::_BoolResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( - ::milvus::proto::common::Status::internal_default_instance()); -} -class BoolResponse::_Internal { - public: - static const ::milvus::proto::common::Status& status(const BoolResponse* msg); -}; - -const ::milvus::proto::common::Status& -BoolResponse::_Internal::status(const BoolResponse* msg) { - return *msg->status_; -} -void BoolResponse::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -BoolResponse::BoolResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.service.BoolResponse) -} -BoolResponse::BoolResponse(const BoolResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_status()) { - status_ = new ::milvus::proto::common::Status(*from.status_); - } else { - status_ = nullptr; - } - value_ = from.value_; - // @@protoc_insertion_point(copy_constructor:milvus.proto.service.BoolResponse) -} - -void BoolResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BoolResponse_service_5fmsg_2eproto.base); - ::memset(&status_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&value_) - - reinterpret_cast<char*>(&status_)) + sizeof(value_)); -} - -BoolResponse::~BoolResponse() { - // @@protoc_insertion_point(destructor:milvus.proto.service.BoolResponse) - SharedDtor(); -} - -void BoolResponse::SharedDtor() { - if (this != internal_default_instance()) delete status_; -} - -void BoolResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const BoolResponse& BoolResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BoolResponse_service_5fmsg_2eproto.base); - return *internal_default_instance(); -} - - -void BoolResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.service.BoolResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - value_ = false; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* BoolResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.proto.common.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bool value = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - value_ = ::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 BoolResponse::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.proto.service.BoolResponse) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.proto.common.Status status = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_status())); - } else { - goto handle_unusual; - } - break; - } - - // bool value = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( - input, &value_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.proto.service.BoolResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.service.BoolResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void BoolResponse::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.service.BoolResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::status(this), output); - } - - // bool value = 2; - if (this->value() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(2, this->value(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.proto.service.BoolResponse) -} - -::PROTOBUF_NAMESPACE_ID::uint8* BoolResponse::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.BoolResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::status(this), target); - } - - // bool value = 2; - if (this->value() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->value(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.BoolResponse) - return target; -} - -size_t BoolResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.BoolResponse) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - // bool value = 2; - if (this->value() != 0) { - total_size += 1 + 1; - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void BoolResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.BoolResponse) - GOOGLE_DCHECK_NE(&from, this); - const BoolResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<BoolResponse>( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.BoolResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.BoolResponse) - MergeFrom(*source); - } -} - -void BoolResponse::MergeFrom(const BoolResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.BoolResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_status()) { - mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); - } - if (from.value() != 0) { - set_value(from.value()); - } -} - -void BoolResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.BoolResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BoolResponse::CopyFrom(const BoolResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.BoolResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BoolResponse::IsInitialized() const { - return true; -} - -void BoolResponse::InternalSwap(BoolResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(status_, other->status_); - swap(value_, other->value_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata BoolResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void StringListResponse::InitAsDefaultInstance() { - ::milvus::proto::service::_StringListResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( - ::milvus::proto::common::Status::internal_default_instance()); -} -class StringListResponse::_Internal { - public: - static const ::milvus::proto::common::Status& status(const StringListResponse* msg); -}; - -const ::milvus::proto::common::Status& -StringListResponse::_Internal::status(const StringListResponse* msg) { - return *msg->status_; -} -void StringListResponse::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -StringListResponse::StringListResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.service.StringListResponse) -} -StringListResponse::StringListResponse(const StringListResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - values_(from.values_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_status()) { - status_ = new ::milvus::proto::common::Status(*from.status_); - } else { - status_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.proto.service.StringListResponse) -} - -void StringListResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_StringListResponse_service_5fmsg_2eproto.base); - status_ = nullptr; -} - -StringListResponse::~StringListResponse() { - // @@protoc_insertion_point(destructor:milvus.proto.service.StringListResponse) - SharedDtor(); -} - -void StringListResponse::SharedDtor() { - if (this != internal_default_instance()) delete status_; -} - -void StringListResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const StringListResponse& StringListResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StringListResponse_service_5fmsg_2eproto.base); - return *internal_default_instance(); -} - - -void StringListResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.service.StringListResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - values_.Clear(); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* StringListResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.proto.common.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated string values = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_values(), ptr, ctx, "milvus.proto.service.StringListResponse.values"); - 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 StringListResponse::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.proto.service.StringListResponse) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.proto.common.Status status = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_status())); - } else { - goto handle_unusual; - } - break; - } - - // repeated string values = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->add_values())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->values(this->values_size() - 1).data(), - static_cast<int>(this->values(this->values_size() - 1).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.service.StringListResponse.values")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.proto.service.StringListResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.service.StringListResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void StringListResponse::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.service.StringListResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::status(this), output); - } - - // repeated string values = 2; - for (int i = 0, n = this->values_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->values(i).data(), static_cast<int>(this->values(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.StringListResponse.values"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( - 2, this->values(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.proto.service.StringListResponse) -} - -::PROTOBUF_NAMESPACE_ID::uint8* StringListResponse::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.StringListResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::status(this), target); - } - - // repeated string values = 2; - for (int i = 0, n = this->values_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->values(i).data(), static_cast<int>(this->values(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.StringListResponse.values"); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteStringToArray(2, this->values(i), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.StringListResponse) - return target; -} - -size_t StringListResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.StringListResponse) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated string values = 2; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->values_size()); - for (int i = 0, n = this->values_size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->values(i)); - } - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void StringListResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.StringListResponse) - GOOGLE_DCHECK_NE(&from, this); - const StringListResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<StringListResponse>( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.StringListResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.StringListResponse) - MergeFrom(*source); - } -} - -void StringListResponse::MergeFrom(const StringListResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.StringListResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - values_.MergeFrom(from.values_); - if (from.has_status()) { - mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); - } -} - -void StringListResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.StringListResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StringListResponse::CopyFrom(const StringListResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.StringListResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StringListResponse::IsInitialized() const { - return true; -} - -void StringListResponse::InternalSwap(StringListResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - values_.InternalSwap(CastToBase(&other->values_)); - swap(status_, other->status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata StringListResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void IntegerListResponse::InitAsDefaultInstance() { - ::milvus::proto::service::_IntegerListResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( - ::milvus::proto::common::Status::internal_default_instance()); -} -class IntegerListResponse::_Internal { - public: - static const ::milvus::proto::common::Status& status(const IntegerListResponse* msg); -}; - -const ::milvus::proto::common::Status& -IntegerListResponse::_Internal::status(const IntegerListResponse* msg) { - return *msg->status_; -} -void IntegerListResponse::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -IntegerListResponse::IntegerListResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.service.IntegerListResponse) -} -IntegerListResponse::IntegerListResponse(const IntegerListResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - values_(from.values_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_status()) { - status_ = new ::milvus::proto::common::Status(*from.status_); - } else { - status_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.proto.service.IntegerListResponse) -} - -void IntegerListResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_IntegerListResponse_service_5fmsg_2eproto.base); - status_ = nullptr; -} - -IntegerListResponse::~IntegerListResponse() { - // @@protoc_insertion_point(destructor:milvus.proto.service.IntegerListResponse) - SharedDtor(); -} - -void IntegerListResponse::SharedDtor() { - if (this != internal_default_instance()) delete status_; -} - -void IntegerListResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const IntegerListResponse& IntegerListResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_IntegerListResponse_service_5fmsg_2eproto.base); - return *internal_default_instance(); -} - - -void IntegerListResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.service.IntegerListResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - values_.Clear(); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* IntegerListResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.proto.common.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated int64 values = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_values(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) { - add_values(::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 IntegerListResponse::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.proto.service.IntegerListResponse) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.proto.common.Status status = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_status())); - } else { - goto handle_unusual; - } - break; - } - - // repeated int64 values = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, this->mutable_values()))); - } 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_values()))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.proto.service.IntegerListResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.service.IntegerListResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void IntegerListResponse::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.service.IntegerListResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::status(this), output); - } - - // repeated int64 values = 2; - if (this->values_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(2, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_values_cached_byte_size_.load( - std::memory_order_relaxed)); - } - for (int i = 0, n = this->values_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( - this->values(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.proto.service.IntegerListResponse) -} - -::PROTOBUF_NAMESPACE_ID::uint8* IntegerListResponse::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.IntegerListResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::status(this), target); - } - - // repeated int64 values = 2; - if (this->values_size() > 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( - 2, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( - _values_cached_byte_size_.load(std::memory_order_relaxed), - target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->values_, target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.IntegerListResponse) - return target; -} - -size_t IntegerListResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.IntegerListResponse) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated int64 values = 2; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int64Size(this->values_); - 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); - _values_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void IntegerListResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.IntegerListResponse) - GOOGLE_DCHECK_NE(&from, this); - const IntegerListResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<IntegerListResponse>( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.IntegerListResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.IntegerListResponse) - MergeFrom(*source); - } -} - -void IntegerListResponse::MergeFrom(const IntegerListResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.IntegerListResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - values_.MergeFrom(from.values_); - if (from.has_status()) { - mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); - } -} - -void IntegerListResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.IntegerListResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void IntegerListResponse::CopyFrom(const IntegerListResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.IntegerListResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool IntegerListResponse::IsInitialized() const { - return true; -} - -void IntegerListResponse::InternalSwap(IntegerListResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - values_.InternalSwap(&other->values_); - swap(status_, other->status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata IntegerListResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void IntegerRangeResponse::InitAsDefaultInstance() { - ::milvus::proto::service::_IntegerRangeResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( - ::milvus::proto::common::Status::internal_default_instance()); -} -class IntegerRangeResponse::_Internal { - public: - static const ::milvus::proto::common::Status& status(const IntegerRangeResponse* msg); -}; - -const ::milvus::proto::common::Status& -IntegerRangeResponse::_Internal::status(const IntegerRangeResponse* msg) { - return *msg->status_; -} -void IntegerRangeResponse::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -IntegerRangeResponse::IntegerRangeResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.service.IntegerRangeResponse) -} -IntegerRangeResponse::IntegerRangeResponse(const IntegerRangeResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_status()) { - status_ = new ::milvus::proto::common::Status(*from.status_); - } else { - status_ = nullptr; - } - ::memcpy(&begin_, &from.begin_, - static_cast<size_t>(reinterpret_cast<char*>(&end_) - - reinterpret_cast<char*>(&begin_)) + sizeof(end_)); - // @@protoc_insertion_point(copy_constructor:milvus.proto.service.IntegerRangeResponse) -} - -void IntegerRangeResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_IntegerRangeResponse_service_5fmsg_2eproto.base); - ::memset(&status_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&end_) - - reinterpret_cast<char*>(&status_)) + sizeof(end_)); -} - -IntegerRangeResponse::~IntegerRangeResponse() { - // @@protoc_insertion_point(destructor:milvus.proto.service.IntegerRangeResponse) - SharedDtor(); -} - -void IntegerRangeResponse::SharedDtor() { - if (this != internal_default_instance()) delete status_; -} - -void IntegerRangeResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const IntegerRangeResponse& IntegerRangeResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_IntegerRangeResponse_service_5fmsg_2eproto.base); - return *internal_default_instance(); -} - - -void IntegerRangeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.service.IntegerRangeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - ::memset(&begin_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&end_) - - reinterpret_cast<char*>(&begin_)) + sizeof(end_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* IntegerRangeResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.proto.common.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 begin = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - begin_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 end = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - end_ = ::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 IntegerRangeResponse::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.proto.service.IntegerRangeResponse) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.proto.common.Status status = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_status())); - } else { - goto handle_unusual; - } - break; - } - - // int64 begin = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, &begin_))); - } else { - goto handle_unusual; - } - break; - } - - // int64 end = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, &end_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.proto.service.IntegerRangeResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.service.IntegerRangeResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void IntegerRangeResponse::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.service.IntegerRangeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::status(this), output); - } - - // int64 begin = 2; - if (this->begin() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->begin(), output); - } - - // int64 end = 3; - if (this->end() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->end(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.proto.service.IntegerRangeResponse) -} - -::PROTOBUF_NAMESPACE_ID::uint8* IntegerRangeResponse::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.IntegerRangeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::status(this), target); - } - - // int64 begin = 2; - if (this->begin() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->begin(), target); - } - - // int64 end = 3; - if (this->end() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->end(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.IntegerRangeResponse) - return target; -} - -size_t IntegerRangeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.IntegerRangeResponse) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - // int64 begin = 2; - if (this->begin() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->begin()); - } - - // int64 end = 3; - if (this->end() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->end()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void IntegerRangeResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.IntegerRangeResponse) - GOOGLE_DCHECK_NE(&from, this); - const IntegerRangeResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<IntegerRangeResponse>( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.IntegerRangeResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.IntegerRangeResponse) - MergeFrom(*source); - } -} - -void IntegerRangeResponse::MergeFrom(const IntegerRangeResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.IntegerRangeResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_status()) { - mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); - } - if (from.begin() != 0) { - set_begin(from.begin()); - } - if (from.end() != 0) { - set_end(from.end()); - } -} - -void IntegerRangeResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.IntegerRangeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void IntegerRangeResponse::CopyFrom(const IntegerRangeResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.IntegerRangeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool IntegerRangeResponse::IsInitialized() const { - return true; -} - -void IntegerRangeResponse::InternalSwap(IntegerRangeResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(status_, other->status_); - swap(begin_, other->begin_); - swap(end_, other->end_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata IntegerRangeResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void CollectionDescription::InitAsDefaultInstance() { - ::milvus::proto::service::_CollectionDescription_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( - ::milvus::proto::common::Status::internal_default_instance()); - ::milvus::proto::service::_CollectionDescription_default_instance_._instance.get_mutable()->schema_ = const_cast< ::milvus::proto::schema::CollectionSchema*>( - ::milvus::proto::schema::CollectionSchema::internal_default_instance()); -} -class CollectionDescription::_Internal { - public: - static const ::milvus::proto::common::Status& status(const CollectionDescription* msg); - static const ::milvus::proto::schema::CollectionSchema& schema(const CollectionDescription* msg); -}; - -const ::milvus::proto::common::Status& -CollectionDescription::_Internal::status(const CollectionDescription* msg) { - return *msg->status_; -} -const ::milvus::proto::schema::CollectionSchema& -CollectionDescription::_Internal::schema(const CollectionDescription* msg) { - return *msg->schema_; -} -void CollectionDescription::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -void CollectionDescription::clear_schema() { - if (GetArenaNoVirtual() == nullptr && schema_ != nullptr) { - delete schema_; - } - schema_ = nullptr; -} -void CollectionDescription::clear_statistics() { - statistics_.Clear(); -} -CollectionDescription::CollectionDescription() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.service.CollectionDescription) -} -CollectionDescription::CollectionDescription(const CollectionDescription& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - statistics_(from.statistics_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_status()) { - status_ = new ::milvus::proto::common::Status(*from.status_); - } else { - status_ = nullptr; - } - if (from.has_schema()) { - schema_ = new ::milvus::proto::schema::CollectionSchema(*from.schema_); - } else { - schema_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.proto.service.CollectionDescription) -} - -void CollectionDescription::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionDescription_service_5fmsg_2eproto.base); - ::memset(&status_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&schema_) - - reinterpret_cast<char*>(&status_)) + sizeof(schema_)); -} - -CollectionDescription::~CollectionDescription() { - // @@protoc_insertion_point(destructor:milvus.proto.service.CollectionDescription) - SharedDtor(); -} - -void CollectionDescription::SharedDtor() { - if (this != internal_default_instance()) delete status_; - if (this != internal_default_instance()) delete schema_; -} - -void CollectionDescription::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CollectionDescription& CollectionDescription::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionDescription_service_5fmsg_2eproto.base); - return *internal_default_instance(); -} - - -void CollectionDescription::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.service.CollectionDescription) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - statistics_.Clear(); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - if (GetArenaNoVirtual() == nullptr && schema_ != nullptr) { - delete schema_; - } - schema_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CollectionDescription::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.proto.common.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.proto.schema.CollectionSchema schema = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(mutable_schema(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.proto.common.KeyValuePair statistics = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_statistics(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); - } else goto handle_unusual; - continue; - 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 CollectionDescription::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.proto.service.CollectionDescription) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.proto.common.Status status = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_status())); - } else { - goto handle_unusual; - } - break; - } - - // .milvus.proto.schema.CollectionSchema schema = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_schema())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.proto.common.KeyValuePair statistics = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_statistics())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.proto.service.CollectionDescription) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.service.CollectionDescription) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CollectionDescription::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.service.CollectionDescription) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::status(this), output); - } - - // .milvus.proto.schema.CollectionSchema schema = 2; - if (this->has_schema()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, _Internal::schema(this), output); - } - - // repeated .milvus.proto.common.KeyValuePair statistics = 3; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->statistics_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, - this->statistics(static_cast<int>(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.proto.service.CollectionDescription) -} - -::PROTOBUF_NAMESPACE_ID::uint8* CollectionDescription::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.CollectionDescription) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::status(this), target); - } - - // .milvus.proto.schema.CollectionSchema schema = 2; - if (this->has_schema()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, _Internal::schema(this), target); - } - - // repeated .milvus.proto.common.KeyValuePair statistics = 3; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->statistics_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->statistics(static_cast<int>(i)), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.CollectionDescription) - return target; -} - -size_t CollectionDescription::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.CollectionDescription) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.proto.common.KeyValuePair statistics = 3; - { - unsigned int count = static_cast<unsigned int>(this->statistics_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->statistics(static_cast<int>(i))); - } - } - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - // .milvus.proto.schema.CollectionSchema schema = 2; - if (this->has_schema()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *schema_); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CollectionDescription::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.CollectionDescription) - GOOGLE_DCHECK_NE(&from, this); - const CollectionDescription* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CollectionDescription>( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.CollectionDescription) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.CollectionDescription) - MergeFrom(*source); - } -} - -void CollectionDescription::MergeFrom(const CollectionDescription& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.CollectionDescription) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - statistics_.MergeFrom(from.statistics_); - if (from.has_status()) { - mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); - } - if (from.has_schema()) { - mutable_schema()->::milvus::proto::schema::CollectionSchema::MergeFrom(from.schema()); - } -} - -void CollectionDescription::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.CollectionDescription) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CollectionDescription::CopyFrom(const CollectionDescription& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.CollectionDescription) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CollectionDescription::IsInitialized() const { - return true; -} - -void CollectionDescription::InternalSwap(CollectionDescription* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&statistics_)->InternalSwap(CastToBase(&other->statistics_)); - swap(status_, other->status_); - swap(schema_, other->schema_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata CollectionDescription::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void PartitionDescription::InitAsDefaultInstance() { - ::milvus::proto::service::_PartitionDescription_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( - ::milvus::proto::common::Status::internal_default_instance()); - ::milvus::proto::service::_PartitionDescription_default_instance_._instance.get_mutable()->name_ = const_cast< ::milvus::proto::service::PartitionName*>( - ::milvus::proto::service::PartitionName::internal_default_instance()); -} -class PartitionDescription::_Internal { - public: - static const ::milvus::proto::common::Status& status(const PartitionDescription* msg); - static const ::milvus::proto::service::PartitionName& name(const PartitionDescription* msg); -}; - -const ::milvus::proto::common::Status& -PartitionDescription::_Internal::status(const PartitionDescription* msg) { - return *msg->status_; -} -const ::milvus::proto::service::PartitionName& -PartitionDescription::_Internal::name(const PartitionDescription* msg) { - return *msg->name_; -} -void PartitionDescription::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -void PartitionDescription::clear_statistics() { - statistics_.Clear(); -} -PartitionDescription::PartitionDescription() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.service.PartitionDescription) -} -PartitionDescription::PartitionDescription(const PartitionDescription& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - statistics_(from.statistics_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_status()) { - status_ = new ::milvus::proto::common::Status(*from.status_); - } else { - status_ = nullptr; - } - if (from.has_name()) { - name_ = new ::milvus::proto::service::PartitionName(*from.name_); - } else { - name_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.proto.service.PartitionDescription) -} - -void PartitionDescription::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PartitionDescription_service_5fmsg_2eproto.base); - ::memset(&status_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&name_) - - reinterpret_cast<char*>(&status_)) + sizeof(name_)); -} - -PartitionDescription::~PartitionDescription() { - // @@protoc_insertion_point(destructor:milvus.proto.service.PartitionDescription) - SharedDtor(); -} - -void PartitionDescription::SharedDtor() { - if (this != internal_default_instance()) delete status_; - if (this != internal_default_instance()) delete name_; -} - -void PartitionDescription::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PartitionDescription& PartitionDescription::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PartitionDescription_service_5fmsg_2eproto.base); - return *internal_default_instance(); -} - - -void PartitionDescription::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.service.PartitionDescription) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - statistics_.Clear(); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - if (GetArenaNoVirtual() == nullptr && name_ != nullptr) { - delete name_; - } - name_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PartitionDescription::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.proto.common.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.proto.service.PartitionName name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(mutable_name(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.proto.common.KeyValuePair statistics = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_statistics(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); - } else goto handle_unusual; - continue; - 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 PartitionDescription::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.proto.service.PartitionDescription) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.proto.common.Status status = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_status())); - } else { - goto handle_unusual; - } - break; - } - - // .milvus.proto.service.PartitionName name = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_name())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.proto.common.KeyValuePair statistics = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_statistics())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.proto.service.PartitionDescription) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.service.PartitionDescription) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PartitionDescription::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.service.PartitionDescription) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::status(this), output); - } - - // .milvus.proto.service.PartitionName name = 2; - if (this->has_name()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, _Internal::name(this), output); - } - - // repeated .milvus.proto.common.KeyValuePair statistics = 3; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->statistics_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, - this->statistics(static_cast<int>(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.proto.service.PartitionDescription) -} - -::PROTOBUF_NAMESPACE_ID::uint8* PartitionDescription::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.PartitionDescription) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::status(this), target); - } - - // .milvus.proto.service.PartitionName name = 2; - if (this->has_name()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, _Internal::name(this), target); - } - - // repeated .milvus.proto.common.KeyValuePair statistics = 3; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->statistics_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->statistics(static_cast<int>(i)), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.PartitionDescription) - return target; -} - -size_t PartitionDescription::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.PartitionDescription) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.proto.common.KeyValuePair statistics = 3; - { - unsigned int count = static_cast<unsigned int>(this->statistics_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->statistics(static_cast<int>(i))); - } - } - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - // .milvus.proto.service.PartitionName name = 2; - if (this->has_name()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *name_); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PartitionDescription::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.PartitionDescription) - GOOGLE_DCHECK_NE(&from, this); - const PartitionDescription* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PartitionDescription>( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.PartitionDescription) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.PartitionDescription) - MergeFrom(*source); - } -} - -void PartitionDescription::MergeFrom(const PartitionDescription& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.PartitionDescription) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - statistics_.MergeFrom(from.statistics_); - if (from.has_status()) { - mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); - } - if (from.has_name()) { - mutable_name()->::milvus::proto::service::PartitionName::MergeFrom(from.name()); - } -} - -void PartitionDescription::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.PartitionDescription) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PartitionDescription::CopyFrom(const PartitionDescription& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.PartitionDescription) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PartitionDescription::IsInitialized() const { - return true; -} - -void PartitionDescription::InternalSwap(PartitionDescription* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&statistics_)->InternalSwap(CastToBase(&other->statistics_)); - swap(status_, other->status_); - swap(name_, other->name_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PartitionDescription::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void SysConfigResponse::InitAsDefaultInstance() { - ::milvus::proto::service::_SysConfigResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( - ::milvus::proto::common::Status::internal_default_instance()); -} -class SysConfigResponse::_Internal { - public: - static const ::milvus::proto::common::Status& status(const SysConfigResponse* msg); -}; - -const ::milvus::proto::common::Status& -SysConfigResponse::_Internal::status(const SysConfigResponse* msg) { - return *msg->status_; -} -void SysConfigResponse::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -SysConfigResponse::SysConfigResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.service.SysConfigResponse) -} -SysConfigResponse::SysConfigResponse(const SysConfigResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - keys_(from.keys_), - values_(from.values_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_status()) { - status_ = new ::milvus::proto::common::Status(*from.status_); - } else { - status_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.proto.service.SysConfigResponse) -} - -void SysConfigResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SysConfigResponse_service_5fmsg_2eproto.base); - status_ = nullptr; -} - -SysConfigResponse::~SysConfigResponse() { - // @@protoc_insertion_point(destructor:milvus.proto.service.SysConfigResponse) - SharedDtor(); -} - -void SysConfigResponse::SharedDtor() { - if (this != internal_default_instance()) delete status_; -} - -void SysConfigResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SysConfigResponse& SysConfigResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SysConfigResponse_service_5fmsg_2eproto.base); - return *internal_default_instance(); -} - - -void SysConfigResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.service.SysConfigResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - keys_.Clear(); - values_.Clear(); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SysConfigResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.proto.common.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated string keys = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_keys(), ptr, ctx, "milvus.proto.service.SysConfigResponse.keys"); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); - } else goto handle_unusual; - continue; - // repeated string values = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_values(), ptr, ctx, "milvus.proto.service.SysConfigResponse.values"); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SysConfigResponse::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.proto.service.SysConfigResponse) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.proto.common.Status status = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_status())); - } else { - goto handle_unusual; - } - break; - } - - // repeated string keys = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->add_keys())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->keys(this->keys_size() - 1).data(), - static_cast<int>(this->keys(this->keys_size() - 1).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.service.SysConfigResponse.keys")); - } else { - goto handle_unusual; - } - break; - } - - // repeated string values = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->add_values())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->values(this->values_size() - 1).data(), - static_cast<int>(this->values(this->values_size() - 1).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.service.SysConfigResponse.values")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.proto.service.SysConfigResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.service.SysConfigResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SysConfigResponse::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.service.SysConfigResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::status(this), output); - } - - // repeated string keys = 2; - for (int i = 0, n = this->keys_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->keys(i).data(), static_cast<int>(this->keys(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.SysConfigResponse.keys"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( - 2, this->keys(i), output); - } - - // repeated string values = 3; - for (int i = 0, n = this->values_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->values(i).data(), static_cast<int>(this->values(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.SysConfigResponse.values"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( - 3, this->values(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.proto.service.SysConfigResponse) -} - -::PROTOBUF_NAMESPACE_ID::uint8* SysConfigResponse::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.SysConfigResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::status(this), target); - } - - // repeated string keys = 2; - for (int i = 0, n = this->keys_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->keys(i).data(), static_cast<int>(this->keys(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.SysConfigResponse.keys"); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteStringToArray(2, this->keys(i), target); - } - - // repeated string values = 3; - for (int i = 0, n = this->values_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->values(i).data(), static_cast<int>(this->values(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.SysConfigResponse.values"); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteStringToArray(3, this->values(i), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.SysConfigResponse) - return target; -} - -size_t SysConfigResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.SysConfigResponse) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated string keys = 2; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->keys_size()); - for (int i = 0, n = this->keys_size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->keys(i)); - } - - // repeated string values = 3; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->values_size()); - for (int i = 0, n = this->values_size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->values(i)); - } - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SysConfigResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.SysConfigResponse) - GOOGLE_DCHECK_NE(&from, this); - const SysConfigResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SysConfigResponse>( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.SysConfigResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.SysConfigResponse) - MergeFrom(*source); - } -} - -void SysConfigResponse::MergeFrom(const SysConfigResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.SysConfigResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - keys_.MergeFrom(from.keys_); - values_.MergeFrom(from.values_); - if (from.has_status()) { - mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); - } -} - -void SysConfigResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.SysConfigResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SysConfigResponse::CopyFrom(const SysConfigResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.SysConfigResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SysConfigResponse::IsInitialized() const { - return true; -} - -void SysConfigResponse::InternalSwap(SysConfigResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - keys_.InternalSwap(CastToBase(&other->keys_)); - values_.InternalSwap(CastToBase(&other->values_)); - swap(status_, other->status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata SysConfigResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void Hits::InitAsDefaultInstance() { -} -class Hits::_Internal { - public: -}; - -Hits::Hits() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.service.Hits) -} -Hits::Hits(const Hits& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - ids_(from.ids_), - row_data_(from.row_data_), - scores_(from.scores_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:milvus.proto.service.Hits) -} - -void Hits::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Hits_service_5fmsg_2eproto.base); -} - -Hits::~Hits() { - // @@protoc_insertion_point(destructor:milvus.proto.service.Hits) - SharedDtor(); -} - -void Hits::SharedDtor() { -} - -void Hits::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Hits& Hits::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Hits_service_5fmsg_2eproto.base); - return *internal_default_instance(); -} - - -void Hits::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.service.Hits) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ids_.Clear(); - row_data_.Clear(); - scores_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Hits::_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 int64 IDs = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_ids(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) { - add_ids(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated bytes row_data = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(add_row_data(), ptr, ctx); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); - } else goto handle_unusual; - continue; - // repeated float scores = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(mutable_scores(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29) { - add_scores(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr)); - ptr += sizeof(float); - } 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 Hits::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.proto.service.Hits) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated int64 IDs = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, this->mutable_ids()))); - } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - 1, 10u, input, this->mutable_ids()))); - } else { - goto handle_unusual; - } - break; - } - - // repeated bytes row_data = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes( - input, this->add_row_data())); - } else { - goto handle_unusual; - } - break; - } - - // repeated float scores = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< - float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_scores()))); - } 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_scores()))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.proto.service.Hits) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.service.Hits) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Hits::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.service.Hits) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated int64 IDs = 1; - if (this->ids_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(1, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_ids_cached_byte_size_.load( - std::memory_order_relaxed)); - } - for (int i = 0, n = this->ids_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( - this->ids(i), output); - } - - // repeated bytes row_data = 2; - for (int i = 0, n = this->row_data_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytes( - 2, this->row_data(i), output); - } - - // repeated float scores = 3; - if (this->scores_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(3, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_scores_cached_byte_size_.load( - std::memory_order_relaxed)); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatArray( - this->scores().data(), this->scores_size(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.proto.service.Hits) -} - -::PROTOBUF_NAMESPACE_ID::uint8* Hits::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.Hits) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated int64 IDs = 1; - if (this->ids_size() > 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( - 1, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( - _ids_cached_byte_size_.load(std::memory_order_relaxed), - target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->ids_, target); - } - - // repeated bytes row_data = 2; - for (int i = 0, n = this->row_data_size(); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteBytesToArray(2, this->row_data(i), target); - } - - // repeated float scores = 3; - if (this->scores_size() > 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( - 3, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( - _scores_cached_byte_size_.load(std::memory_order_relaxed), - target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteFloatNoTagToArray(this->scores_, target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.Hits) - return target; -} - -size_t Hits::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.Hits) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated int64 IDs = 1; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int64Size(this->ids_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _ids_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated bytes row_data = 2; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->row_data_size()); - for (int i = 0, n = this->row_data_size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->row_data(i)); - } - - // repeated float scores = 3; - { - unsigned int count = static_cast<unsigned int>(this->scores_size()); - size_t data_size = 4UL * count; - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _scores_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Hits::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.Hits) - GOOGLE_DCHECK_NE(&from, this); - const Hits* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Hits>( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.Hits) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.Hits) - MergeFrom(*source); - } -} - -void Hits::MergeFrom(const Hits& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.Hits) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - ids_.MergeFrom(from.ids_); - row_data_.MergeFrom(from.row_data_); - scores_.MergeFrom(from.scores_); -} - -void Hits::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.Hits) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Hits::CopyFrom(const Hits& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.Hits) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Hits::IsInitialized() const { - return true; -} - -void Hits::InternalSwap(Hits* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - ids_.InternalSwap(&other->ids_); - row_data_.InternalSwap(CastToBase(&other->row_data_)); - scores_.InternalSwap(&other->scores_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata Hits::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void QueryResult::InitAsDefaultInstance() { - ::milvus::proto::service::_QueryResult_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( - ::milvus::proto::common::Status::internal_default_instance()); -} -class QueryResult::_Internal { - public: - static const ::milvus::proto::common::Status& status(const QueryResult* msg); -}; - -const ::milvus::proto::common::Status& -QueryResult::_Internal::status(const QueryResult* msg) { - return *msg->status_; -} -void QueryResult::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -QueryResult::QueryResult() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.service.QueryResult) -} -QueryResult::QueryResult(const QueryResult& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - hits_(from.hits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_status()) { - status_ = new ::milvus::proto::common::Status(*from.status_); - } else { - status_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.proto.service.QueryResult) -} - -void QueryResult::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_QueryResult_service_5fmsg_2eproto.base); - status_ = nullptr; -} - -QueryResult::~QueryResult() { - // @@protoc_insertion_point(destructor:milvus.proto.service.QueryResult) - SharedDtor(); -} - -void QueryResult::SharedDtor() { - if (this != internal_default_instance()) delete status_; -} - -void QueryResult::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const QueryResult& QueryResult::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_QueryResult_service_5fmsg_2eproto.base); - return *internal_default_instance(); -} - - -void QueryResult::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.service.QueryResult) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - hits_.Clear(); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* QueryResult::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.proto.common.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated bytes hits = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(add_hits(), ptr, ctx); - 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 QueryResult::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.proto.service.QueryResult) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.proto.common.Status status = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_status())); - } else { - goto handle_unusual; - } - break; - } - - // repeated bytes hits = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes( - input, this->add_hits())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.proto.service.QueryResult) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.service.QueryResult) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void QueryResult::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.service.QueryResult) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::status(this), output); - } - - // repeated bytes hits = 2; - for (int i = 0, n = this->hits_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytes( - 2, this->hits(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.proto.service.QueryResult) -} - -::PROTOBUF_NAMESPACE_ID::uint8* QueryResult::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.QueryResult) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::status(this), target); - } - - // repeated bytes hits = 2; - for (int i = 0, n = this->hits_size(); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteBytesToArray(2, this->hits(i), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.QueryResult) - return target; -} - -size_t QueryResult::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.QueryResult) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated bytes hits = 2; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->hits_size()); - for (int i = 0, n = this->hits_size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->hits(i)); - } - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void QueryResult::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.QueryResult) - GOOGLE_DCHECK_NE(&from, this); - const QueryResult* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<QueryResult>( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.QueryResult) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.QueryResult) - MergeFrom(*source); - } -} - -void QueryResult::MergeFrom(const QueryResult& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.QueryResult) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - hits_.MergeFrom(from.hits_); - if (from.has_status()) { - mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); - } -} - -void QueryResult::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.QueryResult) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void QueryResult::CopyFrom(const QueryResult& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.QueryResult) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool QueryResult::IsInitialized() const { - return true; -} - -void QueryResult::InternalSwap(QueryResult* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - hits_.InternalSwap(CastToBase(&other->hits_)); - swap(status_, other->status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata QueryResult::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void IndexParam::InitAsDefaultInstance() { -} -class IndexParam::_Internal { - public: -}; - -void IndexParam::clear_extra_params() { - extra_params_.Clear(); -} -IndexParam::IndexParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.service.IndexParam) -} -IndexParam::IndexParam(const IndexParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - extra_params_(from.extra_params_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.field_name().empty()) { - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - // @@protoc_insertion_point(copy_constructor:milvus.proto.service.IndexParam) -} - -void IndexParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_IndexParam_service_5fmsg_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -IndexParam::~IndexParam() { - // @@protoc_insertion_point(destructor:milvus.proto.service.IndexParam) - SharedDtor(); -} - -void IndexParam::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void IndexParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const IndexParam& IndexParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_IndexParam_service_5fmsg_2eproto.base); - return *internal_default_instance(); -} - - -void IndexParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.service.IndexParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - extra_params_.Clear(); - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* IndexParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.service.IndexParam.collection_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string field_name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_field_name(), ptr, ctx, "milvus.proto.service.IndexParam.field_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.proto.common.KeyValuePair extra_params = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_extra_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool IndexParam::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.proto.service.IndexParam) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string collection_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast<int>(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.service.IndexParam.collection_name")); - } else { - goto handle_unusual; - } - break; - } - - // string field_name = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_field_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast<int>(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.service.IndexParam.field_name")); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.proto.common.KeyValuePair extra_params = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_extra_params())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.proto.service.IndexParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.service.IndexParam) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void IndexParam::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.service.IndexParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast<int>(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.IndexParam.collection_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // string field_name = 2; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast<int>(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.IndexParam.field_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->field_name(), output); - } - - // repeated .milvus.proto.common.KeyValuePair extra_params = 3; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->extra_params_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, - this->extra_params(static_cast<int>(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.proto.service.IndexParam) -} - -::PROTOBUF_NAMESPACE_ID::uint8* IndexParam::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.IndexParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast<int>(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.IndexParam.collection_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // string field_name = 2; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast<int>(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.IndexParam.field_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 2, this->field_name(), target); - } - - // repeated .milvus.proto.common.KeyValuePair extra_params = 3; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->extra_params_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->extra_params(static_cast<int>(i)), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.IndexParam) - return target; -} - -size_t IndexParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.IndexParam) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.proto.common.KeyValuePair extra_params = 3; - { - unsigned int count = static_cast<unsigned int>(this->extra_params_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->extra_params(static_cast<int>(i))); - } - } - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // string field_name = 2; - if (this->field_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->field_name()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void IndexParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.IndexParam) - GOOGLE_DCHECK_NE(&from, this); - const IndexParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<IndexParam>( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.IndexParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.IndexParam) - MergeFrom(*source); - } -} - -void IndexParam::MergeFrom(const IndexParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.IndexParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - extra_params_.MergeFrom(from.extra_params_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.field_name().size() > 0) { - - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } -} - -void IndexParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.IndexParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void IndexParam::CopyFrom(const IndexParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.IndexParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool IndexParam::IsInitialized() const { - return true; -} - -void IndexParam::InternalSwap(IndexParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata IndexParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void DescribeIndexRequest::InitAsDefaultInstance() { -} -class DescribeIndexRequest::_Internal { - public: -}; - -DescribeIndexRequest::DescribeIndexRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.service.DescribeIndexRequest) -} -DescribeIndexRequest::DescribeIndexRequest(const DescribeIndexRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.field_name().empty()) { - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - // @@protoc_insertion_point(copy_constructor:milvus.proto.service.DescribeIndexRequest) -} - -void DescribeIndexRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DescribeIndexRequest_service_5fmsg_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -DescribeIndexRequest::~DescribeIndexRequest() { - // @@protoc_insertion_point(destructor:milvus.proto.service.DescribeIndexRequest) - SharedDtor(); -} - -void DescribeIndexRequest::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void DescribeIndexRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DescribeIndexRequest& DescribeIndexRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DescribeIndexRequest_service_5fmsg_2eproto.base); - return *internal_default_instance(); -} - - -void DescribeIndexRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.service.DescribeIndexRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DescribeIndexRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.service.DescribeIndexRequest.collection_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string field_name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_field_name(), ptr, ctx, "milvus.proto.service.DescribeIndexRequest.field_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DescribeIndexRequest::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.proto.service.DescribeIndexRequest) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string collection_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast<int>(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.service.DescribeIndexRequest.collection_name")); - } else { - goto handle_unusual; - } - break; - } - - // string field_name = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_field_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast<int>(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.service.DescribeIndexRequest.field_name")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.proto.service.DescribeIndexRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.service.DescribeIndexRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DescribeIndexRequest::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.service.DescribeIndexRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast<int>(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.DescribeIndexRequest.collection_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // string field_name = 2; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast<int>(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.DescribeIndexRequest.field_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->field_name(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.proto.service.DescribeIndexRequest) -} - -::PROTOBUF_NAMESPACE_ID::uint8* DescribeIndexRequest::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.DescribeIndexRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast<int>(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.DescribeIndexRequest.collection_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // string field_name = 2; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast<int>(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.DescribeIndexRequest.field_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 2, this->field_name(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.DescribeIndexRequest) - return target; -} - -size_t DescribeIndexRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.DescribeIndexRequest) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // string field_name = 2; - if (this->field_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->field_name()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DescribeIndexRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.DescribeIndexRequest) - GOOGLE_DCHECK_NE(&from, this); - const DescribeIndexRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DescribeIndexRequest>( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.DescribeIndexRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.DescribeIndexRequest) - MergeFrom(*source); - } -} - -void DescribeIndexRequest::MergeFrom(const DescribeIndexRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.DescribeIndexRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.field_name().size() > 0) { - - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } -} - -void DescribeIndexRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.DescribeIndexRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DescribeIndexRequest::CopyFrom(const DescribeIndexRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.DescribeIndexRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DescribeIndexRequest::IsInitialized() const { - return true; -} - -void DescribeIndexRequest::InternalSwap(DescribeIndexRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata DescribeIndexRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void DescribeIndexProgressRequest::InitAsDefaultInstance() { -} -class DescribeIndexProgressRequest::_Internal { - public: -}; - -DescribeIndexProgressRequest::DescribeIndexProgressRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.service.DescribeIndexProgressRequest) -} -DescribeIndexProgressRequest::DescribeIndexProgressRequest(const DescribeIndexProgressRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.field_name().empty()) { - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - // @@protoc_insertion_point(copy_constructor:milvus.proto.service.DescribeIndexProgressRequest) -} - -void DescribeIndexProgressRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DescribeIndexProgressRequest_service_5fmsg_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -DescribeIndexProgressRequest::~DescribeIndexProgressRequest() { - // @@protoc_insertion_point(destructor:milvus.proto.service.DescribeIndexProgressRequest) - SharedDtor(); -} - -void DescribeIndexProgressRequest::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void DescribeIndexProgressRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DescribeIndexProgressRequest& DescribeIndexProgressRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DescribeIndexProgressRequest_service_5fmsg_2eproto.base); - return *internal_default_instance(); -} - - -void DescribeIndexProgressRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.service.DescribeIndexProgressRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DescribeIndexProgressRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.service.DescribeIndexProgressRequest.collection_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string field_name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_field_name(), ptr, ctx, "milvus.proto.service.DescribeIndexProgressRequest.field_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DescribeIndexProgressRequest::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.proto.service.DescribeIndexProgressRequest) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string collection_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast<int>(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.service.DescribeIndexProgressRequest.collection_name")); - } else { - goto handle_unusual; - } - break; - } - - // string field_name = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_field_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast<int>(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.service.DescribeIndexProgressRequest.field_name")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.proto.service.DescribeIndexProgressRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.service.DescribeIndexProgressRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DescribeIndexProgressRequest::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.service.DescribeIndexProgressRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast<int>(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.DescribeIndexProgressRequest.collection_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // string field_name = 2; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast<int>(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.DescribeIndexProgressRequest.field_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->field_name(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.proto.service.DescribeIndexProgressRequest) -} - -::PROTOBUF_NAMESPACE_ID::uint8* DescribeIndexProgressRequest::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.DescribeIndexProgressRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast<int>(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.DescribeIndexProgressRequest.collection_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // string field_name = 2; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast<int>(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.DescribeIndexProgressRequest.field_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 2, this->field_name(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.DescribeIndexProgressRequest) - return target; -} - -size_t DescribeIndexProgressRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.DescribeIndexProgressRequest) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // string field_name = 2; - if (this->field_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->field_name()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DescribeIndexProgressRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.DescribeIndexProgressRequest) - GOOGLE_DCHECK_NE(&from, this); - const DescribeIndexProgressRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DescribeIndexProgressRequest>( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.DescribeIndexProgressRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.DescribeIndexProgressRequest) - MergeFrom(*source); - } -} - -void DescribeIndexProgressRequest::MergeFrom(const DescribeIndexProgressRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.DescribeIndexProgressRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.field_name().size() > 0) { - - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } -} - -void DescribeIndexProgressRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.DescribeIndexProgressRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DescribeIndexProgressRequest::CopyFrom(const DescribeIndexProgressRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.DescribeIndexProgressRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DescribeIndexProgressRequest::IsInitialized() const { - return true; -} - -void DescribeIndexProgressRequest::InternalSwap(DescribeIndexProgressRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata DescribeIndexProgressRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void DescribeIndexResponse::InitAsDefaultInstance() { - ::milvus::proto::service::_DescribeIndexResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( - ::milvus::proto::common::Status::internal_default_instance()); -} -class DescribeIndexResponse::_Internal { - public: - static const ::milvus::proto::common::Status& status(const DescribeIndexResponse* msg); -}; - -const ::milvus::proto::common::Status& -DescribeIndexResponse::_Internal::status(const DescribeIndexResponse* msg) { - return *msg->status_; -} -void DescribeIndexResponse::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -void DescribeIndexResponse::clear_extra_params() { - extra_params_.Clear(); -} -DescribeIndexResponse::DescribeIndexResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.service.DescribeIndexResponse) -} -DescribeIndexResponse::DescribeIndexResponse(const DescribeIndexResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - extra_params_(from.extra_params_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.field_name().empty()) { - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - if (from.has_status()) { - status_ = new ::milvus::proto::common::Status(*from.status_); - } else { - status_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.proto.service.DescribeIndexResponse) -} - -void DescribeIndexResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DescribeIndexResponse_service_5fmsg_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - status_ = nullptr; -} - -DescribeIndexResponse::~DescribeIndexResponse() { - // @@protoc_insertion_point(destructor:milvus.proto.service.DescribeIndexResponse) - SharedDtor(); -} - -void DescribeIndexResponse::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete status_; -} - -void DescribeIndexResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DescribeIndexResponse& DescribeIndexResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DescribeIndexResponse_service_5fmsg_2eproto.base); - return *internal_default_instance(); -} - - -void DescribeIndexResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.service.DescribeIndexResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - extra_params_.Clear(); - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DescribeIndexResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.proto.common.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string collection_name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.service.DescribeIndexResponse.collection_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string field_name = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_field_name(), ptr, ctx, "milvus.proto.service.DescribeIndexResponse.field_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.proto.common.KeyValuePair extra_params = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_extra_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DescribeIndexResponse::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.proto.service.DescribeIndexResponse) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.proto.common.Status status = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_status())); - } else { - goto handle_unusual; - } - break; - } - - // string collection_name = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast<int>(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.service.DescribeIndexResponse.collection_name")); - } else { - goto handle_unusual; - } - break; - } - - // string field_name = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_field_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast<int>(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.service.DescribeIndexResponse.field_name")); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.proto.common.KeyValuePair extra_params = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_extra_params())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.proto.service.DescribeIndexResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.service.DescribeIndexResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DescribeIndexResponse::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.service.DescribeIndexResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::status(this), output); - } - - // string collection_name = 2; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast<int>(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.DescribeIndexResponse.collection_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->collection_name(), output); - } - - // string field_name = 3; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast<int>(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.DescribeIndexResponse.field_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->field_name(), output); - } - - // repeated .milvus.proto.common.KeyValuePair extra_params = 4; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->extra_params_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, - this->extra_params(static_cast<int>(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.proto.service.DescribeIndexResponse) -} - -::PROTOBUF_NAMESPACE_ID::uint8* DescribeIndexResponse::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.DescribeIndexResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::status(this), target); - } - - // string collection_name = 2; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast<int>(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.DescribeIndexResponse.collection_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 2, this->collection_name(), target); - } - - // string field_name = 3; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), static_cast<int>(this->field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.service.DescribeIndexResponse.field_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 3, this->field_name(), target); - } - - // repeated .milvus.proto.common.KeyValuePair extra_params = 4; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->extra_params_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, this->extra_params(static_cast<int>(i)), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.DescribeIndexResponse) - return target; -} - -size_t DescribeIndexResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.DescribeIndexResponse) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.proto.common.KeyValuePair extra_params = 4; - { - unsigned int count = static_cast<unsigned int>(this->extra_params_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->extra_params(static_cast<int>(i))); - } - } - - // string collection_name = 2; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // string field_name = 3; - if (this->field_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->field_name()); - } - - // .milvus.proto.common.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DescribeIndexResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.DescribeIndexResponse) - GOOGLE_DCHECK_NE(&from, this); - const DescribeIndexResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DescribeIndexResponse>( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.DescribeIndexResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.DescribeIndexResponse) - MergeFrom(*source); - } -} - -void DescribeIndexResponse::MergeFrom(const DescribeIndexResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.DescribeIndexResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - extra_params_.MergeFrom(from.extra_params_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.field_name().size() > 0) { - - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - if (from.has_status()) { - mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); - } -} - -void DescribeIndexResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.DescribeIndexResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DescribeIndexResponse::CopyFrom(const DescribeIndexResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.DescribeIndexResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DescribeIndexResponse::IsInitialized() const { - return true; -} - -void DescribeIndexResponse::InternalSwap(DescribeIndexResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(status_, other->status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata DescribeIndexResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace service -} // namespace proto -} // namespace milvus -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::milvus::proto::service::CollectionName* Arena::CreateMaybeMessage< ::milvus::proto::service::CollectionName >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::service::CollectionName >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::proto::service::PartitionName* Arena::CreateMaybeMessage< ::milvus::proto::service::PartitionName >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::service::PartitionName >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::proto::service::RowBatch* Arena::CreateMaybeMessage< ::milvus::proto::service::RowBatch >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::service::RowBatch >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::proto::service::PlaceholderValue* Arena::CreateMaybeMessage< ::milvus::proto::service::PlaceholderValue >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::service::PlaceholderValue >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::proto::service::PlaceholderGroup* Arena::CreateMaybeMessage< ::milvus::proto::service::PlaceholderGroup >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::service::PlaceholderGroup >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::proto::service::Query* Arena::CreateMaybeMessage< ::milvus::proto::service::Query >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::service::Query >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::proto::service::StringResponse* Arena::CreateMaybeMessage< ::milvus::proto::service::StringResponse >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::service::StringResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::proto::service::BoolResponse* Arena::CreateMaybeMessage< ::milvus::proto::service::BoolResponse >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::service::BoolResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::proto::service::StringListResponse* Arena::CreateMaybeMessage< ::milvus::proto::service::StringListResponse >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::service::StringListResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::proto::service::IntegerListResponse* Arena::CreateMaybeMessage< ::milvus::proto::service::IntegerListResponse >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::service::IntegerListResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::proto::service::IntegerRangeResponse* Arena::CreateMaybeMessage< ::milvus::proto::service::IntegerRangeResponse >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::service::IntegerRangeResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::proto::service::CollectionDescription* Arena::CreateMaybeMessage< ::milvus::proto::service::CollectionDescription >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::service::CollectionDescription >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::proto::service::PartitionDescription* Arena::CreateMaybeMessage< ::milvus::proto::service::PartitionDescription >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::service::PartitionDescription >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::proto::service::SysConfigResponse* Arena::CreateMaybeMessage< ::milvus::proto::service::SysConfigResponse >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::service::SysConfigResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::proto::service::Hits* Arena::CreateMaybeMessage< ::milvus::proto::service::Hits >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::service::Hits >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::proto::service::QueryResult* Arena::CreateMaybeMessage< ::milvus::proto::service::QueryResult >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::service::QueryResult >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::proto::service::IndexParam* Arena::CreateMaybeMessage< ::milvus::proto::service::IndexParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::service::IndexParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::proto::service::DescribeIndexRequest* Arena::CreateMaybeMessage< ::milvus::proto::service::DescribeIndexRequest >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::service::DescribeIndexRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::proto::service::DescribeIndexProgressRequest* Arena::CreateMaybeMessage< ::milvus::proto::service::DescribeIndexProgressRequest >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::service::DescribeIndexProgressRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::proto::service::DescribeIndexResponse* Arena::CreateMaybeMessage< ::milvus::proto::service::DescribeIndexResponse >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::service::DescribeIndexResponse >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) -#include <google/protobuf/port_undef.inc> diff --git a/internal/core/src/pb/service_msg.pb.h b/internal/core/src/pb/service_msg.pb.h deleted file mode 100644 index 668377f2ade95557eb72f84672fd3e8131ef0a4b..0000000000000000000000000000000000000000 --- a/internal/core/src/pb/service_msg.pb.h +++ /dev/null @@ -1,5715 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: service_msg.proto - -#ifndef GOOGLE_PROTOBUF_INCLUDED_service_5fmsg_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_service_5fmsg_2eproto - -#include <limits> -#include <string> - -#include <google/protobuf/port_def.inc> -#if PROTOBUF_VERSION < 3009000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3009000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include <google/protobuf/port_undef.inc> -#include <google/protobuf/io/coded_stream.h> -#include <google/protobuf/arena.h> -#include <google/protobuf/arenastring.h> -#include <google/protobuf/generated_message_table_driven.h> -#include <google/protobuf/generated_message_util.h> -#include <google/protobuf/inlined_string_field.h> -#include <google/protobuf/metadata.h> -#include <google/protobuf/generated_message_reflection.h> -#include <google/protobuf/message.h> -#include <google/protobuf/repeated_field.h> // IWYU pragma: export -#include <google/protobuf/extension_set.h> // IWYU pragma: export -#include <google/protobuf/generated_enum_reflection.h> -#include <google/protobuf/unknown_field_set.h> -#include "common.pb.h" -#include "schema.pb.h" -// @@protoc_insertion_point(includes) -#include <google/protobuf/port_def.inc> -#define PROTOBUF_INTERNAL_EXPORT_service_5fmsg_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_service_5fmsg_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[20] - 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_service_5fmsg_2eproto; -namespace milvus { -namespace proto { -namespace service { -class BoolResponse; -class BoolResponseDefaultTypeInternal; -extern BoolResponseDefaultTypeInternal _BoolResponse_default_instance_; -class CollectionDescription; -class CollectionDescriptionDefaultTypeInternal; -extern CollectionDescriptionDefaultTypeInternal _CollectionDescription_default_instance_; -class CollectionName; -class CollectionNameDefaultTypeInternal; -extern CollectionNameDefaultTypeInternal _CollectionName_default_instance_; -class DescribeIndexProgressRequest; -class DescribeIndexProgressRequestDefaultTypeInternal; -extern DescribeIndexProgressRequestDefaultTypeInternal _DescribeIndexProgressRequest_default_instance_; -class DescribeIndexRequest; -class DescribeIndexRequestDefaultTypeInternal; -extern DescribeIndexRequestDefaultTypeInternal _DescribeIndexRequest_default_instance_; -class DescribeIndexResponse; -class DescribeIndexResponseDefaultTypeInternal; -extern DescribeIndexResponseDefaultTypeInternal _DescribeIndexResponse_default_instance_; -class Hits; -class HitsDefaultTypeInternal; -extern HitsDefaultTypeInternal _Hits_default_instance_; -class IndexParam; -class IndexParamDefaultTypeInternal; -extern IndexParamDefaultTypeInternal _IndexParam_default_instance_; -class IntegerListResponse; -class IntegerListResponseDefaultTypeInternal; -extern IntegerListResponseDefaultTypeInternal _IntegerListResponse_default_instance_; -class IntegerRangeResponse; -class IntegerRangeResponseDefaultTypeInternal; -extern IntegerRangeResponseDefaultTypeInternal _IntegerRangeResponse_default_instance_; -class PartitionDescription; -class PartitionDescriptionDefaultTypeInternal; -extern PartitionDescriptionDefaultTypeInternal _PartitionDescription_default_instance_; -class PartitionName; -class PartitionNameDefaultTypeInternal; -extern PartitionNameDefaultTypeInternal _PartitionName_default_instance_; -class PlaceholderGroup; -class PlaceholderGroupDefaultTypeInternal; -extern PlaceholderGroupDefaultTypeInternal _PlaceholderGroup_default_instance_; -class PlaceholderValue; -class PlaceholderValueDefaultTypeInternal; -extern PlaceholderValueDefaultTypeInternal _PlaceholderValue_default_instance_; -class Query; -class QueryDefaultTypeInternal; -extern QueryDefaultTypeInternal _Query_default_instance_; -class QueryResult; -class QueryResultDefaultTypeInternal; -extern QueryResultDefaultTypeInternal _QueryResult_default_instance_; -class RowBatch; -class RowBatchDefaultTypeInternal; -extern RowBatchDefaultTypeInternal _RowBatch_default_instance_; -class StringListResponse; -class StringListResponseDefaultTypeInternal; -extern StringListResponseDefaultTypeInternal _StringListResponse_default_instance_; -class StringResponse; -class StringResponseDefaultTypeInternal; -extern StringResponseDefaultTypeInternal _StringResponse_default_instance_; -class SysConfigResponse; -class SysConfigResponseDefaultTypeInternal; -extern SysConfigResponseDefaultTypeInternal _SysConfigResponse_default_instance_; -} // namespace service -} // namespace proto -} // namespace milvus -PROTOBUF_NAMESPACE_OPEN -template<> ::milvus::proto::service::BoolResponse* Arena::CreateMaybeMessage<::milvus::proto::service::BoolResponse>(Arena*); -template<> ::milvus::proto::service::CollectionDescription* Arena::CreateMaybeMessage<::milvus::proto::service::CollectionDescription>(Arena*); -template<> ::milvus::proto::service::CollectionName* Arena::CreateMaybeMessage<::milvus::proto::service::CollectionName>(Arena*); -template<> ::milvus::proto::service::DescribeIndexProgressRequest* Arena::CreateMaybeMessage<::milvus::proto::service::DescribeIndexProgressRequest>(Arena*); -template<> ::milvus::proto::service::DescribeIndexRequest* Arena::CreateMaybeMessage<::milvus::proto::service::DescribeIndexRequest>(Arena*); -template<> ::milvus::proto::service::DescribeIndexResponse* Arena::CreateMaybeMessage<::milvus::proto::service::DescribeIndexResponse>(Arena*); -template<> ::milvus::proto::service::Hits* Arena::CreateMaybeMessage<::milvus::proto::service::Hits>(Arena*); -template<> ::milvus::proto::service::IndexParam* Arena::CreateMaybeMessage<::milvus::proto::service::IndexParam>(Arena*); -template<> ::milvus::proto::service::IntegerListResponse* Arena::CreateMaybeMessage<::milvus::proto::service::IntegerListResponse>(Arena*); -template<> ::milvus::proto::service::IntegerRangeResponse* Arena::CreateMaybeMessage<::milvus::proto::service::IntegerRangeResponse>(Arena*); -template<> ::milvus::proto::service::PartitionDescription* Arena::CreateMaybeMessage<::milvus::proto::service::PartitionDescription>(Arena*); -template<> ::milvus::proto::service::PartitionName* Arena::CreateMaybeMessage<::milvus::proto::service::PartitionName>(Arena*); -template<> ::milvus::proto::service::PlaceholderGroup* Arena::CreateMaybeMessage<::milvus::proto::service::PlaceholderGroup>(Arena*); -template<> ::milvus::proto::service::PlaceholderValue* Arena::CreateMaybeMessage<::milvus::proto::service::PlaceholderValue>(Arena*); -template<> ::milvus::proto::service::Query* Arena::CreateMaybeMessage<::milvus::proto::service::Query>(Arena*); -template<> ::milvus::proto::service::QueryResult* Arena::CreateMaybeMessage<::milvus::proto::service::QueryResult>(Arena*); -template<> ::milvus::proto::service::RowBatch* Arena::CreateMaybeMessage<::milvus::proto::service::RowBatch>(Arena*); -template<> ::milvus::proto::service::StringListResponse* Arena::CreateMaybeMessage<::milvus::proto::service::StringListResponse>(Arena*); -template<> ::milvus::proto::service::StringResponse* Arena::CreateMaybeMessage<::milvus::proto::service::StringResponse>(Arena*); -template<> ::milvus::proto::service::SysConfigResponse* Arena::CreateMaybeMessage<::milvus::proto::service::SysConfigResponse>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace milvus { -namespace proto { -namespace service { - -enum PlaceholderType : int { - NONE = 0, - VECTOR_BINARY = 100, - VECTOR_FLOAT = 101, - PlaceholderType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - PlaceholderType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() -}; -bool PlaceholderType_IsValid(int value); -constexpr PlaceholderType PlaceholderType_MIN = NONE; -constexpr PlaceholderType PlaceholderType_MAX = VECTOR_FLOAT; -constexpr int PlaceholderType_ARRAYSIZE = PlaceholderType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PlaceholderType_descriptor(); -template<typename T> -inline const std::string& PlaceholderType_Name(T enum_t_value) { - static_assert(::std::is_same<T, PlaceholderType>::value || - ::std::is_integral<T>::value, - "Incorrect type passed to function PlaceholderType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - PlaceholderType_descriptor(), enum_t_value); -} -inline bool PlaceholderType_Parse( - const std::string& name, PlaceholderType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<PlaceholderType>( - PlaceholderType_descriptor(), name, value); -} -// =================================================================== - -class CollectionName : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.CollectionName) */ { - public: - CollectionName(); - virtual ~CollectionName(); - - CollectionName(const CollectionName& from); - CollectionName(CollectionName&& from) noexcept - : CollectionName() { - *this = ::std::move(from); - } - - inline CollectionName& operator=(const CollectionName& from) { - CopyFrom(from); - return *this; - } - inline CollectionName& operator=(CollectionName&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const CollectionName& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CollectionName* internal_default_instance() { - return reinterpret_cast<const CollectionName*>( - &_CollectionName_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(CollectionName& a, CollectionName& b) { - a.Swap(&b); - } - inline void Swap(CollectionName* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline CollectionName* New() const final { - return CreateMaybeMessage<CollectionName>(nullptr); - } - - CollectionName* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage<CollectionName>(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const CollectionName& from); - void MergeFrom(const CollectionName& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CollectionName* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.service.CollectionName"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_service_5fmsg_2eproto); - return ::descriptor_table_service_5fmsg_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCollectionNameFieldNumber = 1, - }; - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - - // @@protoc_insertion_point(class_scope:milvus.proto.service.CollectionName) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_service_5fmsg_2eproto; -}; -// ------------------------------------------------------------------- - -class PartitionName : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.PartitionName) */ { - public: - PartitionName(); - virtual ~PartitionName(); - - PartitionName(const PartitionName& from); - PartitionName(PartitionName&& from) noexcept - : PartitionName() { - *this = ::std::move(from); - } - - inline PartitionName& operator=(const PartitionName& from) { - CopyFrom(from); - return *this; - } - inline PartitionName& operator=(PartitionName&& 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 PartitionName& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PartitionName* internal_default_instance() { - return reinterpret_cast<const PartitionName*>( - &_PartitionName_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(PartitionName& a, PartitionName& b) { - a.Swap(&b); - } - inline void Swap(PartitionName* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PartitionName* New() const final { - return CreateMaybeMessage<PartitionName>(nullptr); - } - - PartitionName* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage<PartitionName>(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PartitionName& from); - void MergeFrom(const PartitionName& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PartitionName* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.service.PartitionName"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_service_5fmsg_2eproto); - return ::descriptor_table_service_5fmsg_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCollectionNameFieldNumber = 1, - kTagFieldNumber = 2, - }; - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - - // string tag = 2; - void clear_tag(); - const std::string& tag() const; - void set_tag(const std::string& value); - void set_tag(std::string&& value); - void set_tag(const char* value); - void set_tag(const char* value, size_t size); - std::string* mutable_tag(); - std::string* release_tag(); - void set_allocated_tag(std::string* tag); - - // @@protoc_insertion_point(class_scope:milvus.proto.service.PartitionName) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tag_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_service_5fmsg_2eproto; -}; -// ------------------------------------------------------------------- - -class RowBatch : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.RowBatch) */ { - public: - RowBatch(); - virtual ~RowBatch(); - - RowBatch(const RowBatch& from); - RowBatch(RowBatch&& from) noexcept - : RowBatch() { - *this = ::std::move(from); - } - - inline RowBatch& operator=(const RowBatch& from) { - CopyFrom(from); - return *this; - } - inline RowBatch& operator=(RowBatch&& 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 RowBatch& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const RowBatch* internal_default_instance() { - return reinterpret_cast<const RowBatch*>( - &_RowBatch_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(RowBatch& a, RowBatch& b) { - a.Swap(&b); - } - inline void Swap(RowBatch* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline RowBatch* New() const final { - return CreateMaybeMessage<RowBatch>(nullptr); - } - - RowBatch* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage<RowBatch>(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const RowBatch& from); - void MergeFrom(const RowBatch& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RowBatch* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.service.RowBatch"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_service_5fmsg_2eproto); - return ::descriptor_table_service_5fmsg_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRowDataFieldNumber = 3, - kHashKeysFieldNumber = 4, - kCollectionNameFieldNumber = 1, - kPartitionTagFieldNumber = 2, - }; - // repeated .milvus.proto.common.Blob row_data = 3; - int row_data_size() const; - void clear_row_data(); - ::milvus::proto::common::Blob* mutable_row_data(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::Blob >* - mutable_row_data(); - const ::milvus::proto::common::Blob& row_data(int index) const; - ::milvus::proto::common::Blob* add_row_data(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::Blob >& - row_data() const; - - // repeated uint32 hash_keys = 4; - int hash_keys_size() const; - void clear_hash_keys(); - ::PROTOBUF_NAMESPACE_ID::uint32 hash_keys(int index) const; - void set_hash_keys(int index, ::PROTOBUF_NAMESPACE_ID::uint32 value); - void add_hash_keys(::PROTOBUF_NAMESPACE_ID::uint32 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& - hash_keys() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* - mutable_hash_keys(); - - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - - // string partition_tag = 2; - void clear_partition_tag(); - const std::string& partition_tag() const; - void set_partition_tag(const std::string& value); - void set_partition_tag(std::string&& value); - void set_partition_tag(const char* value); - void set_partition_tag(const char* value, size_t size); - std::string* mutable_partition_tag(); - std::string* release_partition_tag(); - void set_allocated_partition_tag(std::string* partition_tag); - - // @@protoc_insertion_point(class_scope:milvus.proto.service.RowBatch) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::Blob > row_data_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 > hash_keys_; - mutable std::atomic<int> _hash_keys_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr partition_tag_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_service_5fmsg_2eproto; -}; -// ------------------------------------------------------------------- - -class PlaceholderValue : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.PlaceholderValue) */ { - public: - PlaceholderValue(); - virtual ~PlaceholderValue(); - - PlaceholderValue(const PlaceholderValue& from); - PlaceholderValue(PlaceholderValue&& from) noexcept - : PlaceholderValue() { - *this = ::std::move(from); - } - - inline PlaceholderValue& operator=(const PlaceholderValue& from) { - CopyFrom(from); - return *this; - } - inline PlaceholderValue& operator=(PlaceholderValue&& 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 PlaceholderValue& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PlaceholderValue* internal_default_instance() { - return reinterpret_cast<const PlaceholderValue*>( - &_PlaceholderValue_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(PlaceholderValue& a, PlaceholderValue& b) { - a.Swap(&b); - } - inline void Swap(PlaceholderValue* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PlaceholderValue* New() const final { - return CreateMaybeMessage<PlaceholderValue>(nullptr); - } - - PlaceholderValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage<PlaceholderValue>(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PlaceholderValue& from); - void MergeFrom(const PlaceholderValue& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PlaceholderValue* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.service.PlaceholderValue"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_service_5fmsg_2eproto); - return ::descriptor_table_service_5fmsg_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kValuesFieldNumber = 3, - kTagFieldNumber = 1, - kTypeFieldNumber = 2, - }; - // repeated bytes values = 3; - int values_size() const; - void clear_values(); - const std::string& values(int index) const; - std::string* mutable_values(int index); - void set_values(int index, const std::string& value); - void set_values(int index, std::string&& value); - void set_values(int index, const char* value); - void set_values(int index, const void* value, size_t size); - std::string* add_values(); - void add_values(const std::string& value); - void add_values(std::string&& value); - void add_values(const char* value); - void add_values(const void* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& values() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_values(); - - // string tag = 1; - void clear_tag(); - const std::string& tag() const; - void set_tag(const std::string& value); - void set_tag(std::string&& value); - void set_tag(const char* value); - void set_tag(const char* value, size_t size); - std::string* mutable_tag(); - std::string* release_tag(); - void set_allocated_tag(std::string* tag); - - // .milvus.proto.service.PlaceholderType type = 2; - void clear_type(); - ::milvus::proto::service::PlaceholderType type() const; - void set_type(::milvus::proto::service::PlaceholderType value); - - // @@protoc_insertion_point(class_scope:milvus.proto.service.PlaceholderValue) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> values_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tag_; - int type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_service_5fmsg_2eproto; -}; -// ------------------------------------------------------------------- - -class PlaceholderGroup : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.PlaceholderGroup) */ { - public: - PlaceholderGroup(); - virtual ~PlaceholderGroup(); - - PlaceholderGroup(const PlaceholderGroup& from); - PlaceholderGroup(PlaceholderGroup&& from) noexcept - : PlaceholderGroup() { - *this = ::std::move(from); - } - - inline PlaceholderGroup& operator=(const PlaceholderGroup& from) { - CopyFrom(from); - return *this; - } - inline PlaceholderGroup& operator=(PlaceholderGroup&& 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 PlaceholderGroup& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PlaceholderGroup* internal_default_instance() { - return reinterpret_cast<const PlaceholderGroup*>( - &_PlaceholderGroup_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(PlaceholderGroup& a, PlaceholderGroup& b) { - a.Swap(&b); - } - inline void Swap(PlaceholderGroup* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PlaceholderGroup* New() const final { - return CreateMaybeMessage<PlaceholderGroup>(nullptr); - } - - PlaceholderGroup* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage<PlaceholderGroup>(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PlaceholderGroup& from); - void MergeFrom(const PlaceholderGroup& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PlaceholderGroup* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.service.PlaceholderGroup"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_service_5fmsg_2eproto); - return ::descriptor_table_service_5fmsg_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPlaceholdersFieldNumber = 1, - }; - // repeated .milvus.proto.service.PlaceholderValue placeholders = 1; - int placeholders_size() const; - void clear_placeholders(); - ::milvus::proto::service::PlaceholderValue* mutable_placeholders(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::service::PlaceholderValue >* - mutable_placeholders(); - const ::milvus::proto::service::PlaceholderValue& placeholders(int index) const; - ::milvus::proto::service::PlaceholderValue* add_placeholders(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::service::PlaceholderValue >& - placeholders() const; - - // @@protoc_insertion_point(class_scope:milvus.proto.service.PlaceholderGroup) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::service::PlaceholderValue > placeholders_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_service_5fmsg_2eproto; -}; -// ------------------------------------------------------------------- - -class Query : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.Query) */ { - public: - Query(); - virtual ~Query(); - - Query(const Query& from); - Query(Query&& from) noexcept - : Query() { - *this = ::std::move(from); - } - - inline Query& operator=(const Query& from) { - CopyFrom(from); - return *this; - } - inline Query& operator=(Query&& 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 Query& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Query* internal_default_instance() { - return reinterpret_cast<const Query*>( - &_Query_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(Query& a, Query& b) { - a.Swap(&b); - } - inline void Swap(Query* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Query* New() const final { - return CreateMaybeMessage<Query>(nullptr); - } - - Query* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage<Query>(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const Query& from); - void MergeFrom(const Query& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Query* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.service.Query"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_service_5fmsg_2eproto); - return ::descriptor_table_service_5fmsg_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartitionTagsFieldNumber = 2, - kCollectionNameFieldNumber = 1, - kDslFieldNumber = 3, - kPlaceholderGroupFieldNumber = 4, - }; - // repeated string partition_tags = 2; - int partition_tags_size() const; - void clear_partition_tags(); - const std::string& partition_tags(int index) const; - std::string* mutable_partition_tags(int index); - void set_partition_tags(int index, const std::string& value); - void set_partition_tags(int index, std::string&& value); - void set_partition_tags(int index, const char* value); - void set_partition_tags(int index, const char* value, size_t size); - std::string* add_partition_tags(); - void add_partition_tags(const std::string& value); - void add_partition_tags(std::string&& value); - void add_partition_tags(const char* value); - void add_partition_tags(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& partition_tags() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_partition_tags(); - - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - - // string dsl = 3; - void clear_dsl(); - const std::string& dsl() const; - void set_dsl(const std::string& value); - void set_dsl(std::string&& value); - void set_dsl(const char* value); - void set_dsl(const char* value, size_t size); - std::string* mutable_dsl(); - std::string* release_dsl(); - void set_allocated_dsl(std::string* dsl); - - // bytes placeholder_group = 4; - void clear_placeholder_group(); - const std::string& placeholder_group() const; - void set_placeholder_group(const std::string& value); - void set_placeholder_group(std::string&& value); - void set_placeholder_group(const char* value); - void set_placeholder_group(const void* value, size_t size); - std::string* mutable_placeholder_group(); - std::string* release_placeholder_group(); - void set_allocated_placeholder_group(std::string* placeholder_group); - - // @@protoc_insertion_point(class_scope:milvus.proto.service.Query) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> partition_tags_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dsl_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr placeholder_group_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_service_5fmsg_2eproto; -}; -// ------------------------------------------------------------------- - -class StringResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.StringResponse) */ { - public: - StringResponse(); - virtual ~StringResponse(); - - StringResponse(const StringResponse& from); - StringResponse(StringResponse&& from) noexcept - : StringResponse() { - *this = ::std::move(from); - } - - inline StringResponse& operator=(const StringResponse& from) { - CopyFrom(from); - return *this; - } - inline StringResponse& operator=(StringResponse&& 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 StringResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const StringResponse* internal_default_instance() { - return reinterpret_cast<const StringResponse*>( - &_StringResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(StringResponse& a, StringResponse& b) { - a.Swap(&b); - } - inline void Swap(StringResponse* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline StringResponse* New() const final { - return CreateMaybeMessage<StringResponse>(nullptr); - } - - StringResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage<StringResponse>(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const StringResponse& from); - void MergeFrom(const StringResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(StringResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.service.StringResponse"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_service_5fmsg_2eproto); - return ::descriptor_table_service_5fmsg_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kValueFieldNumber = 2, - kStatusFieldNumber = 1, - }; - // string value = 2; - void clear_value(); - const std::string& value() const; - void set_value(const std::string& value); - void set_value(std::string&& value); - void set_value(const char* value); - void set_value(const char* value, size_t size); - std::string* mutable_value(); - std::string* release_value(); - void set_allocated_value(std::string* value); - - // .milvus.proto.common.Status status = 1; - bool has_status() const; - void clear_status(); - const ::milvus::proto::common::Status& status() const; - ::milvus::proto::common::Status* release_status(); - ::milvus::proto::common::Status* mutable_status(); - void set_allocated_status(::milvus::proto::common::Status* status); - - // @@protoc_insertion_point(class_scope:milvus.proto.service.StringResponse) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_; - ::milvus::proto::common::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_service_5fmsg_2eproto; -}; -// ------------------------------------------------------------------- - -class BoolResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.BoolResponse) */ { - public: - BoolResponse(); - virtual ~BoolResponse(); - - BoolResponse(const BoolResponse& from); - BoolResponse(BoolResponse&& from) noexcept - : BoolResponse() { - *this = ::std::move(from); - } - - inline BoolResponse& operator=(const BoolResponse& from) { - CopyFrom(from); - return *this; - } - inline BoolResponse& operator=(BoolResponse&& 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 BoolResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const BoolResponse* internal_default_instance() { - return reinterpret_cast<const BoolResponse*>( - &_BoolResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(BoolResponse& a, BoolResponse& b) { - a.Swap(&b); - } - inline void Swap(BoolResponse* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline BoolResponse* New() const final { - return CreateMaybeMessage<BoolResponse>(nullptr); - } - - BoolResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage<BoolResponse>(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const BoolResponse& from); - void MergeFrom(const BoolResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(BoolResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.service.BoolResponse"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_service_5fmsg_2eproto); - return ::descriptor_table_service_5fmsg_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStatusFieldNumber = 1, - kValueFieldNumber = 2, - }; - // .milvus.proto.common.Status status = 1; - bool has_status() const; - void clear_status(); - const ::milvus::proto::common::Status& status() const; - ::milvus::proto::common::Status* release_status(); - ::milvus::proto::common::Status* mutable_status(); - void set_allocated_status(::milvus::proto::common::Status* status); - - // bool value = 2; - void clear_value(); - bool value() const; - void set_value(bool value); - - // @@protoc_insertion_point(class_scope:milvus.proto.service.BoolResponse) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::milvus::proto::common::Status* status_; - bool value_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_service_5fmsg_2eproto; -}; -// ------------------------------------------------------------------- - -class StringListResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.StringListResponse) */ { - public: - StringListResponse(); - virtual ~StringListResponse(); - - StringListResponse(const StringListResponse& from); - StringListResponse(StringListResponse&& from) noexcept - : StringListResponse() { - *this = ::std::move(from); - } - - inline StringListResponse& operator=(const StringListResponse& from) { - CopyFrom(from); - return *this; - } - inline StringListResponse& operator=(StringListResponse&& 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 StringListResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const StringListResponse* internal_default_instance() { - return reinterpret_cast<const StringListResponse*>( - &_StringListResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(StringListResponse& a, StringListResponse& b) { - a.Swap(&b); - } - inline void Swap(StringListResponse* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline StringListResponse* New() const final { - return CreateMaybeMessage<StringListResponse>(nullptr); - } - - StringListResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage<StringListResponse>(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const StringListResponse& from); - void MergeFrom(const StringListResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(StringListResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.service.StringListResponse"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_service_5fmsg_2eproto); - return ::descriptor_table_service_5fmsg_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kValuesFieldNumber = 2, - kStatusFieldNumber = 1, - }; - // repeated string values = 2; - int values_size() const; - void clear_values(); - const std::string& values(int index) const; - std::string* mutable_values(int index); - void set_values(int index, const std::string& value); - void set_values(int index, std::string&& value); - void set_values(int index, const char* value); - void set_values(int index, const char* value, size_t size); - std::string* add_values(); - void add_values(const std::string& value); - void add_values(std::string&& value); - void add_values(const char* value); - void add_values(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& values() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_values(); - - // .milvus.proto.common.Status status = 1; - bool has_status() const; - void clear_status(); - const ::milvus::proto::common::Status& status() const; - ::milvus::proto::common::Status* release_status(); - ::milvus::proto::common::Status* mutable_status(); - void set_allocated_status(::milvus::proto::common::Status* status); - - // @@protoc_insertion_point(class_scope:milvus.proto.service.StringListResponse) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> values_; - ::milvus::proto::common::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_service_5fmsg_2eproto; -}; -// ------------------------------------------------------------------- - -class IntegerListResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.IntegerListResponse) */ { - public: - IntegerListResponse(); - virtual ~IntegerListResponse(); - - IntegerListResponse(const IntegerListResponse& from); - IntegerListResponse(IntegerListResponse&& from) noexcept - : IntegerListResponse() { - *this = ::std::move(from); - } - - inline IntegerListResponse& operator=(const IntegerListResponse& from) { - CopyFrom(from); - return *this; - } - inline IntegerListResponse& operator=(IntegerListResponse&& 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 IntegerListResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const IntegerListResponse* internal_default_instance() { - return reinterpret_cast<const IntegerListResponse*>( - &_IntegerListResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - friend void swap(IntegerListResponse& a, IntegerListResponse& b) { - a.Swap(&b); - } - inline void Swap(IntegerListResponse* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline IntegerListResponse* New() const final { - return CreateMaybeMessage<IntegerListResponse>(nullptr); - } - - IntegerListResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage<IntegerListResponse>(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const IntegerListResponse& from); - void MergeFrom(const IntegerListResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(IntegerListResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.service.IntegerListResponse"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_service_5fmsg_2eproto); - return ::descriptor_table_service_5fmsg_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kValuesFieldNumber = 2, - kStatusFieldNumber = 1, - }; - // repeated int64 values = 2; - int values_size() const; - void clear_values(); - ::PROTOBUF_NAMESPACE_ID::int64 values(int index) const; - void set_values(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); - void add_values(::PROTOBUF_NAMESPACE_ID::int64 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - values() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - mutable_values(); - - // .milvus.proto.common.Status status = 1; - bool has_status() const; - void clear_status(); - const ::milvus::proto::common::Status& status() const; - ::milvus::proto::common::Status* release_status(); - ::milvus::proto::common::Status* mutable_status(); - void set_allocated_status(::milvus::proto::common::Status* status); - - // @@protoc_insertion_point(class_scope:milvus.proto.service.IntegerListResponse) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > values_; - mutable std::atomic<int> _values_cached_byte_size_; - ::milvus::proto::common::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_service_5fmsg_2eproto; -}; -// ------------------------------------------------------------------- - -class IntegerRangeResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.IntegerRangeResponse) */ { - public: - IntegerRangeResponse(); - virtual ~IntegerRangeResponse(); - - IntegerRangeResponse(const IntegerRangeResponse& from); - IntegerRangeResponse(IntegerRangeResponse&& from) noexcept - : IntegerRangeResponse() { - *this = ::std::move(from); - } - - inline IntegerRangeResponse& operator=(const IntegerRangeResponse& from) { - CopyFrom(from); - return *this; - } - inline IntegerRangeResponse& operator=(IntegerRangeResponse&& 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 IntegerRangeResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const IntegerRangeResponse* internal_default_instance() { - return reinterpret_cast<const IntegerRangeResponse*>( - &_IntegerRangeResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - friend void swap(IntegerRangeResponse& a, IntegerRangeResponse& b) { - a.Swap(&b); - } - inline void Swap(IntegerRangeResponse* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline IntegerRangeResponse* New() const final { - return CreateMaybeMessage<IntegerRangeResponse>(nullptr); - } - - IntegerRangeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage<IntegerRangeResponse>(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const IntegerRangeResponse& from); - void MergeFrom(const IntegerRangeResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(IntegerRangeResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.service.IntegerRangeResponse"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_service_5fmsg_2eproto); - return ::descriptor_table_service_5fmsg_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStatusFieldNumber = 1, - kBeginFieldNumber = 2, - kEndFieldNumber = 3, - }; - // .milvus.proto.common.Status status = 1; - bool has_status() const; - void clear_status(); - const ::milvus::proto::common::Status& status() const; - ::milvus::proto::common::Status* release_status(); - ::milvus::proto::common::Status* mutable_status(); - void set_allocated_status(::milvus::proto::common::Status* status); - - // int64 begin = 2; - void clear_begin(); - ::PROTOBUF_NAMESPACE_ID::int64 begin() const; - void set_begin(::PROTOBUF_NAMESPACE_ID::int64 value); - - // int64 end = 3; - void clear_end(); - ::PROTOBUF_NAMESPACE_ID::int64 end() const; - void set_end(::PROTOBUF_NAMESPACE_ID::int64 value); - - // @@protoc_insertion_point(class_scope:milvus.proto.service.IntegerRangeResponse) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::milvus::proto::common::Status* status_; - ::PROTOBUF_NAMESPACE_ID::int64 begin_; - ::PROTOBUF_NAMESPACE_ID::int64 end_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_service_5fmsg_2eproto; -}; -// ------------------------------------------------------------------- - -class CollectionDescription : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.CollectionDescription) */ { - public: - CollectionDescription(); - virtual ~CollectionDescription(); - - CollectionDescription(const CollectionDescription& from); - CollectionDescription(CollectionDescription&& from) noexcept - : CollectionDescription() { - *this = ::std::move(from); - } - - inline CollectionDescription& operator=(const CollectionDescription& from) { - CopyFrom(from); - return *this; - } - inline CollectionDescription& operator=(CollectionDescription&& 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 CollectionDescription& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CollectionDescription* internal_default_instance() { - return reinterpret_cast<const CollectionDescription*>( - &_CollectionDescription_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - friend void swap(CollectionDescription& a, CollectionDescription& b) { - a.Swap(&b); - } - inline void Swap(CollectionDescription* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline CollectionDescription* New() const final { - return CreateMaybeMessage<CollectionDescription>(nullptr); - } - - CollectionDescription* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage<CollectionDescription>(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const CollectionDescription& from); - void MergeFrom(const CollectionDescription& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CollectionDescription* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.service.CollectionDescription"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_service_5fmsg_2eproto); - return ::descriptor_table_service_5fmsg_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStatisticsFieldNumber = 3, - kStatusFieldNumber = 1, - kSchemaFieldNumber = 2, - }; - // repeated .milvus.proto.common.KeyValuePair statistics = 3; - int statistics_size() const; - void clear_statistics(); - ::milvus::proto::common::KeyValuePair* mutable_statistics(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >* - mutable_statistics(); - const ::milvus::proto::common::KeyValuePair& statistics(int index) const; - ::milvus::proto::common::KeyValuePair* add_statistics(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >& - statistics() const; - - // .milvus.proto.common.Status status = 1; - bool has_status() const; - void clear_status(); - const ::milvus::proto::common::Status& status() const; - ::milvus::proto::common::Status* release_status(); - ::milvus::proto::common::Status* mutable_status(); - void set_allocated_status(::milvus::proto::common::Status* status); - - // .milvus.proto.schema.CollectionSchema schema = 2; - bool has_schema() const; - void clear_schema(); - const ::milvus::proto::schema::CollectionSchema& schema() const; - ::milvus::proto::schema::CollectionSchema* release_schema(); - ::milvus::proto::schema::CollectionSchema* mutable_schema(); - void set_allocated_schema(::milvus::proto::schema::CollectionSchema* schema); - - // @@protoc_insertion_point(class_scope:milvus.proto.service.CollectionDescription) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair > statistics_; - ::milvus::proto::common::Status* status_; - ::milvus::proto::schema::CollectionSchema* schema_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_service_5fmsg_2eproto; -}; -// ------------------------------------------------------------------- - -class PartitionDescription : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.PartitionDescription) */ { - public: - PartitionDescription(); - virtual ~PartitionDescription(); - - PartitionDescription(const PartitionDescription& from); - PartitionDescription(PartitionDescription&& from) noexcept - : PartitionDescription() { - *this = ::std::move(from); - } - - inline PartitionDescription& operator=(const PartitionDescription& from) { - CopyFrom(from); - return *this; - } - inline PartitionDescription& operator=(PartitionDescription&& 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 PartitionDescription& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PartitionDescription* internal_default_instance() { - return reinterpret_cast<const PartitionDescription*>( - &_PartitionDescription_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(PartitionDescription& a, PartitionDescription& b) { - a.Swap(&b); - } - inline void Swap(PartitionDescription* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PartitionDescription* New() const final { - return CreateMaybeMessage<PartitionDescription>(nullptr); - } - - PartitionDescription* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage<PartitionDescription>(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PartitionDescription& from); - void MergeFrom(const PartitionDescription& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PartitionDescription* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.service.PartitionDescription"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_service_5fmsg_2eproto); - return ::descriptor_table_service_5fmsg_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStatisticsFieldNumber = 3, - kStatusFieldNumber = 1, - kNameFieldNumber = 2, - }; - // repeated .milvus.proto.common.KeyValuePair statistics = 3; - int statistics_size() const; - void clear_statistics(); - ::milvus::proto::common::KeyValuePair* mutable_statistics(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >* - mutable_statistics(); - const ::milvus::proto::common::KeyValuePair& statistics(int index) const; - ::milvus::proto::common::KeyValuePair* add_statistics(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >& - statistics() const; - - // .milvus.proto.common.Status status = 1; - bool has_status() const; - void clear_status(); - const ::milvus::proto::common::Status& status() const; - ::milvus::proto::common::Status* release_status(); - ::milvus::proto::common::Status* mutable_status(); - void set_allocated_status(::milvus::proto::common::Status* status); - - // .milvus.proto.service.PartitionName name = 2; - bool has_name() const; - void clear_name(); - const ::milvus::proto::service::PartitionName& name() const; - ::milvus::proto::service::PartitionName* release_name(); - ::milvus::proto::service::PartitionName* mutable_name(); - void set_allocated_name(::milvus::proto::service::PartitionName* name); - - // @@protoc_insertion_point(class_scope:milvus.proto.service.PartitionDescription) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair > statistics_; - ::milvus::proto::common::Status* status_; - ::milvus::proto::service::PartitionName* name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_service_5fmsg_2eproto; -}; -// ------------------------------------------------------------------- - -class SysConfigResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.SysConfigResponse) */ { - public: - SysConfigResponse(); - virtual ~SysConfigResponse(); - - SysConfigResponse(const SysConfigResponse& from); - SysConfigResponse(SysConfigResponse&& from) noexcept - : SysConfigResponse() { - *this = ::std::move(from); - } - - inline SysConfigResponse& operator=(const SysConfigResponse& from) { - CopyFrom(from); - return *this; - } - inline SysConfigResponse& operator=(SysConfigResponse&& 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 SysConfigResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SysConfigResponse* internal_default_instance() { - return reinterpret_cast<const SysConfigResponse*>( - &_SysConfigResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - friend void swap(SysConfigResponse& a, SysConfigResponse& b) { - a.Swap(&b); - } - inline void Swap(SysConfigResponse* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline SysConfigResponse* New() const final { - return CreateMaybeMessage<SysConfigResponse>(nullptr); - } - - SysConfigResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage<SysConfigResponse>(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const SysConfigResponse& from); - void MergeFrom(const SysConfigResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SysConfigResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.service.SysConfigResponse"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_service_5fmsg_2eproto); - return ::descriptor_table_service_5fmsg_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kKeysFieldNumber = 2, - kValuesFieldNumber = 3, - kStatusFieldNumber = 1, - }; - // repeated string keys = 2; - int keys_size() const; - void clear_keys(); - const std::string& keys(int index) const; - std::string* mutable_keys(int index); - void set_keys(int index, const std::string& value); - void set_keys(int index, std::string&& value); - void set_keys(int index, const char* value); - void set_keys(int index, const char* value, size_t size); - std::string* add_keys(); - void add_keys(const std::string& value); - void add_keys(std::string&& value); - void add_keys(const char* value); - void add_keys(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& keys() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_keys(); - - // repeated string values = 3; - int values_size() const; - void clear_values(); - const std::string& values(int index) const; - std::string* mutable_values(int index); - void set_values(int index, const std::string& value); - void set_values(int index, std::string&& value); - void set_values(int index, const char* value); - void set_values(int index, const char* value, size_t size); - std::string* add_values(); - void add_values(const std::string& value); - void add_values(std::string&& value); - void add_values(const char* value); - void add_values(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& values() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_values(); - - // .milvus.proto.common.Status status = 1; - bool has_status() const; - void clear_status(); - const ::milvus::proto::common::Status& status() const; - ::milvus::proto::common::Status* release_status(); - ::milvus::proto::common::Status* mutable_status(); - void set_allocated_status(::milvus::proto::common::Status* status); - - // @@protoc_insertion_point(class_scope:milvus.proto.service.SysConfigResponse) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> keys_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> values_; - ::milvus::proto::common::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_service_5fmsg_2eproto; -}; -// ------------------------------------------------------------------- - -class Hits : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.Hits) */ { - public: - Hits(); - virtual ~Hits(); - - Hits(const Hits& from); - Hits(Hits&& from) noexcept - : Hits() { - *this = ::std::move(from); - } - - inline Hits& operator=(const Hits& from) { - CopyFrom(from); - return *this; - } - inline Hits& operator=(Hits&& 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 Hits& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Hits* internal_default_instance() { - return reinterpret_cast<const Hits*>( - &_Hits_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - friend void swap(Hits& a, Hits& b) { - a.Swap(&b); - } - inline void Swap(Hits* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Hits* New() const final { - return CreateMaybeMessage<Hits>(nullptr); - } - - Hits* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage<Hits>(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const Hits& from); - void MergeFrom(const Hits& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Hits* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.service.Hits"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_service_5fmsg_2eproto); - return ::descriptor_table_service_5fmsg_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIDsFieldNumber = 1, - kRowDataFieldNumber = 2, - kScoresFieldNumber = 3, - }; - // repeated int64 IDs = 1; - int ids_size() const; - void clear_ids(); - ::PROTOBUF_NAMESPACE_ID::int64 ids(int index) const; - void set_ids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); - void add_ids(::PROTOBUF_NAMESPACE_ID::int64 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - ids() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - mutable_ids(); - - // repeated bytes row_data = 2; - int row_data_size() const; - void clear_row_data(); - const std::string& row_data(int index) const; - std::string* mutable_row_data(int index); - void set_row_data(int index, const std::string& value); - void set_row_data(int index, std::string&& value); - void set_row_data(int index, const char* value); - void set_row_data(int index, const void* value, size_t size); - std::string* add_row_data(); - void add_row_data(const std::string& value); - void add_row_data(std::string&& value); - void add_row_data(const char* value); - void add_row_data(const void* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& row_data() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_row_data(); - - // repeated float scores = 3; - int scores_size() const; - void clear_scores(); - float scores(int index) const; - void set_scores(int index, float value); - void add_scores(float value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& - scores() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* - mutable_scores(); - - // @@protoc_insertion_point(class_scope:milvus.proto.service.Hits) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > ids_; - mutable std::atomic<int> _ids_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> row_data_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > scores_; - mutable std::atomic<int> _scores_cached_byte_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_service_5fmsg_2eproto; -}; -// ------------------------------------------------------------------- - -class QueryResult : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.QueryResult) */ { - public: - QueryResult(); - virtual ~QueryResult(); - - QueryResult(const QueryResult& from); - QueryResult(QueryResult&& from) noexcept - : QueryResult() { - *this = ::std::move(from); - } - - inline QueryResult& operator=(const QueryResult& from) { - CopyFrom(from); - return *this; - } - inline QueryResult& operator=(QueryResult&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const QueryResult& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const QueryResult* internal_default_instance() { - return reinterpret_cast<const QueryResult*>( - &_QueryResult_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - friend void swap(QueryResult& a, QueryResult& b) { - a.Swap(&b); - } - inline void Swap(QueryResult* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline QueryResult* New() const final { - return CreateMaybeMessage<QueryResult>(nullptr); - } - - QueryResult* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage<QueryResult>(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const QueryResult& from); - void MergeFrom(const QueryResult& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(QueryResult* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.service.QueryResult"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_service_5fmsg_2eproto); - return ::descriptor_table_service_5fmsg_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kHitsFieldNumber = 2, - kStatusFieldNumber = 1, - }; - // repeated bytes hits = 2; - int hits_size() const; - void clear_hits(); - const std::string& hits(int index) const; - std::string* mutable_hits(int index); - void set_hits(int index, const std::string& value); - void set_hits(int index, std::string&& value); - void set_hits(int index, const char* value); - void set_hits(int index, const void* value, size_t size); - std::string* add_hits(); - void add_hits(const std::string& value); - void add_hits(std::string&& value); - void add_hits(const char* value); - void add_hits(const void* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& hits() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_hits(); - - // .milvus.proto.common.Status status = 1; - bool has_status() const; - void clear_status(); - const ::milvus::proto::common::Status& status() const; - ::milvus::proto::common::Status* release_status(); - ::milvus::proto::common::Status* mutable_status(); - void set_allocated_status(::milvus::proto::common::Status* status); - - // @@protoc_insertion_point(class_scope:milvus.proto.service.QueryResult) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> hits_; - ::milvus::proto::common::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_service_5fmsg_2eproto; -}; -// ------------------------------------------------------------------- - -class IndexParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.IndexParam) */ { - public: - IndexParam(); - virtual ~IndexParam(); - - IndexParam(const IndexParam& from); - IndexParam(IndexParam&& from) noexcept - : IndexParam() { - *this = ::std::move(from); - } - - inline IndexParam& operator=(const IndexParam& from) { - CopyFrom(from); - return *this; - } - inline IndexParam& operator=(IndexParam&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const IndexParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const IndexParam* internal_default_instance() { - return reinterpret_cast<const IndexParam*>( - &_IndexParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - friend void swap(IndexParam& a, IndexParam& b) { - a.Swap(&b); - } - inline void Swap(IndexParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline IndexParam* New() const final { - return CreateMaybeMessage<IndexParam>(nullptr); - } - - IndexParam* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage<IndexParam>(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const IndexParam& from); - void MergeFrom(const IndexParam& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(IndexParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.service.IndexParam"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_service_5fmsg_2eproto); - return ::descriptor_table_service_5fmsg_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kExtraParamsFieldNumber = 3, - kCollectionNameFieldNumber = 1, - kFieldNameFieldNumber = 2, - }; - // repeated .milvus.proto.common.KeyValuePair extra_params = 3; - int extra_params_size() const; - void clear_extra_params(); - ::milvus::proto::common::KeyValuePair* mutable_extra_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >* - mutable_extra_params(); - const ::milvus::proto::common::KeyValuePair& extra_params(int index) const; - ::milvus::proto::common::KeyValuePair* add_extra_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >& - extra_params() const; - - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - - // string field_name = 2; - void clear_field_name(); - const std::string& field_name() const; - void set_field_name(const std::string& value); - void set_field_name(std::string&& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - std::string* mutable_field_name(); - std::string* release_field_name(); - void set_allocated_field_name(std::string* field_name); - - // @@protoc_insertion_point(class_scope:milvus.proto.service.IndexParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair > extra_params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_service_5fmsg_2eproto; -}; -// ------------------------------------------------------------------- - -class DescribeIndexRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.DescribeIndexRequest) */ { - public: - DescribeIndexRequest(); - virtual ~DescribeIndexRequest(); - - DescribeIndexRequest(const DescribeIndexRequest& from); - DescribeIndexRequest(DescribeIndexRequest&& from) noexcept - : DescribeIndexRequest() { - *this = ::std::move(from); - } - - inline DescribeIndexRequest& operator=(const DescribeIndexRequest& from) { - CopyFrom(from); - return *this; - } - inline DescribeIndexRequest& operator=(DescribeIndexRequest&& 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 DescribeIndexRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DescribeIndexRequest* internal_default_instance() { - return reinterpret_cast<const DescribeIndexRequest*>( - &_DescribeIndexRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - friend void swap(DescribeIndexRequest& a, DescribeIndexRequest& b) { - a.Swap(&b); - } - inline void Swap(DescribeIndexRequest* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline DescribeIndexRequest* New() const final { - return CreateMaybeMessage<DescribeIndexRequest>(nullptr); - } - - DescribeIndexRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage<DescribeIndexRequest>(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const DescribeIndexRequest& from); - void MergeFrom(const DescribeIndexRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DescribeIndexRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.service.DescribeIndexRequest"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_service_5fmsg_2eproto); - return ::descriptor_table_service_5fmsg_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCollectionNameFieldNumber = 1, - kFieldNameFieldNumber = 2, - }; - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - - // string field_name = 2; - void clear_field_name(); - const std::string& field_name() const; - void set_field_name(const std::string& value); - void set_field_name(std::string&& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - std::string* mutable_field_name(); - std::string* release_field_name(); - void set_allocated_field_name(std::string* field_name); - - // @@protoc_insertion_point(class_scope:milvus.proto.service.DescribeIndexRequest) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_service_5fmsg_2eproto; -}; -// ------------------------------------------------------------------- - -class DescribeIndexProgressRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.DescribeIndexProgressRequest) */ { - public: - DescribeIndexProgressRequest(); - virtual ~DescribeIndexProgressRequest(); - - DescribeIndexProgressRequest(const DescribeIndexProgressRequest& from); - DescribeIndexProgressRequest(DescribeIndexProgressRequest&& from) noexcept - : DescribeIndexProgressRequest() { - *this = ::std::move(from); - } - - inline DescribeIndexProgressRequest& operator=(const DescribeIndexProgressRequest& from) { - CopyFrom(from); - return *this; - } - inline DescribeIndexProgressRequest& operator=(DescribeIndexProgressRequest&& 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 DescribeIndexProgressRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DescribeIndexProgressRequest* internal_default_instance() { - return reinterpret_cast<const DescribeIndexProgressRequest*>( - &_DescribeIndexProgressRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 18; - - friend void swap(DescribeIndexProgressRequest& a, DescribeIndexProgressRequest& b) { - a.Swap(&b); - } - inline void Swap(DescribeIndexProgressRequest* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline DescribeIndexProgressRequest* New() const final { - return CreateMaybeMessage<DescribeIndexProgressRequest>(nullptr); - } - - DescribeIndexProgressRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage<DescribeIndexProgressRequest>(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const DescribeIndexProgressRequest& from); - void MergeFrom(const DescribeIndexProgressRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DescribeIndexProgressRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.service.DescribeIndexProgressRequest"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_service_5fmsg_2eproto); - return ::descriptor_table_service_5fmsg_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCollectionNameFieldNumber = 1, - kFieldNameFieldNumber = 2, - }; - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - - // string field_name = 2; - void clear_field_name(); - const std::string& field_name() const; - void set_field_name(const std::string& value); - void set_field_name(std::string&& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - std::string* mutable_field_name(); - std::string* release_field_name(); - void set_allocated_field_name(std::string* field_name); - - // @@protoc_insertion_point(class_scope:milvus.proto.service.DescribeIndexProgressRequest) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_service_5fmsg_2eproto; -}; -// ------------------------------------------------------------------- - -class DescribeIndexResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.DescribeIndexResponse) */ { - public: - DescribeIndexResponse(); - virtual ~DescribeIndexResponse(); - - DescribeIndexResponse(const DescribeIndexResponse& from); - DescribeIndexResponse(DescribeIndexResponse&& from) noexcept - : DescribeIndexResponse() { - *this = ::std::move(from); - } - - inline DescribeIndexResponse& operator=(const DescribeIndexResponse& from) { - CopyFrom(from); - return *this; - } - inline DescribeIndexResponse& operator=(DescribeIndexResponse&& 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 DescribeIndexResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DescribeIndexResponse* internal_default_instance() { - return reinterpret_cast<const DescribeIndexResponse*>( - &_DescribeIndexResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - - friend void swap(DescribeIndexResponse& a, DescribeIndexResponse& b) { - a.Swap(&b); - } - inline void Swap(DescribeIndexResponse* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline DescribeIndexResponse* New() const final { - return CreateMaybeMessage<DescribeIndexResponse>(nullptr); - } - - DescribeIndexResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage<DescribeIndexResponse>(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const DescribeIndexResponse& from); - void MergeFrom(const DescribeIndexResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DescribeIndexResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.service.DescribeIndexResponse"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_service_5fmsg_2eproto); - return ::descriptor_table_service_5fmsg_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kExtraParamsFieldNumber = 4, - kCollectionNameFieldNumber = 2, - kFieldNameFieldNumber = 3, - kStatusFieldNumber = 1, - }; - // repeated .milvus.proto.common.KeyValuePair extra_params = 4; - int extra_params_size() const; - void clear_extra_params(); - ::milvus::proto::common::KeyValuePair* mutable_extra_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >* - mutable_extra_params(); - const ::milvus::proto::common::KeyValuePair& extra_params(int index) const; - ::milvus::proto::common::KeyValuePair* add_extra_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >& - extra_params() const; - - // string collection_name = 2; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - - // string field_name = 3; - void clear_field_name(); - const std::string& field_name() const; - void set_field_name(const std::string& value); - void set_field_name(std::string&& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - std::string* mutable_field_name(); - std::string* release_field_name(); - void set_allocated_field_name(std::string* field_name); - - // .milvus.proto.common.Status status = 1; - bool has_status() const; - void clear_status(); - const ::milvus::proto::common::Status& status() const; - ::milvus::proto::common::Status* release_status(); - ::milvus::proto::common::Status* mutable_status(); - void set_allocated_status(::milvus::proto::common::Status* status); - - // @@protoc_insertion_point(class_scope:milvus.proto.service.DescribeIndexResponse) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair > extra_params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; - ::milvus::proto::common::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_service_5fmsg_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// CollectionName - -// string collection_name = 1; -inline void CollectionName::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& CollectionName::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.proto.service.CollectionName.collection_name) - return collection_name_.GetNoArena(); -} -inline void CollectionName::set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.proto.service.CollectionName.collection_name) -} -inline void CollectionName::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.proto.service.CollectionName.collection_name) -} -inline void CollectionName::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.proto.service.CollectionName.collection_name) -} -inline void CollectionName::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast<const char*>(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.CollectionName.collection_name) -} -inline std::string* CollectionName::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.proto.service.CollectionName.collection_name) - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* CollectionName::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.proto.service.CollectionName.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void CollectionName::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.CollectionName.collection_name) -} - -// ------------------------------------------------------------------- - -// PartitionName - -// string collection_name = 1; -inline void PartitionName::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& PartitionName::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.proto.service.PartitionName.collection_name) - return collection_name_.GetNoArena(); -} -inline void PartitionName::set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.proto.service.PartitionName.collection_name) -} -inline void PartitionName::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.proto.service.PartitionName.collection_name) -} -inline void PartitionName::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.proto.service.PartitionName.collection_name) -} -inline void PartitionName::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast<const char*>(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.PartitionName.collection_name) -} -inline std::string* PartitionName::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.proto.service.PartitionName.collection_name) - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* PartitionName::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.proto.service.PartitionName.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void PartitionName::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.PartitionName.collection_name) -} - -// string tag = 2; -inline void PartitionName::clear_tag() { - tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& PartitionName::tag() const { - // @@protoc_insertion_point(field_get:milvus.proto.service.PartitionName.tag) - return tag_.GetNoArena(); -} -inline void PartitionName::set_tag(const std::string& value) { - - tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.proto.service.PartitionName.tag) -} -inline void PartitionName::set_tag(std::string&& value) { - - tag_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.proto.service.PartitionName.tag) -} -inline void PartitionName::set_tag(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.proto.service.PartitionName.tag) -} -inline void PartitionName::set_tag(const char* value, size_t size) { - - tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast<const char*>(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.PartitionName.tag) -} -inline std::string* PartitionName::mutable_tag() { - - // @@protoc_insertion_point(field_mutable:milvus.proto.service.PartitionName.tag) - return tag_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* PartitionName::release_tag() { - // @@protoc_insertion_point(field_release:milvus.proto.service.PartitionName.tag) - - return tag_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void PartitionName::set_allocated_tag(std::string* tag) { - if (tag != nullptr) { - - } else { - - } - tag_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), tag); - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.PartitionName.tag) -} - -// ------------------------------------------------------------------- - -// RowBatch - -// string collection_name = 1; -inline void RowBatch::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& RowBatch::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.proto.service.RowBatch.collection_name) - return collection_name_.GetNoArena(); -} -inline void RowBatch::set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.proto.service.RowBatch.collection_name) -} -inline void RowBatch::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.proto.service.RowBatch.collection_name) -} -inline void RowBatch::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.proto.service.RowBatch.collection_name) -} -inline void RowBatch::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast<const char*>(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.RowBatch.collection_name) -} -inline std::string* RowBatch::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.proto.service.RowBatch.collection_name) - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* RowBatch::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.proto.service.RowBatch.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void RowBatch::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.RowBatch.collection_name) -} - -// string partition_tag = 2; -inline void RowBatch::clear_partition_tag() { - partition_tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& RowBatch::partition_tag() const { - // @@protoc_insertion_point(field_get:milvus.proto.service.RowBatch.partition_tag) - return partition_tag_.GetNoArena(); -} -inline void RowBatch::set_partition_tag(const std::string& value) { - - partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.proto.service.RowBatch.partition_tag) -} -inline void RowBatch::set_partition_tag(std::string&& value) { - - partition_tag_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.proto.service.RowBatch.partition_tag) -} -inline void RowBatch::set_partition_tag(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.proto.service.RowBatch.partition_tag) -} -inline void RowBatch::set_partition_tag(const char* value, size_t size) { - - partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast<const char*>(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.RowBatch.partition_tag) -} -inline std::string* RowBatch::mutable_partition_tag() { - - // @@protoc_insertion_point(field_mutable:milvus.proto.service.RowBatch.partition_tag) - return partition_tag_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* RowBatch::release_partition_tag() { - // @@protoc_insertion_point(field_release:milvus.proto.service.RowBatch.partition_tag) - - return partition_tag_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void RowBatch::set_allocated_partition_tag(std::string* partition_tag) { - if (partition_tag != nullptr) { - - } else { - - } - partition_tag_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), partition_tag); - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.RowBatch.partition_tag) -} - -// repeated .milvus.proto.common.Blob row_data = 3; -inline int RowBatch::row_data_size() const { - return row_data_.size(); -} -inline ::milvus::proto::common::Blob* RowBatch::mutable_row_data(int index) { - // @@protoc_insertion_point(field_mutable:milvus.proto.service.RowBatch.row_data) - return row_data_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::Blob >* -RowBatch::mutable_row_data() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.service.RowBatch.row_data) - return &row_data_; -} -inline const ::milvus::proto::common::Blob& RowBatch::row_data(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.service.RowBatch.row_data) - return row_data_.Get(index); -} -inline ::milvus::proto::common::Blob* RowBatch::add_row_data() { - // @@protoc_insertion_point(field_add:milvus.proto.service.RowBatch.row_data) - return row_data_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::Blob >& -RowBatch::row_data() const { - // @@protoc_insertion_point(field_list:milvus.proto.service.RowBatch.row_data) - return row_data_; -} - -// repeated uint32 hash_keys = 4; -inline int RowBatch::hash_keys_size() const { - return hash_keys_.size(); -} -inline void RowBatch::clear_hash_keys() { - hash_keys_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::uint32 RowBatch::hash_keys(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.service.RowBatch.hash_keys) - return hash_keys_.Get(index); -} -inline void RowBatch::set_hash_keys(int index, ::PROTOBUF_NAMESPACE_ID::uint32 value) { - hash_keys_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.proto.service.RowBatch.hash_keys) -} -inline void RowBatch::add_hash_keys(::PROTOBUF_NAMESPACE_ID::uint32 value) { - hash_keys_.Add(value); - // @@protoc_insertion_point(field_add:milvus.proto.service.RowBatch.hash_keys) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& -RowBatch::hash_keys() const { - // @@protoc_insertion_point(field_list:milvus.proto.service.RowBatch.hash_keys) - return hash_keys_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* -RowBatch::mutable_hash_keys() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.service.RowBatch.hash_keys) - return &hash_keys_; -} - -// ------------------------------------------------------------------- - -// PlaceholderValue - -// string tag = 1; -inline void PlaceholderValue::clear_tag() { - tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& PlaceholderValue::tag() const { - // @@protoc_insertion_point(field_get:milvus.proto.service.PlaceholderValue.tag) - return tag_.GetNoArena(); -} -inline void PlaceholderValue::set_tag(const std::string& value) { - - tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.proto.service.PlaceholderValue.tag) -} -inline void PlaceholderValue::set_tag(std::string&& value) { - - tag_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.proto.service.PlaceholderValue.tag) -} -inline void PlaceholderValue::set_tag(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.proto.service.PlaceholderValue.tag) -} -inline void PlaceholderValue::set_tag(const char* value, size_t size) { - - tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast<const char*>(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.PlaceholderValue.tag) -} -inline std::string* PlaceholderValue::mutable_tag() { - - // @@protoc_insertion_point(field_mutable:milvus.proto.service.PlaceholderValue.tag) - return tag_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* PlaceholderValue::release_tag() { - // @@protoc_insertion_point(field_release:milvus.proto.service.PlaceholderValue.tag) - - return tag_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void PlaceholderValue::set_allocated_tag(std::string* tag) { - if (tag != nullptr) { - - } else { - - } - tag_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), tag); - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.PlaceholderValue.tag) -} - -// .milvus.proto.service.PlaceholderType type = 2; -inline void PlaceholderValue::clear_type() { - type_ = 0; -} -inline ::milvus::proto::service::PlaceholderType PlaceholderValue::type() const { - // @@protoc_insertion_point(field_get:milvus.proto.service.PlaceholderValue.type) - return static_cast< ::milvus::proto::service::PlaceholderType >(type_); -} -inline void PlaceholderValue::set_type(::milvus::proto::service::PlaceholderType value) { - - type_ = value; - // @@protoc_insertion_point(field_set:milvus.proto.service.PlaceholderValue.type) -} - -// repeated bytes values = 3; -inline int PlaceholderValue::values_size() const { - return values_.size(); -} -inline void PlaceholderValue::clear_values() { - values_.Clear(); -} -inline const std::string& PlaceholderValue::values(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.service.PlaceholderValue.values) - return values_.Get(index); -} -inline std::string* PlaceholderValue::mutable_values(int index) { - // @@protoc_insertion_point(field_mutable:milvus.proto.service.PlaceholderValue.values) - return values_.Mutable(index); -} -inline void PlaceholderValue::set_values(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.proto.service.PlaceholderValue.values) - values_.Mutable(index)->assign(value); -} -inline void PlaceholderValue::set_values(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.proto.service.PlaceholderValue.values) - values_.Mutable(index)->assign(std::move(value)); -} -inline void PlaceholderValue::set_values(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - values_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.proto.service.PlaceholderValue.values) -} -inline void PlaceholderValue::set_values(int index, const void* value, size_t size) { - values_.Mutable(index)->assign( - reinterpret_cast<const char*>(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.PlaceholderValue.values) -} -inline std::string* PlaceholderValue::add_values() { - // @@protoc_insertion_point(field_add_mutable:milvus.proto.service.PlaceholderValue.values) - return values_.Add(); -} -inline void PlaceholderValue::add_values(const std::string& value) { - values_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.proto.service.PlaceholderValue.values) -} -inline void PlaceholderValue::add_values(std::string&& value) { - values_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.proto.service.PlaceholderValue.values) -} -inline void PlaceholderValue::add_values(const char* value) { - GOOGLE_DCHECK(value != nullptr); - values_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.proto.service.PlaceholderValue.values) -} -inline void PlaceholderValue::add_values(const void* value, size_t size) { - values_.Add()->assign(reinterpret_cast<const char*>(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.proto.service.PlaceholderValue.values) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& -PlaceholderValue::values() const { - // @@protoc_insertion_point(field_list:milvus.proto.service.PlaceholderValue.values) - return values_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* -PlaceholderValue::mutable_values() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.service.PlaceholderValue.values) - return &values_; -} - -// ------------------------------------------------------------------- - -// PlaceholderGroup - -// repeated .milvus.proto.service.PlaceholderValue placeholders = 1; -inline int PlaceholderGroup::placeholders_size() const { - return placeholders_.size(); -} -inline void PlaceholderGroup::clear_placeholders() { - placeholders_.Clear(); -} -inline ::milvus::proto::service::PlaceholderValue* PlaceholderGroup::mutable_placeholders(int index) { - // @@protoc_insertion_point(field_mutable:milvus.proto.service.PlaceholderGroup.placeholders) - return placeholders_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::service::PlaceholderValue >* -PlaceholderGroup::mutable_placeholders() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.service.PlaceholderGroup.placeholders) - return &placeholders_; -} -inline const ::milvus::proto::service::PlaceholderValue& PlaceholderGroup::placeholders(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.service.PlaceholderGroup.placeholders) - return placeholders_.Get(index); -} -inline ::milvus::proto::service::PlaceholderValue* PlaceholderGroup::add_placeholders() { - // @@protoc_insertion_point(field_add:milvus.proto.service.PlaceholderGroup.placeholders) - return placeholders_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::service::PlaceholderValue >& -PlaceholderGroup::placeholders() const { - // @@protoc_insertion_point(field_list:milvus.proto.service.PlaceholderGroup.placeholders) - return placeholders_; -} - -// ------------------------------------------------------------------- - -// Query - -// string collection_name = 1; -inline void Query::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& Query::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.proto.service.Query.collection_name) - return collection_name_.GetNoArena(); -} -inline void Query::set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.proto.service.Query.collection_name) -} -inline void Query::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.proto.service.Query.collection_name) -} -inline void Query::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.proto.service.Query.collection_name) -} -inline void Query::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast<const char*>(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.Query.collection_name) -} -inline std::string* Query::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.proto.service.Query.collection_name) - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* Query::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.proto.service.Query.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void Query::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.Query.collection_name) -} - -// repeated string partition_tags = 2; -inline int Query::partition_tags_size() const { - return partition_tags_.size(); -} -inline void Query::clear_partition_tags() { - partition_tags_.Clear(); -} -inline const std::string& Query::partition_tags(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.service.Query.partition_tags) - return partition_tags_.Get(index); -} -inline std::string* Query::mutable_partition_tags(int index) { - // @@protoc_insertion_point(field_mutable:milvus.proto.service.Query.partition_tags) - return partition_tags_.Mutable(index); -} -inline void Query::set_partition_tags(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.proto.service.Query.partition_tags) - partition_tags_.Mutable(index)->assign(value); -} -inline void Query::set_partition_tags(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.proto.service.Query.partition_tags) - partition_tags_.Mutable(index)->assign(std::move(value)); -} -inline void Query::set_partition_tags(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - partition_tags_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.proto.service.Query.partition_tags) -} -inline void Query::set_partition_tags(int index, const char* value, size_t size) { - partition_tags_.Mutable(index)->assign( - reinterpret_cast<const char*>(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.Query.partition_tags) -} -inline std::string* Query::add_partition_tags() { - // @@protoc_insertion_point(field_add_mutable:milvus.proto.service.Query.partition_tags) - return partition_tags_.Add(); -} -inline void Query::add_partition_tags(const std::string& value) { - partition_tags_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.proto.service.Query.partition_tags) -} -inline void Query::add_partition_tags(std::string&& value) { - partition_tags_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.proto.service.Query.partition_tags) -} -inline void Query::add_partition_tags(const char* value) { - GOOGLE_DCHECK(value != nullptr); - partition_tags_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.proto.service.Query.partition_tags) -} -inline void Query::add_partition_tags(const char* value, size_t size) { - partition_tags_.Add()->assign(reinterpret_cast<const char*>(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.proto.service.Query.partition_tags) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& -Query::partition_tags() const { - // @@protoc_insertion_point(field_list:milvus.proto.service.Query.partition_tags) - return partition_tags_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* -Query::mutable_partition_tags() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.service.Query.partition_tags) - return &partition_tags_; -} - -// string dsl = 3; -inline void Query::clear_dsl() { - dsl_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& Query::dsl() const { - // @@protoc_insertion_point(field_get:milvus.proto.service.Query.dsl) - return dsl_.GetNoArena(); -} -inline void Query::set_dsl(const std::string& value) { - - dsl_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.proto.service.Query.dsl) -} -inline void Query::set_dsl(std::string&& value) { - - dsl_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.proto.service.Query.dsl) -} -inline void Query::set_dsl(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - dsl_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.proto.service.Query.dsl) -} -inline void Query::set_dsl(const char* value, size_t size) { - - dsl_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast<const char*>(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.Query.dsl) -} -inline std::string* Query::mutable_dsl() { - - // @@protoc_insertion_point(field_mutable:milvus.proto.service.Query.dsl) - return dsl_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* Query::release_dsl() { - // @@protoc_insertion_point(field_release:milvus.proto.service.Query.dsl) - - return dsl_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void Query::set_allocated_dsl(std::string* dsl) { - if (dsl != nullptr) { - - } else { - - } - dsl_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), dsl); - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.Query.dsl) -} - -// bytes placeholder_group = 4; -inline void Query::clear_placeholder_group() { - placeholder_group_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& Query::placeholder_group() const { - // @@protoc_insertion_point(field_get:milvus.proto.service.Query.placeholder_group) - return placeholder_group_.GetNoArena(); -} -inline void Query::set_placeholder_group(const std::string& value) { - - placeholder_group_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.proto.service.Query.placeholder_group) -} -inline void Query::set_placeholder_group(std::string&& value) { - - placeholder_group_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.proto.service.Query.placeholder_group) -} -inline void Query::set_placeholder_group(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - placeholder_group_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.proto.service.Query.placeholder_group) -} -inline void Query::set_placeholder_group(const void* value, size_t size) { - - placeholder_group_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast<const char*>(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.Query.placeholder_group) -} -inline std::string* Query::mutable_placeholder_group() { - - // @@protoc_insertion_point(field_mutable:milvus.proto.service.Query.placeholder_group) - return placeholder_group_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* Query::release_placeholder_group() { - // @@protoc_insertion_point(field_release:milvus.proto.service.Query.placeholder_group) - - return placeholder_group_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void Query::set_allocated_placeholder_group(std::string* placeholder_group) { - if (placeholder_group != nullptr) { - - } else { - - } - placeholder_group_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), placeholder_group); - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.Query.placeholder_group) -} - -// ------------------------------------------------------------------- - -// StringResponse - -// .milvus.proto.common.Status status = 1; -inline bool StringResponse::has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline const ::milvus::proto::common::Status& StringResponse::status() const { - const ::milvus::proto::common::Status* p = status_; - // @@protoc_insertion_point(field_get:milvus.proto.service.StringResponse.status) - return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::Status*>( - &::milvus::proto::common::_Status_default_instance_); -} -inline ::milvus::proto::common::Status* StringResponse::release_status() { - // @@protoc_insertion_point(field_release:milvus.proto.service.StringResponse.status) - - ::milvus::proto::common::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::proto::common::Status* StringResponse::mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); - status_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.proto.service.StringResponse.status) - return status_; -} -inline void StringResponse::set_allocated_status(::milvus::proto::common::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.StringResponse.status) -} - -// string value = 2; -inline void StringResponse::clear_value() { - value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& StringResponse::value() const { - // @@protoc_insertion_point(field_get:milvus.proto.service.StringResponse.value) - return value_.GetNoArena(); -} -inline void StringResponse::set_value(const std::string& value) { - - value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.proto.service.StringResponse.value) -} -inline void StringResponse::set_value(std::string&& value) { - - value_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.proto.service.StringResponse.value) -} -inline void StringResponse::set_value(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.proto.service.StringResponse.value) -} -inline void StringResponse::set_value(const char* value, size_t size) { - - value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast<const char*>(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.StringResponse.value) -} -inline std::string* StringResponse::mutable_value() { - - // @@protoc_insertion_point(field_mutable:milvus.proto.service.StringResponse.value) - return value_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* StringResponse::release_value() { - // @@protoc_insertion_point(field_release:milvus.proto.service.StringResponse.value) - - return value_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void StringResponse::set_allocated_value(std::string* value) { - if (value != nullptr) { - - } else { - - } - value_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.StringResponse.value) -} - -// ------------------------------------------------------------------- - -// BoolResponse - -// .milvus.proto.common.Status status = 1; -inline bool BoolResponse::has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline const ::milvus::proto::common::Status& BoolResponse::status() const { - const ::milvus::proto::common::Status* p = status_; - // @@protoc_insertion_point(field_get:milvus.proto.service.BoolResponse.status) - return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::Status*>( - &::milvus::proto::common::_Status_default_instance_); -} -inline ::milvus::proto::common::Status* BoolResponse::release_status() { - // @@protoc_insertion_point(field_release:milvus.proto.service.BoolResponse.status) - - ::milvus::proto::common::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::proto::common::Status* BoolResponse::mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); - status_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.proto.service.BoolResponse.status) - return status_; -} -inline void BoolResponse::set_allocated_status(::milvus::proto::common::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.BoolResponse.status) -} - -// bool value = 2; -inline void BoolResponse::clear_value() { - value_ = false; -} -inline bool BoolResponse::value() const { - // @@protoc_insertion_point(field_get:milvus.proto.service.BoolResponse.value) - return value_; -} -inline void BoolResponse::set_value(bool value) { - - value_ = value; - // @@protoc_insertion_point(field_set:milvus.proto.service.BoolResponse.value) -} - -// ------------------------------------------------------------------- - -// StringListResponse - -// .milvus.proto.common.Status status = 1; -inline bool StringListResponse::has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline const ::milvus::proto::common::Status& StringListResponse::status() const { - const ::milvus::proto::common::Status* p = status_; - // @@protoc_insertion_point(field_get:milvus.proto.service.StringListResponse.status) - return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::Status*>( - &::milvus::proto::common::_Status_default_instance_); -} -inline ::milvus::proto::common::Status* StringListResponse::release_status() { - // @@protoc_insertion_point(field_release:milvus.proto.service.StringListResponse.status) - - ::milvus::proto::common::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::proto::common::Status* StringListResponse::mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); - status_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.proto.service.StringListResponse.status) - return status_; -} -inline void StringListResponse::set_allocated_status(::milvus::proto::common::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.StringListResponse.status) -} - -// repeated string values = 2; -inline int StringListResponse::values_size() const { - return values_.size(); -} -inline void StringListResponse::clear_values() { - values_.Clear(); -} -inline const std::string& StringListResponse::values(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.service.StringListResponse.values) - return values_.Get(index); -} -inline std::string* StringListResponse::mutable_values(int index) { - // @@protoc_insertion_point(field_mutable:milvus.proto.service.StringListResponse.values) - return values_.Mutable(index); -} -inline void StringListResponse::set_values(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.proto.service.StringListResponse.values) - values_.Mutable(index)->assign(value); -} -inline void StringListResponse::set_values(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.proto.service.StringListResponse.values) - values_.Mutable(index)->assign(std::move(value)); -} -inline void StringListResponse::set_values(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - values_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.proto.service.StringListResponse.values) -} -inline void StringListResponse::set_values(int index, const char* value, size_t size) { - values_.Mutable(index)->assign( - reinterpret_cast<const char*>(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.StringListResponse.values) -} -inline std::string* StringListResponse::add_values() { - // @@protoc_insertion_point(field_add_mutable:milvus.proto.service.StringListResponse.values) - return values_.Add(); -} -inline void StringListResponse::add_values(const std::string& value) { - values_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.proto.service.StringListResponse.values) -} -inline void StringListResponse::add_values(std::string&& value) { - values_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.proto.service.StringListResponse.values) -} -inline void StringListResponse::add_values(const char* value) { - GOOGLE_DCHECK(value != nullptr); - values_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.proto.service.StringListResponse.values) -} -inline void StringListResponse::add_values(const char* value, size_t size) { - values_.Add()->assign(reinterpret_cast<const char*>(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.proto.service.StringListResponse.values) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& -StringListResponse::values() const { - // @@protoc_insertion_point(field_list:milvus.proto.service.StringListResponse.values) - return values_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* -StringListResponse::mutable_values() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.service.StringListResponse.values) - return &values_; -} - -// ------------------------------------------------------------------- - -// IntegerListResponse - -// .milvus.proto.common.Status status = 1; -inline bool IntegerListResponse::has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline const ::milvus::proto::common::Status& IntegerListResponse::status() const { - const ::milvus::proto::common::Status* p = status_; - // @@protoc_insertion_point(field_get:milvus.proto.service.IntegerListResponse.status) - return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::Status*>( - &::milvus::proto::common::_Status_default_instance_); -} -inline ::milvus::proto::common::Status* IntegerListResponse::release_status() { - // @@protoc_insertion_point(field_release:milvus.proto.service.IntegerListResponse.status) - - ::milvus::proto::common::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::proto::common::Status* IntegerListResponse::mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); - status_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.proto.service.IntegerListResponse.status) - return status_; -} -inline void IntegerListResponse::set_allocated_status(::milvus::proto::common::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.IntegerListResponse.status) -} - -// repeated int64 values = 2; -inline int IntegerListResponse::values_size() const { - return values_.size(); -} -inline void IntegerListResponse::clear_values() { - values_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 IntegerListResponse::values(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.service.IntegerListResponse.values) - return values_.Get(index); -} -inline void IntegerListResponse::set_values(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { - values_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.proto.service.IntegerListResponse.values) -} -inline void IntegerListResponse::add_values(::PROTOBUF_NAMESPACE_ID::int64 value) { - values_.Add(value); - // @@protoc_insertion_point(field_add:milvus.proto.service.IntegerListResponse.values) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -IntegerListResponse::values() const { - // @@protoc_insertion_point(field_list:milvus.proto.service.IntegerListResponse.values) - return values_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -IntegerListResponse::mutable_values() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.service.IntegerListResponse.values) - return &values_; -} - -// ------------------------------------------------------------------- - -// IntegerRangeResponse - -// .milvus.proto.common.Status status = 1; -inline bool IntegerRangeResponse::has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline const ::milvus::proto::common::Status& IntegerRangeResponse::status() const { - const ::milvus::proto::common::Status* p = status_; - // @@protoc_insertion_point(field_get:milvus.proto.service.IntegerRangeResponse.status) - return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::Status*>( - &::milvus::proto::common::_Status_default_instance_); -} -inline ::milvus::proto::common::Status* IntegerRangeResponse::release_status() { - // @@protoc_insertion_point(field_release:milvus.proto.service.IntegerRangeResponse.status) - - ::milvus::proto::common::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::proto::common::Status* IntegerRangeResponse::mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); - status_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.proto.service.IntegerRangeResponse.status) - return status_; -} -inline void IntegerRangeResponse::set_allocated_status(::milvus::proto::common::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.IntegerRangeResponse.status) -} - -// int64 begin = 2; -inline void IntegerRangeResponse::clear_begin() { - begin_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 IntegerRangeResponse::begin() const { - // @@protoc_insertion_point(field_get:milvus.proto.service.IntegerRangeResponse.begin) - return begin_; -} -inline void IntegerRangeResponse::set_begin(::PROTOBUF_NAMESPACE_ID::int64 value) { - - begin_ = value; - // @@protoc_insertion_point(field_set:milvus.proto.service.IntegerRangeResponse.begin) -} - -// int64 end = 3; -inline void IntegerRangeResponse::clear_end() { - end_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 IntegerRangeResponse::end() const { - // @@protoc_insertion_point(field_get:milvus.proto.service.IntegerRangeResponse.end) - return end_; -} -inline void IntegerRangeResponse::set_end(::PROTOBUF_NAMESPACE_ID::int64 value) { - - end_ = value; - // @@protoc_insertion_point(field_set:milvus.proto.service.IntegerRangeResponse.end) -} - -// ------------------------------------------------------------------- - -// CollectionDescription - -// .milvus.proto.common.Status status = 1; -inline bool CollectionDescription::has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline const ::milvus::proto::common::Status& CollectionDescription::status() const { - const ::milvus::proto::common::Status* p = status_; - // @@protoc_insertion_point(field_get:milvus.proto.service.CollectionDescription.status) - return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::Status*>( - &::milvus::proto::common::_Status_default_instance_); -} -inline ::milvus::proto::common::Status* CollectionDescription::release_status() { - // @@protoc_insertion_point(field_release:milvus.proto.service.CollectionDescription.status) - - ::milvus::proto::common::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::proto::common::Status* CollectionDescription::mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); - status_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.proto.service.CollectionDescription.status) - return status_; -} -inline void CollectionDescription::set_allocated_status(::milvus::proto::common::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.CollectionDescription.status) -} - -// .milvus.proto.schema.CollectionSchema schema = 2; -inline bool CollectionDescription::has_schema() const { - return this != internal_default_instance() && schema_ != nullptr; -} -inline const ::milvus::proto::schema::CollectionSchema& CollectionDescription::schema() const { - const ::milvus::proto::schema::CollectionSchema* p = schema_; - // @@protoc_insertion_point(field_get:milvus.proto.service.CollectionDescription.schema) - return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::schema::CollectionSchema*>( - &::milvus::proto::schema::_CollectionSchema_default_instance_); -} -inline ::milvus::proto::schema::CollectionSchema* CollectionDescription::release_schema() { - // @@protoc_insertion_point(field_release:milvus.proto.service.CollectionDescription.schema) - - ::milvus::proto::schema::CollectionSchema* temp = schema_; - schema_ = nullptr; - return temp; -} -inline ::milvus::proto::schema::CollectionSchema* CollectionDescription::mutable_schema() { - - if (schema_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::proto::schema::CollectionSchema>(GetArenaNoVirtual()); - schema_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.proto.service.CollectionDescription.schema) - return schema_; -} -inline void CollectionDescription::set_allocated_schema(::milvus::proto::schema::CollectionSchema* schema) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(schema_); - } - if (schema) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - schema = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, schema, submessage_arena); - } - - } else { - - } - schema_ = schema; - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.CollectionDescription.schema) -} - -// repeated .milvus.proto.common.KeyValuePair statistics = 3; -inline int CollectionDescription::statistics_size() const { - return statistics_.size(); -} -inline ::milvus::proto::common::KeyValuePair* CollectionDescription::mutable_statistics(int index) { - // @@protoc_insertion_point(field_mutable:milvus.proto.service.CollectionDescription.statistics) - return statistics_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >* -CollectionDescription::mutable_statistics() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.service.CollectionDescription.statistics) - return &statistics_; -} -inline const ::milvus::proto::common::KeyValuePair& CollectionDescription::statistics(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.service.CollectionDescription.statistics) - return statistics_.Get(index); -} -inline ::milvus::proto::common::KeyValuePair* CollectionDescription::add_statistics() { - // @@protoc_insertion_point(field_add:milvus.proto.service.CollectionDescription.statistics) - return statistics_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >& -CollectionDescription::statistics() const { - // @@protoc_insertion_point(field_list:milvus.proto.service.CollectionDescription.statistics) - return statistics_; -} - -// ------------------------------------------------------------------- - -// PartitionDescription - -// .milvus.proto.common.Status status = 1; -inline bool PartitionDescription::has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline const ::milvus::proto::common::Status& PartitionDescription::status() const { - const ::milvus::proto::common::Status* p = status_; - // @@protoc_insertion_point(field_get:milvus.proto.service.PartitionDescription.status) - return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::Status*>( - &::milvus::proto::common::_Status_default_instance_); -} -inline ::milvus::proto::common::Status* PartitionDescription::release_status() { - // @@protoc_insertion_point(field_release:milvus.proto.service.PartitionDescription.status) - - ::milvus::proto::common::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::proto::common::Status* PartitionDescription::mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); - status_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.proto.service.PartitionDescription.status) - return status_; -} -inline void PartitionDescription::set_allocated_status(::milvus::proto::common::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.PartitionDescription.status) -} - -// .milvus.proto.service.PartitionName name = 2; -inline bool PartitionDescription::has_name() const { - return this != internal_default_instance() && name_ != nullptr; -} -inline void PartitionDescription::clear_name() { - if (GetArenaNoVirtual() == nullptr && name_ != nullptr) { - delete name_; - } - name_ = nullptr; -} -inline const ::milvus::proto::service::PartitionName& PartitionDescription::name() const { - const ::milvus::proto::service::PartitionName* p = name_; - // @@protoc_insertion_point(field_get:milvus.proto.service.PartitionDescription.name) - return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::service::PartitionName*>( - &::milvus::proto::service::_PartitionName_default_instance_); -} -inline ::milvus::proto::service::PartitionName* PartitionDescription::release_name() { - // @@protoc_insertion_point(field_release:milvus.proto.service.PartitionDescription.name) - - ::milvus::proto::service::PartitionName* temp = name_; - name_ = nullptr; - return temp; -} -inline ::milvus::proto::service::PartitionName* PartitionDescription::mutable_name() { - - if (name_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::proto::service::PartitionName>(GetArenaNoVirtual()); - name_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.proto.service.PartitionDescription.name) - return name_; -} -inline void PartitionDescription::set_allocated_name(::milvus::proto::service::PartitionName* name) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete name_; - } - if (name) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, name, submessage_arena); - } - - } else { - - } - name_ = name; - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.PartitionDescription.name) -} - -// repeated .milvus.proto.common.KeyValuePair statistics = 3; -inline int PartitionDescription::statistics_size() const { - return statistics_.size(); -} -inline ::milvus::proto::common::KeyValuePair* PartitionDescription::mutable_statistics(int index) { - // @@protoc_insertion_point(field_mutable:milvus.proto.service.PartitionDescription.statistics) - return statistics_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >* -PartitionDescription::mutable_statistics() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.service.PartitionDescription.statistics) - return &statistics_; -} -inline const ::milvus::proto::common::KeyValuePair& PartitionDescription::statistics(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.service.PartitionDescription.statistics) - return statistics_.Get(index); -} -inline ::milvus::proto::common::KeyValuePair* PartitionDescription::add_statistics() { - // @@protoc_insertion_point(field_add:milvus.proto.service.PartitionDescription.statistics) - return statistics_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >& -PartitionDescription::statistics() const { - // @@protoc_insertion_point(field_list:milvus.proto.service.PartitionDescription.statistics) - return statistics_; -} - -// ------------------------------------------------------------------- - -// SysConfigResponse - -// .milvus.proto.common.Status status = 1; -inline bool SysConfigResponse::has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline const ::milvus::proto::common::Status& SysConfigResponse::status() const { - const ::milvus::proto::common::Status* p = status_; - // @@protoc_insertion_point(field_get:milvus.proto.service.SysConfigResponse.status) - return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::Status*>( - &::milvus::proto::common::_Status_default_instance_); -} -inline ::milvus::proto::common::Status* SysConfigResponse::release_status() { - // @@protoc_insertion_point(field_release:milvus.proto.service.SysConfigResponse.status) - - ::milvus::proto::common::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::proto::common::Status* SysConfigResponse::mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); - status_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.proto.service.SysConfigResponse.status) - return status_; -} -inline void SysConfigResponse::set_allocated_status(::milvus::proto::common::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.SysConfigResponse.status) -} - -// repeated string keys = 2; -inline int SysConfigResponse::keys_size() const { - return keys_.size(); -} -inline void SysConfigResponse::clear_keys() { - keys_.Clear(); -} -inline const std::string& SysConfigResponse::keys(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.service.SysConfigResponse.keys) - return keys_.Get(index); -} -inline std::string* SysConfigResponse::mutable_keys(int index) { - // @@protoc_insertion_point(field_mutable:milvus.proto.service.SysConfigResponse.keys) - return keys_.Mutable(index); -} -inline void SysConfigResponse::set_keys(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.proto.service.SysConfigResponse.keys) - keys_.Mutable(index)->assign(value); -} -inline void SysConfigResponse::set_keys(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.proto.service.SysConfigResponse.keys) - keys_.Mutable(index)->assign(std::move(value)); -} -inline void SysConfigResponse::set_keys(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - keys_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.proto.service.SysConfigResponse.keys) -} -inline void SysConfigResponse::set_keys(int index, const char* value, size_t size) { - keys_.Mutable(index)->assign( - reinterpret_cast<const char*>(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.SysConfigResponse.keys) -} -inline std::string* SysConfigResponse::add_keys() { - // @@protoc_insertion_point(field_add_mutable:milvus.proto.service.SysConfigResponse.keys) - return keys_.Add(); -} -inline void SysConfigResponse::add_keys(const std::string& value) { - keys_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.proto.service.SysConfigResponse.keys) -} -inline void SysConfigResponse::add_keys(std::string&& value) { - keys_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.proto.service.SysConfigResponse.keys) -} -inline void SysConfigResponse::add_keys(const char* value) { - GOOGLE_DCHECK(value != nullptr); - keys_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.proto.service.SysConfigResponse.keys) -} -inline void SysConfigResponse::add_keys(const char* value, size_t size) { - keys_.Add()->assign(reinterpret_cast<const char*>(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.proto.service.SysConfigResponse.keys) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& -SysConfigResponse::keys() const { - // @@protoc_insertion_point(field_list:milvus.proto.service.SysConfigResponse.keys) - return keys_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* -SysConfigResponse::mutable_keys() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.service.SysConfigResponse.keys) - return &keys_; -} - -// repeated string values = 3; -inline int SysConfigResponse::values_size() const { - return values_.size(); -} -inline void SysConfigResponse::clear_values() { - values_.Clear(); -} -inline const std::string& SysConfigResponse::values(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.service.SysConfigResponse.values) - return values_.Get(index); -} -inline std::string* SysConfigResponse::mutable_values(int index) { - // @@protoc_insertion_point(field_mutable:milvus.proto.service.SysConfigResponse.values) - return values_.Mutable(index); -} -inline void SysConfigResponse::set_values(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.proto.service.SysConfigResponse.values) - values_.Mutable(index)->assign(value); -} -inline void SysConfigResponse::set_values(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.proto.service.SysConfigResponse.values) - values_.Mutable(index)->assign(std::move(value)); -} -inline void SysConfigResponse::set_values(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - values_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.proto.service.SysConfigResponse.values) -} -inline void SysConfigResponse::set_values(int index, const char* value, size_t size) { - values_.Mutable(index)->assign( - reinterpret_cast<const char*>(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.SysConfigResponse.values) -} -inline std::string* SysConfigResponse::add_values() { - // @@protoc_insertion_point(field_add_mutable:milvus.proto.service.SysConfigResponse.values) - return values_.Add(); -} -inline void SysConfigResponse::add_values(const std::string& value) { - values_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.proto.service.SysConfigResponse.values) -} -inline void SysConfigResponse::add_values(std::string&& value) { - values_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.proto.service.SysConfigResponse.values) -} -inline void SysConfigResponse::add_values(const char* value) { - GOOGLE_DCHECK(value != nullptr); - values_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.proto.service.SysConfigResponse.values) -} -inline void SysConfigResponse::add_values(const char* value, size_t size) { - values_.Add()->assign(reinterpret_cast<const char*>(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.proto.service.SysConfigResponse.values) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& -SysConfigResponse::values() const { - // @@protoc_insertion_point(field_list:milvus.proto.service.SysConfigResponse.values) - return values_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* -SysConfigResponse::mutable_values() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.service.SysConfigResponse.values) - return &values_; -} - -// ------------------------------------------------------------------- - -// Hits - -// repeated int64 IDs = 1; -inline int Hits::ids_size() const { - return ids_.size(); -} -inline void Hits::clear_ids() { - ids_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 Hits::ids(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.service.Hits.IDs) - return ids_.Get(index); -} -inline void Hits::set_ids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { - ids_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.proto.service.Hits.IDs) -} -inline void Hits::add_ids(::PROTOBUF_NAMESPACE_ID::int64 value) { - ids_.Add(value); - // @@protoc_insertion_point(field_add:milvus.proto.service.Hits.IDs) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -Hits::ids() const { - // @@protoc_insertion_point(field_list:milvus.proto.service.Hits.IDs) - return ids_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -Hits::mutable_ids() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.service.Hits.IDs) - return &ids_; -} - -// repeated bytes row_data = 2; -inline int Hits::row_data_size() const { - return row_data_.size(); -} -inline void Hits::clear_row_data() { - row_data_.Clear(); -} -inline const std::string& Hits::row_data(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.service.Hits.row_data) - return row_data_.Get(index); -} -inline std::string* Hits::mutable_row_data(int index) { - // @@protoc_insertion_point(field_mutable:milvus.proto.service.Hits.row_data) - return row_data_.Mutable(index); -} -inline void Hits::set_row_data(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.proto.service.Hits.row_data) - row_data_.Mutable(index)->assign(value); -} -inline void Hits::set_row_data(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.proto.service.Hits.row_data) - row_data_.Mutable(index)->assign(std::move(value)); -} -inline void Hits::set_row_data(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - row_data_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.proto.service.Hits.row_data) -} -inline void Hits::set_row_data(int index, const void* value, size_t size) { - row_data_.Mutable(index)->assign( - reinterpret_cast<const char*>(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.Hits.row_data) -} -inline std::string* Hits::add_row_data() { - // @@protoc_insertion_point(field_add_mutable:milvus.proto.service.Hits.row_data) - return row_data_.Add(); -} -inline void Hits::add_row_data(const std::string& value) { - row_data_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.proto.service.Hits.row_data) -} -inline void Hits::add_row_data(std::string&& value) { - row_data_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.proto.service.Hits.row_data) -} -inline void Hits::add_row_data(const char* value) { - GOOGLE_DCHECK(value != nullptr); - row_data_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.proto.service.Hits.row_data) -} -inline void Hits::add_row_data(const void* value, size_t size) { - row_data_.Add()->assign(reinterpret_cast<const char*>(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.proto.service.Hits.row_data) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& -Hits::row_data() const { - // @@protoc_insertion_point(field_list:milvus.proto.service.Hits.row_data) - return row_data_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* -Hits::mutable_row_data() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.service.Hits.row_data) - return &row_data_; -} - -// repeated float scores = 3; -inline int Hits::scores_size() const { - return scores_.size(); -} -inline void Hits::clear_scores() { - scores_.Clear(); -} -inline float Hits::scores(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.service.Hits.scores) - return scores_.Get(index); -} -inline void Hits::set_scores(int index, float value) { - scores_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.proto.service.Hits.scores) -} -inline void Hits::add_scores(float value) { - scores_.Add(value); - // @@protoc_insertion_point(field_add:milvus.proto.service.Hits.scores) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& -Hits::scores() const { - // @@protoc_insertion_point(field_list:milvus.proto.service.Hits.scores) - return scores_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* -Hits::mutable_scores() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.service.Hits.scores) - return &scores_; -} - -// ------------------------------------------------------------------- - -// QueryResult - -// .milvus.proto.common.Status status = 1; -inline bool QueryResult::has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline const ::milvus::proto::common::Status& QueryResult::status() const { - const ::milvus::proto::common::Status* p = status_; - // @@protoc_insertion_point(field_get:milvus.proto.service.QueryResult.status) - return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::Status*>( - &::milvus::proto::common::_Status_default_instance_); -} -inline ::milvus::proto::common::Status* QueryResult::release_status() { - // @@protoc_insertion_point(field_release:milvus.proto.service.QueryResult.status) - - ::milvus::proto::common::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::proto::common::Status* QueryResult::mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); - status_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.proto.service.QueryResult.status) - return status_; -} -inline void QueryResult::set_allocated_status(::milvus::proto::common::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.QueryResult.status) -} - -// repeated bytes hits = 2; -inline int QueryResult::hits_size() const { - return hits_.size(); -} -inline void QueryResult::clear_hits() { - hits_.Clear(); -} -inline const std::string& QueryResult::hits(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.service.QueryResult.hits) - return hits_.Get(index); -} -inline std::string* QueryResult::mutable_hits(int index) { - // @@protoc_insertion_point(field_mutable:milvus.proto.service.QueryResult.hits) - return hits_.Mutable(index); -} -inline void QueryResult::set_hits(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.proto.service.QueryResult.hits) - hits_.Mutable(index)->assign(value); -} -inline void QueryResult::set_hits(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.proto.service.QueryResult.hits) - hits_.Mutable(index)->assign(std::move(value)); -} -inline void QueryResult::set_hits(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - hits_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.proto.service.QueryResult.hits) -} -inline void QueryResult::set_hits(int index, const void* value, size_t size) { - hits_.Mutable(index)->assign( - reinterpret_cast<const char*>(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.QueryResult.hits) -} -inline std::string* QueryResult::add_hits() { - // @@protoc_insertion_point(field_add_mutable:milvus.proto.service.QueryResult.hits) - return hits_.Add(); -} -inline void QueryResult::add_hits(const std::string& value) { - hits_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.proto.service.QueryResult.hits) -} -inline void QueryResult::add_hits(std::string&& value) { - hits_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.proto.service.QueryResult.hits) -} -inline void QueryResult::add_hits(const char* value) { - GOOGLE_DCHECK(value != nullptr); - hits_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.proto.service.QueryResult.hits) -} -inline void QueryResult::add_hits(const void* value, size_t size) { - hits_.Add()->assign(reinterpret_cast<const char*>(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.proto.service.QueryResult.hits) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& -QueryResult::hits() const { - // @@protoc_insertion_point(field_list:milvus.proto.service.QueryResult.hits) - return hits_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* -QueryResult::mutable_hits() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.service.QueryResult.hits) - return &hits_; -} - -// ------------------------------------------------------------------- - -// IndexParam - -// string collection_name = 1; -inline void IndexParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& IndexParam::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.proto.service.IndexParam.collection_name) - return collection_name_.GetNoArena(); -} -inline void IndexParam::set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.proto.service.IndexParam.collection_name) -} -inline void IndexParam::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.proto.service.IndexParam.collection_name) -} -inline void IndexParam::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.proto.service.IndexParam.collection_name) -} -inline void IndexParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast<const char*>(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.IndexParam.collection_name) -} -inline std::string* IndexParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.proto.service.IndexParam.collection_name) - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* IndexParam::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.proto.service.IndexParam.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void IndexParam::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.IndexParam.collection_name) -} - -// string field_name = 2; -inline void IndexParam::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& IndexParam::field_name() const { - // @@protoc_insertion_point(field_get:milvus.proto.service.IndexParam.field_name) - return field_name_.GetNoArena(); -} -inline void IndexParam::set_field_name(const std::string& value) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.proto.service.IndexParam.field_name) -} -inline void IndexParam::set_field_name(std::string&& value) { - - field_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.proto.service.IndexParam.field_name) -} -inline void IndexParam::set_field_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.proto.service.IndexParam.field_name) -} -inline void IndexParam::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast<const char*>(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.IndexParam.field_name) -} -inline std::string* IndexParam::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:milvus.proto.service.IndexParam.field_name) - return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* IndexParam::release_field_name() { - // @@protoc_insertion_point(field_release:milvus.proto.service.IndexParam.field_name) - - return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void IndexParam::set_allocated_field_name(std::string* field_name) { - if (field_name != nullptr) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.IndexParam.field_name) -} - -// repeated .milvus.proto.common.KeyValuePair extra_params = 3; -inline int IndexParam::extra_params_size() const { - return extra_params_.size(); -} -inline ::milvus::proto::common::KeyValuePair* IndexParam::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.proto.service.IndexParam.extra_params) - return extra_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >* -IndexParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.service.IndexParam.extra_params) - return &extra_params_; -} -inline const ::milvus::proto::common::KeyValuePair& IndexParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.service.IndexParam.extra_params) - return extra_params_.Get(index); -} -inline ::milvus::proto::common::KeyValuePair* IndexParam::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.proto.service.IndexParam.extra_params) - return extra_params_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >& -IndexParam::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.proto.service.IndexParam.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// DescribeIndexRequest - -// string collection_name = 1; -inline void DescribeIndexRequest::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& DescribeIndexRequest::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.proto.service.DescribeIndexRequest.collection_name) - return collection_name_.GetNoArena(); -} -inline void DescribeIndexRequest::set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.proto.service.DescribeIndexRequest.collection_name) -} -inline void DescribeIndexRequest::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.proto.service.DescribeIndexRequest.collection_name) -} -inline void DescribeIndexRequest::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.proto.service.DescribeIndexRequest.collection_name) -} -inline void DescribeIndexRequest::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast<const char*>(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.DescribeIndexRequest.collection_name) -} -inline std::string* DescribeIndexRequest::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.proto.service.DescribeIndexRequest.collection_name) - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* DescribeIndexRequest::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.proto.service.DescribeIndexRequest.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void DescribeIndexRequest::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.DescribeIndexRequest.collection_name) -} - -// string field_name = 2; -inline void DescribeIndexRequest::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& DescribeIndexRequest::field_name() const { - // @@protoc_insertion_point(field_get:milvus.proto.service.DescribeIndexRequest.field_name) - return field_name_.GetNoArena(); -} -inline void DescribeIndexRequest::set_field_name(const std::string& value) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.proto.service.DescribeIndexRequest.field_name) -} -inline void DescribeIndexRequest::set_field_name(std::string&& value) { - - field_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.proto.service.DescribeIndexRequest.field_name) -} -inline void DescribeIndexRequest::set_field_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.proto.service.DescribeIndexRequest.field_name) -} -inline void DescribeIndexRequest::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast<const char*>(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.DescribeIndexRequest.field_name) -} -inline std::string* DescribeIndexRequest::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:milvus.proto.service.DescribeIndexRequest.field_name) - return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* DescribeIndexRequest::release_field_name() { - // @@protoc_insertion_point(field_release:milvus.proto.service.DescribeIndexRequest.field_name) - - return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void DescribeIndexRequest::set_allocated_field_name(std::string* field_name) { - if (field_name != nullptr) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.DescribeIndexRequest.field_name) -} - -// ------------------------------------------------------------------- - -// DescribeIndexProgressRequest - -// string collection_name = 1; -inline void DescribeIndexProgressRequest::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& DescribeIndexProgressRequest::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.proto.service.DescribeIndexProgressRequest.collection_name) - return collection_name_.GetNoArena(); -} -inline void DescribeIndexProgressRequest::set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.proto.service.DescribeIndexProgressRequest.collection_name) -} -inline void DescribeIndexProgressRequest::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.proto.service.DescribeIndexProgressRequest.collection_name) -} -inline void DescribeIndexProgressRequest::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.proto.service.DescribeIndexProgressRequest.collection_name) -} -inline void DescribeIndexProgressRequest::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast<const char*>(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.DescribeIndexProgressRequest.collection_name) -} -inline std::string* DescribeIndexProgressRequest::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.proto.service.DescribeIndexProgressRequest.collection_name) - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* DescribeIndexProgressRequest::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.proto.service.DescribeIndexProgressRequest.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void DescribeIndexProgressRequest::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.DescribeIndexProgressRequest.collection_name) -} - -// string field_name = 2; -inline void DescribeIndexProgressRequest::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& DescribeIndexProgressRequest::field_name() const { - // @@protoc_insertion_point(field_get:milvus.proto.service.DescribeIndexProgressRequest.field_name) - return field_name_.GetNoArena(); -} -inline void DescribeIndexProgressRequest::set_field_name(const std::string& value) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.proto.service.DescribeIndexProgressRequest.field_name) -} -inline void DescribeIndexProgressRequest::set_field_name(std::string&& value) { - - field_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.proto.service.DescribeIndexProgressRequest.field_name) -} -inline void DescribeIndexProgressRequest::set_field_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.proto.service.DescribeIndexProgressRequest.field_name) -} -inline void DescribeIndexProgressRequest::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast<const char*>(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.DescribeIndexProgressRequest.field_name) -} -inline std::string* DescribeIndexProgressRequest::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:milvus.proto.service.DescribeIndexProgressRequest.field_name) - return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* DescribeIndexProgressRequest::release_field_name() { - // @@protoc_insertion_point(field_release:milvus.proto.service.DescribeIndexProgressRequest.field_name) - - return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void DescribeIndexProgressRequest::set_allocated_field_name(std::string* field_name) { - if (field_name != nullptr) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.DescribeIndexProgressRequest.field_name) -} - -// ------------------------------------------------------------------- - -// DescribeIndexResponse - -// .milvus.proto.common.Status status = 1; -inline bool DescribeIndexResponse::has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline const ::milvus::proto::common::Status& DescribeIndexResponse::status() const { - const ::milvus::proto::common::Status* p = status_; - // @@protoc_insertion_point(field_get:milvus.proto.service.DescribeIndexResponse.status) - return p != nullptr ? *p : *reinterpret_cast<const ::milvus::proto::common::Status*>( - &::milvus::proto::common::_Status_default_instance_); -} -inline ::milvus::proto::common::Status* DescribeIndexResponse::release_status() { - // @@protoc_insertion_point(field_release:milvus.proto.service.DescribeIndexResponse.status) - - ::milvus::proto::common::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::proto::common::Status* DescribeIndexResponse::mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); - status_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.proto.service.DescribeIndexResponse.status) - return status_; -} -inline void DescribeIndexResponse::set_allocated_status(::milvus::proto::common::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.DescribeIndexResponse.status) -} - -// string collection_name = 2; -inline void DescribeIndexResponse::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& DescribeIndexResponse::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.proto.service.DescribeIndexResponse.collection_name) - return collection_name_.GetNoArena(); -} -inline void DescribeIndexResponse::set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.proto.service.DescribeIndexResponse.collection_name) -} -inline void DescribeIndexResponse::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.proto.service.DescribeIndexResponse.collection_name) -} -inline void DescribeIndexResponse::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.proto.service.DescribeIndexResponse.collection_name) -} -inline void DescribeIndexResponse::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast<const char*>(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.DescribeIndexResponse.collection_name) -} -inline std::string* DescribeIndexResponse::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.proto.service.DescribeIndexResponse.collection_name) - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* DescribeIndexResponse::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.proto.service.DescribeIndexResponse.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void DescribeIndexResponse::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.DescribeIndexResponse.collection_name) -} - -// string field_name = 3; -inline void DescribeIndexResponse::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& DescribeIndexResponse::field_name() const { - // @@protoc_insertion_point(field_get:milvus.proto.service.DescribeIndexResponse.field_name) - return field_name_.GetNoArena(); -} -inline void DescribeIndexResponse::set_field_name(const std::string& value) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.proto.service.DescribeIndexResponse.field_name) -} -inline void DescribeIndexResponse::set_field_name(std::string&& value) { - - field_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.proto.service.DescribeIndexResponse.field_name) -} -inline void DescribeIndexResponse::set_field_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.proto.service.DescribeIndexResponse.field_name) -} -inline void DescribeIndexResponse::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast<const char*>(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.DescribeIndexResponse.field_name) -} -inline std::string* DescribeIndexResponse::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:milvus.proto.service.DescribeIndexResponse.field_name) - return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* DescribeIndexResponse::release_field_name() { - // @@protoc_insertion_point(field_release:milvus.proto.service.DescribeIndexResponse.field_name) - - return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void DescribeIndexResponse::set_allocated_field_name(std::string* field_name) { - if (field_name != nullptr) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.DescribeIndexResponse.field_name) -} - -// repeated .milvus.proto.common.KeyValuePair extra_params = 4; -inline int DescribeIndexResponse::extra_params_size() const { - return extra_params_.size(); -} -inline ::milvus::proto::common::KeyValuePair* DescribeIndexResponse::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.proto.service.DescribeIndexResponse.extra_params) - return extra_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >* -DescribeIndexResponse::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.service.DescribeIndexResponse.extra_params) - return &extra_params_; -} -inline const ::milvus::proto::common::KeyValuePair& DescribeIndexResponse::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.service.DescribeIndexResponse.extra_params) - return extra_params_.Get(index); -} -inline ::milvus::proto::common::KeyValuePair* DescribeIndexResponse::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.proto.service.DescribeIndexResponse.extra_params) - return extra_params_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >& -DescribeIndexResponse::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.proto.service.DescribeIndexResponse.extra_params) - return extra_params_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace service -} // namespace proto -} // namespace milvus - -PROTOBUF_NAMESPACE_OPEN - -template <> struct is_proto_enum< ::milvus::proto::service::PlaceholderType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::milvus::proto::service::PlaceholderType>() { - return ::milvus::proto::service::PlaceholderType_descriptor(); -} - -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) - -#include <google/protobuf/port_undef.inc> -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_service_5fmsg_2eproto diff --git a/internal/core/src/query/Plan.cpp b/internal/core/src/query/Plan.cpp index d999eb7179ba9aec511a3cb4e5715ac75144006b..a0800142debbcc48a8c5d7ce45f300c945d5bfcd 100644 --- a/internal/core/src/query/Plan.cpp +++ b/internal/core/src/query/Plan.cpp @@ -15,7 +15,7 @@ #include "query/ExprImpl.h" #include "utils/Json.h" #include "utils/EasyAssert.h" -#include "pb/service_msg.pb.h" +#include "pb/milvus.pb.h" #include <vector> #include <memory> #include <boost/align/aligned_allocator.hpp> @@ -281,7 +281,7 @@ Parser::ParseRangeNodeImpl(const FieldName& field_name, const Json& body) { std::unique_ptr<PlaceholderGroup> ParsePlaceholderGroup(const Plan* plan, const std::string& blob) { - namespace ser = milvus::proto::service; + namespace ser = milvus::proto::milvus; auto result = std::make_unique<PlaceholderGroup>(); ser::PlaceholderGroup ph_group; auto ok = ph_group.ParseFromString(blob); diff --git a/internal/core/src/query/PlanImpl.h b/internal/core/src/query/PlanImpl.h index e09039e06fbe1fd39488f24eaab39987a5b501fa..25d519e466b4c2d523503878ff9bbab923f3c4e1 100644 --- a/internal/core/src/query/PlanImpl.h +++ b/internal/core/src/query/PlanImpl.h @@ -15,7 +15,7 @@ #include "utils/Json.h" #include "PlanNode.h" #include "utils/EasyAssert.h" -#include "pb/service_msg.pb.h" +#include "pb/milvus.pb.h" #include <memory> #include <map> #include <string> diff --git a/internal/core/src/query/deprecated/ParserDeprecated.h b/internal/core/src/query/deprecated/ParserDeprecated.h index 6f45b97bce105b5b6d7ec8d2741507a6b3e7e6a3..adf079b56edd6592d7c27f3a7570370b6f4890fc 100644 --- a/internal/core/src/query/deprecated/ParserDeprecated.h +++ b/internal/core/src/query/deprecated/ParserDeprecated.h @@ -10,7 +10,7 @@ // or implied. See the License for the specific language governing permissions and limitations under the License #pragma once -#include "pb/service_msg.pb.h" +#include "pb/milvus.pb.h" #include "query/deprecated/BooleanQuery.h" #include "query/deprecated/BinaryQuery.h" #include "query/deprecated/GeneralQuery.h" @@ -18,6 +18,6 @@ namespace milvus::wtf { query_old::QueryPtr -Transformer(proto::service::Query* query); +Transformer(proto::milvus::SearchRequest* query); } // namespace milvus::wtf diff --git a/internal/core/src/segcore/reduce_c.cpp b/internal/core/src/segcore/reduce_c.cpp index cbd88a13b9b0209cbeb8d247857fc9b3a9c847d9..2d4a1e08aea692b2e653bb188e110b493e106cd9 100644 --- a/internal/core/src/segcore/reduce_c.cpp +++ b/internal/core/src/segcore/reduce_c.cpp @@ -15,7 +15,7 @@ #include "segcore/Reduce.h" #include "common/Types.h" -#include "pb/service_msg.pb.h" +#include "pb/milvus.pb.h" using SearchResult = milvus::QueryResult; @@ -206,7 +206,7 @@ ReorganizeQueryResults(CMarshaledHits* c_marshaled_hits, for (int i = 0; i < num_groups; i++) { MarshaledHitsPeerGroup& hits_peer_group = (*marshaledHits).marshaled_hits_[i]; for (int j = 0; j < num_queries_peer_group[i]; j++) { - milvus::proto::service::Hits hits; + milvus::proto::milvus::Hits hits; for (int k = 0; k < topk; k++, fill_hit_offset++) { hits.add_ids(result_ids[fill_hit_offset]); hits.add_scores(result_distances[fill_hit_offset]); diff --git a/internal/core/unittest/test_c_api.cpp b/internal/core/unittest/test_c_api.cpp index ba153c6539ad87890bbf38e29f2038f06d72d6ee..fa51a5f9894f3b90d3549956f4c7a6577c45558c 100644 --- a/internal/core/unittest/test_c_api.cpp +++ b/internal/core/unittest/test_c_api.cpp @@ -16,7 +16,7 @@ #include <chrono> #include <google/protobuf/text_format.h> -#include "pb/service_msg.pb.h" +#include "pb/milvus.pb.h" #include "segcore/reduce_c.h" #include <index/knowhere/knowhere/index/vector_index/helpers/IndexParameter.h> @@ -32,7 +32,7 @@ namespace chrono = std::chrono; using namespace milvus; using namespace milvus::segcore; -using namespace milvus::proto; +//using namespace milvus::proto; using namespace milvus::knowhere; TEST(CApiTest, CollectionTest) { @@ -155,7 +155,7 @@ TEST(CApiTest, SearchTest) { } })"; - namespace ser = milvus::proto::service; + namespace ser = milvus::proto::milvus; int num_queries = 10; int dim = 16; std::normal_distribution<double> dis(0, 1); @@ -376,6 +376,7 @@ generate_data(int N) { std::string generate_collection_shema(std::string metric_type, std::string dim, bool is_binary) { + namespace schema = milvus::proto::schema; schema::CollectionSchema collection_schema; collection_schema.set_name("collection_test"); collection_schema.set_autoid(true); @@ -672,7 +673,7 @@ TEST(CApiTest, Reduce) { } })"; - namespace ser = milvus::proto::service; + namespace ser = milvus::proto::milvus; int num_queries = 10; int dim = 16; std::normal_distribution<double> dis(0, 1); diff --git a/internal/core/unittest/test_query.cpp b/internal/core/unittest/test_query.cpp index 3470e274a21c3e4b2d859c271026ba894594de33..3c1a919932198167d183ea16c4b6b5aeaabda332 100644 --- a/internal/core/unittest/test_query.cpp +++ b/internal/core/unittest/test_query.cpp @@ -102,7 +102,7 @@ TEST(Query, DSL) { } TEST(Query, ParsePlaceholderGroup) { - namespace ser = milvus::proto::service; + namespace ser = milvus::proto::milvus; std::string dsl_string = R"( { "bool": { diff --git a/internal/core/unittest/test_utils/DataGen.h b/internal/core/unittest/test_utils/DataGen.h index 08a4f91f30b1521a0d6bf5c87bf95b5c1639e141..0904f6fe91eac08349c95e03e4e7ddd1cdc173e8 100644 --- a/internal/core/unittest/test_utils/DataGen.h +++ b/internal/core/unittest/test_utils/DataGen.h @@ -185,7 +185,7 @@ DataGen(SchemaPtr schema, int64_t N, uint64_t seed = 42) { inline auto CreatePlaceholderGroup(int64_t num_queries, int dim, int64_t seed = 42) { - namespace ser = milvus::proto::service; + namespace ser = milvus::proto::milvus; ser::PlaceholderGroup raw_group; auto value = raw_group.add_placeholders(); value->set_tag("$0"); @@ -205,7 +205,7 @@ CreatePlaceholderGroup(int64_t num_queries, int dim, int64_t seed = 42) { inline auto CreatePlaceholderGroupFromBlob(int64_t num_queries, int dim, const float* src) { - namespace ser = milvus::proto::service; + namespace ser = milvus::proto::milvus; ser::PlaceholderGroup raw_group; auto value = raw_group.add_placeholders(); value->set_tag("$0"); @@ -226,7 +226,7 @@ CreatePlaceholderGroupFromBlob(int64_t num_queries, int dim, const float* src) { inline auto CreateBinaryPlaceholderGroup(int64_t num_queries, int64_t dim, int64_t seed = 42) { assert(dim % 8 == 0); - namespace ser = milvus::proto::service; + namespace ser = milvus::proto::milvus; ser::PlaceholderGroup raw_group; auto value = raw_group.add_placeholders(); value->set_tag("$0"); @@ -246,7 +246,7 @@ CreateBinaryPlaceholderGroup(int64_t num_queries, int64_t dim, int64_t seed = 42 inline auto CreateBinaryPlaceholderGroupFromBlob(int64_t num_queries, int64_t dim, const uint8_t* ptr) { assert(dim % 8 == 0); - namespace ser = milvus::proto::service; + namespace ser = milvus::proto::milvus; ser::PlaceholderGroup raw_group; auto value = raw_group.add_placeholders(); value->set_tag("$0"); diff --git a/internal/distributed/proxynode/client.go b/internal/distributed/proxynode/client.go new file mode 100644 index 0000000000000000000000000000000000000000..c22f24c2cf4471934a5675d95d37a15e88182f5c --- /dev/null +++ b/internal/distributed/proxynode/client.go @@ -0,0 +1,44 @@ +package grpcproxynode + +import ( + "context" + + "google.golang.org/grpc" + + "github.com/zilliztech/milvus-distributed/internal/proto/proxypb" +) + +type Client struct { + client proxypb.ProxyNodeServiceClient + address string + ctx context.Context +} + +func (c *Client) tryConnect() error { + if c.client != nil { + return nil + } + conn, err := grpc.DialContext(c.ctx, c.address, grpc.WithInsecure(), grpc.WithBlock()) + if err != nil { + return err + } + c.client = proxypb.NewProxyNodeServiceClient(conn) + return nil +} + +func (c *Client) InvalidateCollectionMetaCache(request *proxypb.InvalidateCollMetaCacheRequest) error { + var err error + err = c.tryConnect() + if err != nil { + return err + } + _, err = c.client.InvalidateCollectionMetaCache(c.ctx, request) + return err +} + +func NewClient(ctx context.Context, address string) *Client { + return &Client{ + address: address, + ctx: ctx, + } +} diff --git a/internal/distributed/proxynode/service.go b/internal/distributed/proxynode/service.go new file mode 100644 index 0000000000000000000000000000000000000000..adca967ec15c19ff9fa992ee3ae8880f2a25198c --- /dev/null +++ b/internal/distributed/proxynode/service.go @@ -0,0 +1,219 @@ +package grpcproxynode + +import ( + "context" + "net" + "strconv" + "sync" + + "github.com/zilliztech/milvus-distributed/internal/proto/commonpb" + "github.com/zilliztech/milvus-distributed/internal/proto/milvuspb" + + proxynodeimpl "github.com/zilliztech/milvus-distributed/internal/proxynode" + + "github.com/zilliztech/milvus-distributed/internal/proto/proxypb" + + "google.golang.org/grpc" +) + +type Server struct { + ctx context.Context + wg sync.WaitGroup + impl proxynodeimpl.ProxyNode + grpcServer *grpc.Server + ip string + port int + proxyServiceAddress string + //proxyServiceClient *proxyservice.Client +} + +func CreateProxyNodeServer() (*Server, error) { + return &Server{}, nil +} + +func (s *Server) connectProxyService() error { + proxynodeimpl.Params.Init() + + //s.proxyServiceAddress = proxynodeimpl.Params.ProxyServiceAddress() + //s.proxyServiceClient = proxyservice.NewClient(s.ctx, s.proxyServiceAddress) + // + //getAvailablePort := func() int { + // listener, err := net.Listen("tcp", ":0") + // if err != nil { + // panic(err) + // } + // defer listener.Close() + // + // return listener.Addr().(*net.TCPAddr).Port + //} + //getLocalIp := func() string { + // return ipv4.LocalIP() + //} + //s.ip = getLocalIp() + //s.port = getAvailablePort() + // + //request := &proxypb.RegisterNodeRequest{ + // Address: &commonpb.Address{ + // Ip: s.ip, + // Port: int64(s.port), + // }, + //} + //response, err := s.proxyServiceClient.RegisterNode(request) + //if err != nil { + // panic(err) + //} + // + //proxynodeimpl.Params.Save("_proxyID", strconv.Itoa(int(response.InitParams.NodeID))) + // + //for _, params := range response.InitParams.StartParams { + // proxynodeimpl.Params.Save(params.Key, params.Value) + //} + // + //return err + return nil +} + +func (s *Server) Init() error { + s.ctx = context.Background() + var err error + s.impl, err = proxynodeimpl.CreateProxyNodeImpl(s.ctx) + if err != nil { + return err + } + err = s.connectProxyService() + if err != nil { + return err + } + return s.impl.Init() +} + +func (s *Server) Start() error { + s.wg.Add(1) + go func() { + defer s.wg.Done() + + // TODO: use config + lis, err := net.Listen("tcp", ":"+strconv.Itoa(proxynodeimpl.Params.NetworkPort())) + if err != nil { + panic(err) + } + + s.grpcServer = grpc.NewServer() + proxypb.RegisterProxyNodeServiceServer(s.grpcServer, s) + milvuspb.RegisterMilvusServiceServer(s.grpcServer, s) + if err = s.grpcServer.Serve(lis); err != nil { + panic(err) + } + }() + + return s.impl.Start() +} + +func (s *Server) Stop() error { + var err error + + if s.grpcServer != nil { + s.grpcServer.GracefulStop() + } + + err = s.impl.Stop() + if err != nil { + return err + } + + s.wg.Wait() + + return nil +} + +func (s *Server) InvalidateCollectionMetaCache(ctx context.Context, request *proxypb.InvalidateCollMetaCacheRequest) (*commonpb.Status, error) { + return s.impl.InvalidateCollectionMetaCache(ctx, request) +} + +func (s *Server) CreateCollection(ctx context.Context, request *milvuspb.CreateCollectionRequest) (*commonpb.Status, error) { + return s.impl.CreateCollection(ctx, request) +} + +func (s *Server) DropCollection(ctx context.Context, request *milvuspb.DropCollectionRequest) (*commonpb.Status, error) { + return s.impl.DropCollection(ctx, request) +} + +func (s *Server) HasCollection(ctx context.Context, request *milvuspb.HasCollectionRequest) (*milvuspb.BoolResponse, error) { + return s.impl.HasCollection(ctx, request) +} + +func (s *Server) LoadCollection(ctx context.Context, request *milvuspb.LoadCollectionRequest) (*commonpb.Status, error) { + return s.impl.LoadCollection(ctx, request) +} + +func (s *Server) ReleaseCollection(ctx context.Context, request *milvuspb.ReleaseCollectionRequest) (*commonpb.Status, error) { + return s.impl.ReleaseCollection(ctx, request) +} + +func (s *Server) DescribeCollection(ctx context.Context, request *milvuspb.DescribeCollectionRequest) (*milvuspb.DescribeCollectionResponse, error) { + return s.impl.DescribeCollection(ctx, request) +} + +func (s *Server) GetCollectionStatistics(ctx context.Context, request *milvuspb.CollectionStatsRequest) (*milvuspb.CollectionStatsResponse, error) { + return s.impl.GetCollectionStatistics(ctx, request) +} + +func (s *Server) ShowCollections(ctx context.Context, request *milvuspb.ShowCollectionRequest) (*milvuspb.ShowCollectionResponse, error) { + return s.impl.ShowCollections(ctx, request) +} + +func (s *Server) CreatePartition(ctx context.Context, request *milvuspb.CreatePartitionRequest) (*commonpb.Status, error) { + return s.impl.CreatePartition(ctx, request) +} + +func (s *Server) DropPartition(ctx context.Context, request *milvuspb.DropPartitionRequest) (*commonpb.Status, error) { + return s.impl.DropPartition(ctx, request) +} + +func (s *Server) HasPartition(ctx context.Context, request *milvuspb.HasPartitionRequest) (*milvuspb.BoolResponse, error) { + return s.impl.HasPartition(ctx, request) +} + +func (s *Server) LoadPartitions(ctx context.Context, request *milvuspb.LoadPartitonRequest) (*commonpb.Status, error) { + return s.impl.LoadPartitions(ctx, request) +} + +func (s *Server) ReleasePartitions(ctx context.Context, request *milvuspb.ReleasePartitionRequest) (*commonpb.Status, error) { + return s.impl.ReleasePartitions(ctx, request) +} + +func (s *Server) GetPartitionStatistics(ctx context.Context, request *milvuspb.PartitionStatsRequest) (*milvuspb.PartitionStatsResponse, error) { + return s.impl.GetPartitionStatistics(ctx, request) +} + +func (s *Server) ShowPartitions(ctx context.Context, request *milvuspb.ShowPartitionRequest) (*milvuspb.ShowPartitionResponse, error) { + return s.impl.ShowPartitions(ctx, request) +} + +func (s *Server) CreateIndex(ctx context.Context, request *milvuspb.CreateIndexRequest) (*commonpb.Status, error) { + return s.impl.CreateIndex(ctx, request) +} + +func (s *Server) DescribeIndex(ctx context.Context, request *milvuspb.DescribeIndexRequest) (*milvuspb.DescribeIndexResponse, error) { + return s.impl.DescribeIndex(ctx, request) +} + +func (s *Server) GetIndexState(ctx context.Context, request *milvuspb.IndexStateRequest) (*milvuspb.IndexStateResponse, error) { + return s.impl.GetIndexState(ctx, request) +} + +func (s *Server) Insert(ctx context.Context, request *milvuspb.InsertRequest) (*milvuspb.InsertResponse, error) { + return s.impl.Insert(ctx, request) +} + +func (s *Server) Search(ctx context.Context, request *milvuspb.SearchRequest) (*milvuspb.SearchResults, error) { + return s.impl.Search(ctx, request) +} + +func (s *Server) Flush(ctx context.Context, request *milvuspb.FlushRequest) (*commonpb.Status, error) { + return s.impl.Flush(ctx, request) +} + +func (s *Server) GetDdChannel(ctx context.Context, request *commonpb.Empty) (*milvuspb.StringResponse, error) { + return s.impl.GetDdChannel(ctx, request) +} diff --git a/internal/master/master_test.go b/internal/master/master_test.go index 33c7ff61a0a291fc45660099316558c6e66da710..873304873fc9a4bf22efda95ef9f959061ec6598 100644 --- a/internal/master/master_test.go +++ b/internal/master/master_test.go @@ -845,19 +845,19 @@ func TestMaster(t *testing.T) { // ReqID: 1, // Timestamp: uint64(time.Now().Unix()), // ProxyID: 1, - // PartitionName: &servicepb.PartitionName{CollectionName: "col1", Tag: "partition1"}, + // PartitionName: &milvuspb.PartitionName{CollectionName: "col1", Tag: "partition1"}, //} // //describePartition, err := cli.DescribePartition(ctx, &describePartitionReq) //assert.Nil(t, err) - //assert.Equal(t, &servicepb.PartitionName{CollectionName: "col1", Tag: "partition1"}, describePartition.Name) + //assert.Equal(t, &milvuspb.PartitionName{CollectionName: "col1", Tag: "partition1"}, describePartition.Name) // //describePartitionReq = internalpb.DescribePartitionRequest{ // MsgType: commonpb.MsgType_kDescribePartition, // ReqID: 1, // Timestamp: 0, // ProxyID: 1, - // PartitionName: &servicepb.PartitionName{CollectionName: "col1", Tag: "partition1"}, + // PartitionName: &milvuspb.PartitionName{CollectionName: "col1", Tag: "partition1"}, //} // //describePartition, _ = cli.DescribePartition(ctx, &describePartitionReq) diff --git a/internal/master/partition_task.go b/internal/master/partition_task.go index d5dc5f10d2af0518c1597f9ffed02b8ba9aa00b9..56eb411025ce4939a78d8c3b49f0c52a16704e14 100644 --- a/internal/master/partition_task.go +++ b/internal/master/partition_task.go @@ -31,7 +31,7 @@ type hasPartitionTask struct { //type describePartitionTask struct { // baseTask -// description *servicepb.PartitionDescription +// description *milvuspb.PartitionDescription // req *internalpb.DescribePartitionRequest //} @@ -225,7 +225,7 @@ func (t *hasPartitionTask) Execute() error { // // partitionName := t.req.PartitionName // -// description := servicepb.PartitionDescription{ +// description := milvuspb.PartitionDescription{ // Status: &commonpb.Status{ // ErrorCode: commonpb.ErrorCode_SUCCESS, // }, diff --git a/internal/masterservice/master_service.go b/internal/masterservice/master_service.go index fcd77dc79d42dc8d80bfdfacfda3dea0278d4cf9..72cccc1102259aaf641156dd5789fb78d73b176c 100644 --- a/internal/masterservice/master_service.go +++ b/internal/masterservice/master_service.go @@ -28,7 +28,7 @@ import ( // querypb(query_service) // datapb(data_service) // indexpb(index_service) -// milvuspb -> servicepb +// milvuspb -> milvuspb // masterpb2 -> masterpb (master_service) type InitParams struct { diff --git a/internal/proto/milvus.proto b/internal/proto/milvus.proto index 6428b34756ad19a441e4ec115b70beab7cea01a2..779f7508eaa45504bdb4ab5a464e7445e7ef4658 100644 --- a/internal/proto/milvus.proto +++ b/internal/proto/milvus.proto @@ -9,7 +9,7 @@ import "schema.proto"; message CreateCollectionRequest { common.MsgBase base = 1; string db_name = 2; - string collectionName = 3; + string collection_name = 3; // `schema` is the serialized `schema.CollectionSchema` bytes schema = 4; } @@ -18,7 +18,7 @@ message CreateCollectionRequest { message DropCollectionRequest { common.MsgBase base = 1; string db_name = 2; - string collectionName = 3; + string collection_name = 3; } message HasCollectionRequest { diff --git a/internal/proto/milvuspb/milvus.pb.go b/internal/proto/milvuspb/milvus.pb.go index 43ea9491815f6ecd92efaf7cffc816a8fd9fec87..75ef8422fce6ae89bb407ec077ba625ef5e697f4 100644 --- a/internal/proto/milvuspb/milvus.pb.go +++ b/internal/proto/milvuspb/milvus.pb.go @@ -57,7 +57,7 @@ func (PlaceholderType) EnumDescriptor() ([]byte, []int) { type CreateCollectionRequest struct { Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - CollectionName string `protobuf:"bytes,3,opt,name=collectionName,proto3" json:"collectionName,omitempty"` + CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` // `schema` is the serialized `schema.CollectionSchema` Schema []byte `protobuf:"bytes,4,opt,name=schema,proto3" json:"schema,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -121,7 +121,7 @@ func (m *CreateCollectionRequest) GetSchema() []byte { type DropCollectionRequest struct { Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - CollectionName string `protobuf:"bytes,3,opt,name=collectionName,proto3" json:"collectionName,omitempty"` + CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2344,108 +2344,107 @@ func init() { func init() { proto.RegisterFile("milvus.proto", fileDescriptor_02345ba45cc0e303) } var fileDescriptor_02345ba45cc0e303 = []byte{ - // 1604 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x59, 0x5d, 0x6f, 0x1b, 0x45, - 0x17, 0xce, 0xc6, 0x8e, 0x9b, 0x9c, 0xd8, 0x8e, 0x33, 0xf9, 0x72, 0xdd, 0xf6, 0x6d, 0xba, 0xef, - 0xdb, 0x26, 0xfd, 0x4a, 0x5e, 0xa5, 0x20, 0xe0, 0x02, 0xa9, 0x4d, 0x9c, 0xa6, 0x56, 0xdb, 0x34, - 0xac, 0x43, 0x45, 0xa8, 0x2a, 0x33, 0xf6, 0x0e, 0xf1, 0xc2, 0x7a, 0xd7, 0xec, 0x8c, 0x93, 0xa6, - 0x57, 0x08, 0x24, 0x90, 0x00, 0x01, 0xb7, 0xdc, 0x22, 0xae, 0x11, 0x14, 0x89, 0x7f, 0x80, 0xc4, - 0x7f, 0x41, 0x88, 0x5f, 0x80, 0x84, 0x76, 0x66, 0xb3, 0xde, 0xdd, 0xcc, 0xc6, 0xa6, 0xa6, 0xd8, - 0xb9, 0xdb, 0x39, 0x3e, 0x73, 0xe6, 0x39, 0x1f, 0x33, 0x73, 0xe6, 0x31, 0xa4, 0x1b, 0x86, 0xb9, - 0xd7, 0xa2, 0x4b, 0x4d, 0xc7, 0x66, 0x36, 0x9a, 0x0a, 0x8e, 0x96, 0xc4, 0xa0, 0x90, 0xae, 0xd9, - 0x8d, 0x86, 0x6d, 0x09, 0x61, 0x21, 0x4d, 0x6b, 0x75, 0xd2, 0xc0, 0x62, 0xa4, 0x7e, 0xa7, 0xc0, - 0xdc, 0x9a, 0x43, 0x30, 0x23, 0x6b, 0xb6, 0x69, 0x92, 0x1a, 0x33, 0x6c, 0x4b, 0x23, 0x1f, 0xb4, - 0x08, 0x65, 0xe8, 0xff, 0x90, 0xac, 0x62, 0x4a, 0xf2, 0xca, 0xbc, 0xb2, 0x38, 0xbe, 0x72, 0x76, - 0x29, 0x64, 0xdb, 0xb3, 0x79, 0x9f, 0xee, 0xae, 0x62, 0x4a, 0x34, 0xae, 0x89, 0xe6, 0xe0, 0x94, - 0x5e, 0xad, 0x58, 0xb8, 0x41, 0xf2, 0xc3, 0xf3, 0xca, 0xe2, 0x98, 0x96, 0xd2, 0xab, 0x9b, 0xb8, - 0x41, 0xd0, 0x25, 0xc8, 0xd6, 0x7c, 0xfb, 0xae, 0x24, 0x9f, 0xe0, 0xbf, 0x47, 0xa4, 0x68, 0x16, - 0x52, 0x02, 0x5e, 0x3e, 0x39, 0xaf, 0x2c, 0xa6, 0x35, 0x6f, 0xa4, 0x7e, 0xa6, 0xc0, 0x4c, 0xd1, - 0xb1, 0x9b, 0x83, 0x00, 0xd2, 0x05, 0x33, 0x7d, 0x07, 0xd3, 0x17, 0x8a, 0x65, 0x01, 0x26, 0xda, - 0xab, 0x0a, 0x05, 0x39, 0x98, 0x1d, 0x48, 0xaf, 0xda, 0xb6, 0xa9, 0x11, 0xda, 0xb4, 0x2d, 0x4a, - 0xd0, 0x0d, 0x48, 0x51, 0x86, 0x59, 0x8b, 0x7a, 0x28, 0xce, 0x48, 0x51, 0x94, 0xb9, 0x8a, 0xe6, - 0xa9, 0xa2, 0x69, 0x18, 0xd9, 0xc3, 0x66, 0x4b, 0x80, 0x18, 0xd5, 0xc4, 0x40, 0x7d, 0x04, 0xd9, - 0x32, 0x73, 0x0c, 0x6b, 0xf7, 0x1f, 0x34, 0x3e, 0x76, 0x68, 0xfc, 0x2b, 0x05, 0x4e, 0x17, 0x09, - 0xad, 0x39, 0x46, 0x95, 0x0c, 0x46, 0x24, 0xbf, 0x56, 0xa0, 0x20, 0x43, 0xd4, 0x8b, 0xef, 0xaf, - 0xfb, 0xf5, 0x3c, 0xcc, 0x27, 0x5d, 0x0c, 0x4f, 0xf2, 0xb6, 0x62, 0x7b, 0xb5, 0x32, 0x17, 0xf8, - 0x65, 0xff, 0xb9, 0x02, 0x33, 0xf7, 0x6c, 0xac, 0x0f, 0x46, 0x80, 0xbe, 0x54, 0x20, 0xaf, 0x11, - 0x93, 0x60, 0x3a, 0x20, 0x19, 0xfb, 0x42, 0x81, 0xd9, 0x40, 0xec, 0x18, 0x66, 0xb4, 0x9f, 0x70, - 0x3e, 0x75, 0xcf, 0xd2, 0x28, 0x9c, 0x5e, 0xaa, 0xe7, 0x15, 0x18, 0x71, 0xbf, 0x68, 0x7e, 0x78, - 0x3e, 0xb1, 0x38, 0xbe, 0x72, 0x41, 0x3a, 0xe7, 0x2e, 0x39, 0x78, 0xe8, 0xee, 0xa8, 0x2d, 0x6c, - 0x38, 0x9a, 0xd0, 0x57, 0xab, 0x30, 0x53, 0xae, 0xdb, 0xfb, 0x2f, 0x32, 0x4b, 0xea, 0x13, 0x98, - 0x8d, 0xae, 0xd1, 0x8b, 0xaf, 0x97, 0x21, 0x17, 0x89, 0xb2, 0x70, 0x7b, 0x4c, 0x9b, 0x08, 0x87, - 0x99, 0xaa, 0x3f, 0xb9, 0x69, 0xe7, 0x77, 0xd6, 0x16, 0x76, 0x98, 0xd1, 0xe7, 0x2a, 0x44, 0x17, - 0x21, 0xdb, 0x3c, 0xc4, 0x21, 0xf4, 0x92, 0x5c, 0x2f, 0xe3, 0x4b, 0x79, 0xbc, 0x7e, 0x54, 0x60, - 0xda, 0xbd, 0xc2, 0x4e, 0x12, 0xe6, 0x1f, 0x14, 0x98, 0xba, 0x83, 0xe9, 0x49, 0x82, 0xfc, 0x4c, - 0x81, 0x29, 0xf7, 0xc8, 0x14, 0x98, 0xfb, 0x0b, 0x79, 0x01, 0x26, 0xc2, 0x90, 0x69, 0x3e, 0xc9, - 0x4b, 0x3a, 0x1b, 0xc2, 0x4c, 0xd5, 0x9f, 0x15, 0x98, 0xf3, 0x4e, 0xd6, 0x81, 0x88, 0x75, 0xd7, - 0xc0, 0x9f, 0x29, 0x30, 0xe3, 0x23, 0xee, 0xf7, 0x01, 0xdc, 0x6d, 0x89, 0x7c, 0xa2, 0xc0, 0x6c, - 0x14, 0x74, 0x5f, 0x8e, 0xe9, 0xef, 0x15, 0x98, 0x76, 0xcf, 0xd0, 0x81, 0xc8, 0xb9, 0x0a, 0xe9, - 0xb6, 0xa4, 0x54, 0xe4, 0xa1, 0x4b, 0x68, 0x21, 0x99, 0xfa, 0x8d, 0x22, 0x2e, 0x96, 0x00, 0xe0, - 0x5e, 0x02, 0x27, 0x29, 0xb3, 0x61, 0x59, 0x99, 0xb9, 0xd8, 0x7c, 0x49, 0xa9, 0x48, 0xf3, 0x89, - 0xf9, 0x84, 0x8b, 0x2d, 0x28, 0xe3, 0xcd, 0xc0, 0x61, 0xfb, 0x56, 0x26, 0xbb, 0x0d, 0x62, 0xb1, - 0xe7, 0x0f, 0x67, 0x34, 0x18, 0xc3, 0x47, 0x83, 0x81, 0xce, 0xc2, 0x18, 0x15, 0xeb, 0x94, 0x8a, - 0x3c, 0xa6, 0x09, 0xad, 0x2d, 0x50, 0xeb, 0x30, 0x77, 0x04, 0x4d, 0x2f, 0xb1, 0xca, 0xc3, 0x29, - 0xc3, 0xd2, 0xc9, 0x13, 0x1f, 0xcc, 0xe1, 0xd0, 0x75, 0x1c, 0xb9, 0x49, 0xf9, 0x57, 0x9c, 0x9e, - 0x87, 0xf1, 0x40, 0xd4, 0x3d, 0xb7, 0x83, 0x22, 0xf5, 0x3d, 0x98, 0x0a, 0xa1, 0xe9, 0xc5, 0xe9, - 0xff, 0x00, 0xf8, 0x11, 0x15, 0xb5, 0x91, 0xd0, 0x02, 0x12, 0xf5, 0x77, 0x05, 0x90, 0xe8, 0x04, - 0x4a, 0x6e, 0x30, 0xfa, 0xb9, 0x7d, 0xce, 0x01, 0xbc, 0x6b, 0x10, 0x53, 0x0f, 0x9e, 0x3b, 0x63, - 0x5c, 0xc2, 0x7f, 0x2e, 0x42, 0x9a, 0x3c, 0x61, 0x0e, 0xae, 0x34, 0xb1, 0x83, 0x1b, 0x34, 0x3f, - 0xd2, 0xed, 0x51, 0x31, 0xce, 0xa7, 0x6d, 0xf1, 0x59, 0xea, 0xaf, 0x6e, 0x0f, 0xe1, 0x55, 0xd5, - 0xa0, 0x7b, 0x7c, 0x0e, 0x80, 0x57, 0xa8, 0xf8, 0x79, 0x44, 0xfc, 0xcc, 0x25, 0xfc, 0x10, 0x36, - 0x21, 0xc7, 0x3d, 0x10, 0xee, 0x34, 0x5d, 0xab, 0x91, 0x29, 0x4a, 0x64, 0x0a, 0x7a, 0x0d, 0x52, - 0x5e, 0xf4, 0xba, 0x3e, 0x68, 0xbd, 0x09, 0xea, 0xb7, 0x0a, 0xcc, 0x44, 0x02, 0xd7, 0x4b, 0x5d, - 0x6e, 0x03, 0x12, 0x40, 0xf5, 0x36, 0xfa, 0x43, 0x54, 0x91, 0x27, 0x9e, 0x37, 0x88, 0xfa, 0xaa, - 0x4d, 0x1a, 0x11, 0x09, 0x55, 0x7f, 0x51, 0x60, 0x92, 0xeb, 0xb9, 0xab, 0x91, 0x93, 0x9b, 0xda, - 0x0f, 0x15, 0x40, 0x41, 0x3f, 0x7a, 0x89, 0xf4, 0xcb, 0xe2, 0x6e, 0x15, 0x9e, 0x64, 0x57, 0xce, - 0x4b, 0xe7, 0x04, 0x16, 0x13, 0xda, 0xea, 0x9f, 0x0a, 0x64, 0x4a, 0x16, 0x25, 0x0e, 0x1b, 0xfc, - 0x7e, 0x04, 0xbd, 0x04, 0xa3, 0x8e, 0xbd, 0x5f, 0xd1, 0x31, 0xc3, 0xde, 0xb9, 0x70, 0x5a, 0x0a, - 0x6f, 0xd5, 0xb4, 0xab, 0xda, 0x29, 0xc7, 0xde, 0x2f, 0x62, 0x86, 0xd1, 0x19, 0x18, 0xab, 0x63, - 0x5a, 0xaf, 0xbc, 0x4f, 0x0e, 0x68, 0x3e, 0x35, 0x9f, 0x58, 0xcc, 0x68, 0xa3, 0xae, 0xe0, 0x2e, - 0x39, 0xa0, 0xea, 0xc7, 0x0a, 0x64, 0x0f, 0xfd, 0xef, 0x25, 0xfc, 0xe7, 0x61, 0xdc, 0xb1, 0xf7, - 0x4b, 0xc5, 0x4a, 0x95, 0xec, 0x1a, 0x96, 0x77, 0x23, 0x00, 0x17, 0xad, 0xba, 0x12, 0x17, 0x85, - 0x50, 0x20, 0x96, 0xee, 0xdd, 0x06, 0xa3, 0x5c, 0xb0, 0x6e, 0xe9, 0xea, 0x1e, 0xe4, 0xb6, 0x4c, - 0x5c, 0x23, 0x75, 0xdb, 0xd4, 0x89, 0xc3, 0x77, 0x25, 0xca, 0x41, 0x82, 0xe1, 0x5d, 0x6f, 0x73, - 0xbb, 0x9f, 0xe8, 0x55, 0x48, 0xb2, 0x83, 0xe6, 0x61, 0x86, 0xff, 0x27, 0xdd, 0x3e, 0x01, 0x33, - 0xdb, 0x07, 0x4d, 0xa2, 0xf1, 0x19, 0x68, 0x16, 0x52, 0x9c, 0x4c, 0x12, 0x0d, 0x41, 0x5a, 0xf3, - 0x46, 0xea, 0xe3, 0xd0, 0xba, 0x1b, 0x8e, 0xdd, 0x6a, 0xa2, 0x12, 0xa4, 0x9b, 0x6d, 0x99, 0x1b, - 0x84, 0xf8, 0xcd, 0x1a, 0x05, 0xad, 0x85, 0xa6, 0xaa, 0xbf, 0x29, 0x90, 0x29, 0x13, 0xec, 0xd4, - 0xea, 0x27, 0xa1, 0x47, 0x77, 0x23, 0xae, 0x53, 0xd3, 0xdb, 0xa6, 0xee, 0x27, 0xba, 0x0a, 0x93, - 0x01, 0x87, 0x2a, 0xbb, 0x6e, 0x80, 0xf2, 0x29, 0x4e, 0xb8, 0xe6, 0x9a, 0x91, 0xc0, 0xa9, 0x77, - 0x21, 0x79, 0xc7, 0x60, 0xdc, 0x8c, 0x7b, 0x09, 0x2b, 0xfc, 0x12, 0x76, 0x3f, 0xd1, 0xe9, 0x40, - 0xdd, 0x0e, 0xf3, 0x04, 0xf8, 0xc5, 0xc9, 0x79, 0x5c, 0xdb, 0xf1, 0x32, 0x33, 0xac, 0x79, 0x23, - 0xf5, 0xad, 0x76, 0xe4, 0x68, 0xcb, 0x64, 0xf4, 0xf9, 0xaa, 0x12, 0x41, 0xb2, 0x6e, 0x78, 0xfd, - 0x76, 0x5a, 0xe3, 0xdf, 0xea, 0x47, 0x0a, 0xa4, 0x6f, 0x9b, 0x2d, 0xda, 0xcf, 0x9c, 0x5c, 0xb9, - 0x09, 0x13, 0x91, 0x4a, 0x45, 0xa3, 0x90, 0xdc, 0x7c, 0xb0, 0xb9, 0x9e, 0x1b, 0x42, 0x93, 0x90, - 0x79, 0xb8, 0xbe, 0xb6, 0xfd, 0x40, 0xab, 0xac, 0x96, 0x36, 0x6f, 0x69, 0x3b, 0x39, 0x1d, 0xe5, - 0x20, 0xed, 0x89, 0x6e, 0xdf, 0x7b, 0x70, 0x6b, 0x3b, 0x47, 0x56, 0xfe, 0xc8, 0x41, 0xe6, 0x3e, - 0x47, 0x5a, 0x26, 0xce, 0x9e, 0x51, 0x23, 0xa8, 0x02, 0xb9, 0x28, 0x41, 0x8f, 0xae, 0x49, 0xcb, - 0x36, 0x86, 0xc7, 0x2f, 0x1c, 0x17, 0x53, 0x75, 0x08, 0x3d, 0x82, 0x6c, 0x98, 0x5a, 0x47, 0x57, - 0xa4, 0xe6, 0xa5, 0xfc, 0x7b, 0x27, 0xe3, 0x15, 0xc8, 0x84, 0xa8, 0x72, 0x74, 0x59, 0x6a, 0x5b, - 0x46, 0xa7, 0x17, 0x2e, 0x48, 0x55, 0x83, 0x6c, 0xb7, 0x40, 0x1f, 0x66, 0x48, 0x63, 0xd0, 0x4b, - 0x69, 0xd4, 0x4e, 0xe8, 0x31, 0x4c, 0x1e, 0x21, 0x3c, 0xd1, 0x75, 0xa9, 0xfd, 0x38, 0x62, 0xb4, - 0xd3, 0x12, 0xfb, 0x80, 0x8e, 0x92, 0xce, 0x68, 0x49, 0x9e, 0x81, 0x38, 0xbe, 0xbc, 0xb0, 0xdc, - 0xb5, 0xbe, 0x1f, 0xb8, 0x3d, 0x98, 0xdb, 0x20, 0x2c, 0xcc, 0x57, 0x1a, 0x94, 0x19, 0x35, 0x8a, - 0xae, 0xca, 0xcb, 0x4b, 0xca, 0xb4, 0x16, 0xae, 0x75, 0xa7, 0xec, 0xaf, 0x6b, 0xc2, 0x44, 0x98, - 0x37, 0xa4, 0x31, 0x19, 0x93, 0x32, 0x98, 0x85, 0xab, 0x5d, 0xe9, 0xfa, 0xab, 0x3d, 0x86, 0x89, - 0x08, 0x55, 0x18, 0xe7, 0x9d, 0x94, 0x50, 0xec, 0x94, 0xbd, 0x1d, 0xc8, 0x84, 0x38, 0xbd, 0x98, - 0xf2, 0x96, 0xf1, 0x7e, 0x9d, 0x4c, 0x3f, 0x86, 0x74, 0x90, 0x7a, 0x43, 0x8b, 0x71, 0x1b, 0xe7, - 0x88, 0xe1, 0xae, 0xf6, 0xcd, 0x8e, 0xd8, 0x37, 0xfe, 0x64, 0x1a, 0xb3, 0x80, 0x84, 0x4b, 0xeb, - 0x84, 0xfc, 0x1d, 0x7f, 0xd7, 0x04, 0xac, 0x5f, 0x3b, 0x6e, 0xd7, 0xfc, 0xdd, 0xd8, 0x50, 0x98, - 0xdd, 0x20, 0x2c, 0xc4, 0xe1, 0x78, 0xa5, 0x2b, 0x2f, 0x25, 0x29, 0x45, 0x15, 0x53, 0x4a, 0x72, - 0x66, 0x48, 0x1d, 0x42, 0x06, 0x64, 0x43, 0xdc, 0x07, 0x8d, 0x49, 0xb6, 0x8c, 0xd1, 0x29, 0x5c, - 0xe9, 0x46, 0xd5, 0x5f, 0xea, 0x4d, 0x18, 0x0f, 0x3c, 0x6b, 0xd1, 0xc2, 0x31, 0x15, 0x1b, 0x7c, - 0x06, 0x76, 0x0a, 0x5b, 0x1d, 0x32, 0xa1, 0x47, 0x50, 0x5c, 0xb5, 0x4a, 0x5e, 0x98, 0x31, 0x0e, - 0x48, 0xdf, 0x54, 0xea, 0x10, 0xaa, 0x42, 0x66, 0x83, 0xb0, 0x76, 0x5f, 0x8e, 0x2e, 0xc5, 0xbf, - 0x8a, 0x82, 0xaf, 0x9d, 0xc2, 0x42, 0x47, 0x3d, 0x7f, 0x8d, 0x32, 0xa4, 0x44, 0x8b, 0x8b, 0xd4, - 0x98, 0x49, 0x81, 0xfe, 0xbf, 0xf0, 0xdf, 0x63, 0x75, 0x7c, 0xa3, 0x1a, 0xa4, 0x44, 0x83, 0x12, - 0x63, 0x34, 0xd4, 0xf7, 0x15, 0x8e, 0xd7, 0xe1, 0x1d, 0x8e, 0x3a, 0x84, 0x4a, 0x30, 0xc2, 0x3b, - 0x13, 0x24, 0xdf, 0x98, 0xc1, 0xae, 0xa5, 0x53, 0x06, 0xdf, 0x80, 0xf4, 0x06, 0x61, 0x45, 0x7d, - 0xad, 0x8e, 0x2d, 0x8b, 0x98, 0xa8, 0x20, 0x55, 0x5f, 0x6f, 0x34, 0xd9, 0x41, 0x8c, 0xc7, 0xe1, - 0x7f, 0x74, 0xd5, 0xa1, 0xd5, 0xd5, 0xb7, 0x6f, 0xee, 0x1a, 0xac, 0xde, 0xaa, 0xba, 0xb3, 0x97, - 0x9f, 0x1a, 0xa6, 0x69, 0x3c, 0x65, 0xa4, 0x56, 0x5f, 0x16, 0x13, 0xae, 0xeb, 0x06, 0x65, 0x8e, - 0x51, 0x6d, 0x31, 0xa2, 0x2f, 0x1b, 0x16, 0x23, 0x8e, 0x85, 0xcd, 0x65, 0x6e, 0xd2, 0xd3, 0x68, - 0x56, 0xab, 0x29, 0x3e, 0xbe, 0xf1, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7e, 0x56, 0x43, 0xfd, - 0x8d, 0x20, 0x00, 0x00, + // 1591 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x59, 0xdd, 0x6e, 0x1b, 0x45, + 0x14, 0xce, 0xc6, 0x8e, 0x9b, 0x9c, 0xd8, 0x8e, 0x33, 0xf9, 0x73, 0xdd, 0x96, 0xa6, 0x03, 0x25, + 0xe9, 0x5f, 0x82, 0x52, 0x10, 0x70, 0x81, 0xd4, 0x26, 0x4e, 0x53, 0xab, 0x6d, 0x1a, 0xd6, 0xa1, + 0x22, 0x54, 0x95, 0x59, 0x7b, 0x87, 0x78, 0x61, 0xbd, 0x6b, 0x76, 0xc6, 0x49, 0xd3, 0x2b, 0x04, + 0x12, 0x48, 0x80, 0x80, 0x5b, 0x6e, 0x91, 0xb8, 0x45, 0x50, 0x24, 0xde, 0x00, 0x89, 0x77, 0x41, + 0x88, 0x27, 0x40, 0x42, 0x3b, 0xb3, 0x59, 0xef, 0x6e, 0x66, 0x63, 0x53, 0x03, 0x76, 0xee, 0x76, + 0x8e, 0xcf, 0x9c, 0xf9, 0xce, 0xcf, 0xcc, 0x9c, 0xf9, 0x0c, 0xe9, 0x86, 0x61, 0xee, 0xb5, 0xe8, + 0x52, 0xd3, 0xb1, 0x99, 0x8d, 0xa6, 0x82, 0xa3, 0x25, 0x31, 0x28, 0xa4, 0x6b, 0x76, 0xa3, 0x61, + 0x5b, 0x42, 0x58, 0x48, 0xd3, 0x5a, 0x9d, 0x34, 0x34, 0x31, 0xc2, 0xdf, 0x2b, 0x30, 0xb7, 0xe6, + 0x10, 0x8d, 0x91, 0x35, 0xdb, 0x34, 0x49, 0x8d, 0x19, 0xb6, 0xa5, 0x92, 0x0f, 0x5b, 0x84, 0x32, + 0xf4, 0x12, 0x24, 0xab, 0x1a, 0x25, 0x79, 0x65, 0x5e, 0x59, 0x1c, 0x5f, 0x39, 0xbb, 0x14, 0xb2, + 0xed, 0xd9, 0xbc, 0x47, 0x77, 0x57, 0x35, 0x4a, 0x54, 0xae, 0x89, 0xe6, 0xe0, 0x94, 0x5e, 0xad, + 0x58, 0x5a, 0x83, 0xe4, 0x87, 0xe7, 0x95, 0xc5, 0x31, 0x35, 0xa5, 0x57, 0x37, 0xb5, 0x06, 0x41, + 0x0b, 0x30, 0x51, 0xf3, 0xed, 0x0b, 0x85, 0x04, 0x57, 0xc8, 0xb6, 0xc5, 0x5c, 0x71, 0x16, 0x52, + 0x02, 0x5f, 0x3e, 0x39, 0xaf, 0x2c, 0xa6, 0x55, 0x6f, 0x84, 0xbf, 0x50, 0x60, 0xa6, 0xe8, 0xd8, + 0xcd, 0x81, 0x40, 0x89, 0x3f, 0x57, 0x60, 0xfa, 0xb6, 0x46, 0x07, 0x03, 0xcc, 0x0e, 0xa4, 0x57, + 0x6d, 0xdb, 0x54, 0x09, 0x6d, 0xda, 0x16, 0x25, 0xe8, 0x3a, 0xa4, 0x28, 0xd3, 0x58, 0x8b, 0x7a, + 0x28, 0xce, 0x48, 0x51, 0x94, 0xb9, 0x8a, 0xea, 0xa9, 0xa2, 0x69, 0x18, 0xd9, 0xd3, 0xcc, 0x96, + 0x00, 0x31, 0xaa, 0x8a, 0x01, 0x7e, 0x08, 0xd9, 0x32, 0x73, 0x0c, 0x6b, 0xf7, 0x5f, 0x34, 0x3e, + 0x76, 0x68, 0xfc, 0x6b, 0x05, 0x4e, 0x17, 0x09, 0xad, 0x39, 0x46, 0x75, 0x30, 0x8a, 0x0f, 0x7f, + 0xa3, 0x40, 0x41, 0x86, 0xa8, 0x17, 0xdf, 0xdf, 0xf0, 0x0b, 0x7a, 0x98, 0x4f, 0xba, 0x18, 0x9e, + 0xe4, 0x6d, 0xc6, 0xf6, 0x6a, 0x65, 0x2e, 0x08, 0xd5, 0xfd, 0x5d, 0x5b, 0xd3, 0x07, 0x23, 0x40, + 0x5f, 0x29, 0x90, 0x57, 0x89, 0x49, 0x34, 0x3a, 0x20, 0x19, 0xfb, 0x52, 0x81, 0xd9, 0x40, 0xec, + 0x98, 0xc6, 0x68, 0x3f, 0xe1, 0x7c, 0xe6, 0x9e, 0xa6, 0x51, 0x38, 0xbd, 0x54, 0xcf, 0xab, 0x30, + 0xe2, 0x7e, 0xd1, 0xfc, 0xf0, 0x7c, 0x62, 0x71, 0x7c, 0xe5, 0x82, 0x74, 0xce, 0x1d, 0x72, 0xf0, + 0xc0, 0xdd, 0x51, 0x5b, 0x9a, 0xe1, 0xa8, 0x42, 0x1f, 0x57, 0x61, 0xa6, 0x5c, 0xb7, 0xf7, 0xff, + 0xcb, 0x2c, 0xe1, 0xc7, 0x30, 0x1b, 0x5d, 0xa3, 0x17, 0x5f, 0x2f, 0x41, 0x2e, 0x12, 0x65, 0xe1, + 0xf6, 0x98, 0x3a, 0x11, 0x0e, 0x33, 0xc5, 0x3f, 0xbb, 0x69, 0xe7, 0xb7, 0xd6, 0x96, 0xe6, 0x30, + 0xa3, 0xdf, 0x97, 0xd6, 0x45, 0xc8, 0x36, 0x0f, 0x71, 0x08, 0xbd, 0x24, 0xd7, 0xcb, 0xf8, 0x52, + 0x1e, 0xaf, 0x9f, 0x14, 0x98, 0x76, 0xef, 0xb0, 0x93, 0x84, 0xf9, 0x47, 0x05, 0xa6, 0x6e, 0x6b, + 0xf4, 0x24, 0x41, 0x7e, 0xaa, 0xc0, 0x94, 0x7b, 0x64, 0x0a, 0xcc, 0xfd, 0x85, 0xbc, 0x00, 0x13, + 0x61, 0xc8, 0x34, 0x9f, 0xe4, 0x25, 0x9d, 0x0d, 0x61, 0xa6, 0xf8, 0x17, 0x05, 0xe6, 0xbc, 0x93, + 0x75, 0x20, 0x62, 0xdd, 0x35, 0xf0, 0xa7, 0x0a, 0xcc, 0xf8, 0x88, 0xfb, 0x7d, 0x00, 0x77, 0x5b, + 0x22, 0x9f, 0x2a, 0x30, 0x1b, 0x05, 0xdd, 0x97, 0x63, 0xfa, 0x07, 0x05, 0xa6, 0xdd, 0x33, 0x74, + 0x20, 0x72, 0x8e, 0x21, 0xdd, 0x96, 0x94, 0x8a, 0x3c, 0x74, 0x09, 0x35, 0x24, 0xc3, 0xdf, 0x2a, + 0xe2, 0x62, 0x09, 0x00, 0xee, 0x25, 0x70, 0x92, 0x32, 0x1b, 0x96, 0x95, 0x99, 0x8b, 0xcd, 0x97, + 0x94, 0x8a, 0x34, 0x9f, 0x98, 0x4f, 0xb8, 0xd8, 0x82, 0x32, 0xde, 0x0c, 0x1c, 0xb6, 0x6f, 0x65, + 0xb2, 0xdb, 0x20, 0x16, 0x7b, 0xf6, 0x70, 0x46, 0x83, 0x31, 0x7c, 0x34, 0x18, 0xe8, 0x2c, 0x8c, + 0x51, 0xb1, 0x4e, 0xa9, 0xc8, 0x63, 0x9a, 0x50, 0xdb, 0x02, 0x5c, 0x87, 0xb9, 0x23, 0x68, 0x7a, + 0x89, 0x55, 0x1e, 0x4e, 0x19, 0x96, 0x4e, 0x1e, 0xfb, 0x60, 0x0e, 0x87, 0xae, 0xe3, 0xc8, 0x4d, + 0xca, 0xff, 0xe2, 0xf4, 0x3c, 0x8c, 0x07, 0xa2, 0xee, 0xb9, 0x1d, 0x14, 0xe1, 0xf7, 0x61, 0x2a, + 0x84, 0xa6, 0x17, 0xa7, 0x9f, 0x03, 0xf0, 0x23, 0x2a, 0x6a, 0x23, 0xa1, 0x06, 0x24, 0xf8, 0x0f, + 0x05, 0x90, 0xe8, 0x04, 0x4a, 0x6e, 0x30, 0xfa, 0xb9, 0x7d, 0xce, 0x01, 0xbc, 0x67, 0x10, 0x53, + 0x0f, 0x9e, 0x3b, 0x63, 0x5c, 0xc2, 0x7f, 0x2e, 0x42, 0x9a, 0x3c, 0x66, 0x8e, 0x56, 0x69, 0x6a, + 0x8e, 0xd6, 0xa0, 0xf9, 0x91, 0x6e, 0x8f, 0x8a, 0x71, 0x3e, 0x6d, 0x8b, 0xcf, 0xc2, 0xbf, 0xb9, + 0x3d, 0x84, 0x57, 0x55, 0x83, 0xee, 0xf1, 0x39, 0x00, 0x5e, 0xa1, 0xe2, 0xe7, 0x11, 0xf1, 0x33, + 0x97, 0xf0, 0x43, 0xd8, 0x84, 0x1c, 0xf7, 0x40, 0xb8, 0xd3, 0x74, 0xad, 0x46, 0xa6, 0x28, 0x91, + 0x29, 0xe8, 0x75, 0x48, 0x79, 0xd1, 0xeb, 0xfa, 0xa0, 0xf5, 0x26, 0xe0, 0xef, 0x14, 0x98, 0x89, + 0x04, 0xae, 0x97, 0xba, 0xdc, 0x06, 0x24, 0x80, 0xea, 0x6d, 0xf4, 0x87, 0xa8, 0x22, 0x4f, 0x3c, + 0x6f, 0x10, 0xf5, 0x55, 0x9d, 0x34, 0x22, 0x12, 0x8a, 0x7f, 0x55, 0x60, 0x92, 0xeb, 0xb9, 0xab, + 0x91, 0x93, 0x9b, 0xda, 0x8f, 0x14, 0x40, 0x41, 0x3f, 0x7a, 0x89, 0xf4, 0x2b, 0xe2, 0x6e, 0x15, + 0x9e, 0x64, 0x57, 0xce, 0x4b, 0xe7, 0x04, 0x16, 0x13, 0xda, 0xf8, 0x2f, 0x05, 0x32, 0x25, 0x8b, + 0x12, 0x87, 0x0d, 0x7e, 0x3f, 0x82, 0x5e, 0x86, 0x51, 0xc7, 0xde, 0xaf, 0xe8, 0x1a, 0xd3, 0xbc, + 0x73, 0xe1, 0xb4, 0x14, 0xde, 0xaa, 0x69, 0x57, 0xd5, 0x53, 0x8e, 0xbd, 0x5f, 0xd4, 0x98, 0x86, + 0xce, 0xc0, 0x58, 0x5d, 0xa3, 0xf5, 0xca, 0x07, 0xe4, 0x80, 0xe6, 0x53, 0xf3, 0x89, 0xc5, 0x8c, + 0x3a, 0xea, 0x0a, 0xee, 0x90, 0x03, 0x8a, 0x3f, 0x51, 0x20, 0x7b, 0xe8, 0x7f, 0x2f, 0xe1, 0x3f, + 0x0f, 0xe3, 0x8e, 0xbd, 0x5f, 0x2a, 0x56, 0xaa, 0x64, 0xd7, 0xb0, 0xbc, 0x1b, 0x01, 0xb8, 0x68, + 0xd5, 0x95, 0xb8, 0x28, 0x84, 0x02, 0xb1, 0x74, 0xef, 0x36, 0x18, 0xe5, 0x82, 0x75, 0x4b, 0xc7, + 0x7b, 0x90, 0xdb, 0x32, 0xb5, 0x1a, 0xa9, 0xdb, 0xa6, 0x4e, 0x1c, 0xbe, 0x2b, 0x51, 0x0e, 0x12, + 0x4c, 0xdb, 0xf5, 0x36, 0xb7, 0xfb, 0x89, 0x5e, 0x83, 0x24, 0x3b, 0x68, 0x1e, 0x66, 0xf8, 0x05, + 0xe9, 0xf6, 0x09, 0x98, 0xd9, 0x3e, 0x68, 0x12, 0x95, 0xcf, 0x40, 0xb3, 0x90, 0xe2, 0x64, 0x92, + 0x68, 0x08, 0xd2, 0xaa, 0x37, 0xc2, 0x8f, 0x42, 0xeb, 0x6e, 0x38, 0x76, 0xab, 0x89, 0x4a, 0x90, + 0x6e, 0xb6, 0x65, 0x6e, 0x10, 0xe2, 0x37, 0x6b, 0x14, 0xb4, 0x1a, 0x9a, 0x8a, 0x7f, 0x57, 0x20, + 0x53, 0x26, 0x9a, 0x53, 0xab, 0x9f, 0x84, 0x1e, 0xdd, 0x8d, 0xb8, 0x4e, 0x4d, 0x6f, 0x9b, 0xba, + 0x9f, 0xe8, 0x0a, 0x4c, 0x06, 0x1c, 0xaa, 0xec, 0xba, 0x01, 0xca, 0xa7, 0x38, 0xe3, 0x9a, 0x6b, + 0x46, 0x02, 0x87, 0xef, 0x40, 0xf2, 0xb6, 0xc1, 0xb8, 0x19, 0xf7, 0x12, 0x56, 0xf8, 0x25, 0xec, + 0x7e, 0xa2, 0xd3, 0x81, 0xba, 0x1d, 0xe6, 0x09, 0xf0, 0x8b, 0x93, 0x13, 0xb9, 0xb6, 0xe3, 0x65, + 0x66, 0x58, 0xf5, 0x46, 0xf8, 0xed, 0x76, 0xe4, 0x68, 0xcb, 0x64, 0xf4, 0xd9, 0xaa, 0x12, 0x41, + 0xb2, 0x6e, 0x78, 0xfd, 0x76, 0x5a, 0xe5, 0xdf, 0xf8, 0x63, 0x05, 0xd2, 0xb7, 0xcc, 0x16, 0xed, + 0x67, 0x4e, 0x2e, 0xdf, 0x80, 0x89, 0x48, 0xa5, 0xa2, 0x51, 0x48, 0x6e, 0xde, 0xdf, 0x5c, 0xcf, + 0x0d, 0xa1, 0x49, 0xc8, 0x3c, 0x58, 0x5f, 0xdb, 0xbe, 0xaf, 0x56, 0x56, 0x4b, 0x9b, 0x37, 0xd5, + 0x9d, 0x9c, 0x8e, 0x72, 0x90, 0xf6, 0x44, 0xb7, 0xee, 0xde, 0xbf, 0xb9, 0x9d, 0x23, 0x2b, 0x7f, + 0xe6, 0x20, 0x73, 0x8f, 0x23, 0x2d, 0x13, 0x67, 0xcf, 0xa8, 0x11, 0x54, 0x81, 0x5c, 0x94, 0xa2, + 0x47, 0x57, 0xa5, 0x65, 0x1b, 0xc3, 0xe4, 0x17, 0x8e, 0x8b, 0x29, 0x1e, 0x42, 0x0f, 0x21, 0x1b, + 0xe6, 0xd6, 0xd1, 0x65, 0xa9, 0x79, 0x29, 0x01, 0xdf, 0xc9, 0x78, 0x05, 0x32, 0x21, 0xaa, 0x1c, + 0x5d, 0x92, 0xda, 0x96, 0xd1, 0xe9, 0x85, 0x0b, 0x52, 0xd5, 0x20, 0xdb, 0x2d, 0xd0, 0x87, 0x19, + 0xd2, 0x18, 0xf4, 0x52, 0x1a, 0xb5, 0x13, 0x7a, 0x0d, 0x26, 0x8f, 0x10, 0x9e, 0xe8, 0x9a, 0xd4, + 0x7e, 0x1c, 0x31, 0xda, 0x69, 0x89, 0x7d, 0x40, 0x47, 0x49, 0x67, 0xb4, 0x24, 0xcf, 0x40, 0x1c, + 0x5f, 0x5e, 0x58, 0xee, 0x5a, 0xdf, 0x0f, 0xdc, 0x1e, 0xcc, 0x6d, 0x10, 0x16, 0xe6, 0x2b, 0x0d, + 0xca, 0x8c, 0x1a, 0x45, 0x57, 0xe4, 0xe5, 0x25, 0x65, 0x5a, 0x0b, 0x57, 0xbb, 0x53, 0xf6, 0xd7, + 0x35, 0x61, 0x22, 0xcc, 0x1b, 0xd2, 0x98, 0x8c, 0x49, 0x19, 0xcc, 0xc2, 0x95, 0xae, 0x74, 0xfd, + 0xd5, 0x1e, 0xc1, 0x44, 0x84, 0x2a, 0x8c, 0xf3, 0x4e, 0x4a, 0x28, 0x76, 0xca, 0xde, 0x0e, 0x64, + 0x42, 0x9c, 0x5e, 0x4c, 0x79, 0xcb, 0x78, 0xbf, 0x4e, 0xa6, 0x1f, 0x41, 0x3a, 0x48, 0xbd, 0xa1, + 0xc5, 0xb8, 0x8d, 0x73, 0xc4, 0x70, 0x57, 0xfb, 0x66, 0x47, 0xec, 0x1b, 0x7f, 0x32, 0x8d, 0x59, + 0x40, 0xc2, 0xa5, 0x75, 0x42, 0xfe, 0xae, 0xbf, 0x6b, 0x02, 0xd6, 0xaf, 0x1e, 0xb7, 0x6b, 0xfe, + 0x69, 0x6c, 0x28, 0xcc, 0x6e, 0x10, 0x16, 0xe2, 0x70, 0xbc, 0xd2, 0x95, 0x97, 0x92, 0x94, 0xa2, + 0x8a, 0x29, 0x25, 0x39, 0x33, 0x84, 0x87, 0x90, 0x01, 0xd9, 0x10, 0xf7, 0x41, 0x63, 0x92, 0x2d, + 0x63, 0x74, 0x0a, 0x97, 0xbb, 0x51, 0xf5, 0x97, 0x7a, 0x0b, 0xc6, 0x03, 0xcf, 0x5a, 0xb4, 0x70, + 0x4c, 0xc5, 0x06, 0x9f, 0x81, 0x9d, 0xc2, 0x56, 0x87, 0x4c, 0xe8, 0x11, 0x14, 0x57, 0xad, 0x92, + 0x17, 0x66, 0x8c, 0x03, 0xd2, 0x37, 0x15, 0x1e, 0x42, 0x55, 0xc8, 0x6c, 0x10, 0xd6, 0xee, 0xcb, + 0xd1, 0x8b, 0xf1, 0xaf, 0xa2, 0xe0, 0x6b, 0xa7, 0xb0, 0xd0, 0x51, 0xcf, 0x5f, 0xa3, 0x0c, 0x29, + 0xd1, 0xe2, 0x22, 0x1c, 0x33, 0x29, 0xd0, 0xff, 0x17, 0x9e, 0x3f, 0x56, 0xc7, 0x37, 0xaa, 0x42, + 0x4a, 0x34, 0x28, 0x31, 0x46, 0x43, 0x7d, 0x5f, 0xe1, 0x78, 0x1d, 0xde, 0xe1, 0xe0, 0x21, 0x54, + 0x82, 0x11, 0xde, 0x99, 0x20, 0xf9, 0xc6, 0x0c, 0x76, 0x2d, 0x9d, 0x32, 0xf8, 0x26, 0xa4, 0x37, + 0x08, 0x2b, 0xea, 0x6b, 0x75, 0xcd, 0xb2, 0x88, 0x89, 0x0a, 0x52, 0xf5, 0xf5, 0x46, 0x93, 0x1d, + 0xc4, 0x78, 0x1c, 0xfe, 0x47, 0x17, 0x0f, 0xad, 0xae, 0xbe, 0x73, 0x63, 0xd7, 0x60, 0xf5, 0x56, + 0xd5, 0x9d, 0xbd, 0xfc, 0xc4, 0x30, 0x4d, 0xe3, 0x09, 0x23, 0xb5, 0xfa, 0xb2, 0x98, 0x70, 0x4d, + 0x37, 0x28, 0x73, 0x8c, 0x6a, 0x8b, 0x11, 0x7d, 0xd9, 0xb0, 0x18, 0x71, 0x2c, 0xcd, 0x5c, 0xe6, + 0x26, 0x3d, 0x8d, 0x66, 0xb5, 0x9a, 0xe2, 0xe3, 0xeb, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0xf7, + 0x29, 0xea, 0x7b, 0x8f, 0x20, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/internal/proto/service.proto b/internal/proto/service.proto deleted file mode 100644 index 60564690adb2d7d0db3b62de9b711c1ea1b0e857..0000000000000000000000000000000000000000 --- a/internal/proto/service.proto +++ /dev/null @@ -1,135 +0,0 @@ -syntax = "proto3"; - -package milvus.proto.service; -option go_package="github.com/zilliztech/milvus-distributed/internal/proto/servicepb"; - -import "common.proto"; -import "service_msg.proto"; -import "schema.proto"; - -service MilvusService { - /** - * @brief This method is used to create collection - * - * @param CollectionSchema, use to provide collection information to be created. - * - * @return Status - */ - rpc CreateCollection(schema.CollectionSchema) returns (common.Status){} - - /** - * @brief This method is used to delete collection. - * - * @param CollectionName, collection name is going to be deleted. - * - * @return Status - */ - rpc DropCollection(CollectionName) returns (common.Status) {} - - /** - * @brief This method is used to test collection existence. - * - * @param CollectionName, collection name is going to be tested. - * - * @return BoolResponse - */ - rpc HasCollection(CollectionName) returns (BoolResponse) {} - - /** - * @brief This method is used to get collection schema. - * - * @param CollectionName, target collection name. - * - * @return CollectionDescription - */ - rpc DescribeCollection(CollectionName) returns (CollectionDescription) {} - - /** - * @brief This method is used to list all collections. - * - * @return CollectionNameList - */ - rpc ShowCollections(common.Empty) returns (StringListResponse) {} - - /** - * @brief This method is used to create partition - * - * @return Status - */ - rpc CreatePartition(PartitionName) returns (common.Status) {} - - /** - * @brief This method is used to drop partition - * - * @return Status - */ - rpc DropPartition(PartitionName) returns (common.Status) {} - - /** - * @brief This method is used to test partition existence. - * - * @return BoolResponse - */ - rpc HasPartition(PartitionName) returns (BoolResponse) {} - - /** - * @brief This method is used to get basic partition infomation. - * - * @return PartitionDescription - */ - rpc DescribePartition(PartitionName) returns (PartitionDescription) {} - - /** - * @brief This method is used to show partition information - * - * @param CollectionName, target collection name. - * - * @return StringListResponse - */ - rpc ShowPartitions(CollectionName) returns (StringListResponse) {} - - /** - * @brief This method is used to add vector array to collection. - * - * @param RowBatch, insert rows. - * - * @return IntegerRangeResponse contains id of the inserted rows. - */ - rpc Insert(RowBatch) returns (IntegerRangeResponse) {} - - /** - * @brief This method is used to query vector in collection. - * - * @param Query. - * - * @return QueryResult - */ - rpc Search(Query) returns (QueryResult) {} - - /** - * @brief This method is used to build index by collection in sync mode. - * - * @param IndexParam, index paramters. - * - * @return Status - */ - rpc CreateIndex(IndexParam) returns (common.Status) {} - - /** - * @brief This method is used to describe index - * - * @param IndexParam, target index. - * - * @return IndexParam - */ - rpc DescribeIndex(DescribeIndexRequest) returns (DescribeIndexResponse) {} - - /** - * @brief This method is used to query index building progress - * - * @param IndexParam, target index. - * - * @return IndexParam - */ - rpc DescribeIndexProgress(DescribeIndexProgressRequest) returns (BoolResponse) {} -} \ No newline at end of file diff --git a/internal/proto/service_msg.proto b/internal/proto/service_msg.proto deleted file mode 100644 index dd8a983b9a952f2be341a385b729ec720bf9f085..0000000000000000000000000000000000000000 --- a/internal/proto/service_msg.proto +++ /dev/null @@ -1,202 +0,0 @@ -syntax = "proto3"; - -package milvus.proto.service; -option go_package="github.com/zilliztech/milvus-distributed/internal/proto/servicepb"; - -import "common.proto"; -import "schema.proto"; - -/** - * @brief Collection name - */ -message CollectionName { - string collection_name = 1; -} - - -/** - * @brief Partition name - */ -message PartitionName { - string collection_name = 1; - string tag = 2; -} - - -/** - * @brief Row batch for Insert call - */ -message RowBatch { - string collection_name = 1; - string partition_tag = 2; - repeated common.Blob row_data = 3; - repeated uint32 hash_keys = 4; -} - -/** -* @brief Placeholder value types -*/ -enum PlaceholderType { - NONE = 0; - VECTOR_BINARY = 100; - VECTOR_FLOAT = 101; -} - - -/** -* @brief Placeholder value in DSL -*/ -message PlaceholderValue { - string tag = 1; - PlaceholderType type = 2; - // values is a 2d-array, every array contains a vector - repeated bytes values = 3; - -} - -message PlaceholderGroup { - repeated PlaceholderValue placeholders = 1; -} - -/** - * @brief Query for Search call - */ -message Query { - string collection_name = 1; - repeated string partition_tags = 2; - string dsl = 3; - // placeholder_group contains the serialized PlaceholderGroup - bytes placeholder_group = 4; -} - - -/** - * @brief String response - */ -message StringResponse { - common.Status status = 1; - string value = 2; -} - - -/** - * @brief Bool response - */ -message BoolResponse { - common.Status status = 1; - bool value = 2; -} - - -/** - * @brief String list response - */ -message StringListResponse { - common.Status status = 1; - repeated string values = 2; -} - - -/** - * @brief Integer list response - */ -message IntegerListResponse { - common.Status status = 1; - repeated int64 values = 2; -} - - -/** - * @brief Range response, [begin, end) - */ -message IntegerRangeResponse { - common.Status status = 1; - int64 begin = 2; - int64 end = 3; -} - - -/** - * @brief Response of DescribeCollection - */ -message CollectionDescription { - common.Status status = 1; - schema.CollectionSchema schema = 2; - repeated common.KeyValuePair statistics = 3; -} - - -/** - * @brief Response of DescribePartition - */ -message PartitionDescription { - common.Status status = 1; - PartitionName name = 2; - repeated common.KeyValuePair statistics = 3; -} - -/** - * @brief Response of GetSysConfig - */ -message SysConfigResponse { - common.Status status = 1; - repeated string keys = 2; - repeated string values = 3; -} - -/** - * @brief Entities hit by query - */ -message Hits { - repeated int64 IDs = 1; - repeated bytes row_data = 2; - repeated float scores = 3; -} - - -/** - * @brief Query result - */ -message QueryResult { - common.Status status = 1; - repeated bytes hits = 2; -} - - -/** - * @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 { - string collection_name = 1; - string field_name = 2; - repeated common.KeyValuePair extra_params = 3; -} - -message DescribeIndexRequest { - string collection_name = 1; - string field_name = 2; -} - -message DescribeIndexProgressRequest { - string collection_name = 1; - string field_name = 2; -} - -message DescribeIndexResponse { - common.Status status = 1; - string collection_name = 2; - string field_name = 3; - repeated common.KeyValuePair extra_params = 4; -} diff --git a/internal/proto/servicepb/service.pb.go b/internal/proto/servicepb/service.pb.go deleted file mode 100644 index b98624a1001ddf79411d7f92c5a20a99aaf7deda..0000000000000000000000000000000000000000 --- a/internal/proto/servicepb/service.pb.go +++ /dev/null @@ -1,807 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: service.proto - -package servicepb - -import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - commonpb "github.com/zilliztech/milvus-distributed/internal/proto/commonpb" - schemapb "github.com/zilliztech/milvus-distributed/internal/proto/schemapb" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - 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.ProtoPackageIsVersion3 // please upgrade the proto package - -func init() { proto.RegisterFile("service.proto", fileDescriptor_a0b84a42fa06f626) } - -var fileDescriptor_a0b84a42fa06f626 = []byte{ - // 479 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xcf, 0x6e, 0xd3, 0x40, - 0x10, 0xc6, 0x73, 0xca, 0x61, 0x1b, 0xb7, 0x74, 0x05, 0x17, 0x57, 0x42, 0x60, 0x40, 0x42, 0x20, - 0x62, 0xa9, 0x3c, 0x01, 0x49, 0x91, 0x1a, 0x04, 0x55, 0xb0, 0x55, 0x44, 0xe1, 0x80, 0xd6, 0xce, - 0x60, 0x2f, 0xb2, 0x77, 0xdd, 0x9d, 0x71, 0xff, 0xbd, 0x01, 0x6f, 0x8d, 0xe2, 0x75, 0xd2, 0x18, - 0x39, 0xc4, 0x96, 0xb8, 0x79, 0x67, 0xbe, 0xf9, 0xed, 0xcc, 0x7e, 0x63, 0xe6, 0x20, 0x98, 0x2b, - 0x19, 0xc3, 0xb8, 0x30, 0x9a, 0x34, 0x7f, 0x98, 0xcb, 0xec, 0xaa, 0x44, 0x7b, 0x1a, 0xd7, 0x39, - 0x77, 0x14, 0xeb, 0x3c, 0xd7, 0xca, 0x46, 0xdd, 0xc3, 0x3a, 0xfc, 0x23, 0xc7, 0xa4, 0x0e, 0x8d, - 0x30, 0x4e, 0x21, 0x17, 0xf6, 0x74, 0xfc, 0x7b, 0x8f, 0x39, 0x9f, 0x2a, 0x4e, 0x68, 0x95, 0xfc, - 0x2b, 0x7b, 0x30, 0x35, 0x20, 0x08, 0xa6, 0x3a, 0xcb, 0x20, 0x26, 0xa9, 0x15, 0x7f, 0x31, 0x6e, - 0xde, 0x65, 0x09, 0xf7, 0x82, 0xb0, 0x0a, 0xb8, 0x47, 0x4d, 0x59, 0xdd, 0x49, 0x48, 0x82, 0x4a, - 0xf4, 0x06, 0xfc, 0x9c, 0xed, 0x9f, 0x18, 0x5d, 0x6c, 0x70, 0x9f, 0x8f, 0xdb, 0x66, 0xd8, 0x00, - 0x9f, 0x89, 0x1c, 0x76, 0x61, 0xbf, 0x33, 0xe7, 0x54, 0x60, 0x6f, 0xaa, 0xd7, 0xae, 0x9a, 0x68, - 0x9d, 0x05, 0x80, 0x85, 0x56, 0x08, 0xde, 0x80, 0x4b, 0xc6, 0x4f, 0x00, 0x63, 0x23, 0x23, 0xe8, - 0x7d, 0xc3, 0xeb, 0x5d, 0x2a, 0x4b, 0x2e, 0x96, 0x9f, 0xde, 0x80, 0x5f, 0xb0, 0x83, 0x30, 0xd5, - 0xd7, 0xf7, 0x69, 0xe4, 0x6e, 0xeb, 0xe4, 0xef, 0xf3, 0x82, 0x6e, 0xdd, 0x97, 0xed, 0xf4, 0x90, - 0x8c, 0x54, 0xc9, 0x47, 0x89, 0xb4, 0x31, 0xc5, 0x39, 0x3b, 0xb0, 0x9e, 0xce, 0x85, 0x21, 0x59, - 0x8d, 0xf0, 0xac, 0xbd, 0x7c, 0x2d, 0xe8, 0xf2, 0xf2, 0x21, 0x73, 0x96, 0x86, 0xfe, 0x5f, 0xe8, - 0x05, 0x1b, 0x9d, 0x0a, 0xec, 0xc9, 0xec, 0x66, 0xe6, 0x4f, 0x76, 0xb8, 0x32, 0xb3, 0x27, 0xff, - 0xd5, 0x0e, 0x51, 0xd3, 0xc9, 0x88, 0xed, 0x2f, 0x9d, 0x5c, 0x67, 0xb1, 0xe3, 0xc2, 0xf4, 0xb1, - 0xf4, 0x0b, 0x1b, 0xce, 0x14, 0x82, 0x21, 0xfe, 0xb8, 0xbd, 0x2a, 0xd0, 0xd7, 0x13, 0x41, 0x71, - 0xba, 0xad, 0xf7, 0x99, 0x22, 0x48, 0xc0, 0x04, 0x42, 0x25, 0xb0, 0xc1, 0xfd, 0xc0, 0x86, 0x21, - 0x08, 0x13, 0xa7, 0xfc, 0xa8, 0xbd, 0xee, 0x73, 0x09, 0xe6, 0xd6, 0x7d, 0xfa, 0x8f, 0x64, 0x00, - 0x58, 0x66, 0xe4, 0x0d, 0xf8, 0x19, 0xdb, 0xb3, 0x6b, 0x37, 0x53, 0x0b, 0xb8, 0xe1, 0x4f, 0xb6, - 0x35, 0xb2, 0x80, 0x9b, 0xb9, 0x30, 0x22, 0xdf, 0xb5, 0x1a, 0xbf, 0x98, 0xb3, 0xf2, 0xcf, 0x12, - 0xb7, 0x8c, 0xd6, 0x10, 0x05, 0x70, 0x59, 0x02, 0xd2, 0xb6, 0xbf, 0xf1, 0x2f, 0xed, 0xfa, 0x1d, - 0x2e, 0xd9, 0xa3, 0x46, 0x6a, 0x6e, 0x74, 0x62, 0x00, 0x91, 0x1f, 0x77, 0xe0, 0xac, 0xc4, 0xab, - 0xbb, 0x3b, 0xad, 0xe7, 0x64, 0xfa, 0xed, 0x5d, 0x22, 0x29, 0x2d, 0xa3, 0xe5, 0xe0, 0xfe, 0x9d, - 0xcc, 0x32, 0x79, 0x47, 0x10, 0xa7, 0xbe, 0x2d, 0x7e, 0xb3, 0x90, 0x48, 0x46, 0x46, 0x25, 0xc1, - 0xc2, 0x97, 0x8a, 0xc0, 0x28, 0x91, 0xf9, 0x15, 0xd1, 0xaf, 0x89, 0x45, 0x14, 0x0d, 0xab, 0xc0, - 0xdb, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x71, 0xd7, 0x7f, 0xec, 0x2d, 0x06, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// MilvusServiceClient is the client API for MilvusService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type MilvusServiceClient interface { - //* - // @brief This method is used to create collection - // - // @param CollectionSchema, use to provide collection information to be created. - // - // @return Status - CreateCollection(ctx context.Context, in *schemapb.CollectionSchema, opts ...grpc.CallOption) (*commonpb.Status, error) - //* - // @brief This method is used to delete collection. - // - // @param CollectionName, collection name is going to be deleted. - // - // @return Status - DropCollection(ctx context.Context, in *CollectionName, opts ...grpc.CallOption) (*commonpb.Status, error) - //* - // @brief This method is used to test collection existence. - // - // @param CollectionName, collection name is going to be tested. - // - // @return BoolResponse - HasCollection(ctx context.Context, in *CollectionName, opts ...grpc.CallOption) (*BoolResponse, error) - //* - // @brief This method is used to get collection schema. - // - // @param CollectionName, target collection name. - // - // @return CollectionDescription - DescribeCollection(ctx context.Context, in *CollectionName, opts ...grpc.CallOption) (*CollectionDescription, error) - //* - // @brief This method is used to list all collections. - // - // @return CollectionNameList - ShowCollections(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*StringListResponse, error) - //* - // @brief This method is used to create partition - // - // @return Status - CreatePartition(ctx context.Context, in *PartitionName, opts ...grpc.CallOption) (*commonpb.Status, error) - //* - // @brief This method is used to drop partition - // - // @return Status - DropPartition(ctx context.Context, in *PartitionName, opts ...grpc.CallOption) (*commonpb.Status, error) - //* - // @brief This method is used to test partition existence. - // - // @return BoolResponse - HasPartition(ctx context.Context, in *PartitionName, opts ...grpc.CallOption) (*BoolResponse, error) - //* - // @brief This method is used to get basic partition infomation. - // - // @return PartitionDescription - DescribePartition(ctx context.Context, in *PartitionName, opts ...grpc.CallOption) (*PartitionDescription, error) - //* - // @brief This method is used to show partition information - // - // @param CollectionName, target collection name. - // - // @return StringListResponse - ShowPartitions(ctx context.Context, in *CollectionName, opts ...grpc.CallOption) (*StringListResponse, error) - //* - // @brief This method is used to add vector array to collection. - // - // @param RowBatch, insert rows. - // - // @return IntegerRangeResponse contains id of the inserted rows. - Insert(ctx context.Context, in *RowBatch, opts ...grpc.CallOption) (*IntegerRangeResponse, error) - //* - // @brief This method is used to query vector in collection. - // - // @param Query. - // - // @return QueryResult - Search(ctx context.Context, in *Query, opts ...grpc.CallOption) (*QueryResult, error) - //* - // @brief This method is used to build index by collection in sync mode. - // - // @param IndexParam, index paramters. - // - // @return Status - CreateIndex(ctx context.Context, in *IndexParam, opts ...grpc.CallOption) (*commonpb.Status, error) - //* - // @brief This method is used to describe index - // - // @param IndexParam, target index. - // - // @return IndexParam - DescribeIndex(ctx context.Context, in *DescribeIndexRequest, opts ...grpc.CallOption) (*DescribeIndexResponse, error) - //* - // @brief This method is used to query index building progress - // - // @param IndexParam, target index. - // - // @return IndexParam - DescribeIndexProgress(ctx context.Context, in *DescribeIndexProgressRequest, opts ...grpc.CallOption) (*BoolResponse, error) -} - -type milvusServiceClient struct { - cc *grpc.ClientConn -} - -func NewMilvusServiceClient(cc *grpc.ClientConn) MilvusServiceClient { - return &milvusServiceClient{cc} -} - -func (c *milvusServiceClient) CreateCollection(ctx context.Context, in *schemapb.CollectionSchema, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.service.MilvusService/CreateCollection", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) DropCollection(ctx context.Context, in *CollectionName, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.service.MilvusService/DropCollection", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) HasCollection(ctx context.Context, in *CollectionName, opts ...grpc.CallOption) (*BoolResponse, error) { - out := new(BoolResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.service.MilvusService/HasCollection", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) DescribeCollection(ctx context.Context, in *CollectionName, opts ...grpc.CallOption) (*CollectionDescription, error) { - out := new(CollectionDescription) - err := c.cc.Invoke(ctx, "/milvus.proto.service.MilvusService/DescribeCollection", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) ShowCollections(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*StringListResponse, error) { - out := new(StringListResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.service.MilvusService/ShowCollections", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) CreatePartition(ctx context.Context, in *PartitionName, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.service.MilvusService/CreatePartition", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) DropPartition(ctx context.Context, in *PartitionName, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.service.MilvusService/DropPartition", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) HasPartition(ctx context.Context, in *PartitionName, opts ...grpc.CallOption) (*BoolResponse, error) { - out := new(BoolResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.service.MilvusService/HasPartition", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) DescribePartition(ctx context.Context, in *PartitionName, opts ...grpc.CallOption) (*PartitionDescription, error) { - out := new(PartitionDescription) - err := c.cc.Invoke(ctx, "/milvus.proto.service.MilvusService/DescribePartition", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) ShowPartitions(ctx context.Context, in *CollectionName, opts ...grpc.CallOption) (*StringListResponse, error) { - out := new(StringListResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.service.MilvusService/ShowPartitions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) Insert(ctx context.Context, in *RowBatch, opts ...grpc.CallOption) (*IntegerRangeResponse, error) { - out := new(IntegerRangeResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.service.MilvusService/Insert", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) Search(ctx context.Context, in *Query, opts ...grpc.CallOption) (*QueryResult, error) { - out := new(QueryResult) - err := c.cc.Invoke(ctx, "/milvus.proto.service.MilvusService/Search", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) CreateIndex(ctx context.Context, in *IndexParam, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.service.MilvusService/CreateIndex", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) DescribeIndex(ctx context.Context, in *DescribeIndexRequest, opts ...grpc.CallOption) (*DescribeIndexResponse, error) { - out := new(DescribeIndexResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.service.MilvusService/DescribeIndex", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) DescribeIndexProgress(ctx context.Context, in *DescribeIndexProgressRequest, opts ...grpc.CallOption) (*BoolResponse, error) { - out := new(BoolResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.service.MilvusService/DescribeIndexProgress", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// MilvusServiceServer is the server API for MilvusService service. -type MilvusServiceServer interface { - //* - // @brief This method is used to create collection - // - // @param CollectionSchema, use to provide collection information to be created. - // - // @return Status - CreateCollection(context.Context, *schemapb.CollectionSchema) (*commonpb.Status, error) - //* - // @brief This method is used to delete collection. - // - // @param CollectionName, collection name is going to be deleted. - // - // @return Status - DropCollection(context.Context, *CollectionName) (*commonpb.Status, error) - //* - // @brief This method is used to test collection existence. - // - // @param CollectionName, collection name is going to be tested. - // - // @return BoolResponse - HasCollection(context.Context, *CollectionName) (*BoolResponse, error) - //* - // @brief This method is used to get collection schema. - // - // @param CollectionName, target collection name. - // - // @return CollectionDescription - DescribeCollection(context.Context, *CollectionName) (*CollectionDescription, error) - //* - // @brief This method is used to list all collections. - // - // @return CollectionNameList - ShowCollections(context.Context, *commonpb.Empty) (*StringListResponse, error) - //* - // @brief This method is used to create partition - // - // @return Status - CreatePartition(context.Context, *PartitionName) (*commonpb.Status, error) - //* - // @brief This method is used to drop partition - // - // @return Status - DropPartition(context.Context, *PartitionName) (*commonpb.Status, error) - //* - // @brief This method is used to test partition existence. - // - // @return BoolResponse - HasPartition(context.Context, *PartitionName) (*BoolResponse, error) - //* - // @brief This method is used to get basic partition infomation. - // - // @return PartitionDescription - DescribePartition(context.Context, *PartitionName) (*PartitionDescription, error) - //* - // @brief This method is used to show partition information - // - // @param CollectionName, target collection name. - // - // @return StringListResponse - ShowPartitions(context.Context, *CollectionName) (*StringListResponse, error) - //* - // @brief This method is used to add vector array to collection. - // - // @param RowBatch, insert rows. - // - // @return IntegerRangeResponse contains id of the inserted rows. - Insert(context.Context, *RowBatch) (*IntegerRangeResponse, error) - //* - // @brief This method is used to query vector in collection. - // - // @param Query. - // - // @return QueryResult - Search(context.Context, *Query) (*QueryResult, error) - //* - // @brief This method is used to build index by collection in sync mode. - // - // @param IndexParam, index paramters. - // - // @return Status - CreateIndex(context.Context, *IndexParam) (*commonpb.Status, error) - //* - // @brief This method is used to describe index - // - // @param IndexParam, target index. - // - // @return IndexParam - DescribeIndex(context.Context, *DescribeIndexRequest) (*DescribeIndexResponse, error) - //* - // @brief This method is used to query index building progress - // - // @param IndexParam, target index. - // - // @return IndexParam - DescribeIndexProgress(context.Context, *DescribeIndexProgressRequest) (*BoolResponse, error) -} - -// UnimplementedMilvusServiceServer can be embedded to have forward compatible implementations. -type UnimplementedMilvusServiceServer struct { -} - -func (*UnimplementedMilvusServiceServer) CreateCollection(ctx context.Context, req *schemapb.CollectionSchema) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateCollection not implemented") -} -func (*UnimplementedMilvusServiceServer) DropCollection(ctx context.Context, req *CollectionName) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method DropCollection not implemented") -} -func (*UnimplementedMilvusServiceServer) HasCollection(ctx context.Context, req *CollectionName) (*BoolResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method HasCollection not implemented") -} -func (*UnimplementedMilvusServiceServer) DescribeCollection(ctx context.Context, req *CollectionName) (*CollectionDescription, error) { - return nil, status.Errorf(codes.Unimplemented, "method DescribeCollection not implemented") -} -func (*UnimplementedMilvusServiceServer) ShowCollections(ctx context.Context, req *commonpb.Empty) (*StringListResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ShowCollections not implemented") -} -func (*UnimplementedMilvusServiceServer) CreatePartition(ctx context.Context, req *PartitionName) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreatePartition not implemented") -} -func (*UnimplementedMilvusServiceServer) DropPartition(ctx context.Context, req *PartitionName) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method DropPartition not implemented") -} -func (*UnimplementedMilvusServiceServer) HasPartition(ctx context.Context, req *PartitionName) (*BoolResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method HasPartition not implemented") -} -func (*UnimplementedMilvusServiceServer) DescribePartition(ctx context.Context, req *PartitionName) (*PartitionDescription, error) { - return nil, status.Errorf(codes.Unimplemented, "method DescribePartition not implemented") -} -func (*UnimplementedMilvusServiceServer) ShowPartitions(ctx context.Context, req *CollectionName) (*StringListResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ShowPartitions not implemented") -} -func (*UnimplementedMilvusServiceServer) Insert(ctx context.Context, req *RowBatch) (*IntegerRangeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Insert not implemented") -} -func (*UnimplementedMilvusServiceServer) Search(ctx context.Context, req *Query) (*QueryResult, error) { - return nil, status.Errorf(codes.Unimplemented, "method Search not implemented") -} -func (*UnimplementedMilvusServiceServer) CreateIndex(ctx context.Context, req *IndexParam) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateIndex not implemented") -} -func (*UnimplementedMilvusServiceServer) DescribeIndex(ctx context.Context, req *DescribeIndexRequest) (*DescribeIndexResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DescribeIndex not implemented") -} -func (*UnimplementedMilvusServiceServer) DescribeIndexProgress(ctx context.Context, req *DescribeIndexProgressRequest) (*BoolResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DescribeIndexProgress not implemented") -} - -func RegisterMilvusServiceServer(s *grpc.Server, srv MilvusServiceServer) { - s.RegisterService(&_MilvusService_serviceDesc, srv) -} - -func _MilvusService_CreateCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(schemapb.CollectionSchema) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).CreateCollection(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.service.MilvusService/CreateCollection", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).CreateCollection(ctx, req.(*schemapb.CollectionSchema)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_DropCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CollectionName) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).DropCollection(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.service.MilvusService/DropCollection", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).DropCollection(ctx, req.(*CollectionName)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_HasCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CollectionName) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).HasCollection(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.service.MilvusService/HasCollection", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).HasCollection(ctx, req.(*CollectionName)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_DescribeCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CollectionName) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).DescribeCollection(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.service.MilvusService/DescribeCollection", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).DescribeCollection(ctx, req.(*CollectionName)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_ShowCollections_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(commonpb.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).ShowCollections(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.service.MilvusService/ShowCollections", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).ShowCollections(ctx, req.(*commonpb.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_CreatePartition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PartitionName) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).CreatePartition(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.service.MilvusService/CreatePartition", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).CreatePartition(ctx, req.(*PartitionName)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_DropPartition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PartitionName) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).DropPartition(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.service.MilvusService/DropPartition", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).DropPartition(ctx, req.(*PartitionName)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_HasPartition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PartitionName) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).HasPartition(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.service.MilvusService/HasPartition", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).HasPartition(ctx, req.(*PartitionName)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_DescribePartition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PartitionName) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).DescribePartition(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.service.MilvusService/DescribePartition", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).DescribePartition(ctx, req.(*PartitionName)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_ShowPartitions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CollectionName) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).ShowPartitions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.service.MilvusService/ShowPartitions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).ShowPartitions(ctx, req.(*CollectionName)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_Insert_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RowBatch) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).Insert(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.service.MilvusService/Insert", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).Insert(ctx, req.(*RowBatch)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_Search_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Query) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).Search(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.service.MilvusService/Search", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).Search(ctx, req.(*Query)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_CreateIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IndexParam) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).CreateIndex(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.service.MilvusService/CreateIndex", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).CreateIndex(ctx, req.(*IndexParam)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_DescribeIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DescribeIndexRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).DescribeIndex(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.service.MilvusService/DescribeIndex", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).DescribeIndex(ctx, req.(*DescribeIndexRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_DescribeIndexProgress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DescribeIndexProgressRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).DescribeIndexProgress(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.service.MilvusService/DescribeIndexProgress", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).DescribeIndexProgress(ctx, req.(*DescribeIndexProgressRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _MilvusService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "milvus.proto.service.MilvusService", - HandlerType: (*MilvusServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateCollection", - Handler: _MilvusService_CreateCollection_Handler, - }, - { - MethodName: "DropCollection", - Handler: _MilvusService_DropCollection_Handler, - }, - { - MethodName: "HasCollection", - Handler: _MilvusService_HasCollection_Handler, - }, - { - MethodName: "DescribeCollection", - Handler: _MilvusService_DescribeCollection_Handler, - }, - { - MethodName: "ShowCollections", - Handler: _MilvusService_ShowCollections_Handler, - }, - { - MethodName: "CreatePartition", - Handler: _MilvusService_CreatePartition_Handler, - }, - { - MethodName: "DropPartition", - Handler: _MilvusService_DropPartition_Handler, - }, - { - MethodName: "HasPartition", - Handler: _MilvusService_HasPartition_Handler, - }, - { - MethodName: "DescribePartition", - Handler: _MilvusService_DescribePartition_Handler, - }, - { - MethodName: "ShowPartitions", - Handler: _MilvusService_ShowPartitions_Handler, - }, - { - MethodName: "Insert", - Handler: _MilvusService_Insert_Handler, - }, - { - MethodName: "Search", - Handler: _MilvusService_Search_Handler, - }, - { - MethodName: "CreateIndex", - Handler: _MilvusService_CreateIndex_Handler, - }, - { - MethodName: "DescribeIndex", - Handler: _MilvusService_DescribeIndex_Handler, - }, - { - MethodName: "DescribeIndexProgress", - Handler: _MilvusService_DescribeIndexProgress_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "service.proto", -} diff --git a/internal/proto/servicepb/service_msg.pb.go b/internal/proto/servicepb/service_msg.pb.go deleted file mode 100644 index d7deb85d9959212bc24414d0f2371511f214d490..0000000000000000000000000000000000000000 --- a/internal/proto/servicepb/service_msg.pb.go +++ /dev/null @@ -1,1212 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: service_msg.proto - -package servicepb - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - commonpb "github.com/zilliztech/milvus-distributed/internal/proto/commonpb" - schemapb "github.com/zilliztech/milvus-distributed/internal/proto/schemapb" - 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.ProtoPackageIsVersion3 // please upgrade the proto package - -//* -// @brief Placeholder value types -type PlaceholderType int32 - -const ( - PlaceholderType_NONE PlaceholderType = 0 - PlaceholderType_VECTOR_BINARY PlaceholderType = 100 - PlaceholderType_VECTOR_FLOAT PlaceholderType = 101 -) - -var PlaceholderType_name = map[int32]string{ - 0: "NONE", - 100: "VECTOR_BINARY", - 101: "VECTOR_FLOAT", -} - -var PlaceholderType_value = map[string]int32{ - "NONE": 0, - "VECTOR_BINARY": 100, - "VECTOR_FLOAT": 101, -} - -func (x PlaceholderType) String() string { - return proto.EnumName(PlaceholderType_name, int32(x)) -} - -func (PlaceholderType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_b4b40b84dd2f74cb, []int{0} -} - -//* -// @brief Collection name -type CollectionName struct { - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CollectionName) Reset() { *m = CollectionName{} } -func (m *CollectionName) String() string { return proto.CompactTextString(m) } -func (*CollectionName) ProtoMessage() {} -func (*CollectionName) Descriptor() ([]byte, []int) { - return fileDescriptor_b4b40b84dd2f74cb, []int{0} -} - -func (m *CollectionName) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CollectionName.Unmarshal(m, b) -} -func (m *CollectionName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CollectionName.Marshal(b, m, deterministic) -} -func (m *CollectionName) XXX_Merge(src proto.Message) { - xxx_messageInfo_CollectionName.Merge(m, src) -} -func (m *CollectionName) XXX_Size() int { - return xxx_messageInfo_CollectionName.Size(m) -} -func (m *CollectionName) XXX_DiscardUnknown() { - xxx_messageInfo_CollectionName.DiscardUnknown(m) -} - -var xxx_messageInfo_CollectionName proto.InternalMessageInfo - -func (m *CollectionName) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -//* -// @brief Partition name -type PartitionName struct { - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PartitionName) Reset() { *m = PartitionName{} } -func (m *PartitionName) String() string { return proto.CompactTextString(m) } -func (*PartitionName) ProtoMessage() {} -func (*PartitionName) Descriptor() ([]byte, []int) { - return fileDescriptor_b4b40b84dd2f74cb, []int{1} -} - -func (m *PartitionName) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PartitionName.Unmarshal(m, b) -} -func (m *PartitionName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PartitionName.Marshal(b, m, deterministic) -} -func (m *PartitionName) XXX_Merge(src proto.Message) { - xxx_messageInfo_PartitionName.Merge(m, src) -} -func (m *PartitionName) XXX_Size() int { - return xxx_messageInfo_PartitionName.Size(m) -} -func (m *PartitionName) XXX_DiscardUnknown() { - xxx_messageInfo_PartitionName.DiscardUnknown(m) -} - -var xxx_messageInfo_PartitionName proto.InternalMessageInfo - -func (m *PartitionName) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *PartitionName) GetTag() string { - if m != nil { - return m.Tag - } - return "" -} - -//* -// @brief Row batch for Insert call -type RowBatch struct { - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - PartitionTag string `protobuf:"bytes,2,opt,name=partition_tag,json=partitionTag,proto3" json:"partition_tag,omitempty"` - RowData []*commonpb.Blob `protobuf:"bytes,3,rep,name=row_data,json=rowData,proto3" json:"row_data,omitempty"` - HashKeys []uint32 `protobuf:"varint,4,rep,packed,name=hash_keys,json=hashKeys,proto3" json:"hash_keys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RowBatch) Reset() { *m = RowBatch{} } -func (m *RowBatch) String() string { return proto.CompactTextString(m) } -func (*RowBatch) ProtoMessage() {} -func (*RowBatch) Descriptor() ([]byte, []int) { - return fileDescriptor_b4b40b84dd2f74cb, []int{2} -} - -func (m *RowBatch) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RowBatch.Unmarshal(m, b) -} -func (m *RowBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RowBatch.Marshal(b, m, deterministic) -} -func (m *RowBatch) XXX_Merge(src proto.Message) { - xxx_messageInfo_RowBatch.Merge(m, src) -} -func (m *RowBatch) XXX_Size() int { - return xxx_messageInfo_RowBatch.Size(m) -} -func (m *RowBatch) XXX_DiscardUnknown() { - xxx_messageInfo_RowBatch.DiscardUnknown(m) -} - -var xxx_messageInfo_RowBatch proto.InternalMessageInfo - -func (m *RowBatch) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *RowBatch) GetPartitionTag() string { - if m != nil { - return m.PartitionTag - } - return "" -} - -func (m *RowBatch) GetRowData() []*commonpb.Blob { - if m != nil { - return m.RowData - } - return nil -} - -func (m *RowBatch) GetHashKeys() []uint32 { - if m != nil { - return m.HashKeys - } - return nil -} - -//* -// @brief Placeholder value in DSL -type PlaceholderValue struct { - Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` - Type PlaceholderType `protobuf:"varint,2,opt,name=type,proto3,enum=milvus.proto.service.PlaceholderType" json:"type,omitempty"` - // values is a 2d-array, every array contains a vector - Values [][]byte `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PlaceholderValue) Reset() { *m = PlaceholderValue{} } -func (m *PlaceholderValue) String() string { return proto.CompactTextString(m) } -func (*PlaceholderValue) ProtoMessage() {} -func (*PlaceholderValue) Descriptor() ([]byte, []int) { - return fileDescriptor_b4b40b84dd2f74cb, []int{3} -} - -func (m *PlaceholderValue) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PlaceholderValue.Unmarshal(m, b) -} -func (m *PlaceholderValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PlaceholderValue.Marshal(b, m, deterministic) -} -func (m *PlaceholderValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlaceholderValue.Merge(m, src) -} -func (m *PlaceholderValue) XXX_Size() int { - return xxx_messageInfo_PlaceholderValue.Size(m) -} -func (m *PlaceholderValue) XXX_DiscardUnknown() { - xxx_messageInfo_PlaceholderValue.DiscardUnknown(m) -} - -var xxx_messageInfo_PlaceholderValue proto.InternalMessageInfo - -func (m *PlaceholderValue) GetTag() string { - if m != nil { - return m.Tag - } - return "" -} - -func (m *PlaceholderValue) GetType() PlaceholderType { - if m != nil { - return m.Type - } - return PlaceholderType_NONE -} - -func (m *PlaceholderValue) GetValues() [][]byte { - if m != nil { - return m.Values - } - return nil -} - -type PlaceholderGroup struct { - Placeholders []*PlaceholderValue `protobuf:"bytes,1,rep,name=placeholders,proto3" json:"placeholders,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PlaceholderGroup) Reset() { *m = PlaceholderGroup{} } -func (m *PlaceholderGroup) String() string { return proto.CompactTextString(m) } -func (*PlaceholderGroup) ProtoMessage() {} -func (*PlaceholderGroup) Descriptor() ([]byte, []int) { - return fileDescriptor_b4b40b84dd2f74cb, []int{4} -} - -func (m *PlaceholderGroup) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PlaceholderGroup.Unmarshal(m, b) -} -func (m *PlaceholderGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PlaceholderGroup.Marshal(b, m, deterministic) -} -func (m *PlaceholderGroup) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlaceholderGroup.Merge(m, src) -} -func (m *PlaceholderGroup) XXX_Size() int { - return xxx_messageInfo_PlaceholderGroup.Size(m) -} -func (m *PlaceholderGroup) XXX_DiscardUnknown() { - xxx_messageInfo_PlaceholderGroup.DiscardUnknown(m) -} - -var xxx_messageInfo_PlaceholderGroup proto.InternalMessageInfo - -func (m *PlaceholderGroup) GetPlaceholders() []*PlaceholderValue { - if m != nil { - return m.Placeholders - } - return nil -} - -//* -// @brief Query for Search call -type Query struct { - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - PartitionTags []string `protobuf:"bytes,2,rep,name=partition_tags,json=partitionTags,proto3" json:"partition_tags,omitempty"` - Dsl string `protobuf:"bytes,3,opt,name=dsl,proto3" json:"dsl,omitempty"` - // placeholder_group contains the serialized PlaceholderGroup - PlaceholderGroup []byte `protobuf:"bytes,4,opt,name=placeholder_group,json=placeholderGroup,proto3" json:"placeholder_group,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Query) Reset() { *m = Query{} } -func (m *Query) String() string { return proto.CompactTextString(m) } -func (*Query) ProtoMessage() {} -func (*Query) Descriptor() ([]byte, []int) { - return fileDescriptor_b4b40b84dd2f74cb, []int{5} -} - -func (m *Query) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Query.Unmarshal(m, b) -} -func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Query.Marshal(b, m, deterministic) -} -func (m *Query) XXX_Merge(src proto.Message) { - xxx_messageInfo_Query.Merge(m, src) -} -func (m *Query) XXX_Size() int { - return xxx_messageInfo_Query.Size(m) -} -func (m *Query) XXX_DiscardUnknown() { - xxx_messageInfo_Query.DiscardUnknown(m) -} - -var xxx_messageInfo_Query proto.InternalMessageInfo - -func (m *Query) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *Query) GetPartitionTags() []string { - if m != nil { - return m.PartitionTags - } - return nil -} - -func (m *Query) GetDsl() string { - if m != nil { - return m.Dsl - } - return "" -} - -func (m *Query) GetPlaceholderGroup() []byte { - if m != nil { - return m.PlaceholderGroup - } - return nil -} - -//* -// @brief String response -type StringResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StringResponse) Reset() { *m = StringResponse{} } -func (m *StringResponse) String() string { return proto.CompactTextString(m) } -func (*StringResponse) ProtoMessage() {} -func (*StringResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b4b40b84dd2f74cb, []int{6} -} - -func (m *StringResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StringResponse.Unmarshal(m, b) -} -func (m *StringResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StringResponse.Marshal(b, m, deterministic) -} -func (m *StringResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StringResponse.Merge(m, src) -} -func (m *StringResponse) XXX_Size() int { - return xxx_messageInfo_StringResponse.Size(m) -} -func (m *StringResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StringResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_StringResponse proto.InternalMessageInfo - -func (m *StringResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *StringResponse) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -//* -// @brief Bool response -type BoolResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - Value bool `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BoolResponse) Reset() { *m = BoolResponse{} } -func (m *BoolResponse) String() string { return proto.CompactTextString(m) } -func (*BoolResponse) ProtoMessage() {} -func (*BoolResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b4b40b84dd2f74cb, []int{7} -} - -func (m *BoolResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BoolResponse.Unmarshal(m, b) -} -func (m *BoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BoolResponse.Marshal(b, m, deterministic) -} -func (m *BoolResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BoolResponse.Merge(m, src) -} -func (m *BoolResponse) XXX_Size() int { - return xxx_messageInfo_BoolResponse.Size(m) -} -func (m *BoolResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BoolResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_BoolResponse proto.InternalMessageInfo - -func (m *BoolResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *BoolResponse) GetValue() bool { - if m != nil { - return m.Value - } - return false -} - -//* -// @brief String list response -type StringListResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StringListResponse) Reset() { *m = StringListResponse{} } -func (m *StringListResponse) String() string { return proto.CompactTextString(m) } -func (*StringListResponse) ProtoMessage() {} -func (*StringListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b4b40b84dd2f74cb, []int{8} -} - -func (m *StringListResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StringListResponse.Unmarshal(m, b) -} -func (m *StringListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StringListResponse.Marshal(b, m, deterministic) -} -func (m *StringListResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StringListResponse.Merge(m, src) -} -func (m *StringListResponse) XXX_Size() int { - return xxx_messageInfo_StringListResponse.Size(m) -} -func (m *StringListResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StringListResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_StringListResponse proto.InternalMessageInfo - -func (m *StringListResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *StringListResponse) GetValues() []string { - if m != nil { - return m.Values - } - return nil -} - -//* -// @brief Integer list response -type IntegerListResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - Values []int64 `protobuf:"varint,2,rep,packed,name=values,proto3" json:"values,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IntegerListResponse) Reset() { *m = IntegerListResponse{} } -func (m *IntegerListResponse) String() string { return proto.CompactTextString(m) } -func (*IntegerListResponse) ProtoMessage() {} -func (*IntegerListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b4b40b84dd2f74cb, []int{9} -} - -func (m *IntegerListResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IntegerListResponse.Unmarshal(m, b) -} -func (m *IntegerListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IntegerListResponse.Marshal(b, m, deterministic) -} -func (m *IntegerListResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_IntegerListResponse.Merge(m, src) -} -func (m *IntegerListResponse) XXX_Size() int { - return xxx_messageInfo_IntegerListResponse.Size(m) -} -func (m *IntegerListResponse) XXX_DiscardUnknown() { - xxx_messageInfo_IntegerListResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_IntegerListResponse proto.InternalMessageInfo - -func (m *IntegerListResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *IntegerListResponse) GetValues() []int64 { - if m != nil { - return m.Values - } - return nil -} - -//* -// @brief Range response, [begin, end) -type IntegerRangeResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - Begin int64 `protobuf:"varint,2,opt,name=begin,proto3" json:"begin,omitempty"` - End int64 `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IntegerRangeResponse) Reset() { *m = IntegerRangeResponse{} } -func (m *IntegerRangeResponse) String() string { return proto.CompactTextString(m) } -func (*IntegerRangeResponse) ProtoMessage() {} -func (*IntegerRangeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b4b40b84dd2f74cb, []int{10} -} - -func (m *IntegerRangeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IntegerRangeResponse.Unmarshal(m, b) -} -func (m *IntegerRangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IntegerRangeResponse.Marshal(b, m, deterministic) -} -func (m *IntegerRangeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_IntegerRangeResponse.Merge(m, src) -} -func (m *IntegerRangeResponse) XXX_Size() int { - return xxx_messageInfo_IntegerRangeResponse.Size(m) -} -func (m *IntegerRangeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_IntegerRangeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_IntegerRangeResponse proto.InternalMessageInfo - -func (m *IntegerRangeResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *IntegerRangeResponse) GetBegin() int64 { - if m != nil { - return m.Begin - } - return 0 -} - -func (m *IntegerRangeResponse) GetEnd() int64 { - if m != nil { - return m.End - } - return 0 -} - -//* -// @brief Response of DescribeCollection -type CollectionDescription struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - Schema *schemapb.CollectionSchema `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"` - Statistics []*commonpb.KeyValuePair `protobuf:"bytes,3,rep,name=statistics,proto3" json:"statistics,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CollectionDescription) Reset() { *m = CollectionDescription{} } -func (m *CollectionDescription) String() string { return proto.CompactTextString(m) } -func (*CollectionDescription) ProtoMessage() {} -func (*CollectionDescription) Descriptor() ([]byte, []int) { - return fileDescriptor_b4b40b84dd2f74cb, []int{11} -} - -func (m *CollectionDescription) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CollectionDescription.Unmarshal(m, b) -} -func (m *CollectionDescription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CollectionDescription.Marshal(b, m, deterministic) -} -func (m *CollectionDescription) XXX_Merge(src proto.Message) { - xxx_messageInfo_CollectionDescription.Merge(m, src) -} -func (m *CollectionDescription) XXX_Size() int { - return xxx_messageInfo_CollectionDescription.Size(m) -} -func (m *CollectionDescription) XXX_DiscardUnknown() { - xxx_messageInfo_CollectionDescription.DiscardUnknown(m) -} - -var xxx_messageInfo_CollectionDescription proto.InternalMessageInfo - -func (m *CollectionDescription) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *CollectionDescription) GetSchema() *schemapb.CollectionSchema { - if m != nil { - return m.Schema - } - return nil -} - -func (m *CollectionDescription) GetStatistics() []*commonpb.KeyValuePair { - if m != nil { - return m.Statistics - } - return nil -} - -//* -// @brief Response of DescribePartition -type PartitionDescription struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - Name *PartitionName `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Statistics []*commonpb.KeyValuePair `protobuf:"bytes,3,rep,name=statistics,proto3" json:"statistics,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PartitionDescription) Reset() { *m = PartitionDescription{} } -func (m *PartitionDescription) String() string { return proto.CompactTextString(m) } -func (*PartitionDescription) ProtoMessage() {} -func (*PartitionDescription) Descriptor() ([]byte, []int) { - return fileDescriptor_b4b40b84dd2f74cb, []int{12} -} - -func (m *PartitionDescription) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PartitionDescription.Unmarshal(m, b) -} -func (m *PartitionDescription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PartitionDescription.Marshal(b, m, deterministic) -} -func (m *PartitionDescription) XXX_Merge(src proto.Message) { - xxx_messageInfo_PartitionDescription.Merge(m, src) -} -func (m *PartitionDescription) XXX_Size() int { - return xxx_messageInfo_PartitionDescription.Size(m) -} -func (m *PartitionDescription) XXX_DiscardUnknown() { - xxx_messageInfo_PartitionDescription.DiscardUnknown(m) -} - -var xxx_messageInfo_PartitionDescription proto.InternalMessageInfo - -func (m *PartitionDescription) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *PartitionDescription) GetName() *PartitionName { - if m != nil { - return m.Name - } - return nil -} - -func (m *PartitionDescription) GetStatistics() []*commonpb.KeyValuePair { - if m != nil { - return m.Statistics - } - return nil -} - -//* -// @brief Response of GetSysConfig -type SysConfigResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - Keys []string `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` - Values []string `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SysConfigResponse) Reset() { *m = SysConfigResponse{} } -func (m *SysConfigResponse) String() string { return proto.CompactTextString(m) } -func (*SysConfigResponse) ProtoMessage() {} -func (*SysConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b4b40b84dd2f74cb, []int{13} -} - -func (m *SysConfigResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SysConfigResponse.Unmarshal(m, b) -} -func (m *SysConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SysConfigResponse.Marshal(b, m, deterministic) -} -func (m *SysConfigResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SysConfigResponse.Merge(m, src) -} -func (m *SysConfigResponse) XXX_Size() int { - return xxx_messageInfo_SysConfigResponse.Size(m) -} -func (m *SysConfigResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SysConfigResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_SysConfigResponse proto.InternalMessageInfo - -func (m *SysConfigResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *SysConfigResponse) GetKeys() []string { - if m != nil { - return m.Keys - } - return nil -} - -func (m *SysConfigResponse) GetValues() []string { - if m != nil { - return m.Values - } - return nil -} - -//* -// @brief Entities hit by query -type Hits struct { - IDs []int64 `protobuf:"varint,1,rep,packed,name=IDs,proto3" json:"IDs,omitempty"` - RowData [][]byte `protobuf:"bytes,2,rep,name=row_data,json=rowData,proto3" json:"row_data,omitempty"` - Scores []float32 `protobuf:"fixed32,3,rep,packed,name=scores,proto3" json:"scores,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Hits) Reset() { *m = Hits{} } -func (m *Hits) String() string { return proto.CompactTextString(m) } -func (*Hits) ProtoMessage() {} -func (*Hits) Descriptor() ([]byte, []int) { - return fileDescriptor_b4b40b84dd2f74cb, []int{14} -} - -func (m *Hits) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Hits.Unmarshal(m, b) -} -func (m *Hits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Hits.Marshal(b, m, deterministic) -} -func (m *Hits) XXX_Merge(src proto.Message) { - xxx_messageInfo_Hits.Merge(m, src) -} -func (m *Hits) XXX_Size() int { - return xxx_messageInfo_Hits.Size(m) -} -func (m *Hits) XXX_DiscardUnknown() { - xxx_messageInfo_Hits.DiscardUnknown(m) -} - -var xxx_messageInfo_Hits proto.InternalMessageInfo - -func (m *Hits) GetIDs() []int64 { - if m != nil { - return m.IDs - } - return nil -} - -func (m *Hits) GetRowData() [][]byte { - if m != nil { - return m.RowData - } - return nil -} - -func (m *Hits) GetScores() []float32 { - if m != nil { - return m.Scores - } - return nil -} - -//* -// @brief Query result -type QueryResult struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - Hits [][]byte `protobuf:"bytes,2,rep,name=hits,proto3" json:"hits,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *QueryResult) Reset() { *m = QueryResult{} } -func (m *QueryResult) String() string { return proto.CompactTextString(m) } -func (*QueryResult) ProtoMessage() {} -func (*QueryResult) Descriptor() ([]byte, []int) { - return fileDescriptor_b4b40b84dd2f74cb, []int{15} -} - -func (m *QueryResult) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_QueryResult.Unmarshal(m, b) -} -func (m *QueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_QueryResult.Marshal(b, m, deterministic) -} -func (m *QueryResult) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryResult.Merge(m, src) -} -func (m *QueryResult) XXX_Size() int { - return xxx_messageInfo_QueryResult.Size(m) -} -func (m *QueryResult) XXX_DiscardUnknown() { - xxx_messageInfo_QueryResult.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryResult proto.InternalMessageInfo - -func (m *QueryResult) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *QueryResult) GetHits() [][]byte { - if m != nil { - return m.Hits - } - return nil -} - -//* -// @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 { - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - FieldName string `protobuf:"bytes,2,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` - ExtraParams []*commonpb.KeyValuePair `protobuf:"bytes,3,rep,name=extra_params,json=extraParams,proto3" json:"extra_params,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IndexParam) Reset() { *m = IndexParam{} } -func (m *IndexParam) String() string { return proto.CompactTextString(m) } -func (*IndexParam) ProtoMessage() {} -func (*IndexParam) Descriptor() ([]byte, []int) { - return fileDescriptor_b4b40b84dd2f74cb, []int{16} -} - -func (m *IndexParam) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IndexParam.Unmarshal(m, b) -} -func (m *IndexParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IndexParam.Marshal(b, m, deterministic) -} -func (m *IndexParam) XXX_Merge(src proto.Message) { - xxx_messageInfo_IndexParam.Merge(m, src) -} -func (m *IndexParam) XXX_Size() int { - return xxx_messageInfo_IndexParam.Size(m) -} -func (m *IndexParam) XXX_DiscardUnknown() { - xxx_messageInfo_IndexParam.DiscardUnknown(m) -} - -var xxx_messageInfo_IndexParam proto.InternalMessageInfo - -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) GetExtraParams() []*commonpb.KeyValuePair { - if m != nil { - return m.ExtraParams - } - return nil -} - -type DescribeIndexRequest struct { - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - FieldName string `protobuf:"bytes,2,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DescribeIndexRequest) Reset() { *m = DescribeIndexRequest{} } -func (m *DescribeIndexRequest) String() string { return proto.CompactTextString(m) } -func (*DescribeIndexRequest) ProtoMessage() {} -func (*DescribeIndexRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b4b40b84dd2f74cb, []int{17} -} - -func (m *DescribeIndexRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DescribeIndexRequest.Unmarshal(m, b) -} -func (m *DescribeIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DescribeIndexRequest.Marshal(b, m, deterministic) -} -func (m *DescribeIndexRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeIndexRequest.Merge(m, src) -} -func (m *DescribeIndexRequest) XXX_Size() int { - return xxx_messageInfo_DescribeIndexRequest.Size(m) -} -func (m *DescribeIndexRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeIndexRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DescribeIndexRequest proto.InternalMessageInfo - -func (m *DescribeIndexRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *DescribeIndexRequest) GetFieldName() string { - if m != nil { - return m.FieldName - } - return "" -} - -type DescribeIndexProgressRequest struct { - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - FieldName string `protobuf:"bytes,2,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DescribeIndexProgressRequest) Reset() { *m = DescribeIndexProgressRequest{} } -func (m *DescribeIndexProgressRequest) String() string { return proto.CompactTextString(m) } -func (*DescribeIndexProgressRequest) ProtoMessage() {} -func (*DescribeIndexProgressRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b4b40b84dd2f74cb, []int{18} -} - -func (m *DescribeIndexProgressRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DescribeIndexProgressRequest.Unmarshal(m, b) -} -func (m *DescribeIndexProgressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DescribeIndexProgressRequest.Marshal(b, m, deterministic) -} -func (m *DescribeIndexProgressRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeIndexProgressRequest.Merge(m, src) -} -func (m *DescribeIndexProgressRequest) XXX_Size() int { - return xxx_messageInfo_DescribeIndexProgressRequest.Size(m) -} -func (m *DescribeIndexProgressRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeIndexProgressRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DescribeIndexProgressRequest proto.InternalMessageInfo - -func (m *DescribeIndexProgressRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *DescribeIndexProgressRequest) GetFieldName() string { - if m != nil { - return m.FieldName - } - return "" -} - -type DescribeIndexResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - CollectionName string `protobuf:"bytes,2,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - FieldName string `protobuf:"bytes,3,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` - ExtraParams []*commonpb.KeyValuePair `protobuf:"bytes,4,rep,name=extra_params,json=extraParams,proto3" json:"extra_params,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DescribeIndexResponse) Reset() { *m = DescribeIndexResponse{} } -func (m *DescribeIndexResponse) String() string { return proto.CompactTextString(m) } -func (*DescribeIndexResponse) ProtoMessage() {} -func (*DescribeIndexResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b4b40b84dd2f74cb, []int{19} -} - -func (m *DescribeIndexResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DescribeIndexResponse.Unmarshal(m, b) -} -func (m *DescribeIndexResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DescribeIndexResponse.Marshal(b, m, deterministic) -} -func (m *DescribeIndexResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeIndexResponse.Merge(m, src) -} -func (m *DescribeIndexResponse) XXX_Size() int { - return xxx_messageInfo_DescribeIndexResponse.Size(m) -} -func (m *DescribeIndexResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeIndexResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_DescribeIndexResponse proto.InternalMessageInfo - -func (m *DescribeIndexResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *DescribeIndexResponse) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *DescribeIndexResponse) GetFieldName() string { - if m != nil { - return m.FieldName - } - return "" -} - -func (m *DescribeIndexResponse) GetExtraParams() []*commonpb.KeyValuePair { - if m != nil { - return m.ExtraParams - } - return nil -} - -func init() { - proto.RegisterEnum("milvus.proto.service.PlaceholderType", PlaceholderType_name, PlaceholderType_value) - proto.RegisterType((*CollectionName)(nil), "milvus.proto.service.CollectionName") - proto.RegisterType((*PartitionName)(nil), "milvus.proto.service.PartitionName") - proto.RegisterType((*RowBatch)(nil), "milvus.proto.service.RowBatch") - proto.RegisterType((*PlaceholderValue)(nil), "milvus.proto.service.PlaceholderValue") - proto.RegisterType((*PlaceholderGroup)(nil), "milvus.proto.service.PlaceholderGroup") - proto.RegisterType((*Query)(nil), "milvus.proto.service.Query") - proto.RegisterType((*StringResponse)(nil), "milvus.proto.service.StringResponse") - proto.RegisterType((*BoolResponse)(nil), "milvus.proto.service.BoolResponse") - proto.RegisterType((*StringListResponse)(nil), "milvus.proto.service.StringListResponse") - proto.RegisterType((*IntegerListResponse)(nil), "milvus.proto.service.IntegerListResponse") - proto.RegisterType((*IntegerRangeResponse)(nil), "milvus.proto.service.IntegerRangeResponse") - proto.RegisterType((*CollectionDescription)(nil), "milvus.proto.service.CollectionDescription") - proto.RegisterType((*PartitionDescription)(nil), "milvus.proto.service.PartitionDescription") - proto.RegisterType((*SysConfigResponse)(nil), "milvus.proto.service.SysConfigResponse") - proto.RegisterType((*Hits)(nil), "milvus.proto.service.Hits") - proto.RegisterType((*QueryResult)(nil), "milvus.proto.service.QueryResult") - proto.RegisterType((*IndexParam)(nil), "milvus.proto.service.IndexParam") - proto.RegisterType((*DescribeIndexRequest)(nil), "milvus.proto.service.DescribeIndexRequest") - proto.RegisterType((*DescribeIndexProgressRequest)(nil), "milvus.proto.service.DescribeIndexProgressRequest") - proto.RegisterType((*DescribeIndexResponse)(nil), "milvus.proto.service.DescribeIndexResponse") -} - -func init() { proto.RegisterFile("service_msg.proto", fileDescriptor_b4b40b84dd2f74cb) } - -var fileDescriptor_b4b40b84dd2f74cb = []byte{ - // 868 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdd, 0x6e, 0x1b, 0x45, - 0x14, 0x66, 0xbd, 0x6e, 0xb0, 0x8f, 0xd7, 0xae, 0x33, 0xb8, 0x95, 0xdb, 0x82, 0x64, 0xb6, 0x2a, - 0x58, 0x20, 0x6c, 0x29, 0x45, 0x42, 0xbd, 0x40, 0x22, 0x4e, 0x0a, 0xa4, 0xa9, 0x12, 0x33, 0x89, - 0x22, 0x15, 0x24, 0x56, 0xe3, 0xdd, 0x93, 0xf5, 0x88, 0xf5, 0xce, 0x32, 0x33, 0x9b, 0xd4, 0x7d, - 0x10, 0x2e, 0x78, 0x05, 0x1e, 0x84, 0x3b, 0x1e, 0x80, 0xa7, 0x41, 0x3b, 0xbb, 0xf1, 0x4f, 0x48, - 0x55, 0x37, 0xf6, 0xdd, 0x9c, 0xb3, 0x73, 0xce, 0xf7, 0x9d, 0x9f, 0xf9, 0x6c, 0xd8, 0x56, 0x28, - 0x2f, 0xb8, 0x8f, 0xde, 0x44, 0x85, 0xbd, 0x44, 0x0a, 0x2d, 0x48, 0x6b, 0xc2, 0xa3, 0x8b, 0x54, - 0xe5, 0x56, 0xaf, 0xf8, 0xfe, 0xd0, 0xf1, 0xc5, 0x64, 0x22, 0xe2, 0xdc, 0xfb, 0xd0, 0x51, 0xfe, - 0x18, 0x27, 0x2c, 0xb7, 0xdc, 0x67, 0xd0, 0xd8, 0x13, 0x51, 0x84, 0xbe, 0xe6, 0x22, 0x3e, 0x62, - 0x13, 0x24, 0x9f, 0xc3, 0x5d, 0x7f, 0xe6, 0xf1, 0x62, 0x36, 0xc1, 0xb6, 0xd5, 0xb1, 0xba, 0x55, - 0xda, 0xf0, 0x97, 0x2e, 0xba, 0x2f, 0xa0, 0x3e, 0x64, 0x52, 0xf3, 0xf7, 0x8e, 0x24, 0x4d, 0xb0, - 0x35, 0x0b, 0xdb, 0x25, 0xf3, 0x31, 0x3b, 0xba, 0x7f, 0x59, 0x50, 0xa1, 0xe2, 0x72, 0xc0, 0xb4, - 0x3f, 0x5e, 0x3d, 0xcf, 0x63, 0xa8, 0x27, 0x57, 0x0c, 0xbc, 0x79, 0x46, 0x67, 0xe6, 0x3c, 0x65, - 0x21, 0xf9, 0x1a, 0x2a, 0x52, 0x5c, 0x7a, 0x01, 0xd3, 0xac, 0x6d, 0x77, 0xec, 0x6e, 0x6d, 0xe7, - 0x41, 0x6f, 0xa9, 0x4d, 0x45, 0x77, 0x06, 0x91, 0x18, 0xd1, 0x0f, 0xa5, 0xb8, 0xdc, 0x67, 0x9a, - 0x91, 0x47, 0x50, 0x1d, 0x33, 0x35, 0xf6, 0x7e, 0xc3, 0xa9, 0x6a, 0x97, 0x3b, 0x76, 0xb7, 0x4e, - 0x2b, 0x99, 0xe3, 0x10, 0xa7, 0xca, 0xbd, 0x84, 0xe6, 0x30, 0x62, 0x3e, 0x8e, 0x45, 0x14, 0xa0, - 0x3c, 0x63, 0x51, 0x3a, 0xab, 0xc9, 0x9a, 0xd5, 0x44, 0x9e, 0x41, 0x59, 0x4f, 0x13, 0x34, 0xa4, - 0x1a, 0x3b, 0x4f, 0x7a, 0x37, 0xcd, 0xa6, 0xb7, 0x90, 0xe7, 0x74, 0x9a, 0x20, 0x35, 0x21, 0xe4, - 0x3e, 0x6c, 0x5d, 0x64, 0x59, 0x95, 0x61, 0xec, 0xd0, 0xc2, 0x72, 0x7f, 0x5d, 0x02, 0xfe, 0x41, - 0x8a, 0x34, 0x21, 0x2f, 0xc0, 0x49, 0xe6, 0x3e, 0xd5, 0xb6, 0x4c, 0x8d, 0x9f, 0xbd, 0x13, 0xce, - 0xd0, 0xa6, 0x4b, 0xb1, 0xee, 0x1f, 0x16, 0xdc, 0xf9, 0x29, 0x45, 0x39, 0x5d, 0x7d, 0x06, 0x4f, - 0xa0, 0xb1, 0x34, 0x03, 0xd5, 0x2e, 0x75, 0xec, 0x6e, 0x95, 0xd6, 0x17, 0x87, 0xa0, 0xb2, 0xf6, - 0x04, 0x2a, 0x6a, 0xdb, 0x79, 0x7b, 0x02, 0x15, 0x91, 0x2f, 0x61, 0x7b, 0x01, 0xdb, 0x0b, 0xb3, - 0x62, 0xda, 0xe5, 0x8e, 0xd5, 0x75, 0x68, 0x33, 0xb9, 0x56, 0xa4, 0xfb, 0x0b, 0x34, 0x4e, 0xb4, - 0xe4, 0x71, 0x48, 0x51, 0x25, 0x22, 0x56, 0x48, 0x9e, 0xc2, 0x96, 0xd2, 0x4c, 0xa7, 0xca, 0xf0, - 0xaa, 0xed, 0x3c, 0xba, 0x71, 0xa8, 0x27, 0xe6, 0x0a, 0x2d, 0xae, 0x92, 0x16, 0xdc, 0x31, 0x9d, - 0x2c, 0x16, 0x25, 0x37, 0xdc, 0x57, 0xe0, 0x0c, 0x84, 0x88, 0x36, 0x98, 0xba, 0x72, 0x95, 0x9a, - 0x01, 0xc9, 0x79, 0xbf, 0xe4, 0x4a, 0xaf, 0x07, 0x30, 0xdf, 0x89, 0xbc, 0xc1, 0x57, 0x3b, 0x31, - 0x82, 0x8f, 0x0e, 0x62, 0x8d, 0x21, 0xca, 0x4d, 0x63, 0xd8, 0x33, 0x0c, 0x05, 0xad, 0x02, 0x83, - 0xb2, 0x38, 0xc4, 0xb5, 0x3b, 0x35, 0xc2, 0x90, 0xc7, 0xa6, 0x53, 0x36, 0xcd, 0x8d, 0x6c, 0x41, - 0x30, 0x0e, 0xcc, 0x82, 0xd8, 0x34, 0x3b, 0xba, 0xff, 0x58, 0x70, 0x6f, 0xae, 0x4d, 0xfb, 0xa8, - 0x7c, 0xc9, 0x93, 0xec, 0x78, 0x3b, 0xd8, 0x6f, 0x61, 0x2b, 0x57, 0x3e, 0x83, 0x5b, 0xfb, 0xdf, - 0x83, 0xcc, 0x55, 0x71, 0x0e, 0x78, 0x62, 0x1c, 0xb4, 0x08, 0x22, 0xbb, 0x00, 0x59, 0x22, 0xae, - 0x34, 0xf7, 0x55, 0x21, 0x24, 0x9f, 0xde, 0x88, 0x7b, 0x88, 0x53, 0xf3, 0xb6, 0x86, 0x8c, 0x4b, - 0xba, 0x10, 0xe4, 0xfe, 0x6d, 0x41, 0x6b, 0xa6, 0x98, 0x6b, 0xd7, 0xf3, 0x0d, 0x94, 0xcd, 0xb3, - 0xcc, 0xab, 0x79, 0xfc, 0x96, 0xf7, 0xbe, 0x28, 0xd0, 0xd4, 0x04, 0x6c, 0xa2, 0x12, 0x0d, 0xdb, - 0x27, 0x53, 0xb5, 0x27, 0xe2, 0x73, 0xbe, 0xe6, 0x8b, 0x24, 0x50, 0x36, 0x12, 0x9b, 0xef, 0xb4, - 0x39, 0x5f, 0x53, 0xbf, 0xf9, 0xa6, 0x1f, 0x42, 0xf9, 0x47, 0xae, 0x8d, 0x96, 0x1c, 0xec, 0xe7, - 0x42, 0x67, 0xd3, 0xec, 0x48, 0x1e, 0x2c, 0x68, 0x7c, 0xc9, 0x28, 0xe6, 0x4c, 0xc8, 0xef, 0x67, - 0x63, 0x17, 0xb2, 0x48, 0x56, 0xa2, 0x85, 0xe5, 0x9e, 0x41, 0xcd, 0x28, 0x1d, 0x45, 0x95, 0x46, - 0xfa, 0xd6, 0xe4, 0xc7, 0x5c, 0xab, 0x02, 0xd2, 0x9c, 0xdd, 0x3f, 0x2d, 0x80, 0x83, 0x38, 0xc0, - 0xd7, 0x43, 0x26, 0xd9, 0x64, 0x75, 0x1d, 0xfd, 0x04, 0xe0, 0x9c, 0x63, 0x14, 0x78, 0xb3, 0xa1, - 0x56, 0x69, 0xd5, 0x78, 0xcc, 0xe7, 0x7d, 0x70, 0xf0, 0xb5, 0x96, 0xcc, 0x4b, 0xb2, 0xb4, 0xef, - 0x31, 0xb6, 0x9a, 0x09, 0x33, 0x64, 0xb2, 0xdf, 0x8f, 0x56, 0xbe, 0x77, 0x23, 0x34, 0x1c, 0x29, - 0xfe, 0x9e, 0xa2, 0xd2, 0x9b, 0x62, 0xe9, 0x9e, 0xc3, 0xc7, 0x4b, 0xf9, 0x87, 0x52, 0x84, 0x12, - 0x95, 0xda, 0x34, 0xce, 0xbf, 0x16, 0xdc, 0xbb, 0x56, 0xc8, 0x3a, 0x4b, 0x78, 0x03, 0xad, 0xd2, - 0x0a, 0xb4, 0xec, 0x77, 0x0d, 0xa9, 0x7c, 0x9b, 0x21, 0x7d, 0xf1, 0x1d, 0xdc, 0xbd, 0xf6, 0xaf, - 0x80, 0x54, 0xa0, 0x7c, 0x74, 0x7c, 0xf4, 0xbc, 0xf9, 0x01, 0xd9, 0x86, 0xfa, 0xd9, 0xf3, 0xbd, - 0xd3, 0x63, 0xea, 0x0d, 0x0e, 0x8e, 0x76, 0xe9, 0xab, 0x66, 0x40, 0x9a, 0xe0, 0x14, 0xae, 0xef, - 0x5f, 0x1e, 0xef, 0x9e, 0x36, 0x71, 0xb0, 0xf7, 0xf3, 0x6e, 0xc8, 0xf5, 0x38, 0x1d, 0x65, 0x60, - 0xfd, 0x37, 0x3c, 0x8a, 0xf8, 0x1b, 0x8d, 0xfe, 0xb8, 0x9f, 0x13, 0xf9, 0x2a, 0xe0, 0x4a, 0x4b, - 0x3e, 0x4a, 0x35, 0x06, 0x7d, 0x1e, 0x6b, 0x94, 0x31, 0x8b, 0xfa, 0x86, 0x5d, 0xbf, 0x10, 0x8e, - 0x64, 0x34, 0xda, 0x32, 0x8e, 0xa7, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0xb6, 0x3b, 0x6a, 0xb9, - 0x67, 0x0a, 0x00, 0x00, -} diff --git a/internal/proxynode/grpc_service.go b/internal/proxynode/grpc_service.go index 5092f0cd929724036e7729308fbc2a7c3f98b035..4ca7faf6a4f746a5014c0bd01a2d02df81ee73a0 100644 --- a/internal/proxynode/grpc_service.go +++ b/internal/proxynode/grpc_service.go @@ -1,543 +1,21 @@ package proxynode -import ( - "context" - "errors" - "strconv" - - "log" - "time" - - "github.com/opentracing/opentracing-go" - "github.com/zilliztech/milvus-distributed/internal/msgstream" - "github.com/zilliztech/milvus-distributed/internal/proto/commonpb" - "github.com/zilliztech/milvus-distributed/internal/proto/internalpb2" - "github.com/zilliztech/milvus-distributed/internal/proto/milvuspb" - "github.com/zilliztech/milvus-distributed/internal/proto/schemapb" - "github.com/zilliztech/milvus-distributed/internal/proto/servicepb" -) - -const ( - reqTimeoutInterval = time.Second * 10 -) - -func (p *Proxy) Insert(ctx context.Context, in *servicepb.RowBatch) (*servicepb.IntegerRangeResponse, error) { - span, ctx := opentracing.StartSpanFromContext(ctx, "insert grpc received") - defer span.Finish() - span.SetTag("collection name", in.CollectionName) - span.SetTag("partition tag", in.PartitionTag) - log.Println("insert into: ", in.CollectionName) - it := &InsertTask{ - ctx: ctx, - Condition: NewTaskCondition(ctx), - BaseInsertTask: BaseInsertTask{ - BaseMsg: msgstream.BaseMsg{ - HashValues: in.HashKeys, - }, - InsertRequest: internalpb2.InsertRequest{ - Base: &commonpb.MsgBase{ - MsgType: commonpb.MsgType_kInsert, - MsgID: 0, - }, - CollectionName: in.CollectionName, - PartitionName: in.PartitionTag, - RowData: in.RowData, - }, - }, - manipulationMsgStream: p.manipulationMsgStream, - rowIDAllocator: p.idAllocator, - } - if len(it.PartitionName) <= 0 { - it.PartitionName = Params.defaultPartitionTag() - } - - var cancel func() - it.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) - - defer cancel() - - fn := func() error { - select { - case <-ctx.Done(): - return errors.New("insert timeout") - default: - return p.sched.DmQueue.Enqueue(it) - } - } - err := fn() - - if err != nil { - return &servicepb.IntegerRangeResponse{ - Status: &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, - }, nil - } - - err = it.WaitToFinish() - if err != nil { - return &servicepb.IntegerRangeResponse{ - Status: &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, - }, nil - } - - return it.result, nil -} - -func (p *Proxy) CreateCollection(ctx context.Context, req *schemapb.CollectionSchema) (*commonpb.Status, error) { - log.Println("create collection: ", req) - cct := &CreateCollectionTask{ - Condition: NewTaskCondition(ctx), - CreateCollectionRequest: milvuspb.CreateCollectionRequest{ - Base: &commonpb.MsgBase{ - MsgType: commonpb.MsgType_kCreateCollection, - }, - }, - masterClient: p.masterClient, - schema: req, - } - var cancel func() - cct.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) - defer cancel() - - fn := func() error { - select { - case <-ctx.Done(): - return errors.New("create collection timeout") - default: - return p.sched.DdQueue.Enqueue(cct) - } - } - err := fn() - if err != nil { - return &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, nil - } - - err = cct.WaitToFinish() - if err != nil { - return &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, nil - } - - return cct.result, nil -} - -func (p *Proxy) Search(ctx context.Context, req *servicepb.Query) (*servicepb.QueryResult, error) { - span, ctx := opentracing.StartSpanFromContext(ctx, "search grpc received") - defer span.Finish() - span.SetTag("collection name", req.CollectionName) - span.SetTag("partition tag", req.PartitionTags) - span.SetTag("dsl", req.Dsl) - log.Println("search: ", req.CollectionName, req.Dsl) - qt := &SearchTask{ - ctx: ctx, - Condition: NewTaskCondition(ctx), - SearchRequest: internalpb2.SearchRequest{ - Base: &commonpb.MsgBase{ - MsgType: commonpb.MsgType_kSearch, - SourceID: Params.ProxyID(), - }, - ResultChannelID: strconv.FormatInt(Params.ProxyID(), 10), - }, - queryMsgStream: p.queryMsgStream, - resultBuf: make(chan []*internalpb2.SearchResults), - query: req, - } - var cancel func() - qt.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) - log.Printf("grpc address of query task: %p", qt) - defer cancel() - - fn := func() error { - select { - case <-ctx.Done(): - return errors.New("create collection timeout") - default: - return p.sched.DqQueue.Enqueue(qt) - } - } - err := fn() - if err != nil { - return &servicepb.QueryResult{ - Status: &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, - }, nil - } - - err = qt.WaitToFinish() - if err != nil { - return &servicepb.QueryResult{ - Status: &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, - }, nil - } - - return qt.result, nil -} - -func (p *Proxy) DropCollection(ctx context.Context, req *servicepb.CollectionName) (*commonpb.Status, error) { - log.Println("drop collection: ", req) - dct := &DropCollectionTask{ - Condition: NewTaskCondition(ctx), - DropCollectionRequest: milvuspb.DropCollectionRequest{ - Base: &commonpb.MsgBase{ - MsgType: commonpb.MsgType_kDropCollection, - SourceID: Params.ProxyID(), - }, - CollectionName: req.CollectionName, - }, - masterClient: p.masterClient, - } - var cancel func() - dct.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) - defer cancel() - - fn := func() error { - select { - case <-ctx.Done(): - return errors.New("create collection timeout") - default: - return p.sched.DdQueue.Enqueue(dct) - } - } - err := fn() - if err != nil { - return &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, nil - } - - err = dct.WaitToFinish() - if err != nil { - return &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, nil - } - - return dct.result, nil -} - -func (p *Proxy) HasCollection(ctx context.Context, req *servicepb.CollectionName) (*servicepb.BoolResponse, error) { - log.Println("has collection: ", req) - hct := &HasCollectionTask{ - Condition: NewTaskCondition(ctx), - HasCollectionRequest: milvuspb.HasCollectionRequest{ - Base: &commonpb.MsgBase{ - MsgType: commonpb.MsgType_kHasCollection, - SourceID: Params.ProxyID(), - }, - CollectionName: req.CollectionName, - }, - masterClient: p.masterClient, - } - var cancel func() - hct.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) - defer cancel() - - fn := func() error { - select { - case <-ctx.Done(): - return errors.New("create collection timeout") - default: - return p.sched.DdQueue.Enqueue(hct) - } - } - err := fn() - if err != nil { - return &servicepb.BoolResponse{ - Status: &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, - }, nil - } - - err = hct.WaitToFinish() - if err != nil { - return &servicepb.BoolResponse{ - Status: &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, - }, nil - } - - return hct.result, nil -} - -func (p *Proxy) DescribeCollection(ctx context.Context, req *servicepb.CollectionName) (*servicepb.CollectionDescription, error) { - log.Println("describe collection: ", req) - dct := &DescribeCollectionTask{ - Condition: NewTaskCondition(ctx), - DescribeCollectionRequest: milvuspb.DescribeCollectionRequest{ - Base: &commonpb.MsgBase{ - MsgType: commonpb.MsgType_kDescribeCollection, - }, - CollectionName: req.CollectionName, - }, - masterClient: p.masterClient, - } - var cancel func() - dct.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) - defer cancel() - - fn := func() error { - select { - case <-ctx.Done(): - return errors.New("create collection timeout") - default: - return p.sched.DdQueue.Enqueue(dct) - } - } - err := fn() - if err != nil { - return &servicepb.CollectionDescription{ - Status: &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, - }, nil - } - - err = dct.WaitToFinish() - if err != nil { - return &servicepb.CollectionDescription{ - Status: &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, - }, nil - } - - return dct.result, nil -} - -func (p *Proxy) ShowCollections(ctx context.Context, req *commonpb.Empty) (*servicepb.StringListResponse, error) { - log.Println("show collections") - sct := &ShowCollectionsTask{ - Condition: NewTaskCondition(ctx), - ShowCollectionRequest: milvuspb.ShowCollectionRequest{ - Base: &commonpb.MsgBase{ - MsgType: commonpb.MsgType_kShowCollections, - SourceID: Params.ProxyID(), - }, - }, - masterClient: p.masterClient, - } - var cancel func() - sct.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) - defer cancel() - - fn := func() error { - select { - case <-ctx.Done(): - return errors.New("create collection timeout") - default: - return p.sched.DdQueue.Enqueue(sct) - } - } - err := fn() - if err != nil { - return &servicepb.StringListResponse{ - Status: &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, - }, nil - } - - err = sct.WaitToFinish() - if err != nil { - return &servicepb.StringListResponse{ - Status: &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, - }, nil - } - - return sct.result, nil -} - -func (p *Proxy) CreatePartition(ctx context.Context, in *servicepb.PartitionName) (*commonpb.Status, error) { - log.Println("create partition", in) - cpt := &CreatePartitionTask{ - Condition: NewTaskCondition(ctx), - CreatePartitionRequest: milvuspb.CreatePartitionRequest{ - Base: &commonpb.MsgBase{ - MsgType: commonpb.MsgType_kCreatePartition, - SourceID: Params.ProxyID(), - }, - CollectionName: in.CollectionName, - PartitionName: in.Tag, - //TODO, ReqID,Timestamp,ProxyID - }, - masterClient: p.masterClient, - result: nil, - ctx: nil, - } - var cancel func() - cpt.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) - defer cancel() - - err := func() error { - select { - case <-ctx.Done(): - return errors.New("create partition timeout") - default: - return p.sched.DdQueue.Enqueue(cpt) - } - }() - - if err != nil { - return &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, nil - } - err = cpt.WaitToFinish() - if err != nil { - return &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, nil - } - return cpt.result, nil - -} - -func (p *Proxy) DropPartition(ctx context.Context, in *servicepb.PartitionName) (*commonpb.Status, error) { - log.Println("drop partition: ", in) - dpt := &DropPartitionTask{ - Condition: NewTaskCondition(ctx), - DropPartitionRequest: milvuspb.DropPartitionRequest{ - Base: &commonpb.MsgBase{ - MsgType: commonpb.MsgType_kDropPartition, - SourceID: Params.ProxyID(), - }, - CollectionName: in.CollectionName, - PartitionName: in.Tag, - //TODO, ReqID,Timestamp,ProxyID - }, - masterClient: p.masterClient, - result: nil, - ctx: nil, - } - - var cancel func() - dpt.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) - defer cancel() - - err := func() error { - select { - case <-ctx.Done(): - return errors.New("drop partition timeout") - default: - return p.sched.DdQueue.Enqueue(dpt) - } - }() - - if err != nil { - return &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, nil - } - err = dpt.WaitToFinish() - if err != nil { - return &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, nil - } - return dpt.result, nil - -} - -func (p *Proxy) HasPartition(ctx context.Context, in *servicepb.PartitionName) (*servicepb.BoolResponse, error) { - log.Println("has partition: ", in) - hpt := &HasPartitionTask{ - Condition: NewTaskCondition(ctx), - HasPartitionRequest: milvuspb.HasPartitionRequest{ - Base: &commonpb.MsgBase{ - MsgType: commonpb.MsgType_kHasPartition, - SourceID: Params.ProxyID(), - }, - CollectionName: in.CollectionName, - PartitionName: in.Tag, - //TODO, ReqID,Timestamp,ProxyID - }, - masterClient: p.masterClient, - result: nil, - ctx: nil, - } - - var cancel func() - hpt.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) - defer cancel() - - err := func() error { - select { - case <-ctx.Done(): - return errors.New("has partition timeout") - default: - return p.sched.DdQueue.Enqueue(hpt) - } - }() - - if err != nil { - return &servicepb.BoolResponse{ - Status: &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, - Value: false, - }, nil - } - err = hpt.WaitToFinish() - if err != nil { - return &servicepb.BoolResponse{ - Status: &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, - Value: false, - }, nil - } - return hpt.result, nil - -} - -func (p *Proxy) DescribePartition(ctx context.Context, in *servicepb.PartitionName) (*servicepb.PartitionDescription, error) { - log.Println("describe partition: ", in) - - return &servicepb.PartitionDescription{ - Status: &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: "Deprecated!", - }, - Name: in, - Statistics: nil, - }, nil - -} - -//func (p *Proxy) DescribePartition2(ctx context.Context, in *servicepb.PartitionName) (*servicepb.PartitionDescription, error) { +// +//func (node *NodeImpl) DescribePartition(ctx context.Context, in *milvuspb.PartitionName) (*milvuspb.PartitionDescription, error) { +// log.Println("describe partition: ", in) +// +// return &milvuspb.PartitionDescription{ +// Status: &commonpb.Status{ +// ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, +// Reason: "Deprecated!", +// }, +// Name: in, +// Statistics: nil, +// }, nil +// +//} +// +//func (p *NodeImpl) DescribePartition2(ctx context.Context, in *milvuspb.PartitionName) (*milvuspb.PartitionDescription, error) { // log.Println("describe partition: ", in) // dpt := &DescribePartitionTask{ // Condition: NewTaskCondition(ctx), @@ -568,7 +46,7 @@ func (p *Proxy) DescribePartition(ctx context.Context, in *servicepb.PartitionNa // }() // // if err != nil { -// return &servicepb.PartitionDescription{ +// return &milvuspb.PartitionDescription{ // Status: &commonpb.Status{ // ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, // Reason: err.Error(), @@ -580,7 +58,7 @@ func (p *Proxy) DescribePartition(ctx context.Context, in *servicepb.PartitionNa // // err = dpt.WaitToFinish() // if err != nil { -// return &servicepb.PartitionDescription{ +// return &milvuspb.PartitionDescription{ // Status: &commonpb.Status{ // ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, // Reason: err.Error(), @@ -591,210 +69,55 @@ func (p *Proxy) DescribePartition(ctx context.Context, in *servicepb.PartitionNa // } // return dpt.result, nil //} - -func (p *Proxy) ShowPartitions(ctx context.Context, req *servicepb.CollectionName) (*servicepb.StringListResponse, error) { - log.Println("show partitions: ", req) - spt := &ShowPartitionsTask{ - Condition: NewTaskCondition(ctx), - ShowPartitionRequest: milvuspb.ShowPartitionRequest{ - Base: &commonpb.MsgBase{ - MsgType: commonpb.MsgType_kShowPartitions, - SourceID: Params.ProxyID(), - }, - CollectionName: req.CollectionName, - }, - masterClient: p.masterClient, - result: nil, - ctx: nil, - } - - var cancel func() - spt.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) - defer cancel() - - err := func() error { - select { - case <-ctx.Done(): - return errors.New("show partition timeout") - default: - return p.sched.DdQueue.Enqueue(spt) - } - }() - - if err != nil { - return &servicepb.StringListResponse{ - Status: &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, - Values: nil, - }, nil - } - - err = spt.WaitToFinish() - if err != nil { - return &servicepb.StringListResponse{ - Status: &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, - Values: nil, - }, nil - } - return spt.result, nil -} - -func (p *Proxy) CreateIndex(ctx context.Context, indexParam *servicepb.IndexParam) (*commonpb.Status, error) { - log.Println("create index for: ", indexParam.FieldName) - cit := &CreateIndexTask{ - Condition: NewTaskCondition(ctx), - CreateIndexRequest: milvuspb.CreateIndexRequest{ - Base: &commonpb.MsgBase{ - MsgType: commonpb.MsgType_kCreateIndex, - SourceID: Params.ProxyID(), - }, - CollectionName: indexParam.CollectionName, - FieldName: indexParam.FieldName, - ExtraParams: indexParam.ExtraParams, - }, - masterClient: p.masterClient, - } - - var cancel func() - cit.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) - defer cancel() - - fn := func() error { - select { - case <-ctx.Done(): - return errors.New("create index timeout") - default: - return p.sched.DdQueue.Enqueue(cit) - } - } - err := fn() - if err != nil { - return &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, nil - } - - err = cit.WaitToFinish() - if err != nil { - return &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, nil - } - - return cit.result, nil -} - -func (p *Proxy) DescribeIndex(ctx context.Context, req *servicepb.DescribeIndexRequest) (*servicepb.DescribeIndexResponse, error) { - log.Println("Describe index for: ", req.FieldName) - dit := &DescribeIndexTask{ - Condition: NewTaskCondition(ctx), - DescribeIndexRequest: milvuspb.DescribeIndexRequest{ - Base: &commonpb.MsgBase{ - MsgType: commonpb.MsgType_kDescribeIndex, - SourceID: Params.ProxyID(), - }, - CollectionName: req.CollectionName, - FieldName: req.FieldName, - }, - masterClient: p.masterClient, - } - - var cancel func() - dit.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) - defer cancel() - - fn := func() error { - select { - case <-ctx.Done(): - return errors.New("create index timeout") - default: - return p.sched.DdQueue.Enqueue(dit) - } - } - err := fn() - if err != nil { - return &servicepb.DescribeIndexResponse{ - Status: &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, - CollectionName: req.CollectionName, - FieldName: req.FieldName, - ExtraParams: nil, - }, nil - } - - err = dit.WaitToFinish() - if err != nil { - return &servicepb.DescribeIndexResponse{ - Status: &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, - CollectionName: req.CollectionName, - FieldName: req.FieldName, - ExtraParams: nil, - }, nil - } - - return dit.result, nil -} - -func (p *Proxy) DescribeIndexProgress(ctx context.Context, req *servicepb.DescribeIndexProgressRequest) (*servicepb.BoolResponse, error) { - log.Println("Describe index progress for: ", req.FieldName) - dipt := &DescribeIndexProgressTask{ - Condition: NewTaskCondition(ctx), - IndexStateRequest: milvuspb.IndexStateRequest{ - Base: &commonpb.MsgBase{ - MsgType: commonpb.MsgType_kGetIndexState, - SourceID: Params.ProxyID(), - }, - CollectionName: req.CollectionName, - FieldName: req.FieldName, - }, - masterClient: p.masterClient, - } - - var cancel func() - dipt.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) - defer cancel() - - fn := func() error { - select { - case <-ctx.Done(): - return errors.New("create index timeout") - default: - return p.sched.DdQueue.Enqueue(dipt) - } - } - err := fn() - if err != nil { - return &servicepb.BoolResponse{ - Status: &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, - Value: false, - }, nil - } - - err = dipt.WaitToFinish() - if err != nil { - return &servicepb.BoolResponse{ - Status: &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - }, - Value: false, - }, nil - } - - return dipt.result, nil -} +// +//func (node *NodeImpl) DescribeIndexProgress(ctx context.Context, req *milvuspb.DescribeIndexProgressRequest) (*milvuspb.BoolResponse, error) { +// log.Println("Describe index progress for: ", req.FieldName) +// dipt := &GetIndexStateTask{ +// Condition: NewTaskCondition(ctx), +// IndexStateRequest: milvuspb.IndexStateRequest{ +// Base: &commonpb.MsgBase{ +// MsgType: commonpb.MsgType_kGetIndexState, +// SourceID: Params.ProxyID(), +// }, +// CollectionName: req.CollectionName, +// FieldName: req.FieldName, +// }, +// masterClient: node.masterClient, +// } +// +// var cancel func() +// dipt.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) +// defer cancel() +// +// fn := func() error { +// select { +// case <-ctx.Done(): +// return errors.New("create index timeout") +// default: +// return node.sched.DdQueue.Enqueue(dipt) +// } +// } +// err := fn() +// if err != nil { +// return &milvuspb.BoolResponse{ +// Status: &commonpb.Status{ +// ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, +// Reason: err.Error(), +// }, +// Value: false, +// }, nil +// } +// +// err = dipt.WaitToFinish() +// if err != nil { +// return &milvuspb.BoolResponse{ +// Status: &commonpb.Status{ +// ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, +// Reason: err.Error(), +// }, +// Value: false, +// }, nil +// } +// +// return dipt.result, nil +//} diff --git a/internal/proxynode/impl.go b/internal/proxynode/impl.go new file mode 100644 index 0000000000000000000000000000000000000000..609fefaa2eaf4ec4376a23f390103366768021f3 --- /dev/null +++ b/internal/proxynode/impl.go @@ -0,0 +1,674 @@ +package proxynode + +import ( + "context" + "log" + "strconv" + "time" + + "github.com/opentracing/opentracing-go" + "github.com/zilliztech/milvus-distributed/internal/msgstream" + "github.com/zilliztech/milvus-distributed/internal/proto/internalpb2" + + "github.com/zilliztech/milvus-distributed/internal/errors" + "github.com/zilliztech/milvus-distributed/internal/proto/commonpb" + "github.com/zilliztech/milvus-distributed/internal/proto/milvuspb" + "github.com/zilliztech/milvus-distributed/internal/proto/proxypb" +) + +const ( + reqTimeoutInterval = time.Second * 10 +) + +func (node *NodeImpl) InvalidateCollectionMetaCache(ctx context.Context, request *proxypb.InvalidateCollMetaCacheRequest) (*commonpb.Status, error) { + panic("implement me") +} + +func (node *NodeImpl) CreateCollection(ctx context.Context, request *milvuspb.CreateCollectionRequest) (*commonpb.Status, error) { + log.Println("create collection: ", request) + cct := &CreateCollectionTask{ + Condition: NewTaskCondition(ctx), + CreateCollectionRequest: request, + masterClient: node.masterClient, + } + var cancel func() + cct.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) + defer cancel() + + fn := func() error { + select { + case <-ctx.Done(): + return errors.New("create collection timeout") + default: + return node.sched.DdQueue.Enqueue(cct) + } + } + err := fn() + if err != nil { + return &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, nil + } + + err = cct.WaitToFinish() + if err != nil { + return &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, nil + } + + return cct.result, nil +} + +func (node *NodeImpl) DropCollection(ctx context.Context, request *milvuspb.DropCollectionRequest) (*commonpb.Status, error) { + log.Println("drop collection: ", request) + dct := &DropCollectionTask{ + Condition: NewTaskCondition(ctx), + DropCollectionRequest: request, + masterClient: node.masterClient, + } + var cancel func() + dct.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) + defer cancel() + + fn := func() error { + select { + case <-ctx.Done(): + return errors.New("create collection timeout") + default: + return node.sched.DdQueue.Enqueue(dct) + } + } + err := fn() + if err != nil { + return &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, nil + } + + err = dct.WaitToFinish() + if err != nil { + return &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, nil + } + + return dct.result, nil +} + +func (node *NodeImpl) HasCollection(ctx context.Context, request *milvuspb.HasCollectionRequest) (*milvuspb.BoolResponse, error) { + log.Println("has collection: ", request) + hct := &HasCollectionTask{ + Condition: NewTaskCondition(ctx), + HasCollectionRequest: request, + masterClient: node.masterClient, + } + var cancel func() + hct.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) + defer cancel() + + fn := func() error { + select { + case <-ctx.Done(): + return errors.New("create collection timeout") + default: + return node.sched.DdQueue.Enqueue(hct) + } + } + err := fn() + if err != nil { + return &milvuspb.BoolResponse{ + Status: &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, + }, nil + } + + err = hct.WaitToFinish() + if err != nil { + return &milvuspb.BoolResponse{ + Status: &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, + }, nil + } + + return hct.result, nil +} + +func (node *NodeImpl) LoadCollection(ctx context.Context, request *milvuspb.LoadCollectionRequest) (*commonpb.Status, error) { + panic("implement me") +} + +func (node *NodeImpl) ReleaseCollection(ctx context.Context, request *milvuspb.ReleaseCollectionRequest) (*commonpb.Status, error) { + panic("implement me") +} + +func (node *NodeImpl) DescribeCollection(ctx context.Context, request *milvuspb.DescribeCollectionRequest) (*milvuspb.DescribeCollectionResponse, error) { + log.Println("describe collection: ", request) + dct := &DescribeCollectionTask{ + Condition: NewTaskCondition(ctx), + DescribeCollectionRequest: request, + masterClient: node.masterClient, + } + var cancel func() + dct.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) + defer cancel() + + fn := func() error { + select { + case <-ctx.Done(): + return errors.New("create collection timeout") + default: + return node.sched.DdQueue.Enqueue(dct) + } + } + err := fn() + if err != nil { + return &milvuspb.DescribeCollectionResponse{ + Status: &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, + }, nil + } + + err = dct.WaitToFinish() + if err != nil { + return &milvuspb.DescribeCollectionResponse{ + Status: &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, + }, nil + } + + return dct.result, nil +} + +func (node *NodeImpl) GetCollectionStatistics(ctx context.Context, request *milvuspb.CollectionStatsRequest) (*milvuspb.CollectionStatsResponse, error) { + panic("implement me") +} + +func (node *NodeImpl) ShowCollections(ctx context.Context, request *milvuspb.ShowCollectionRequest) (*milvuspb.ShowCollectionResponse, error) { + log.Println("show collections") + sct := &ShowCollectionsTask{ + Condition: NewTaskCondition(ctx), + ShowCollectionRequest: request, + masterClient: node.masterClient, + } + var cancel func() + sct.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) + defer cancel() + + fn := func() error { + select { + case <-ctx.Done(): + return errors.New("create collection timeout") + default: + return node.sched.DdQueue.Enqueue(sct) + } + } + err := fn() + if err != nil { + return &milvuspb.ShowCollectionResponse{ + Status: &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, + }, nil + } + + err = sct.WaitToFinish() + if err != nil { + return &milvuspb.ShowCollectionResponse{ + Status: &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, + }, nil + } + + return sct.result, nil +} + +func (node *NodeImpl) CreatePartition(ctx context.Context, request *milvuspb.CreatePartitionRequest) (*commonpb.Status, error) { + log.Println("create partition", request) + cpt := &CreatePartitionTask{ + Condition: NewTaskCondition(ctx), + CreatePartitionRequest: request, + masterClient: node.masterClient, + result: nil, + ctx: nil, + } + var cancel func() + cpt.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) + defer cancel() + + err := func() error { + select { + case <-ctx.Done(): + return errors.New("create partition timeout") + default: + return node.sched.DdQueue.Enqueue(cpt) + } + }() + + if err != nil { + return &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, nil + } + err = cpt.WaitToFinish() + if err != nil { + return &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, nil + } + return cpt.result, nil +} + +func (node *NodeImpl) DropPartition(ctx context.Context, request *milvuspb.DropPartitionRequest) (*commonpb.Status, error) { + log.Println("drop partition: ", request) + dpt := &DropPartitionTask{ + Condition: NewTaskCondition(ctx), + DropPartitionRequest: request, + masterClient: node.masterClient, + result: nil, + ctx: nil, + } + + var cancel func() + dpt.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) + defer cancel() + + err := func() error { + select { + case <-ctx.Done(): + return errors.New("drop partition timeout") + default: + return node.sched.DdQueue.Enqueue(dpt) + } + }() + + if err != nil { + return &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, nil + } + err = dpt.WaitToFinish() + if err != nil { + return &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, nil + } + return dpt.result, nil +} + +func (node *NodeImpl) HasPartition(ctx context.Context, request *milvuspb.HasPartitionRequest) (*milvuspb.BoolResponse, error) { + log.Println("has partition: ", request) + hpt := &HasPartitionTask{ + Condition: NewTaskCondition(ctx), + HasPartitionRequest: request, + masterClient: node.masterClient, + result: nil, + ctx: nil, + } + + var cancel func() + hpt.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) + defer cancel() + + err := func() error { + select { + case <-ctx.Done(): + return errors.New("has partition timeout") + default: + return node.sched.DdQueue.Enqueue(hpt) + } + }() + + if err != nil { + return &milvuspb.BoolResponse{ + Status: &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, + Value: false, + }, nil + } + err = hpt.WaitToFinish() + if err != nil { + return &milvuspb.BoolResponse{ + Status: &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, + Value: false, + }, nil + } + return hpt.result, nil +} + +func (node *NodeImpl) LoadPartitions(ctx context.Context, request *milvuspb.LoadPartitonRequest) (*commonpb.Status, error) { + panic("implement me") +} + +func (node *NodeImpl) ReleasePartitions(ctx context.Context, request *milvuspb.ReleasePartitionRequest) (*commonpb.Status, error) { + panic("implement me") +} + +func (node *NodeImpl) GetPartitionStatistics(ctx context.Context, request *milvuspb.PartitionStatsRequest) (*milvuspb.PartitionStatsResponse, error) { + panic("implement me") +} + +func (node *NodeImpl) ShowPartitions(ctx context.Context, request *milvuspb.ShowPartitionRequest) (*milvuspb.ShowPartitionResponse, error) { + log.Println("show partitions: ", request) + spt := &ShowPartitionsTask{ + Condition: NewTaskCondition(ctx), + ShowPartitionRequest: request, + masterClient: node.masterClient, + result: nil, + ctx: nil, + } + + var cancel func() + spt.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) + defer cancel() + + err := func() error { + select { + case <-ctx.Done(): + return errors.New("show partition timeout") + default: + return node.sched.DdQueue.Enqueue(spt) + } + }() + + if err != nil { + return &milvuspb.ShowPartitionResponse{ + Status: &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, + }, nil + } + + err = spt.WaitToFinish() + if err != nil { + return &milvuspb.ShowPartitionResponse{ + Status: &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, + }, nil + } + return spt.result, nil +} + +func (node *NodeImpl) CreateIndex(ctx context.Context, request *milvuspb.CreateIndexRequest) (*commonpb.Status, error) { + log.Println("create index for: ", request) + cit := &CreateIndexTask{ + Condition: NewTaskCondition(ctx), + CreateIndexRequest: request, + masterClient: node.masterClient, + } + + var cancel func() + cit.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) + defer cancel() + + fn := func() error { + select { + case <-ctx.Done(): + return errors.New("create index timeout") + default: + return node.sched.DdQueue.Enqueue(cit) + } + } + err := fn() + if err != nil { + return &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, nil + } + + err = cit.WaitToFinish() + if err != nil { + return &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, nil + } + + return cit.result, nil +} + +func (node *NodeImpl) DescribeIndex(ctx context.Context, request *milvuspb.DescribeIndexRequest) (*milvuspb.DescribeIndexResponse, error) { + log.Println("Describe index for: ", request) + dit := &DescribeIndexTask{ + Condition: NewTaskCondition(ctx), + DescribeIndexRequest: request, + masterClient: node.masterClient, + } + + var cancel func() + dit.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) + defer cancel() + + fn := func() error { + select { + case <-ctx.Done(): + return errors.New("create index timeout") + default: + return node.sched.DdQueue.Enqueue(dit) + } + } + err := fn() + if err != nil { + return &milvuspb.DescribeIndexResponse{ + Status: &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, + }, nil + } + + err = dit.WaitToFinish() + if err != nil { + return &milvuspb.DescribeIndexResponse{ + Status: &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, + }, nil + } + + return dit.result, nil +} + +func (node *NodeImpl) GetIndexState(ctx context.Context, request *milvuspb.IndexStateRequest) (*milvuspb.IndexStateResponse, error) { + log.Println("Describe index progress for: ", request) + dipt := &GetIndexStateTask{ + Condition: NewTaskCondition(ctx), + IndexStateRequest: request, + masterClient: node.masterClient, + } + + var cancel func() + dipt.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) + defer cancel() + + fn := func() error { + select { + case <-ctx.Done(): + return errors.New("create index timeout") + default: + return node.sched.DdQueue.Enqueue(dipt) + } + } + err := fn() + if err != nil { + return &milvuspb.IndexStateResponse{ + Status: &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, + }, nil + } + + err = dipt.WaitToFinish() + if err != nil { + return &milvuspb.IndexStateResponse{ + Status: &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, + }, nil + } + + return dipt.result, nil +} + +func (node *NodeImpl) Insert(ctx context.Context, request *milvuspb.InsertRequest) (*milvuspb.InsertResponse, error) { + span, ctx := opentracing.StartSpanFromContext(ctx, "insert grpc received") + defer span.Finish() + span.SetTag("collection name", request.CollectionName) + span.SetTag("partition tag", request.PartitionName) + log.Println("insert into: ", request.CollectionName) + it := &InsertTask{ + ctx: ctx, + Condition: NewTaskCondition(ctx), + BaseInsertTask: BaseInsertTask{ + BaseMsg: msgstream.BaseMsg{ + HashValues: request.HashKeys, + }, + InsertRequest: internalpb2.InsertRequest{ + Base: &commonpb.MsgBase{ + MsgType: commonpb.MsgType_kInsert, + MsgID: 0, + }, + CollectionName: request.CollectionName, + PartitionName: request.PartitionName, + RowData: request.RowData, + }, + }, + manipulationMsgStream: node.manipulationMsgStream, + rowIDAllocator: node.idAllocator, + } + if len(it.PartitionName) <= 0 { + it.PartitionName = Params.defaultPartitionTag() + } + + var cancel func() + it.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) + + defer cancel() + + fn := func() error { + select { + case <-ctx.Done(): + return errors.New("insert timeout") + default: + return node.sched.DmQueue.Enqueue(it) + } + } + err := fn() + + if err != nil { + return &milvuspb.InsertResponse{ + Status: &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, + }, nil + } + + err = it.WaitToFinish() + if err != nil { + return &milvuspb.InsertResponse{ + Status: &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, + }, nil + } + + return it.result, nil +} + +func (node *NodeImpl) Search(ctx context.Context, request *milvuspb.SearchRequest) (*milvuspb.SearchResults, error) { + span, ctx := opentracing.StartSpanFromContext(ctx, "search grpc received") + defer span.Finish() + span.SetTag("collection name", request.CollectionName) + span.SetTag("partition tag", request.PartitionNames) + span.SetTag("dsl", request.Dsl) + log.Println("search: ", request.CollectionName, request.Dsl) + qt := &SearchTask{ + ctx: ctx, + Condition: NewTaskCondition(ctx), + SearchRequest: internalpb2.SearchRequest{ + Base: &commonpb.MsgBase{ + MsgType: commonpb.MsgType_kSearch, + SourceID: Params.ProxyID(), + }, + ResultChannelID: strconv.FormatInt(Params.ProxyID(), 10), + }, + queryMsgStream: node.queryMsgStream, + resultBuf: make(chan []*internalpb2.SearchResults), + query: request, + } + var cancel func() + qt.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval) + log.Printf("grpc address of query task: %p", qt) + defer cancel() + + fn := func() error { + select { + case <-ctx.Done(): + return errors.New("create collection timeout") + default: + return node.sched.DqQueue.Enqueue(qt) + } + } + err := fn() + if err != nil { + return &milvuspb.SearchResults{ + Status: &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, + }, nil + } + + err = qt.WaitToFinish() + if err != nil { + return &milvuspb.SearchResults{ + Status: &commonpb.Status{ + ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, + Reason: err.Error(), + }, + }, nil + } + + return qt.result, nil +} + +func (node *NodeImpl) Flush(ctx context.Context, request *milvuspb.FlushRequest) (*commonpb.Status, error) { + panic("implement me") +} + +func (node *NodeImpl) GetDdChannel(ctx context.Context, request *commonpb.Empty) (*milvuspb.StringResponse, error) { + panic("implement me") +} diff --git a/internal/proxynode/init_params.go b/internal/proxynode/init_params.go new file mode 100644 index 0000000000000000000000000000000000000000..4dd92a2347036d1d8c269e4410bb92ba3441151f --- /dev/null +++ b/internal/proxynode/init_params.go @@ -0,0 +1,33 @@ +package proxynode + +// This file lists all the parameter proxynode node needs to start, +// not used, just for me to record. + +type InitParams struct { + nodeID UniqueID + + proxyServiceAddress string + masterAddress string + pulsarAddress string + + searchBufSize int + searchChannelNames []string + + searchResultBufSize int + searchResultChannelNames []string + subTopicName string + + // TODO: this variable dynamic changes, how? + queryNodeNum int + + insertBufSize int + insertChannelNames []string + + timeTickBufSize int + timeTickChannelNames []string + + defaultPartitionName string + maxFieldNum int + maxNameLength int + maxDimension int +} diff --git a/internal/proxynode/interface.go b/internal/proxynode/interface.go new file mode 100644 index 0000000000000000000000000000000000000000..fcae49e1f2bd658936e450e7d9c5e3d5c9cc3885 --- /dev/null +++ b/internal/proxynode/interface.go @@ -0,0 +1,46 @@ +package proxynode + +import ( + "context" + + "github.com/zilliztech/milvus-distributed/internal/proto/milvuspb" + + "github.com/zilliztech/milvus-distributed/internal/proto/commonpb" + + "github.com/zilliztech/milvus-distributed/internal/proto/proxypb" +) + +type ProxyNode interface { + Init() error + Start() error + Stop() error + + InvalidateCollectionMetaCache(ctx context.Context, request *proxypb.InvalidateCollMetaCacheRequest) (*commonpb.Status, error) + + CreateCollection(ctx context.Context, request *milvuspb.CreateCollectionRequest) (*commonpb.Status, error) + DropCollection(ctx context.Context, request *milvuspb.DropCollectionRequest) (*commonpb.Status, error) + HasCollection(ctx context.Context, request *milvuspb.HasCollectionRequest) (*milvuspb.BoolResponse, error) + LoadCollection(ctx context.Context, request *milvuspb.LoadCollectionRequest) (*commonpb.Status, error) + ReleaseCollection(ctx context.Context, request *milvuspb.ReleaseCollectionRequest) (*commonpb.Status, error) + DescribeCollection(ctx context.Context, request *milvuspb.DescribeCollectionRequest) (*milvuspb.DescribeCollectionResponse, error) + GetCollectionStatistics(ctx context.Context, request *milvuspb.CollectionStatsRequest) (*milvuspb.CollectionStatsResponse, error) + ShowCollections(ctx context.Context, request *milvuspb.ShowCollectionRequest) (*milvuspb.ShowCollectionResponse, error) + + CreatePartition(ctx context.Context, request *milvuspb.CreatePartitionRequest) (*commonpb.Status, error) + DropPartition(ctx context.Context, request *milvuspb.DropPartitionRequest) (*commonpb.Status, error) + HasPartition(ctx context.Context, request *milvuspb.HasPartitionRequest) (*milvuspb.BoolResponse, error) + LoadPartitions(ctx context.Context, request *milvuspb.LoadPartitonRequest) (*commonpb.Status, error) + ReleasePartitions(ctx context.Context, request *milvuspb.ReleasePartitionRequest) (*commonpb.Status, error) + GetPartitionStatistics(ctx context.Context, request *milvuspb.PartitionStatsRequest) (*milvuspb.PartitionStatsResponse, error) + ShowPartitions(ctx context.Context, request *milvuspb.ShowPartitionRequest) (*milvuspb.ShowPartitionResponse, error) + + CreateIndex(ctx context.Context, request *milvuspb.CreateIndexRequest) (*commonpb.Status, error) + DescribeIndex(ctx context.Context, request *milvuspb.DescribeIndexRequest) (*milvuspb.DescribeIndexResponse, error) + GetIndexState(ctx context.Context, request *milvuspb.IndexStateRequest) (*milvuspb.IndexStateResponse, error) + + Insert(ctx context.Context, request *milvuspb.InsertRequest) (*milvuspb.InsertResponse, error) + Search(ctx context.Context, request *milvuspb.SearchRequest) (*milvuspb.SearchResults, error) + Flush(ctx context.Context, request *milvuspb.FlushRequest) (*commonpb.Status, error) + + GetDdChannel(ctx context.Context, request *commonpb.Empty) (*milvuspb.StringResponse, error) +} diff --git a/internal/proxynode/meta_cache.go b/internal/proxynode/meta_cache.go index c5dbb9ec4bf39f48e68e70edea1d0a96cac563c6..ae579519580c7722165bab3a4dd57c3f3fc23a19 100644 --- a/internal/proxynode/meta_cache.go +++ b/internal/proxynode/meta_cache.go @@ -7,14 +7,13 @@ import ( "github.com/zilliztech/milvus-distributed/internal/errors" "github.com/zilliztech/milvus-distributed/internal/proto/commonpb" "github.com/zilliztech/milvus-distributed/internal/proto/milvuspb" - "github.com/zilliztech/milvus-distributed/internal/proto/servicepb" ) type Cache interface { Hit(collectionName string) bool - Get(collectionName string) (*servicepb.CollectionDescription, error) + Get(collectionName string) (*milvuspb.DescribeCollectionResponse, error) Sync(collectionName string) error - Update(collectionName string, desc *servicepb.CollectionDescription) error + Update(collectionName string, desc *milvuspb.DescribeCollectionResponse) error Remove(collectionName string) error } @@ -22,9 +21,9 @@ var globalMetaCache Cache type SimpleMetaCache struct { mu sync.RWMutex - metas map[string]*servicepb.CollectionDescription // collection name to schema + metas map[string]*milvuspb.DescribeCollectionResponse // collection name to schema ctx context.Context - proxyInstance *Proxy + proxyInstance *NodeImpl } func (metaCache *SimpleMetaCache) Hit(collectionName string) bool { @@ -34,7 +33,7 @@ func (metaCache *SimpleMetaCache) Hit(collectionName string) bool { return ok } -func (metaCache *SimpleMetaCache) Get(collectionName string) (*servicepb.CollectionDescription, error) { +func (metaCache *SimpleMetaCache) Get(collectionName string) (*milvuspb.DescribeCollectionResponse, error) { metaCache.mu.RLock() defer metaCache.mu.RUnlock() schema, ok := metaCache.metas[collectionName] @@ -47,7 +46,7 @@ func (metaCache *SimpleMetaCache) Get(collectionName string) (*servicepb.Collect func (metaCache *SimpleMetaCache) Sync(collectionName string) error { dct := &DescribeCollectionTask{ Condition: NewTaskCondition(metaCache.ctx), - DescribeCollectionRequest: milvuspb.DescribeCollectionRequest{ + DescribeCollectionRequest: &milvuspb.DescribeCollectionRequest{ Base: &commonpb.MsgBase{ MsgType: commonpb.MsgType_kDescribeCollection, }, @@ -67,7 +66,7 @@ func (metaCache *SimpleMetaCache) Sync(collectionName string) error { return dct.WaitToFinish() } -func (metaCache *SimpleMetaCache) Update(collectionName string, desc *servicepb.CollectionDescription) error { +func (metaCache *SimpleMetaCache) Update(collectionName string, desc *milvuspb.DescribeCollectionResponse) error { metaCache.mu.Lock() defer metaCache.mu.Unlock() @@ -88,14 +87,14 @@ func (metaCache *SimpleMetaCache) Remove(collectionName string) error { return nil } -func newSimpleMetaCache(ctx context.Context, proxyInstance *Proxy) *SimpleMetaCache { +func newSimpleMetaCache(ctx context.Context, proxyInstance *NodeImpl) *SimpleMetaCache { return &SimpleMetaCache{ - metas: make(map[string]*servicepb.CollectionDescription), + metas: make(map[string]*milvuspb.DescribeCollectionResponse), proxyInstance: proxyInstance, ctx: ctx, } } -func initGlobalMetaCache(ctx context.Context, proxyInstance *Proxy) { +func initGlobalMetaCache(ctx context.Context, proxyInstance *NodeImpl) { globalMetaCache = newSimpleMetaCache(ctx, proxyInstance) } diff --git a/internal/proxynode/paramtable.go b/internal/proxynode/paramtable.go index 3c3c205cd5a4fe2ae62ca9adac6b852b3c2e07c0..c3646bc8d67277eb49fe8ff045f801b61260d80d 100644 --- a/internal/proxynode/paramtable.go +++ b/internal/proxynode/paramtable.go @@ -65,6 +65,30 @@ func (pt *ParamTable) NetworkAddress() string { return addr + ":" + port } +func (pt *ParamTable) ProxyServiceAddress() string { + addr, err := pt.Load("proxyService.address") + if err != nil { + panic(err) + } + + hostName, _ := net.LookupHost(addr) + if len(hostName) <= 0 { + if ip := net.ParseIP(addr); ip == nil { + panic("invalid ip proxyService.address") + } + } + + port, err := pt.Load("proxyService.port") + if err != nil { + panic(err) + } + _, err = strconv.Atoi(port) + if err != nil { + panic(err) + } + return addr + ":" + port +} + func (pt *ParamTable) MasterAddress() string { ret, err := pt.Load("_MasterAddress") if err != nil { diff --git a/internal/proxynode/proxy.go b/internal/proxynode/proxy.go deleted file mode 100644 index ba440ec1cc1c247fc2a5c4c63bec56cf0f2a4cd5..0000000000000000000000000000000000000000 --- a/internal/proxynode/proxy.go +++ /dev/null @@ -1,239 +0,0 @@ -package proxynode - -import ( - "context" - "fmt" - "io" - "log" - "math/rand" - "net" - "strconv" - "sync" - "time" - - "github.com/opentracing/opentracing-go" - "github.com/uber/jaeger-client-go/config" - - "google.golang.org/grpc" - - "github.com/zilliztech/milvus-distributed/internal/allocator" - "github.com/zilliztech/milvus-distributed/internal/msgstream" - "github.com/zilliztech/milvus-distributed/internal/msgstream/pulsarms" - "github.com/zilliztech/milvus-distributed/internal/proto/masterpb" - "github.com/zilliztech/milvus-distributed/internal/proto/servicepb" - "github.com/zilliztech/milvus-distributed/internal/util/typeutil" -) - -type UniqueID = typeutil.UniqueID -type Timestamp = typeutil.Timestamp - -type Proxy struct { - proxyLoopCtx context.Context - proxyLoopCancel func() - proxyLoopWg sync.WaitGroup - - grpcServer *grpc.Server - masterConn *grpc.ClientConn - masterClient masterpb.MasterServiceClient - sched *TaskScheduler - tick *timeTick - - idAllocator *allocator.IDAllocator - tsoAllocator *allocator.TimestampAllocator - segAssigner *allocator.SegIDAssigner - - manipulationMsgStream *pulsarms.PulsarMsgStream - queryMsgStream *pulsarms.PulsarMsgStream - - tracer opentracing.Tracer - closer io.Closer - - // Add callback functions at different stages - startCallbacks []func() - closeCallbacks []func() -} - -func Init() { - Params.Init() -} - -func CreateProxy(ctx context.Context) (*Proxy, error) { - rand.Seed(time.Now().UnixNano()) - ctx1, cancel := context.WithCancel(ctx) - var err error - p := &Proxy{ - proxyLoopCtx: ctx1, - proxyLoopCancel: cancel, - } - - cfg := &config.Configuration{ - ServiceName: "proxynode", - Sampler: &config.SamplerConfig{ - Type: "const", - Param: 1, - }, - } - p.tracer, p.closer, err = cfg.NewTracer() - if err != nil { - panic(fmt.Sprintf("ERROR: cannot init Jaeger: %v\n", err)) - } - opentracing.SetGlobalTracer(p.tracer) - - pulsarAddress := Params.PulsarAddress() - - p.queryMsgStream = pulsarms.NewPulsarMsgStream(p.proxyLoopCtx, Params.MsgStreamSearchBufSize()) - p.queryMsgStream.SetPulsarClient(pulsarAddress) - p.queryMsgStream.CreatePulsarProducers(Params.SearchChannelNames()) - - masterAddr := Params.MasterAddress() - idAllocator, err := allocator.NewIDAllocator(p.proxyLoopCtx, masterAddr) - - if err != nil { - return nil, err - } - p.idAllocator = idAllocator - p.idAllocator.PeerID = Params.ProxyID() - - tsoAllocator, err := allocator.NewTimestampAllocator(p.proxyLoopCtx, masterAddr) - if err != nil { - return nil, err - } - p.tsoAllocator = tsoAllocator - p.tsoAllocator.PeerID = Params.ProxyID() - - segAssigner, err := allocator.NewSegIDAssigner(p.proxyLoopCtx, masterAddr, p.lastTick) - if err != nil { - panic(err) - } - p.segAssigner = segAssigner - p.segAssigner.PeerID = Params.ProxyID() - - p.manipulationMsgStream = pulsarms.NewPulsarMsgStream(p.proxyLoopCtx, Params.MsgStreamInsertBufSize()) - p.manipulationMsgStream.SetPulsarClient(pulsarAddress) - p.manipulationMsgStream.CreatePulsarProducers(Params.InsertChannelNames()) - repackFuncImpl := func(tsMsgs []msgstream.TsMsg, hashKeys [][]int32) (map[int32]*msgstream.MsgPack, error) { - return insertRepackFunc(tsMsgs, hashKeys, p.segAssigner, false) - } - p.manipulationMsgStream.SetRepackFunc(repackFuncImpl) - - p.sched, err = NewTaskScheduler(p.proxyLoopCtx, p.idAllocator, p.tsoAllocator) - if err != nil { - return nil, err - } - - p.tick = newTimeTick(p.proxyLoopCtx, p.tsoAllocator, time.Millisecond*200, p.sched.TaskDoneTest) - - return p, nil -} - -// AddStartCallback adds a callback in the startServer phase. -func (p *Proxy) AddStartCallback(callbacks ...func()) { - p.startCallbacks = append(p.startCallbacks, callbacks...) -} - -func (p *Proxy) lastTick() Timestamp { - return p.tick.LastTick() -} - -func (p *Proxy) startProxy() error { - err := p.connectMaster() - if err != nil { - return err - } - initGlobalMetaCache(p.proxyLoopCtx, p) - p.manipulationMsgStream.Start() - p.queryMsgStream.Start() - p.sched.Start() - p.idAllocator.Start() - p.tsoAllocator.Start() - p.segAssigner.Start() - p.tick.Start() - - // Start callbacks - for _, cb := range p.startCallbacks { - cb() - } - - p.proxyLoopWg.Add(1) - go p.grpcLoop() - - return nil -} - -// AddCloseCallback adds a callback in the Close phase. -func (p *Proxy) AddCloseCallback(callbacks ...func()) { - p.closeCallbacks = append(p.closeCallbacks, callbacks...) -} - -func (p *Proxy) grpcLoop() { - defer p.proxyLoopWg.Done() - - lis, err := net.Listen("tcp", ":"+strconv.Itoa(Params.NetworkPort())) - if err != nil { - log.Fatalf("Proxy grpc server fatal error=%v", err) - } - - p.grpcServer = grpc.NewServer() - servicepb.RegisterMilvusServiceServer(p.grpcServer, p) - if err = p.grpcServer.Serve(lis); err != nil { - log.Fatalf("Proxy grpc server fatal error=%v", err) - } -} - -func (p *Proxy) connectMaster() error { - masterAddr := Params.MasterAddress() - log.Printf("Proxy connected to master, master_addr=%s", masterAddr) - ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) - defer cancel() - conn, err := grpc.DialContext(ctx, masterAddr, grpc.WithInsecure(), grpc.WithBlock()) - if err != nil { - log.Printf("Proxy connect to master failed, error= %v", err) - return err - } - log.Printf("Proxy connected to master, master_addr=%s", masterAddr) - p.masterConn = conn - p.masterClient = masterpb.NewMasterServiceClient(conn) - return nil -} - -func (p *Proxy) Start() error { - return p.startProxy() -} - -func (p *Proxy) stopProxyLoop() { - p.proxyLoopCancel() - - if p.grpcServer != nil { - p.grpcServer.GracefulStop() - } - p.tsoAllocator.Close() - - p.idAllocator.Close() - - p.segAssigner.Close() - - p.sched.Close() - - p.manipulationMsgStream.Close() - - p.queryMsgStream.Close() - - p.tick.Close() - - p.proxyLoopWg.Wait() - -} - -// Close closes the server. -func (p *Proxy) Close() { - p.stopProxyLoop() - - if p.closer != nil { - p.closer.Close() - } - - for _, cb := range p.closeCallbacks { - cb() - } - log.Print("proxynode closed.") -} diff --git a/internal/proxynode/proxy_node.go b/internal/proxynode/proxy_node.go new file mode 100644 index 0000000000000000000000000000000000000000..838e351585ebffd936b2ba4713d1dcafbd5618a9 --- /dev/null +++ b/internal/proxynode/proxy_node.go @@ -0,0 +1,212 @@ +package proxynode + +import ( + "context" + "fmt" + "io" + "log" + "math/rand" + "sync" + "time" + + "github.com/zilliztech/milvus-distributed/internal/msgstream/pulsarms" + + "github.com/zilliztech/milvus-distributed/internal/proto/internalpb2" + + "github.com/opentracing/opentracing-go" + "github.com/uber/jaeger-client-go/config" + + "google.golang.org/grpc" + + "github.com/zilliztech/milvus-distributed/internal/allocator" + "github.com/zilliztech/milvus-distributed/internal/msgstream" + "github.com/zilliztech/milvus-distributed/internal/proto/masterpb" + "github.com/zilliztech/milvus-distributed/internal/util/typeutil" +) + +type UniqueID = typeutil.UniqueID +type Timestamp = typeutil.Timestamp + +type NodeImpl struct { + ctx context.Context + cancel func() + wg sync.WaitGroup + + initParams *internalpb2.InitParams + ip string + port int + + masterConn *grpc.ClientConn + masterClient masterpb.MasterServiceClient + sched *TaskScheduler + tick *timeTick + + idAllocator *allocator.IDAllocator + tsoAllocator *allocator.TimestampAllocator + segAssigner *allocator.SegIDAssigner + + manipulationMsgStream *pulsarms.PulsarMsgStream + queryMsgStream *pulsarms.PulsarMsgStream + + tracer opentracing.Tracer + closer io.Closer + + // Add callback functions at different stages + startCallbacks []func() + closeCallbacks []func() +} + +func CreateProxyNodeImpl(ctx context.Context) (*NodeImpl, error) { + rand.Seed(time.Now().UnixNano()) + ctx1, cancel := context.WithCancel(ctx) + node := &NodeImpl{ + ctx: ctx1, + cancel: cancel, + } + + return node, nil +} + +func (node *NodeImpl) Init() error { + //Params.Init() + + var err error + + cfg := &config.Configuration{ + ServiceName: "proxynode", + Sampler: &config.SamplerConfig{ + Type: "const", + Param: 1, + }, + } + node.tracer, node.closer, err = cfg.NewTracer() + if err != nil { + panic(fmt.Sprintf("ERROR: cannot init Jaeger: %v\n", err)) + } + opentracing.SetGlobalTracer(node.tracer) + + pulsarAddress := Params.PulsarAddress() + + node.queryMsgStream = pulsarms.NewPulsarMsgStream(node.ctx, Params.MsgStreamSearchBufSize()) + node.queryMsgStream.SetPulsarClient(pulsarAddress) + node.queryMsgStream.CreatePulsarProducers(Params.SearchChannelNames()) + + masterAddr := Params.MasterAddress() + idAllocator, err := allocator.NewIDAllocator(node.ctx, masterAddr) + + if err != nil { + return err + } + node.idAllocator = idAllocator + node.idAllocator.PeerID = Params.ProxyID() + + tsoAllocator, err := allocator.NewTimestampAllocator(node.ctx, masterAddr) + if err != nil { + return err + } + node.tsoAllocator = tsoAllocator + node.tsoAllocator.PeerID = Params.ProxyID() + + segAssigner, err := allocator.NewSegIDAssigner(node.ctx, masterAddr, node.lastTick) + if err != nil { + panic(err) + } + node.segAssigner = segAssigner + node.segAssigner.PeerID = Params.ProxyID() + + node.manipulationMsgStream = pulsarms.NewPulsarMsgStream(node.ctx, Params.MsgStreamInsertBufSize()) + node.manipulationMsgStream.SetPulsarClient(pulsarAddress) + node.manipulationMsgStream.CreatePulsarProducers(Params.InsertChannelNames()) + repackFuncImpl := func(tsMsgs []msgstream.TsMsg, hashKeys [][]int32) (map[int32]*msgstream.MsgPack, error) { + return insertRepackFunc(tsMsgs, hashKeys, node.segAssigner, false) + } + node.manipulationMsgStream.SetRepackFunc(repackFuncImpl) + + node.sched, err = NewTaskScheduler(node.ctx, node.idAllocator, node.tsoAllocator) + if err != nil { + return err + } + + node.tick = newTimeTick(node.ctx, node.tsoAllocator, time.Millisecond*200, node.sched.TaskDoneTest) + + return nil +} + +func (node *NodeImpl) Start() error { + err := node.connectMaster() + if err != nil { + return err + } + initGlobalMetaCache(node.ctx, node) + node.manipulationMsgStream.Start() + node.queryMsgStream.Start() + node.sched.Start() + node.idAllocator.Start() + node.tsoAllocator.Start() + node.segAssigner.Start() + node.tick.Start() + + // Start callbacks + for _, cb := range node.startCallbacks { + cb() + } + + return nil +} + +func (node *NodeImpl) Stop() error { + node.cancel() + + node.tsoAllocator.Close() + node.idAllocator.Close() + node.segAssigner.Close() + node.sched.Close() + node.manipulationMsgStream.Close() + node.queryMsgStream.Close() + node.tick.Close() + + node.wg.Wait() + + if node.closer != nil { + err := node.closer.Close() + if err != nil { + return err + } + } + + for _, cb := range node.closeCallbacks { + cb() + } + + return nil +} + +// AddStartCallback adds a callback in the startServer phase. +func (node *NodeImpl) AddStartCallback(callbacks ...func()) { + node.startCallbacks = append(node.startCallbacks, callbacks...) +} + +func (node *NodeImpl) lastTick() Timestamp { + return node.tick.LastTick() +} + +// AddCloseCallback adds a callback in the Close phase. +func (node *NodeImpl) AddCloseCallback(callbacks ...func()) { + node.closeCallbacks = append(node.closeCallbacks, callbacks...) +} + +func (node *NodeImpl) connectMaster() error { + masterAddr := Params.MasterAddress() + log.Printf("NodeImpl connected to master, master_addr=%s", masterAddr) + ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) + defer cancel() + conn, err := grpc.DialContext(ctx, masterAddr, grpc.WithInsecure(), grpc.WithBlock()) + if err != nil { + log.Printf("NodeImpl connect to master failed, error= %v", err) + return err + } + log.Printf("NodeImpl connected to master, master_addr=%s", masterAddr) + node.masterConn = conn + node.masterClient = masterpb.NewMasterServiceClient(conn) + return nil +} diff --git a/internal/proxynode/proxy_test.go b/internal/proxynode/proxy_node_test.go similarity index 82% rename from internal/proxynode/proxy_test.go rename to internal/proxynode/proxy_node_test.go index ea42bef4117b6f7aa797023e0faec5bff37c4e29..304d0abd1e78b06ecbd700500b86d19ae5d5ffb3 100644 --- a/internal/proxynode/proxy_test.go +++ b/internal/proxynode/proxy_node_test.go @@ -7,15 +7,13 @@ import ( "math/rand" "os" "strconv" - "strings" "sync" "testing" "time" - "github.com/zilliztech/milvus-distributed/internal/util/tsoutil" + "github.com/golang/protobuf/proto" - "go.uber.org/zap" - "google.golang.org/grpc" + "github.com/zilliztech/milvus-distributed/internal/util/tsoutil" "github.com/stretchr/testify/assert" "github.com/zilliztech/milvus-distributed/internal/master" @@ -23,17 +21,19 @@ import ( "github.com/zilliztech/milvus-distributed/internal/msgstream/pulsarms" "github.com/zilliztech/milvus-distributed/internal/proto/commonpb" "github.com/zilliztech/milvus-distributed/internal/proto/internalpb2" + "github.com/zilliztech/milvus-distributed/internal/proto/milvuspb" "github.com/zilliztech/milvus-distributed/internal/proto/schemapb" - "github.com/zilliztech/milvus-distributed/internal/proto/servicepb" "go.etcd.io/etcd/clientv3" + "go.uber.org/zap" ) var ctx context.Context var cancel func() -var proxyConn *grpc.ClientConn -var proxyClient servicepb.MilvusServiceClient -var proxyServer *Proxy +//var proxyConn *grpc.ClientConn +//var proxyClient milvuspb.MilvusServiceClient + +var proxyServer *NodeImpl var masterServer *master.Master @@ -86,12 +86,16 @@ func startMaster(ctx context.Context) { func startProxy(ctx context.Context) { - svr, err := CreateProxy(ctx) + svr, err := CreateProxyNodeImpl(ctx) proxyServer = svr if err != nil { log.Print("create proxynode failed", zap.Error(err)) } + if err := svr.Init(); err != nil { + log.Fatal("init proxynode failed", zap.Error(err)) + } + // TODO: change to wait until master is ready if err := svr.Start(); err != nil { log.Fatal("run proxynode failed", zap.Error(err)) @@ -104,29 +108,29 @@ func setup() { startMaster(ctx) startProxy(ctx) - proxyAddr := Params.NetworkAddress() - addr := strings.Split(proxyAddr, ":") - if addr[0] == "0.0.0.0" { - proxyAddr = "127.0.0.1:" + addr[1] - } - - conn, err := grpc.DialContext(ctx, proxyAddr, grpc.WithInsecure(), grpc.WithBlock()) - if err != nil { - log.Fatalf("Connect to proxynode failed, error= %v", err) - } - proxyConn = conn - proxyClient = servicepb.NewMilvusServiceClient(proxyConn) + //proxyAddr := Params.NetworkAddress() + //addr := strings.Split(proxyAddr, ":") + //if addr[0] == "0.0.0.0" { + // proxyAddr = "127.0.0.1:" + addr[1] + //} + // + //conn, err := grpc.DialContext(ctx, proxyAddr, grpc.WithInsecure(), grpc.WithBlock()) + //if err != nil { + // log.Fatalf("Connect to proxynode failed, error= %v", err) + //} + //proxyConn = conn + //proxyClient = milvuspb.NewMilvusServiceClient(proxyConn) } func shutdown() { cancel() masterServer.Close() - proxyServer.Close() + proxyServer.Stop() } func hasCollection(t *testing.T, name string) bool { - resp, err := proxyClient.HasCollection(ctx, &servicepb.CollectionName{CollectionName: name}) + resp, err := proxyServer.HasCollection(ctx, &milvuspb.HasCollectionRequest{CollectionName: name}) msg := "Has Collection " + name + " should succeed!" assert.Nil(t, err, msg) return resp.Value @@ -138,20 +142,20 @@ func createCollection(t *testing.T, name string) { dropCollection(t, name) } - req := &schemapb.CollectionSchema{ + schema := &schemapb.CollectionSchema{ Name: name, Description: "no description", AutoID: true, Fields: make([]*schemapb.FieldSchema, 2), } fieldName := "Field1" - req.Fields[0] = &schemapb.FieldSchema{ + schema.Fields[0] = &schemapb.FieldSchema{ Name: fieldName, Description: "no description", DataType: schemapb.DataType_INT32, } fieldName = "vec" - req.Fields[1] = &schemapb.FieldSchema{ + schema.Fields[1] = &schemapb.FieldSchema{ Name: fieldName, Description: "vector", DataType: schemapb.DataType_VECTOR_FLOAT, @@ -168,17 +172,26 @@ func createCollection(t *testing.T, name string) { }, }, } - resp, err := proxyClient.CreateCollection(ctx, req) + + schemaBytes, err := proto.Marshal(schema) + if err != nil { + panic(err) + } + req := &milvuspb.CreateCollectionRequest{ + CollectionName: name, + Schema: schemaBytes, + } + resp, err := proxyServer.CreateCollection(ctx, req) assert.Nil(t, err) msg := "Create Collection " + name + " should succeed!" assert.Equal(t, resp.ErrorCode, commonpb.ErrorCode_SUCCESS, msg) } func dropCollection(t *testing.T, name string) { - req := &servicepb.CollectionName{ + req := &milvuspb.DropCollectionRequest{ CollectionName: name, } - resp, err := proxyClient.DropCollection(ctx, req) + resp, err := proxyServer.DropCollection(ctx, req) assert.Nil(t, err) msg := "Drop Collection " + name + " should succeed! err :" + resp.Reason assert.Equal(t, resp.ErrorCode, commonpb.ErrorCode_SUCCESS, msg) @@ -186,7 +199,7 @@ func dropCollection(t *testing.T, name string) { func createIndex(t *testing.T, collectionName, fieldName string) { - req := &servicepb.IndexParam{ + req := &milvuspb.CreateIndexRequest{ CollectionName: collectionName, FieldName: fieldName, ExtraParams: []*commonpb.KeyValuePair{ @@ -197,7 +210,7 @@ func createIndex(t *testing.T, collectionName, fieldName string) { }, } - resp, err := proxyClient.CreateIndex(ctx, req) + resp, err := proxyServer.CreateIndex(ctx, req) assert.Nil(t, err) msg := "Create Index for " + fieldName + " should succeed!" assert.Equal(t, resp.ErrorCode, commonpb.ErrorCode_SUCCESS, msg) @@ -249,7 +262,7 @@ func TestProxy_DescribeCollection(t *testing.T) { createCollection(t, collectionName) has := hasCollection(t, collectionName) if has { - resp, err := proxyClient.DescribeCollection(ctx, &servicepb.CollectionName{CollectionName: collectionName}) + resp, err := proxyServer.DescribeCollection(ctx, &milvuspb.DescribeCollectionRequest{CollectionName: collectionName}) if err != nil { t.Error(err) } @@ -275,7 +288,7 @@ func TestProxy_ShowCollections(t *testing.T) { createCollection(t, collectionName) has := hasCollection(t, collectionName) if has { - resp, err := proxyClient.ShowCollections(ctx, &commonpb.Empty{}) + resp, err := proxyServer.ShowCollections(ctx, &milvuspb.ShowCollectionRequest{}) if err != nil { t.Error(err) } @@ -295,9 +308,9 @@ func TestProxy_Insert(t *testing.T) { i := i collectionName := "CreateCollection" + strconv.FormatInt(int64(i), 10) - req := &servicepb.RowBatch{ + req := &milvuspb.InsertRequest{ CollectionName: collectionName, - PartitionTag: "haha", + PartitionName: "haha", RowData: make([]*commonpb.Blob, 0), HashKeys: make([]uint32, 0), } @@ -308,7 +321,7 @@ func TestProxy_Insert(t *testing.T) { createCollection(t, collectionName) has := hasCollection(t, collectionName) if has { - resp, err := proxyClient.Insert(ctx, req) + resp, err := proxyServer.Insert(ctx, req) if err != nil { t.Error(err) } @@ -373,7 +386,7 @@ func TestProxy_Search(t *testing.T) { for i := 0; i < testNum; i++ { i := i collectionName := "CreateCollection" + strconv.FormatInt(int64(i), 10) - req := &servicepb.Query{ + req := &milvuspb.SearchRequest{ CollectionName: collectionName, } queryWg.Add(1) @@ -384,7 +397,7 @@ func TestProxy_Search(t *testing.T) { if !has { createCollection(t, collectionName) } - resp, err := proxyClient.Search(ctx, req) + resp, err := proxyServer.Search(ctx, req) t.Logf("response of search collection %v: %v", i, resp) assert.Nil(t, err) dropCollection(t, collectionName) @@ -440,36 +453,44 @@ func TestProxy_PartitionGRPC(t *testing.T) { go func() { defer wg.Done() tag := fmt.Sprintf("partition_%d", i) - preq := &servicepb.PartitionName{ + preq := &milvuspb.HasPartitionRequest{ CollectionName: collName, - Tag: tag, + PartitionName: tag, } - stb, err := proxyClient.HasPartition(ctx, preq) + stb, err := proxyServer.HasPartition(ctx, preq) assert.Nil(t, err) assert.Equal(t, stb.Status.ErrorCode, commonpb.ErrorCode_SUCCESS) assert.Equal(t, stb.Value, false) - st, err := proxyClient.CreatePartition(ctx, preq) + cpreq := &milvuspb.CreatePartitionRequest{ + CollectionName: collName, + PartitionName: tag, + } + st, err := proxyServer.CreatePartition(ctx, cpreq) assert.Nil(t, err) assert.Equal(t, st.ErrorCode, commonpb.ErrorCode_SUCCESS) - stb, err = proxyClient.HasPartition(ctx, preq) + stb, err = proxyServer.HasPartition(ctx, preq) assert.Nil(t, err) assert.Equal(t, stb.Status.ErrorCode, commonpb.ErrorCode_SUCCESS) assert.Equal(t, stb.Value, true) - //std, err := proxyClient.DescribePartition(ctx, preq) + //std, err := proxyServer.DescribePartition(ctx, preq) //assert.Nil(t, err) //assert.Equal(t, std.Status.ErrorCode, commonpb.ErrorCode_SUCCESS) - sts, err := proxyClient.ShowPartitions(ctx, &servicepb.CollectionName{CollectionName: collName}) + sts, err := proxyServer.ShowPartitions(ctx, &milvuspb.ShowPartitionRequest{CollectionName: collName}) assert.Nil(t, err) assert.Equal(t, sts.Status.ErrorCode, commonpb.ErrorCode_SUCCESS) - assert.True(t, len(sts.Values) >= 2) - assert.True(t, len(sts.Values) <= testNum+1) + assert.True(t, len(sts.PartitionNames) >= 2) + assert.True(t, len(sts.PartitionNames) <= testNum+1) - st, err = proxyClient.DropPartition(ctx, preq) + dpreq := &milvuspb.DropPartitionRequest{ + CollectionName: collName, + PartitionName: tag, + } + st, err = proxyServer.DropPartition(ctx, dpreq) assert.Nil(t, err) assert.Equal(t, st.ErrorCode, commonpb.ErrorCode_SUCCESS) }() @@ -519,11 +540,11 @@ func TestProxy_DescribeIndex(t *testing.T) { if i%2 == 0 { createIndex(t, collName, fieldName) } - req := &servicepb.DescribeIndexRequest{ + req := &milvuspb.DescribeIndexRequest{ CollectionName: collName, FieldName: fieldName, } - resp, err := proxyClient.DescribeIndex(ctx, req) + resp, err := proxyServer.DescribeIndex(ctx, req) assert.Nil(t, err) msg := "Describe Index for " + fieldName + "should successed!" assert.Equal(t, resp.Status.ErrorCode, commonpb.ErrorCode_SUCCESS, msg) @@ -533,7 +554,7 @@ func TestProxy_DescribeIndex(t *testing.T) { wg.Wait() } -func TestProxy_DescribeIndexProgress(t *testing.T) { +func TestProxy_GetIndexState(t *testing.T) { var wg sync.WaitGroup for i := 0; i < testNum; i++ { @@ -550,15 +571,15 @@ func TestProxy_DescribeIndexProgress(t *testing.T) { if i%2 == 0 { createIndex(t, collName, fieldName) } - req := &servicepb.DescribeIndexProgressRequest{ + req := &milvuspb.IndexStateRequest{ CollectionName: collName, FieldName: fieldName, } - resp, err := proxyClient.DescribeIndexProgress(ctx, req) + resp, err := proxyServer.GetIndexState(ctx, req) assert.Nil(t, err) msg := "Describe Index Progress for " + fieldName + "should succeed!" assert.Equal(t, resp.Status.ErrorCode, commonpb.ErrorCode_SUCCESS, msg) - assert.True(t, resp.Value) + assert.True(t, resp.State == commonpb.IndexState_FINISHED) dropCollection(t, collName) }(&wg) } diff --git a/internal/proxynode/task.go b/internal/proxynode/task.go index ca148443dae738f93d39977d3693f18c1dc5e198..5c3a86a255f69a4c661b2dc1ea1edcda6bc0ee74 100644 --- a/internal/proxynode/task.go +++ b/internal/proxynode/task.go @@ -3,6 +3,7 @@ package proxynode import ( "context" "errors" + "fmt" "log" "math" "strconv" @@ -19,7 +20,6 @@ import ( "github.com/zilliztech/milvus-distributed/internal/proto/masterpb" "github.com/zilliztech/milvus-distributed/internal/proto/milvuspb" "github.com/zilliztech/milvus-distributed/internal/proto/schemapb" - "github.com/zilliztech/milvus-distributed/internal/proto/servicepb" "github.com/zilliztech/milvus-distributed/internal/util/typeutil" ) @@ -30,6 +30,7 @@ type task interface { BeginTs() Timestamp EndTs() Timestamp SetTs(ts Timestamp) + OnEnqueue() error PreExecute() error Execute() error PostExecute() error @@ -42,12 +43,16 @@ type BaseInsertTask = msgstream.InsertMsg type InsertTask struct { BaseInsertTask Condition - result *servicepb.IntegerRangeResponse + result *milvuspb.InsertResponse manipulationMsgStream *pulsarms.PulsarMsgStream ctx context.Context rowIDAllocator *allocator.IDAllocator } +func (it *InsertTask) OnEnqueue() error { + return nil +} + func (it *InsertTask) SetID(uid UniqueID) { it.Base.MsgID = uid } @@ -79,6 +84,9 @@ func (it *InsertTask) Type() commonpb.MsgType { } func (it *InsertTask) PreExecute() error { + it.Base.MsgType = commonpb.MsgType_kInsert + it.Base.SourceID = Params.ProxyID() + span, ctx := opentracing.StartSpanFromContext(it.ctx, "InsertTask preExecute") defer span.Finish() it.ctx = ctx @@ -158,12 +166,12 @@ func (it *InsertTask) Execute() error { msgPack.Msgs[0] = tsMsg err = it.manipulationMsgStream.Produce(msgPack) - it.result = &servicepb.IntegerRangeResponse{ + it.result = &milvuspb.InsertResponse{ Status: &commonpb.Status{ ErrorCode: commonpb.ErrorCode_SUCCESS, }, - Begin: rowIDBegin, - End: rowIDEnd, + RowIDBegin: rowIDBegin, + RowIDEnd: rowIDEnd, } if err != nil { it.result.Status.ErrorCode = commonpb.ErrorCode_UNEXPECTED_ERROR @@ -181,13 +189,18 @@ func (it *InsertTask) PostExecute() error { type CreateCollectionTask struct { Condition - milvuspb.CreateCollectionRequest + *milvuspb.CreateCollectionRequest masterClient masterpb.MasterServiceClient result *commonpb.Status ctx context.Context schema *schemapb.CollectionSchema } +func (cct *CreateCollectionTask) OnEnqueue() error { + cct.Base = &commonpb.MsgBase{} + return nil +} + func (cct *CreateCollectionTask) ID() UniqueID { return cct.Base.MsgID } @@ -213,6 +226,15 @@ func (cct *CreateCollectionTask) SetTs(ts Timestamp) { } func (cct *CreateCollectionTask) PreExecute() error { + cct.Base.MsgType = commonpb.MsgType_kCreateCollection + cct.Base.SourceID = Params.ProxyID() + + cct.schema = &schemapb.CollectionSchema{} + err := proto.Unmarshal(cct.Schema, cct.schema) + if err != nil { + return err + } + if int64(len(cct.schema.Fields)) > Params.MaxFieldNum() { return errors.New("maximum field's number should be limited to " + strconv.FormatInt(Params.MaxFieldNum(), 10)) } @@ -271,18 +293,8 @@ func (cct *CreateCollectionTask) PreExecute() error { } func (cct *CreateCollectionTask) Execute() error { - schemaBytes, _ := proto.Marshal(cct.schema) - cct.CreateCollectionRequest.Schema = schemaBytes - resp, err := cct.masterClient.CreateCollection(cct.ctx, &cct.CreateCollectionRequest) - if err != nil { - log.Printf("create collection failed, error= %v", err) - cct.result = &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - } - } else { - cct.result = resp - } + var err error + cct.result, err = cct.masterClient.CreateCollection(cct.ctx, cct.CreateCollectionRequest) return err } @@ -292,12 +304,17 @@ func (cct *CreateCollectionTask) PostExecute() error { type DropCollectionTask struct { Condition - milvuspb.DropCollectionRequest + *milvuspb.DropCollectionRequest masterClient masterpb.MasterServiceClient result *commonpb.Status ctx context.Context } +func (dct *DropCollectionTask) OnEnqueue() error { + dct.Base = &commonpb.MsgBase{} + return nil +} + func (dct *DropCollectionTask) ID() UniqueID { return dct.Base.MsgID } @@ -323,6 +340,9 @@ func (dct *DropCollectionTask) SetTs(ts Timestamp) { } func (dct *DropCollectionTask) PreExecute() error { + dct.Base.MsgType = commonpb.MsgType_kDropCollection + dct.Base.SourceID = Params.ProxyID() + if err := ValidateCollectionName(dct.CollectionName); err != nil { return err } @@ -330,16 +350,8 @@ func (dct *DropCollectionTask) PreExecute() error { } func (dct *DropCollectionTask) Execute() error { - resp, err := dct.masterClient.DropCollection(dct.ctx, &dct.DropCollectionRequest) - if err != nil { - log.Printf("drop collection failed, error= %v", err) - dct.result = &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: err.Error(), - } - } else { - dct.result = resp - } + var err error + dct.result, err = dct.masterClient.DropCollection(dct.ctx, dct.DropCollectionRequest) return err } @@ -355,9 +367,13 @@ type SearchTask struct { internalpb2.SearchRequest queryMsgStream *pulsarms.PulsarMsgStream resultBuf chan []*internalpb2.SearchResults - result *servicepb.QueryResult + result *milvuspb.SearchResults ctx context.Context - query *servicepb.Query + query *milvuspb.SearchRequest +} + +func (st *SearchTask) OnEnqueue() error { + return nil } func (st *SearchTask) ID() UniqueID { @@ -385,6 +401,9 @@ func (st *SearchTask) SetTs(ts Timestamp) { } func (st *SearchTask) PreExecute() error { + st.Base.MsgType = commonpb.MsgType_kSearch + st.Base.SourceID = Params.ProxyID() + span, ctx := opentracing.StartSpanFromContext(st.ctx, "SearchTask preExecute") defer span.Finish() st.ctx = ctx @@ -413,7 +432,7 @@ func (st *SearchTask) PreExecute() error { return err } - for _, tag := range st.query.PartitionTags { + for _, tag := range st.query.PartitionNames { if err := ValidatePartitionTag(tag, false); err != nil { span.LogFields(oplog.Error(err)) span.Finish() @@ -455,11 +474,11 @@ func (st *SearchTask) Execute() error { tsMsg.SetMsgContext(ctx) msgPack.Msgs[0] = tsMsg err := st.queryMsgStream.Produce(msgPack) - log.Printf("[Proxy] length of searchMsg: %v", len(msgPack.Msgs)) + log.Printf("[NodeImpl] length of searchMsg: %v", len(msgPack.Msgs)) if err != nil { span.LogFields(oplog.Error(err)) span.Finish() - log.Printf("[Proxy] send search request failed: %v", err) + log.Printf("[NodeImpl] send search request failed: %v", err) } return err } @@ -476,6 +495,7 @@ func (st *SearchTask) PostExecute() error { span.LogFields(oplog.String("wait to finish failed, timeout", "wait to finish failed, timeout")) return errors.New("wait to finish failed, timeout") case searchResults := <-st.resultBuf: + fmt.Println("searchResults: ", searchResults) span.LogFields(oplog.String("receive result", "receive result")) filterSearchResult := make([]*internalpb2.SearchResults, 0) var filterReason string @@ -499,7 +519,7 @@ func (st *SearchTask) PostExecute() error { availableQueryNodeNum := len(filterSearchResult) if availableQueryNodeNum <= 0 { - st.result = &servicepb.QueryResult{ + st.result = &milvuspb.SearchResults{ Status: &commonpb.Status{ ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, Reason: filterReason, @@ -509,15 +529,15 @@ func (st *SearchTask) PostExecute() error { return errors.New(filterReason) } - hits := make([][]*servicepb.Hits, 0) + hits := make([][]*milvuspb.Hits, 0) for _, partialSearchResult := range filterSearchResult { if partialSearchResult.Hits == nil || len(partialSearchResult.Hits) <= 0 { filterReason += "nq is zero\n" continue } - partialHits := make([]*servicepb.Hits, 0) + partialHits := make([]*milvuspb.Hits, 0) for _, bs := range partialSearchResult.Hits { - partialHit := &servicepb.Hits{} + partialHit := &milvuspb.Hits{} err := proto.Unmarshal(bs, partialHit) if err != nil { log.Println("unmarshal error") @@ -530,7 +550,7 @@ func (st *SearchTask) PostExecute() error { availableQueryNodeNum = len(hits) if availableQueryNodeNum <= 0 { - st.result = &servicepb.QueryResult{ + st.result = &milvuspb.SearchResults{ Status: &commonpb.Status{ ErrorCode: commonpb.ErrorCode_SUCCESS, Reason: filterReason, @@ -541,7 +561,7 @@ func (st *SearchTask) PostExecute() error { nq := len(hits[0]) if nq <= 0 { - st.result = &servicepb.QueryResult{ + st.result = &milvuspb.SearchResults{ Status: &commonpb.Status{ ErrorCode: commonpb.ErrorCode_SUCCESS, Reason: filterReason, @@ -560,7 +580,7 @@ func (st *SearchTask) PostExecute() error { for _, hit := range hits { topk = getMax(topk, len(hit[0].IDs)) } - st.result = &servicepb.QueryResult{ + st.result = &milvuspb.SearchResults{ Status: &commonpb.Status{ ErrorCode: 0, }, @@ -570,7 +590,7 @@ func (st *SearchTask) PostExecute() error { const minFloat32 = -1 * float32(math.MaxFloat32) for i := 0; i < nq; i++ { locs := make([]int, availableQueryNodeNum) - reducedHits := &servicepb.Hits{ + reducedHits := &milvuspb.Hits{ IDs: make([]int64, 0), RowData: make([][]byte, 0), Scores: make([]float32, 0), @@ -626,12 +646,17 @@ func (st *SearchTask) PostExecute() error { type HasCollectionTask struct { Condition - milvuspb.HasCollectionRequest + *milvuspb.HasCollectionRequest masterClient masterpb.MasterServiceClient - result *servicepb.BoolResponse + result *milvuspb.BoolResponse ctx context.Context } +func (hct *HasCollectionTask) OnEnqueue() error { + hct.Base = &commonpb.MsgBase{} + return nil +} + func (hct *HasCollectionTask) ID() UniqueID { return hct.Base.MsgID } @@ -657,6 +682,9 @@ func (hct *HasCollectionTask) SetTs(ts Timestamp) { } func (hct *HasCollectionTask) PreExecute() error { + hct.Base.MsgType = commonpb.MsgType_kHasCollection + hct.Base.SourceID = Params.ProxyID() + if err := ValidateCollectionName(hct.CollectionName); err != nil { return err } @@ -664,22 +692,8 @@ func (hct *HasCollectionTask) PreExecute() error { } func (hct *HasCollectionTask) Execute() error { - resp, err := hct.masterClient.HasCollection(hct.ctx, &hct.HasCollectionRequest) - if err != nil { - log.Printf("has collection failed, error= %v", err) - hct.result = &servicepb.BoolResponse{ - Status: &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: "internal error", - }, - Value: false, - } - } else { - hct.result = &servicepb.BoolResponse{ - Status: resp.Status, - Value: resp.Value, - } - } + var err error + hct.result, err = hct.masterClient.HasCollection(hct.ctx, hct.HasCollectionRequest) return err } @@ -689,12 +703,17 @@ func (hct *HasCollectionTask) PostExecute() error { type DescribeCollectionTask struct { Condition - milvuspb.DescribeCollectionRequest + *milvuspb.DescribeCollectionRequest masterClient masterpb.MasterServiceClient - result *servicepb.CollectionDescription + result *milvuspb.DescribeCollectionResponse ctx context.Context } +func (dct *DescribeCollectionTask) OnEnqueue() error { + dct.Base = &commonpb.MsgBase{} + return nil +} + func (dct *DescribeCollectionTask) ID() UniqueID { return dct.Base.MsgID } @@ -720,6 +739,9 @@ func (dct *DescribeCollectionTask) SetTs(ts Timestamp) { } func (dct *DescribeCollectionTask) PreExecute() error { + dct.Base.MsgType = commonpb.MsgType_kDescribeCollection + dct.Base.SourceID = Params.ProxyID() + if err := ValidateCollectionName(dct.CollectionName); err != nil { return err } @@ -727,14 +749,11 @@ func (dct *DescribeCollectionTask) PreExecute() error { } func (dct *DescribeCollectionTask) Execute() error { - result, err := dct.masterClient.DescribeCollection(dct.ctx, &dct.DescribeCollectionRequest) + var err error + dct.result, err = dct.masterClient.DescribeCollection(dct.ctx, dct.DescribeCollectionRequest) if err != nil { return err } - dct.result = &servicepb.CollectionDescription{ - Status: result.Status, - Schema: result.Schema, - } err = globalMetaCache.Update(dct.CollectionName, dct.result) return err } @@ -745,12 +764,17 @@ func (dct *DescribeCollectionTask) PostExecute() error { type ShowCollectionsTask struct { Condition - milvuspb.ShowCollectionRequest + *milvuspb.ShowCollectionRequest masterClient masterpb.MasterServiceClient - result *servicepb.StringListResponse + result *milvuspb.ShowCollectionResponse ctx context.Context } +func (sct *ShowCollectionsTask) OnEnqueue() error { + sct.Base = &commonpb.MsgBase{} + return nil +} + func (sct *ShowCollectionsTask) ID() UniqueID { return sct.Base.MsgID } @@ -776,25 +800,15 @@ func (sct *ShowCollectionsTask) SetTs(ts Timestamp) { } func (sct *ShowCollectionsTask) PreExecute() error { + sct.Base.MsgType = commonpb.MsgType_kShowCollections + sct.Base.SourceID = Params.ProxyID() + return nil } func (sct *ShowCollectionsTask) Execute() error { - resp, err := sct.masterClient.ShowCollections(sct.ctx, &sct.ShowCollectionRequest) - if err != nil { - log.Printf("show collections failed, error= %v", err) - sct.result = &servicepb.StringListResponse{ - Status: &commonpb.Status{ - ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR, - Reason: "internal error", - }, - } - } else { - sct.result = &servicepb.StringListResponse{ - Status: resp.Status, - Values: resp.CollectionNames, - } - } + var err error + sct.result, err = sct.masterClient.ShowCollections(sct.ctx, sct.ShowCollectionRequest) return err } @@ -804,12 +818,17 @@ func (sct *ShowCollectionsTask) PostExecute() error { type CreatePartitionTask struct { Condition - milvuspb.CreatePartitionRequest + *milvuspb.CreatePartitionRequest masterClient masterpb.MasterServiceClient result *commonpb.Status ctx context.Context } +func (cpt *CreatePartitionTask) OnEnqueue() error { + cpt.Base = &commonpb.MsgBase{} + return nil +} + func (cpt *CreatePartitionTask) ID() UniqueID { return cpt.Base.MsgID } @@ -835,6 +854,9 @@ func (cpt *CreatePartitionTask) SetTs(ts Timestamp) { } func (cpt *CreatePartitionTask) PreExecute() error { + cpt.Base.MsgType = commonpb.MsgType_kCreatePartition + cpt.Base.SourceID = Params.ProxyID() + collName, partitionTag := cpt.CollectionName, cpt.PartitionName if err := ValidateCollectionName(collName); err != nil { @@ -849,7 +871,7 @@ func (cpt *CreatePartitionTask) PreExecute() error { } func (cpt *CreatePartitionTask) Execute() (err error) { - cpt.result, err = cpt.masterClient.CreatePartition(cpt.ctx, &cpt.CreatePartitionRequest) + cpt.result, err = cpt.masterClient.CreatePartition(cpt.ctx, cpt.CreatePartitionRequest) return err } @@ -859,12 +881,17 @@ func (cpt *CreatePartitionTask) PostExecute() error { type DropPartitionTask struct { Condition - milvuspb.DropPartitionRequest + *milvuspb.DropPartitionRequest masterClient masterpb.MasterServiceClient result *commonpb.Status ctx context.Context } +func (dpt *DropPartitionTask) OnEnqueue() error { + dpt.Base = &commonpb.MsgBase{} + return nil +} + func (dpt *DropPartitionTask) ID() UniqueID { return dpt.Base.MsgID } @@ -890,6 +917,9 @@ func (dpt *DropPartitionTask) SetTs(ts Timestamp) { } func (dpt *DropPartitionTask) PreExecute() error { + dpt.Base.MsgType = commonpb.MsgType_kDropPartition + dpt.Base.SourceID = Params.ProxyID() + collName, partitionTag := dpt.CollectionName, dpt.PartitionName if err := ValidateCollectionName(collName); err != nil { @@ -904,7 +934,7 @@ func (dpt *DropPartitionTask) PreExecute() error { } func (dpt *DropPartitionTask) Execute() (err error) { - dpt.result, err = dpt.masterClient.DropPartition(dpt.ctx, &dpt.DropPartitionRequest) + dpt.result, err = dpt.masterClient.DropPartition(dpt.ctx, dpt.DropPartitionRequest) return err } @@ -914,12 +944,17 @@ func (dpt *DropPartitionTask) PostExecute() error { type HasPartitionTask struct { Condition - milvuspb.HasPartitionRequest + *milvuspb.HasPartitionRequest masterClient masterpb.MasterServiceClient - result *servicepb.BoolResponse + result *milvuspb.BoolResponse ctx context.Context } +func (hpt *HasPartitionTask) OnEnqueue() error { + hpt.Base = &commonpb.MsgBase{} + return nil +} + func (hpt *HasPartitionTask) ID() UniqueID { return hpt.Base.MsgID } @@ -945,6 +980,9 @@ func (hpt *HasPartitionTask) SetTs(ts Timestamp) { } func (hpt *HasPartitionTask) PreExecute() error { + hpt.Base.MsgType = commonpb.MsgType_kHasPartition + hpt.Base.SourceID = Params.ProxyID() + collName, partitionTag := hpt.CollectionName, hpt.PartitionName if err := ValidateCollectionName(collName); err != nil { @@ -958,11 +996,7 @@ func (hpt *HasPartitionTask) PreExecute() error { } func (hpt *HasPartitionTask) Execute() (err error) { - result, err := hpt.masterClient.HasPartition(hpt.ctx, &hpt.HasPartitionRequest) - hpt.result = &servicepb.BoolResponse{ - Status: result.Status, - Value: result.Value, - } + hpt.result, err = hpt.masterClient.HasPartition(hpt.ctx, hpt.HasPartitionRequest) return err } @@ -974,7 +1008,7 @@ func (hpt *HasPartitionTask) PostExecute() error { // Condition // internalpb.DescribePartitionRequest // masterClient masterpb.MasterServiceClient -// result *servicepb.PartitionDescription +// result *milvuspb.PartitionDescription // ctx context.Context //} // @@ -1026,12 +1060,17 @@ func (hpt *HasPartitionTask) PostExecute() error { type ShowPartitionsTask struct { Condition - milvuspb.ShowPartitionRequest + *milvuspb.ShowPartitionRequest masterClient masterpb.MasterServiceClient - result *servicepb.StringListResponse + result *milvuspb.ShowPartitionResponse ctx context.Context } +func (spt *ShowPartitionsTask) OnEnqueue() error { + spt.Base = &commonpb.MsgBase{} + return nil +} + func (spt *ShowPartitionsTask) ID() UniqueID { return spt.Base.MsgID } @@ -1057,6 +1096,9 @@ func (spt *ShowPartitionsTask) SetTs(ts Timestamp) { } func (spt *ShowPartitionsTask) PreExecute() error { + spt.Base.MsgType = commonpb.MsgType_kShowPartitions + spt.Base.SourceID = Params.ProxyID() + if err := ValidateCollectionName(spt.CollectionName); err != nil { return err } @@ -1064,11 +1106,8 @@ func (spt *ShowPartitionsTask) PreExecute() error { } func (spt *ShowPartitionsTask) Execute() error { - result, err := spt.masterClient.ShowPartitions(spt.ctx, &spt.ShowPartitionRequest) - spt.result = &servicepb.StringListResponse{ - Status: result.Status, - Values: result.PartitionNames, - } + var err error + spt.result, err = spt.masterClient.ShowPartitions(spt.ctx, spt.ShowPartitionRequest) return err } @@ -1078,12 +1117,17 @@ func (spt *ShowPartitionsTask) PostExecute() error { type CreateIndexTask struct { Condition - milvuspb.CreateIndexRequest + *milvuspb.CreateIndexRequest masterClient masterpb.MasterServiceClient result *commonpb.Status ctx context.Context } +func (cit *CreateIndexTask) OnEnqueue() error { + cit.Base = &commonpb.MsgBase{} + return nil +} + func (cit *CreateIndexTask) ID() UniqueID { return cit.Base.MsgID } @@ -1109,6 +1153,9 @@ func (cit *CreateIndexTask) SetTs(ts Timestamp) { } func (cit *CreateIndexTask) PreExecute() error { + cit.Base.MsgType = commonpb.MsgType_kCreateIndex + cit.Base.SourceID = Params.ProxyID() + collName, fieldName := cit.CollectionName, cit.FieldName if err := ValidateCollectionName(collName); err != nil { @@ -1123,7 +1170,7 @@ func (cit *CreateIndexTask) PreExecute() error { } func (cit *CreateIndexTask) Execute() (err error) { - cit.result, err = cit.masterClient.CreateIndex(cit.ctx, &cit.CreateIndexRequest) + cit.result, err = cit.masterClient.CreateIndex(cit.ctx, cit.CreateIndexRequest) return err } @@ -1133,12 +1180,17 @@ func (cit *CreateIndexTask) PostExecute() error { type DescribeIndexTask struct { Condition - milvuspb.DescribeIndexRequest + *milvuspb.DescribeIndexRequest masterClient masterpb.MasterServiceClient - result *servicepb.DescribeIndexResponse + result *milvuspb.DescribeIndexResponse ctx context.Context } +func (dit *DescribeIndexTask) OnEnqueue() error { + dit.Base = &commonpb.MsgBase{} + return nil +} + func (dit *DescribeIndexTask) ID() UniqueID { return dit.Base.MsgID } @@ -1164,6 +1216,9 @@ func (dit *DescribeIndexTask) SetTs(ts Timestamp) { } func (dit *DescribeIndexTask) PreExecute() error { + dit.Base.MsgType = commonpb.MsgType_kDescribeIndex + dit.Base.SourceID = Params.ProxyID() + collName, fieldName := dit.CollectionName, dit.FieldName if err := ValidateCollectionName(collName); err != nil { @@ -1178,13 +1233,8 @@ func (dit *DescribeIndexTask) PreExecute() error { } func (dit *DescribeIndexTask) Execute() error { - result, err := dit.masterClient.DescribeIndex(dit.ctx, &dit.DescribeIndexRequest) - dit.result = &servicepb.DescribeIndexResponse{ - Status: result.Status, - CollectionName: dit.CollectionName, - FieldName: dit.FieldName, - ExtraParams: result.IndexDescriptions[0].Params, - } + var err error + dit.result, err = dit.masterClient.DescribeIndex(dit.ctx, dit.DescribeIndexRequest) return err } @@ -1192,39 +1242,47 @@ func (dit *DescribeIndexTask) PostExecute() error { return nil } -type DescribeIndexProgressTask struct { +type GetIndexStateTask struct { Condition - milvuspb.IndexStateRequest + *milvuspb.IndexStateRequest masterClient masterpb.MasterServiceClient - result *servicepb.BoolResponse + result *milvuspb.IndexStateResponse ctx context.Context } -func (dipt *DescribeIndexProgressTask) ID() UniqueID { +func (dipt *GetIndexStateTask) OnEnqueue() error { + dipt.Base = &commonpb.MsgBase{} + return nil +} + +func (dipt *GetIndexStateTask) ID() UniqueID { return dipt.Base.MsgID } -func (dipt *DescribeIndexProgressTask) SetID(uid UniqueID) { +func (dipt *GetIndexStateTask) SetID(uid UniqueID) { dipt.Base.MsgID = uid } -func (dipt *DescribeIndexProgressTask) Type() commonpb.MsgType { +func (dipt *GetIndexStateTask) Type() commonpb.MsgType { return dipt.Base.MsgType } -func (dipt *DescribeIndexProgressTask) BeginTs() Timestamp { +func (dipt *GetIndexStateTask) BeginTs() Timestamp { return dipt.Base.Timestamp } -func (dipt *DescribeIndexProgressTask) EndTs() Timestamp { +func (dipt *GetIndexStateTask) EndTs() Timestamp { return dipt.Base.Timestamp } -func (dipt *DescribeIndexProgressTask) SetTs(ts Timestamp) { +func (dipt *GetIndexStateTask) SetTs(ts Timestamp) { dipt.Base.Timestamp = ts } -func (dipt *DescribeIndexProgressTask) PreExecute() error { +func (dipt *GetIndexStateTask) PreExecute() error { + dipt.Base.MsgType = commonpb.MsgType_kGetIndexState + dipt.Base.SourceID = Params.ProxyID() + collName, fieldName := dipt.CollectionName, dipt.FieldName if err := ValidateCollectionName(collName); err != nil { @@ -1238,15 +1296,12 @@ func (dipt *DescribeIndexProgressTask) PreExecute() error { return nil } -func (dipt *DescribeIndexProgressTask) Execute() error { - result, err := dipt.masterClient.GetIndexState(dipt.ctx, &dipt.IndexStateRequest) - dipt.result = &servicepb.BoolResponse{ - Status: result.Status, - Value: result.State == commonpb.IndexState_FINISHED, - } +func (dipt *GetIndexStateTask) Execute() error { + var err error + dipt.result, err = dipt.masterClient.GetIndexState(dipt.ctx, dipt.IndexStateRequest) return err } -func (dipt *DescribeIndexProgressTask) PostExecute() error { +func (dipt *GetIndexStateTask) PostExecute() error { return nil } diff --git a/internal/proxynode/task_scheduler.go b/internal/proxynode/task_scheduler.go index 15995c987f37048a9f86b8fe42a0eb7e400b3b4b..8f551ecbea3a198de64335990dce57eaa9468267 100644 --- a/internal/proxynode/task_scheduler.go +++ b/internal/proxynode/task_scheduler.go @@ -164,12 +164,17 @@ func (queue *BaseTaskQueue) TaskDoneTest(ts Timestamp) bool { } func (queue *BaseTaskQueue) Enqueue(t task) error { + err := t.OnEnqueue() + if err != nil { + return err + } + ts, _ := queue.sched.tsoAllocator.AllocOne() - log.Printf("[Proxy] allocate timestamp: %v", ts) + log.Printf("[NodeImpl] allocate timestamp: %v", ts) t.SetTs(ts) reqID, _ := queue.sched.idAllocator.AllocOne() - log.Printf("[Proxy] allocate reqID: %v", reqID) + log.Printf("[NodeImpl] allocate reqID: %v", reqID) t.SetID(reqID) return queue.addUnissuedTask(t) diff --git a/internal/proxyservice/interface.go b/internal/proxyservice/interface.go deleted file mode 100644 index 2cbad61097250b548a5d97c226d4109fd0aa5976..0000000000000000000000000000000000000000 --- a/internal/proxyservice/interface.go +++ /dev/null @@ -1,16 +0,0 @@ -package proxyservice - -import ( - "github.com/zilliztech/milvus-distributed/internal/proto/proxypb" - "github.com/zilliztech/milvus-distributed/internal/util/typeutil" -) - -type ServiceBase = typeutil.Component - -type Interface interface { - ServiceBase - RegisterLink() (proxypb.RegisterLinkResponse, error) - RegisterNode(request proxypb.RegisterNodeRequest) (proxypb.RegisterNodeResponse, error) - // TODO: i'm sure it's not a best way to keep consistency, fix me - InvalidateCollectionMetaCache(request proxypb.InvalidateCollMetaCacheRequest) error -} diff --git a/internal/proxyservice/proxyservice.go b/internal/proxyservice/proxyservice.go index 50890e47e41effaf76742c8c8bf389c67626e0ac..29c9f8721a5f80d600bc7d01537ab73870817479 100644 --- a/internal/proxyservice/proxyservice.go +++ b/internal/proxyservice/proxyservice.go @@ -49,6 +49,6 @@ func (s ProxyService) InvalidateCollectionMetaCache(request proxypb.InvalidateCo panic("implement me") } -func NewProxyServiceImpl() Interface { +func NewProxyServiceImpl() interface{} { return &ProxyService{} } diff --git a/internal/querynode/load_index_service_test.go b/internal/querynode/load_index_service_test.go index 8b931d5fb159ef76ec5b8198b2af67a55c4b7f9f..54f545b528c86e4f624d11d012ccae82123e1a14 100644 --- a/internal/querynode/load_index_service_test.go +++ b/internal/querynode/load_index_service_test.go @@ -20,7 +20,7 @@ import ( "github.com/zilliztech/milvus-distributed/internal/msgstream/util" "github.com/zilliztech/milvus-distributed/internal/proto/commonpb" "github.com/zilliztech/milvus-distributed/internal/proto/internalpb2" - "github.com/zilliztech/milvus-distributed/internal/proto/servicepb" + "github.com/zilliztech/milvus-distributed/internal/proto/milvuspb" "github.com/zilliztech/milvus-distributed/internal/querynode/client" ) @@ -159,21 +159,21 @@ func TestLoadIndexService_FloatVector(t *testing.T) { binary.LittleEndian.PutUint32(vec, math.Float32bits(searchRowData[i])) searchRowByteData = append(searchRowByteData, vec...) } - placeholderValue := servicepb.PlaceholderValue{ + placeholderValue := milvuspb.PlaceholderValue{ Tag: "$0", - Type: servicepb.PlaceholderType_VECTOR_FLOAT, + Type: milvuspb.PlaceholderType_VECTOR_FLOAT, Values: [][]byte{searchRowByteData}, } - placeholderGroup := servicepb.PlaceholderGroup{ - Placeholders: []*servicepb.PlaceholderValue{&placeholderValue}, + placeholderGroup := milvuspb.PlaceholderGroup{ + Placeholders: []*milvuspb.PlaceholderValue{&placeholderValue}, } placeGroupByte, err := proto.Marshal(&placeholderGroup) if err != nil { log.Print("marshal placeholderGroup failed") } - query := servicepb.Query{ + query := milvuspb.SearchRequest{ CollectionName: "collection0", - PartitionTags: []string{"default"}, + PartitionNames: []string{"default"}, Dsl: dslString, PlaceholderGroup: placeGroupByte, } @@ -219,7 +219,7 @@ func TestLoadIndexService_FloatVector(t *testing.T) { searchResultStream.Start() searchResult := searchResultStream.Consume() assert.NotNil(t, searchResult) - unMarshaledHit := servicepb.Hits{} + unMarshaledHit := milvuspb.Hits{} err = proto.Unmarshal(searchResult.Msgs[0].(*msgstream.SearchResultMsg).Hits[0], &unMarshaledHit) assert.Nil(t, err) @@ -481,21 +481,21 @@ func TestLoadIndexService_BinaryVector(t *testing.T) { //generate search data and send search msg searchRowData := indexRowData[42*(DIM/8) : 43*(DIM/8)] dslString := "{\"bool\": { \n\"vector\": {\n \"vec\": {\n \"metric_type\": \"JACCARD\", \n \"params\": {\n \"nprobe\": 10 \n},\n \"query\": \"$0\",\"topk\": 10 \n } \n } \n } \n }" - placeholderValue := servicepb.PlaceholderValue{ + placeholderValue := milvuspb.PlaceholderValue{ Tag: "$0", - Type: servicepb.PlaceholderType_VECTOR_BINARY, + Type: milvuspb.PlaceholderType_VECTOR_BINARY, Values: [][]byte{searchRowData}, } - placeholderGroup := servicepb.PlaceholderGroup{ - Placeholders: []*servicepb.PlaceholderValue{&placeholderValue}, + placeholderGroup := milvuspb.PlaceholderGroup{ + Placeholders: []*milvuspb.PlaceholderValue{&placeholderValue}, } placeGroupByte, err := proto.Marshal(&placeholderGroup) if err != nil { log.Print("marshal placeholderGroup failed") } - query := servicepb.Query{ + query := milvuspb.SearchRequest{ CollectionName: "collection0", - PartitionTags: []string{"default"}, + PartitionNames: []string{"default"}, Dsl: dslString, PlaceholderGroup: placeGroupByte, } @@ -541,7 +541,7 @@ func TestLoadIndexService_BinaryVector(t *testing.T) { searchResultStream.Start() searchResult := searchResultStream.Consume() assert.NotNil(t, searchResult) - unMarshaledHit := servicepb.Hits{} + unMarshaledHit := milvuspb.Hits{} err = proto.Unmarshal(searchResult.Msgs[0].(*msgstream.SearchResultMsg).Hits[0], &unMarshaledHit) assert.Nil(t, err) diff --git a/internal/querynode/plan_test.go b/internal/querynode/plan_test.go index ea5691a3fc0b546051b6f15b1ed7e9cbd9376ac4..9f93608e4436fbc8a8e668bb319d82f16ff7b4df 100644 --- a/internal/querynode/plan_test.go +++ b/internal/querynode/plan_test.go @@ -8,7 +8,7 @@ import ( "github.com/golang/protobuf/proto" "github.com/stretchr/testify/assert" - "github.com/zilliztech/milvus-distributed/internal/proto/servicepb" + "github.com/zilliztech/milvus-distributed/internal/proto/milvuspb" ) func TestPlan_Plan(t *testing.T) { @@ -58,14 +58,14 @@ func TestPlan_PlaceholderGroup(t *testing.T) { binary.LittleEndian.PutUint32(buf, math.Float32bits(ele+float32(i*4))) searchRawData2 = append(searchRawData2, buf...) } - placeholderValue := servicepb.PlaceholderValue{ + placeholderValue := milvuspb.PlaceholderValue{ Tag: "$0", - Type: servicepb.PlaceholderType_VECTOR_FLOAT, + Type: milvuspb.PlaceholderType_VECTOR_FLOAT, Values: [][]byte{searchRawData1, searchRawData2}, } - placeholderGroup := servicepb.PlaceholderGroup{ - Placeholders: []*servicepb.PlaceholderValue{&placeholderValue}, + placeholderGroup := milvuspb.PlaceholderGroup{ + Placeholders: []*milvuspb.PlaceholderValue{&placeholderValue}, } placeGroupByte, err := proto.Marshal(&placeholderGroup) diff --git a/internal/querynode/reduce_test.go b/internal/querynode/reduce_test.go index 32aa76ea0dd16b2cfd21518046cf25de62dc309c..9114b65167f7465b26c6a180abefd1985dc60403 100644 --- a/internal/querynode/reduce_test.go +++ b/internal/querynode/reduce_test.go @@ -9,7 +9,7 @@ import ( "github.com/golang/protobuf/proto" "github.com/stretchr/testify/assert" - "github.com/zilliztech/milvus-distributed/internal/proto/servicepb" + "github.com/zilliztech/milvus-distributed/internal/proto/milvuspb" ) func TestReduce_AllFunc(t *testing.T) { @@ -38,14 +38,14 @@ func TestReduce_AllFunc(t *testing.T) { binary.LittleEndian.PutUint32(buf, math.Float32bits(ele+float32(i*4))) searchRawData2 = append(searchRawData2, buf...) } - placeholderValue := servicepb.PlaceholderValue{ + placeholderValue := milvuspb.PlaceholderValue{ Tag: "$0", - Type: servicepb.PlaceholderType_VECTOR_FLOAT, + Type: milvuspb.PlaceholderType_VECTOR_FLOAT, Values: [][]byte{searchRawData1, searchRawData2}, } - placeholderGroup := servicepb.PlaceholderGroup{ - Placeholders: []*servicepb.PlaceholderValue{&placeholderValue}, + placeholderGroup := milvuspb.PlaceholderGroup{ + Placeholders: []*milvuspb.PlaceholderValue{&placeholderValue}, } placeGroupByte, err := proto.Marshal(&placeholderGroup) @@ -86,7 +86,7 @@ func TestReduce_AllFunc(t *testing.T) { assert.Nil(t, err) for _, len := range hitBolbSizePeerQuery { marshaledHit := hitsBlob[offset : offset+len] - unMarshaledHit := servicepb.Hits{} + unMarshaledHit := milvuspb.Hits{} err = proto.Unmarshal(marshaledHit, &unMarshaledHit) assert.Nil(t, err) log.Println("hits msg = ", unMarshaledHit) diff --git a/internal/querynode/search_service.go b/internal/querynode/search_service.go index e10c18d47ad55e2bfe5d5d56a02c3c6ed58aa2e1..98b80665c184563e7782989e5be4ec676d4349e3 100644 --- a/internal/querynode/search_service.go +++ b/internal/querynode/search_service.go @@ -20,7 +20,7 @@ import ( "github.com/zilliztech/milvus-distributed/internal/msgstream/util" "github.com/zilliztech/milvus-distributed/internal/proto/commonpb" "github.com/zilliztech/milvus-distributed/internal/proto/internalpb2" - "github.com/zilliztech/milvus-distributed/internal/proto/servicepb" + "github.com/zilliztech/milvus-distributed/internal/proto/milvuspb" ) type searchService struct { @@ -233,14 +233,16 @@ func (ss *searchService) search(msg msgstream.TsMsg) error { searchTimestamp := searchMsg.Base.Timestamp var queryBlob = searchMsg.Query.Value - query := servicepb.Query{} + query := milvuspb.SearchRequest{} err := proto.Unmarshal(queryBlob, &query) if err != nil { span.LogFields(oplog.Error(err)) return errors.New("unmarshal query failed") } collectionName := query.CollectionName - partitionTagsInQuery := query.PartitionTags + fmt.Println("[ljq collection name]: ", collectionName) + partitionTagsInQuery := query.PartitionNames + fmt.Println("[search service ljq] query: ", query) collection, err := ss.replica.getCollectionByName(collectionName) if err != nil { span.LogFields(oplog.Error(err)) @@ -306,7 +308,7 @@ func (ss *searchService) search(msg msgstream.TsMsg) error { for _, group := range placeholderGroups { nq := group.getNumOfQuery() nilHits := make([][]byte, nq) - hit := &servicepb.Hits{} + hit := &milvuspb.Hits{} for i := 0; i < int(nq); i++ { bs, err := proto.Marshal(hit) if err != nil { @@ -374,7 +376,7 @@ func (ss *searchService) search(msg msgstream.TsMsg) error { hits = append(hits, hitsBlob[offset:offset+len]) //test code to checkout marshaled hits //marshaledHit := hitsBlob[offset:offset+len] - //unMarshaledHit := servicepb.Hits{} + //unMarshaledHit := milvuspb.Hits{} //err = proto.Unmarshal(marshaledHit, &unMarshaledHit) //if err != nil { // return err diff --git a/internal/querynode/search_service_test.go b/internal/querynode/search_service_test.go index 938e01c5b23b6ed835e74ab06a14de41d3466a69..4c1bd8b098478e02aca820444006297bae234996 100644 --- a/internal/querynode/search_service_test.go +++ b/internal/querynode/search_service_test.go @@ -15,7 +15,7 @@ import ( "github.com/zilliztech/milvus-distributed/internal/msgstream/pulsarms" "github.com/zilliztech/milvus-distributed/internal/proto/commonpb" "github.com/zilliztech/milvus-distributed/internal/proto/internalpb2" - "github.com/zilliztech/milvus-distributed/internal/proto/servicepb" + "github.com/zilliztech/milvus-distributed/internal/proto/milvuspb" ) func TestSearch_Search(t *testing.T) { @@ -45,14 +45,14 @@ func TestSearch_Search(t *testing.T) { binary.LittleEndian.PutUint32(buf, math.Float32bits(ele+float32(i*4))) searchRawData2 = append(searchRawData2, buf...) } - placeholderValue := servicepb.PlaceholderValue{ + placeholderValue := milvuspb.PlaceholderValue{ Tag: "$0", - Type: servicepb.PlaceholderType_VECTOR_FLOAT, + Type: milvuspb.PlaceholderType_VECTOR_FLOAT, Values: [][]byte{searchRawData1, searchRawData2}, } - placeholderGroup := servicepb.PlaceholderGroup{ - Placeholders: []*servicepb.PlaceholderValue{&placeholderValue}, + placeholderGroup := milvuspb.PlaceholderGroup{ + Placeholders: []*milvuspb.PlaceholderValue{&placeholderValue}, } placeGroupByte, err := proto.Marshal(&placeholderGroup) @@ -60,9 +60,9 @@ func TestSearch_Search(t *testing.T) { log.Print("marshal placeholderGroup failed") } - query := servicepb.Query{ + query := milvuspb.SearchRequest{ CollectionName: "collection0", - PartitionTags: []string{"default"}, + PartitionNames: []string{"default"}, Dsl: dslString, PlaceholderGroup: placeGroupByte, } @@ -239,14 +239,14 @@ func TestSearch_SearchMultiSegments(t *testing.T) { binary.LittleEndian.PutUint32(buf, math.Float32bits(ele+float32(i*4))) searchRawData2 = append(searchRawData2, buf...) } - placeholderValue := servicepb.PlaceholderValue{ + placeholderValue := milvuspb.PlaceholderValue{ Tag: "$0", - Type: servicepb.PlaceholderType_VECTOR_FLOAT, + Type: milvuspb.PlaceholderType_VECTOR_FLOAT, Values: [][]byte{searchRawData1, searchRawData2}, } - placeholderGroup := servicepb.PlaceholderGroup{ - Placeholders: []*servicepb.PlaceholderValue{&placeholderValue}, + placeholderGroup := milvuspb.PlaceholderGroup{ + Placeholders: []*milvuspb.PlaceholderValue{&placeholderValue}, } placeGroupByte, err := proto.Marshal(&placeholderGroup) @@ -254,9 +254,9 @@ func TestSearch_SearchMultiSegments(t *testing.T) { log.Print("marshal placeholderGroup failed") } - query := servicepb.Query{ + query := milvuspb.SearchRequest{ CollectionName: "collection0", - PartitionTags: []string{"default"}, + PartitionNames: []string{"default"}, Dsl: dslString, PlaceholderGroup: placeGroupByte, } diff --git a/internal/querynode/segment_test.go b/internal/querynode/segment_test.go index af7053577a3b8312a22ecbd962e0566fe231ae67..4a51420c60a519722fe39634464e71b549a585f4 100644 --- a/internal/querynode/segment_test.go +++ b/internal/querynode/segment_test.go @@ -10,7 +10,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/zilliztech/milvus-distributed/internal/proto/commonpb" - "github.com/zilliztech/milvus-distributed/internal/proto/servicepb" + "github.com/zilliztech/milvus-distributed/internal/proto/milvuspb" ) //-------------------------------------------------------------------------------------- constructor and destructor @@ -347,14 +347,14 @@ func TestSegment_segmentSearch(t *testing.T) { binary.LittleEndian.PutUint32(buf, math.Float32bits(ele)) searchRawData = append(searchRawData, buf...) } - placeholderValue := servicepb.PlaceholderValue{ + placeholderValue := milvuspb.PlaceholderValue{ Tag: "$0", - Type: servicepb.PlaceholderType_VECTOR_FLOAT, + Type: milvuspb.PlaceholderType_VECTOR_FLOAT, Values: [][]byte{searchRawData}, } - placeholderGroup := servicepb.PlaceholderGroup{ - Placeholders: []*servicepb.PlaceholderValue{&placeholderValue}, + placeholderGroup := milvuspb.PlaceholderGroup{ + Placeholders: []*milvuspb.PlaceholderValue{&placeholderValue}, } placeHolderGroupBlob, err := proto.Marshal(&placeholderGroup) diff --git a/scripts/proto_gen_go.sh b/scripts/proto_gen_go.sh index 4d36f31d0a51bea99352d879358039fbee5ac58f..466734a3b6fd34ac2786f97072271dfdf4c2888c 100755 --- a/scripts/proto_gen_go.sh +++ b/scripts/proto_gen_go.sh @@ -23,7 +23,7 @@ mkdir -p etcdpb mkdir -p indexcgopb #mkdir -p internalpb -mkdir -p servicepb +mkdir -p milvuspb mkdir -p masterpb mkdir -p indexbuilderpb mkdir -p writerpb @@ -44,8 +44,6 @@ ${protoc} --go_out=plugins=grpc,paths=source_relative:./indexcgopb index_cgo_msg #${protoc} --go_out=plugins=grpc,paths=source_relative:./internalpb internal_msg.proto -${protoc} --go_out=plugins=grpc,paths=source_relative:./servicepb service_msg.proto -${protoc} --go_out=plugins=grpc,paths=source_relative:./servicepb service.proto ${protoc} --go_out=plugins=grpc,paths=source_relative:./masterpb master.proto ${protoc} --go_out=plugins=grpc,paths=source_relative:./writerpb write_node.proto diff --git a/tests/python/requirements.txt b/tests/python/requirements.txt index 98dd4e02c717761d411870a5bc05d3a0a68e2c74..f0f095a96e0dc3657587f4146a106081ef96649f 100644 --- a/tests/python/requirements.txt +++ b/tests/python/requirements.txt @@ -4,5 +4,5 @@ numpy==1.18.1 pytest==5.3.4 pytest-cov==2.8.1 pytest-timeout==1.3.4 -pymilvus-distributed==0.0.14 +pymilvus-distributed==0.0.16 sklearn==0.0 diff --git a/tests/python/test_search.py b/tests/python/test_search.py index d23e4ff0f884cb4f222fc3cebe1f69fc93d8a46b..24825780e42487137632f1f1e5dee08c08994a82 100644 --- a/tests/python/test_search.py +++ b/tests/python/test_search.py @@ -981,7 +981,7 @@ class TestSearchDSL(object): with pytest.raises(Exception) as e: res = connect.search(collection, query) - # PASS + # PASS def test_query_no_vector_term_only(self, connect, collection): ''' method: build query without vector only term @@ -1634,7 +1634,7 @@ class TestSearchDSLBools(object): """ ****************************************************************** -# The following cases are used to test `search` function +# The following cases are used to test `search` function # with invalid collection_name, or invalid query expr ****************************************************************** """