diff --git a/.gitignore b/.gitignore index fa3661548b..b33c9e8ccd 100644 --- a/.gitignore +++ b/.gitignore @@ -23,11 +23,11 @@ cmake-build-release cmake_build # proxy +proxy/milvus proxy/cmake_build proxy/cmake-build-debug proxy/thirdparty/grpc-src proxy/thirdparty/grpc-build -proxy/milvus/ proxy/milvus/* proxy/suvlim/ proxy/suvlim/* diff --git a/go.mod b/go.mod index 4ab3c7f8e7..4d020f262c 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,7 @@ require ( github.com/minio/minio-go/v7 v7.0.5 github.com/opentracing/opentracing-go v1.2.0 github.com/pingcap/check v0.0.0-20200212061837-5e12011dc712 - github.com/pingcap/errors v0.11.4 + github.com/pingcap/errors v0.11.4 // indirect github.com/pingcap/log v0.0.0-20200828042413-fce0951f1463 github.com/pivotal-golang/bytefmt v0.0.0-20200131002437-cf55d5288a48 github.com/sirupsen/logrus v1.6.0 @@ -27,6 +27,7 @@ require ( golang.org/x/net v0.0.0-20200822124328-c89045814202 google.golang.org/grpc v1.31.1 google.golang.org/grpc/examples v0.0.0-20200828165940-d8ef479ab79a // indirect + google.golang.org/protobuf v1.25.0 gopkg.in/natefinch/lumberjack.v2 v2.0.0 sigs.k8s.io/yaml v1.2.0 // indirect ) diff --git a/go.sum b/go.sum index 34c37f6a17..48350a535d 100644 --- a/go.sum +++ b/go.sum @@ -52,11 +52,16 @@ github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWR github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa v0.0.1 h1:r3ncXbtIiad9owWu22r8ryYogBEV9NbJykk8k6K+u0w= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa h1:OaNxuTZr7kxeODyLWsRMC+OD03aFUH+mW6r2d+MWa5Y= github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= +github.com/coreos/bbolt v1.3.2 h1:wZwiHHUieZCquLkDL0B8UhzreNWsPHooDAG3q34zk0s= github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= github.com/coreos/etcd v3.3.12+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= +github.com/coreos/etcd v3.3.25+incompatible h1:0GQEw6h3YnuOVdtwygkIfJ+Omx0tZ8/QkVyXI4LkbeY= github.com/coreos/etcd v3.3.25+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= +github.com/coreos/go-semver v0.2.0 h1:3Jm3tLmsgAYcjC+4Up7hJrFBPr+n7rAqYeSw/SZazuY= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/coreos/go-systemd v0.0.0-20190212144455-93d5ec2c7f76 h1:FE783w8WFh+Rvg+7bZ5g8p7gP4SeVS4AoNwkvazlsBg= @@ -67,17 +72,24 @@ github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfc github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548/go.mod h1:e6NPNENfs9mPDVNRekM7lKScauxd5kXTr1Mfyig6TDM= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM= github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= +github.com/docker/go-units v0.4.0 h1:3uh0PgVws3nIA0Q+MwDC8yjEPf9zjRfZZWXZYDct3Tw= github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= +github.com/dustin/go-humanize v1.0.0 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4zYo= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= +github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385 h1:clC1lXBpe2kTj2VHdaIu9ajZQe4kcEY9j0NsnDDBZ3o= github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385/go.mod h1:0vRUJqYpeSZifjYj7uP3BG/gKcuzL9xWVV/Y+cK33KM= +github.com/envoyproxy/data-plane-api v0.0.0-20200904023242-f4d8a28107ca h1:EvL1gA7uyPU2JVN93HbQwYOXyUjUJKYGStDN8eKD/Ss= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= +github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= @@ -96,6 +108,7 @@ github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4er github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e h1:1r7pUrabqp18hOBcwBwiTsbnFeTZHV9eER/QT5JVZxY= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= @@ -130,6 +143,7 @@ github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMyw github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.1 h1:JFrFEBb2xKufg6XkJsJr+WbKb4FQlURi5RUcBveYu9k= github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= @@ -147,9 +161,12 @@ github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= +github.com/gorilla/mux v1.7.0 h1:tOSd0UKHQd6urX6ApfOn4XdBMY6Sh1MfxV3kmaazO+U= github.com/gorilla/mux v1.7.0/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= +github.com/gorilla/websocket v1.4.0 h1:WDFjx/TMzVgy9VdMMQi2K2Emtwi2QcUQsztZ/zLaH/Q= github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4 h1:z53tR0945TRRQO/fLEVPI6SMv7ZflF0TEaTAoU7tOzg= @@ -157,12 +174,15 @@ github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= github.com/grpc-ecosystem/grpc-gateway v1.8.1/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= +github.com/grpc-ecosystem/grpc-gateway v1.9.5 h1:UImYN5qQ8tuGpGE16ZmjvcTtTw24zw1QAp/SlnNrZhI= github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= +github.com/jonboulle/clockwork v0.1.0 h1:VKV+ZcuP6l3yW9doeqz6ziZGgcynBVQO+obU0+0hcPo= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= @@ -170,6 +190,7 @@ github.com/json-iterator/go v1.1.10 h1:Kz6Cvnvv2wGdaG/V8yMvfkmNiXq9Ya2KUv4rouJJr github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= @@ -179,10 +200,13 @@ github.com/klauspost/cpuid v1.2.3/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgo github.com/klauspost/cpuid v1.3.1 h1:5JNjFYYQrZeKRJ0734q51WCEEn2huer72Dc7K+R/b6s= github.com/klauspost/cpuid v1.3.1/go.mod h1:bYW4mA6ZgKPob1/Dlai2LviZJO7KGI3uoWLd42rAQw4= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/konsorten/go-windows-terminal-sequences v1.0.3 h1:CE8S1cTafDpPvMhIxNJKvHsGVBgn1xWYf1NbHQhywc8= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= +github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/linkedin/goavro v2.1.0+incompatible h1:DV2aUlj2xZiuxQyvag8Dy7zjY69ENjS66bWkSfdpddY= github.com/linkedin/goavro v2.1.0+incompatible/go.mod h1:bBCwI2eGYpUI/4820s67MElg9tdeLbINjLjiM2xZFYM= @@ -205,11 +229,14 @@ github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJ github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.1 h1:9f412s+6RmYXLWZSEzVVgPGK7C2PphHj5RJrvfx9AWI= github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/montanaflynn/stats v0.5.0 h1:2EkzeTSqBB4V4bJwWrt5gIIrZmpJBcoIRGS2kWLgzmk= github.com/montanaflynn/stats v0.5.0/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc= github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.7.0 h1:WSHQ+IS43OoUrWtD1/bbclrwK8TTH5hzp+umCiuxHgs= github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/gomega v1.4.3 h1:RE1xgDvH7imwFD45h+u2SgIfERHlS2yNG4DObb5BSKU= github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= @@ -218,8 +245,11 @@ github.com/pingcap/check v0.0.0-20190102082844-67f458068fc8/go.mod h1:B1+S9LNcuM github.com/pingcap/check v0.0.0-20200212061837-5e12011dc712 h1:R8gStypOBmpnHEx1qi//SaqxJVI4inOqljg/Aj5/390= github.com/pingcap/check v0.0.0-20200212061837-5e12011dc712/go.mod h1:PYMCGwN0JHjoqGr3HrZoD+b8Tgx8bKnArhSq8YVzUMc= github.com/pingcap/errors v0.11.0/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8= +github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4= github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8= +github.com/pingcap/gofail v0.0.0-20181217135706-6a951c1e42c3 h1:04yuCf5NMvLU8rB2m4Qs3rynH7EYpMno3lHkewIOdMo= github.com/pingcap/gofail v0.0.0-20181217135706-6a951c1e42c3/go.mod h1:DazNTg0PTldtpsQiT9I5tVJwV1onHMKBBgXzmJUlMns= +github.com/pingcap/goleveldb v0.0.0-20171020122428-b9ff6c35079e h1:P73/4dPCL96rGrobssy1nVy2VaVpNCuLpCbr+FEaTA8= github.com/pingcap/goleveldb v0.0.0-20171020122428-b9ff6c35079e/go.mod h1:O17XtbryoCJhkKGbT62+L2OlrniwqiGLSqrmdHCMzZw= github.com/pingcap/kvproto v0.0.0-20190305055742-ab7debc182d9 h1:EsTt42btov+tFchxOFKnxBNmXOWyPKiddOwvr/WO90g= github.com/pingcap/kvproto v0.0.0-20190305055742-ab7debc182d9/go.mod h1:QMdbTAXCHzzygQzqcG9uVUgU2fKeSN1GmfMiykdSzzY= @@ -228,10 +258,12 @@ github.com/pingcap/log v0.0.0-20200828042413-fce0951f1463 h1:Jboj+s4jSCp5E1WDgmR github.com/pingcap/log v0.0.0-20200828042413-fce0951f1463/go.mod h1:4rbK1p9ILyIfb6hU7OG2CiWSqMXnp3JMbiaVJ6mvoY8= github.com/pingcap/pd v2.1.5+incompatible h1:vOLV2tSQdRjjmxaTXtJULoC94dYQOd+6fzn2yChODHc= github.com/pingcap/pd v2.1.5+incompatible/go.mod h1:nD3+EoYes4+aNNODO99ES59V83MZSI+dFbhyr667a0E= +github.com/pivotal-golang/bytefmt v0.0.0-20200131002437-cf55d5288a48 h1:2JCf+JCLBs7IUZzYdIrSDN+GWYacKOdToIAt5zcga54= github.com/pivotal-golang/bytefmt v0.0.0-20200131002437-cf55d5288a48/go.mod h1:43j3yLP9UiXa0z95/W3hN7yTjoxsQoOll5rrGBgBcnE= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.2/go.mod h1:OsXs2jCmiKlQ1lTBmv21f2mNfw4xf/QclQDMrYNZzcM= @@ -248,6 +280,7 @@ github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.2 h1:6LJUbpNm42llc4HRCuvApCSWB/WfhuNo9K98Q9sNGfs= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/protocolbuffers/protobuf v3.13.0+incompatible h1:omZA3Tuq+U2kJ2uMuqMR9c1VO5qLEgZ19m9878fXNtg= github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446/go.mod h1:uYEyJGbgTkfkS4+E/PavXkNJcbFIpEtjt2B0KDQ5+9M= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= @@ -257,31 +290,41 @@ github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPx github.com/sirupsen/logrus v1.3.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.6.0 h1:UBcNElsrwanuuMsnGSlYmtmgbb23qDR5dG+6X6Oo89I= github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= +github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= +github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a h1:pa8hGb/2YqsZKovtsgrwcDH1RZhVbTKCjLp47XpqCDs= github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= +github.com/soheilhy/cmux v0.1.4 h1:0HKaf1o97UwFjHH9o5XsHUOF+tqmdA7KEzXLpiyaw0E= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= +github.com/spf13/pflag v1.0.1 h1:aCvUg6QPl3ibpQUxyLkrEkCHtPqYJL4x9AuhqVqFis4= github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/tikv/client-go v0.0.0-20200824032810-95774393107b h1:VOG2GkM7RpRrT0St7HIIwCWrc3mVdf+DjcT8r2ucusI= github.com/tikv/client-go v0.0.0-20200824032810-95774393107b/go.mod h1:K0NcdVNrXDq92YPLytsrAwRMyuXi7GZCO6dXNH7OzQc= +github.com/tikv/pd v2.1.19+incompatible h1:rqjHqO7t/STke/R2Yz6+lQj6NPA8u7G2Otwqup4K+P8= github.com/tikv/pd v2.1.19+incompatible/go.mod h1:v6C/D7ONC49SgjI4jbGnooSizvijaO/bdIm62DVR4tI= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= +github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5 h1:LnC5Kc/wtumK+WB441p7ynQJzVuNRJiqddSIE3IlSEQ= github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/ugorji/go v1.1.2/go.mod h1:hnLbHMwcvSihnDhEfx2/BzKp2xb0Y+ErdfYcrs9tkJQ= github.com/ugorji/go/codec v0.0.0-20190204201341-e444a5086c43/go.mod h1:iT03XoTwV7xq/+UGwKO3UbC1nNNlopQiY61beSdrtOA= +github.com/unrolled/render v1.0.0 h1:XYtvhA3UkpB7PqkvhUFYmpKD55OudoIeygcfus4vcd4= github.com/unrolled/render v1.0.0/go.mod h1:tu82oB5W2ykJRVioYsB+IQKcft7ryBr7w12qMBUPyXg= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= +github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 h1:eY9dn8+vbi4tKz5Qo6v2eYzo7kUS51QINcR5jNpbZS8= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +go.etcd.io/bbolt v1.3.5 h1:XAzx9gjCb0Rxj7EoqcClPD1d5ZBxZJk0jbuoPHenBt0= go.etcd.io/bbolt v1.3.5/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ= go.etcd.io/etcd v0.5.0-alpha.5.0.20191023171146-3cf2f69b5738 h1:lWF4f9Nypl1ZqSb4gLeh/DGvBYVaUYHuiB93teOmwgc= go.etcd.io/etcd v0.5.0-alpha.5.0.20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= @@ -299,6 +342,7 @@ go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+ go.uber.org/multierr v1.4.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.5.0 h1:KCa4XfM8CWFCpxXRGok+Q0SS/0XBhMDbHHGABQLvD2A= go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU= +go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee h1:0mgffUl7nfd+FpvXMVz4IDEaUSmT1ysygQC7qYo7sG4= go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= @@ -334,6 +378,7 @@ golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHl golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b h1:Wh+f8QHJXR411sJR8/vRBTZ7YapZaRvUcLFFJhusH0k= golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= @@ -342,6 +387,7 @@ golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -431,6 +477,7 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0 h1:/5xXl8Y5W96D+TtHSlonuFqGHIWVuyCkGJLwGh9JJFs= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -477,10 +524,12 @@ golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roY golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200806022845-90696ccdc692 h1:fsn47thVa7Ar/TMyXYlZgOoT7M4+kRpb+KpSAqRQx1w= golang.org/x/tools v0.0.0-20200806022845-90696ccdc692/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= @@ -551,6 +600,7 @@ google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= google.golang.org/grpc v1.31.1 h1:SfXqXS5hkufcdZ/mHtYCh53P2b+92WQq/DZcKLgsFRs= google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc/examples v0.0.0-20200828165940-d8ef479ab79a h1:7iRJyssym7732TmOPsstcu7CtG53rDKSiL+yhxbN+5Y= google.golang.org/grpc/examples v0.0.0-20200828165940-d8ef479ab79a/go.mod h1:Lh55/1hxmVHEkOvSIQ2uj0P12QyOCUNyRwnUlSS13hw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= @@ -565,21 +615,27 @@ google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4 google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= +gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/ini.v1 v1.57.0 h1:9unxIsFcTt4I55uWluz+UmL95q4kdJ0buvQ1ZIqVQww= gopkg.in/ini.v1 v1.57.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/linkedin/goavro.v1 v1.0.5 h1:BJa69CDh0awSsLUmZ9+BowBdokpduDZSM9Zk8oKHfN4= gopkg.in/linkedin/goavro.v1 v1.0.5/go.mod h1:Aw5GdAbizjOEl0kAMHV9iHmA8reZzW/OKuJAl4Hb9F0= gopkg.in/natefinch/lumberjack.v2 v2.0.0 h1:1Lc07Kr7qY4U2YPouBjpCLxpiyxIVoxqXgkXLknAOE8= gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= @@ -587,9 +643,11 @@ honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWh honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.0.1-2020.1.4 h1:UoveltGrhghAA7ePc+e+QYDHXrBps2PqFZiHkGR/xK8= honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= +sigs.k8s.io/yaml v1.2.0 h1:kr/MCeFWJWTwyaHoR9c8EjH9OumOmoF9YGiZd7lFm/Q= sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= diff --git a/proto/suvlim.proto b/proto/suvlim.proto index 532807f007..744533d796 100644 --- a/proto/suvlim.proto +++ b/proto/suvlim.proto @@ -705,12 +705,7 @@ message TimeSyncMsg{ SyncType sync_type = 3; } -message SegmentRecord { +message Key2SegMsg { int64 uid = 1; repeated int64 segment_id = 2; -} - -message Key2SegMsg { - int64 client_id = 1; - SegmentRecord records = 2; } \ No newline at end of file diff --git a/proxy/src/CMakeLists.txt b/proxy/src/CMakeLists.txt index 8c8ac1bd88..2c10cb8e87 100644 --- a/proxy/src/CMakeLists.txt +++ b/proxy/src/CMakeLists.txt @@ -15,7 +15,7 @@ include_directories(${MILVUS_SOURCE_DIR}) include_directories(${MILVUS_ENGINE_SRC}) include_directories(${MILVUS_THIRDPARTY_SRC}) -include_directories(${MILVUS_ENGINE_SRC}/grpc/gen-status) +#include_directories(${MILVUS_ENGINE_SRC}/grpc/gen-status) include_directories(${MILVUS_ENGINE_SRC}/grpc/gen-milvus) add_subdirectory( tracing ) @@ -26,7 +26,6 @@ add_subdirectory( db ) # target milvus_engine add_subdirectory( log ) add_subdirectory( server ) add_subdirectory( message_client ) -add_subdirectory( test ) set(link_lib milvus_engine diff --git a/proxy/src/config/CMakeLists.txt b/proxy/src/config/CMakeLists.txt index d0e5af83a1..49c03988c9 100644 --- a/proxy/src/config/CMakeLists.txt +++ b/proxy/src/config/CMakeLists.txt @@ -29,36 +29,3 @@ create_library( LIBS ${CONFIG_LIBS} ) -if ( BUILD_UNIT_TEST ) - create_library( - TARGET config-fiu - SRCS ${CONFIG_SRCS} - LIBS ${CONFIG_LIBS} - DEFS FIU_ENABLE - ) - target_compile_definitions(config-fiu PRIVATE FIU_ENABLE) - - set(GTEST_LIBS gtest gtest_main gmock gmock_main) - - create_executable( - TARGET ServerConfigTest - SRCS ServerConfigTest - LIBS config-fiu ${GTEST_LIBS} - DEFS FIU_ENABLE - ) - - create_executable( - TARGET ConfigTypeTest - SRCS ConfigTypeTest1 ConfigTypeTest2 - LIBS config-fiu ${GTEST_LIBS} - DEFS FIU_ENABLE - ) - - add_test ( NAME ServerConfigTest - COMMAND $ - ) - - add_test ( NAME ConfigTypeTest - COMMAND $ - ) -endif() diff --git a/proxy/src/config/ServerConfigTest.cpp b/proxy/src/config/ServerConfigTest.cpp index 9a988b9dc5..76e0f844a7 100644 --- a/proxy/src/config/ServerConfigTest.cpp +++ b/proxy/src/config/ServerConfigTest.cpp @@ -9,14 +9,11 @@ // is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express // or implied. See the License for the specific language governing permissions and limitations under the License. -#include #include #include "config/ServerConfig.h" TEST(ServerConfigTest, parse_invalid_devices) { - fiu_init(0); - fiu_enable("ParseGPUDevices.invalid_format", 1, nullptr, 0); auto collections = milvus::ParseGPUDevices("gpu0,gpu1"); ASSERT_EQ(collections.size(), 0); } diff --git a/proxy/src/grpc/cpp_gen.sh b/proxy/src/grpc/cpp_gen.sh index cc4f07760f..ac2b4e36b1 100755 --- a/proxy/src/grpc/cpp_gen.sh +++ b/proxy/src/grpc/cpp_gen.sh @@ -1,8 +1,8 @@ #!/bin/bash -../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --grpc_out=./gen-status --plugin=protoc-gen-grpc="../../cmake-build-debug/thirdparty/grpc/grpc-build/grpc_cpp_plugin" status.proto +#../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --grpc_out=./gen-status --plugin=protoc-gen-grpc="../../cmake-build-debug/thirdparty/grpc/grpc-build/grpc_cpp_plugin" status.proto -../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --cpp_out=./gen-status status.proto +#../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --cpp_out=./gen-status status.proto #../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --grpc_out=./gen-milvus --plugin=protoc-gen-grpc="../../cmake-build-debug/thirdparty/grpc/grpc-build/grpc_cpp_plugin" milvus.proto # @@ -18,6 +18,15 @@ #../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --cpp_out=./gen-milvus master.proto # TODO: spilt milvus and pulsar proto -../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --grpc_out=./gen-milvus --plugin=protoc-gen-grpc="../../cmake-build-debug/thirdparty/grpc/grpc-build/grpc_cpp_plugin" suvlim.proto +# +#../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --grpc_out=./gen-milvus --plugin=protoc-gen-grpc="../../cmake-build-debug/thirdparty/grpc/grpc-build/grpc_cpp_plugin" master.proto +# +protoc=../../cmake_build/thirdparty/grpc/grpc-build/third_party/protobuf/protoc +$protoc -I . --cpp_out=./gen-milvus suvlim.proto +$protoc -I . --grpc_out=./gen-milvus --plugin=protoc-gen-grpc="../../cmake_build/thirdparty/grpc/grpc-build/grpc_cpp_plugin" suvlim.proto -../../cmake-build-debug/thirdparty/grpc/grpc-build/third_party/protobuf/protoc -I . --cpp_out=./gen-milvus suvlim.proto \ No newline at end of file +$protoc -I . --cpp_out=./gen-milvus hello.proto +$protoc -I . --grpc_out=./gen-milvus --plugin=protoc-gen-grpc="../../cmake_build/thirdparty/grpc/grpc-build/grpc_cpp_plugin" hello.proto + +$protoc -I . --cpp_out=./gen-milvus master.proto +$protoc -I . --grpc_out=./gen-milvus --plugin=protoc-gen-grpc="../../cmake_build/thirdparty/grpc/grpc-build/grpc_cpp_plugin" master.proto diff --git a/proxy/src/grpc/gen-milvus/suvlim.pb.cc b/proxy/src/grpc/gen-milvus/suvlim.pb.cc index 0440b710ac..e4eafb733d 100644 --- a/proxy/src/grpc/gen-milvus/suvlim.pb.cc +++ b/proxy/src/grpc/gen-milvus/suvlim.pb.cc @@ -26,7 +26,7 @@ extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Schema_suvlim_2eproto; extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_SearchParam_suvlim_2eproto; extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SegmentRecord_suvlim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_status_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Status_status_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Status_suvlim_2eproto; extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TermQuery_suvlim_2eproto; extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VectorFieldParam_suvlim_2eproto; extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_VectorParam_suvlim_2eproto; @@ -35,6 +35,10 @@ extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VectorRowRecord_suvlim_2eproto; namespace milvus { namespace grpc { +class StatusDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _Status_default_instance_; class KeyValuePairDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; @@ -244,7 +248,7 @@ static void InitDefaultsscc_info_BoolReply_suvlim_2eproto() { ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_BoolReply_suvlim_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_BoolReply_suvlim_2eproto}, { - &scc_info_Status_status_2eproto.base,}}; + &scc_info_Status_suvlim_2eproto.base,}}; static void InitDefaultsscc_info_BooleanQuery_suvlim_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -282,7 +286,7 @@ static void InitDefaultsscc_info_CollectionInfo_suvlim_2eproto() { ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionInfo_suvlim_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_CollectionInfo_suvlim_2eproto}, { - &scc_info_Status_status_2eproto.base,}}; + &scc_info_Status_suvlim_2eproto.base,}}; static void InitDefaultsscc_info_CollectionName_suvlim_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -311,7 +315,7 @@ static void InitDefaultsscc_info_CollectionNameList_suvlim_2eproto() { ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionNameList_suvlim_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_CollectionNameList_suvlim_2eproto}, { - &scc_info_Status_status_2eproto.base,}}; + &scc_info_Status_suvlim_2eproto.base,}}; static void InitDefaultsscc_info_CollectionRowCount_suvlim_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -326,7 +330,7 @@ static void InitDefaultsscc_info_CollectionRowCount_suvlim_2eproto() { ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionRowCount_suvlim_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_CollectionRowCount_suvlim_2eproto}, { - &scc_info_Status_status_2eproto.base,}}; + &scc_info_Status_suvlim_2eproto.base,}}; static void InitDefaultsscc_info_Command_suvlim_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -397,7 +401,7 @@ static void InitDefaultsscc_info_Entities_suvlim_2eproto() { ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Entities_suvlim_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_Entities_suvlim_2eproto}, { - &scc_info_Status_status_2eproto.base, + &scc_info_Status_suvlim_2eproto.base, &scc_info_RowData_suvlim_2eproto.base,}}; static void InitDefaultsscc_info_EntityIdentity_suvlim_2eproto() { @@ -427,7 +431,7 @@ static void InitDefaultsscc_info_EntityIds_suvlim_2eproto() { ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EntityIds_suvlim_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_EntityIds_suvlim_2eproto}, { - &scc_info_Status_status_2eproto.base,}}; + &scc_info_Status_suvlim_2eproto.base,}}; static void InitDefaultsscc_info_FieldMeta_suvlim_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -528,7 +532,7 @@ static void InitDefaultsscc_info_IndexParam_suvlim_2eproto() { ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_IndexParam_suvlim_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_IndexParam_suvlim_2eproto}, { - &scc_info_Status_status_2eproto.base, + &scc_info_Status_suvlim_2eproto.base, &scc_info_KeyValuePair_suvlim_2eproto.base,}}; static void InitDefaultsscc_info_InsertOrDeleteMsg_suvlim_2eproto() { @@ -606,7 +610,7 @@ static void InitDefaultsscc_info_Mapping_suvlim_2eproto() { ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_Mapping_suvlim_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_Mapping_suvlim_2eproto}, { - &scc_info_Status_status_2eproto.base, + &scc_info_Status_suvlim_2eproto.base, &scc_info_Schema_suvlim_2eproto.base, &scc_info_KeyValuePair_suvlim_2eproto.base,}}; @@ -623,7 +627,7 @@ static void InitDefaultsscc_info_MappingList_suvlim_2eproto() { ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_MappingList_suvlim_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_MappingList_suvlim_2eproto}, { - &scc_info_Status_status_2eproto.base, + &scc_info_Status_suvlim_2eproto.base, &scc_info_Mapping_suvlim_2eproto.base,}}; static void InitDefaultsscc_info_PartitionList_suvlim_2eproto() { @@ -639,7 +643,7 @@ static void InitDefaultsscc_info_PartitionList_suvlim_2eproto() { ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PartitionList_suvlim_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_PartitionList_suvlim_2eproto}, { - &scc_info_Status_status_2eproto.base,}}; + &scc_info_Status_suvlim_2eproto.base,}}; static void InitDefaultsscc_info_PartitionParam_suvlim_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -668,7 +672,7 @@ static void InitDefaultsscc_info_QueryResult_suvlim_2eproto() { ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_QueryResult_suvlim_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_QueryResult_suvlim_2eproto}, { - &scc_info_Status_status_2eproto.base, + &scc_info_Status_suvlim_2eproto.base, &scc_info_Entities_suvlim_2eproto.base, &scc_info_KeyValuePair_suvlim_2eproto.base,}}; @@ -794,6 +798,20 @@ static void InitDefaultsscc_info_SegmentRecord_suvlim_2eproto() { ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SegmentRecord_suvlim_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_SegmentRecord_suvlim_2eproto}, {}}; +static void InitDefaultsscc_info_Status_suvlim_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_Status_default_instance_; + new (ptr) ::milvus::grpc::Status(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::Status::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Status_suvlim_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_Status_suvlim_2eproto}, {}}; + static void InitDefaultsscc_info_StringReply_suvlim_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -807,7 +825,7 @@ static void InitDefaultsscc_info_StringReply_suvlim_2eproto() { ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_StringReply_suvlim_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_StringReply_suvlim_2eproto}, { - &scc_info_Status_status_2eproto.base,}}; + &scc_info_Status_suvlim_2eproto.base,}}; static void InitDefaultsscc_info_TermQuery_suvlim_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -927,11 +945,18 @@ static void InitDefaultsscc_info_VectorRowRecord_suvlim_2eproto() { ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VectorRowRecord_suvlim_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_VectorRowRecord_suvlim_2eproto}, {}}; -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_suvlim_2eproto[47]; -static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_suvlim_2eproto[5]; +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_suvlim_2eproto[48]; +static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_suvlim_2eproto[6]; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_suvlim_2eproto = nullptr; const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_suvlim_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::Status, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::Status, error_code_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::Status, reason_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::milvus::grpc::KeyValuePair, _internal_metadata_), ~0u, // no _extensions_ @@ -1307,56 +1332,58 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_suvlim_2eproto::offsets[] PROT PROTOBUF_FIELD_OFFSET(::milvus::grpc::Key2SegMsg, records_), }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::milvus::grpc::KeyValuePair)}, - { 7, -1, sizeof(::milvus::grpc::CollectionName)}, - { 13, -1, sizeof(::milvus::grpc::CollectionNameList)}, - { 20, -1, sizeof(::milvus::grpc::FieldName)}, - { 27, -1, sizeof(::milvus::grpc::Mapping)}, - { 36, -1, sizeof(::milvus::grpc::MappingList)}, - { 43, -1, sizeof(::milvus::grpc::PartitionParam)}, - { 50, -1, sizeof(::milvus::grpc::PartitionList)}, - { 57, -1, sizeof(::milvus::grpc::VectorRowRecord)}, - { 64, -1, sizeof(::milvus::grpc::EntityIds)}, - { 71, -1, sizeof(::milvus::grpc::VectorRecord)}, - { 77, -1, sizeof(::milvus::grpc::VectorParam)}, - { 84, -1, sizeof(::milvus::grpc::FieldMeta)}, - { 92, -1, sizeof(::milvus::grpc::Schema)}, - { 98, -1, sizeof(::milvus::grpc::RowData)}, - { 104, -1, sizeof(::milvus::grpc::InsertParam)}, - { 115, -1, sizeof(::milvus::grpc::SearchParam)}, - { 125, -1, sizeof(::milvus::grpc::SearchInSegmentParam)}, - { 132, -1, sizeof(::milvus::grpc::Entities)}, - { 141, -1, sizeof(::milvus::grpc::QueryResult)}, - { 152, -1, sizeof(::milvus::grpc::StringReply)}, - { 159, -1, sizeof(::milvus::grpc::BoolReply)}, - { 166, -1, sizeof(::milvus::grpc::CollectionRowCount)}, - { 173, -1, sizeof(::milvus::grpc::Command)}, - { 179, -1, sizeof(::milvus::grpc::IndexParam)}, - { 189, -1, sizeof(::milvus::grpc::FlushParam)}, - { 195, -1, sizeof(::milvus::grpc::CompactParam)}, - { 202, -1, sizeof(::milvus::grpc::DeleteByIDParam)}, - { 209, -1, sizeof(::milvus::grpc::CollectionInfo)}, - { 216, -1, sizeof(::milvus::grpc::GetEntityIDsParam)}, - { 223, -1, sizeof(::milvus::grpc::EntityIdentity)}, - { 231, -1, sizeof(::milvus::grpc::VectorFieldParam)}, - { 237, -1, sizeof(::milvus::grpc::FieldType)}, - { 245, -1, sizeof(::milvus::grpc::FieldParam)}, - { 255, -1, sizeof(::milvus::grpc::VectorFieldRecord)}, - { 261, -1, sizeof(::milvus::grpc::TermQuery)}, - { 272, -1, sizeof(::milvus::grpc::CompareExpr)}, - { 279, -1, sizeof(::milvus::grpc::RangeQuery)}, - { 288, -1, sizeof(::milvus::grpc::VectorQuery)}, - { 298, -1, sizeof(::milvus::grpc::BooleanQuery)}, - { 305, -1, sizeof(::milvus::grpc::GeneralQuery)}, - { 315, -1, sizeof(::milvus::grpc::SearchParamPB)}, - { 324, -1, sizeof(::milvus::grpc::InsertOrDeleteMsg)}, - { 339, -1, sizeof(::milvus::grpc::SearchMsg)}, - { 351, -1, sizeof(::milvus::grpc::TimeSyncMsg)}, - { 359, -1, sizeof(::milvus::grpc::SegmentRecord)}, - { 366, -1, sizeof(::milvus::grpc::Key2SegMsg)}, + { 0, -1, sizeof(::milvus::grpc::Status)}, + { 7, -1, sizeof(::milvus::grpc::KeyValuePair)}, + { 14, -1, sizeof(::milvus::grpc::CollectionName)}, + { 20, -1, sizeof(::milvus::grpc::CollectionNameList)}, + { 27, -1, sizeof(::milvus::grpc::FieldName)}, + { 34, -1, sizeof(::milvus::grpc::Mapping)}, + { 43, -1, sizeof(::milvus::grpc::MappingList)}, + { 50, -1, sizeof(::milvus::grpc::PartitionParam)}, + { 57, -1, sizeof(::milvus::grpc::PartitionList)}, + { 64, -1, sizeof(::milvus::grpc::VectorRowRecord)}, + { 71, -1, sizeof(::milvus::grpc::EntityIds)}, + { 78, -1, sizeof(::milvus::grpc::VectorRecord)}, + { 84, -1, sizeof(::milvus::grpc::VectorParam)}, + { 91, -1, sizeof(::milvus::grpc::FieldMeta)}, + { 99, -1, sizeof(::milvus::grpc::Schema)}, + { 105, -1, sizeof(::milvus::grpc::RowData)}, + { 111, -1, sizeof(::milvus::grpc::InsertParam)}, + { 122, -1, sizeof(::milvus::grpc::SearchParam)}, + { 132, -1, sizeof(::milvus::grpc::SearchInSegmentParam)}, + { 139, -1, sizeof(::milvus::grpc::Entities)}, + { 148, -1, sizeof(::milvus::grpc::QueryResult)}, + { 159, -1, sizeof(::milvus::grpc::StringReply)}, + { 166, -1, sizeof(::milvus::grpc::BoolReply)}, + { 173, -1, sizeof(::milvus::grpc::CollectionRowCount)}, + { 180, -1, sizeof(::milvus::grpc::Command)}, + { 186, -1, sizeof(::milvus::grpc::IndexParam)}, + { 196, -1, sizeof(::milvus::grpc::FlushParam)}, + { 202, -1, sizeof(::milvus::grpc::CompactParam)}, + { 209, -1, sizeof(::milvus::grpc::DeleteByIDParam)}, + { 216, -1, sizeof(::milvus::grpc::CollectionInfo)}, + { 223, -1, sizeof(::milvus::grpc::GetEntityIDsParam)}, + { 230, -1, sizeof(::milvus::grpc::EntityIdentity)}, + { 238, -1, sizeof(::milvus::grpc::VectorFieldParam)}, + { 244, -1, sizeof(::milvus::grpc::FieldType)}, + { 252, -1, sizeof(::milvus::grpc::FieldParam)}, + { 262, -1, sizeof(::milvus::grpc::VectorFieldRecord)}, + { 268, -1, sizeof(::milvus::grpc::TermQuery)}, + { 279, -1, sizeof(::milvus::grpc::CompareExpr)}, + { 286, -1, sizeof(::milvus::grpc::RangeQuery)}, + { 295, -1, sizeof(::milvus::grpc::VectorQuery)}, + { 305, -1, sizeof(::milvus::grpc::BooleanQuery)}, + { 312, -1, sizeof(::milvus::grpc::GeneralQuery)}, + { 322, -1, sizeof(::milvus::grpc::SearchParamPB)}, + { 331, -1, sizeof(::milvus::grpc::InsertOrDeleteMsg)}, + { 346, -1, sizeof(::milvus::grpc::SearchMsg)}, + { 358, -1, sizeof(::milvus::grpc::TimeSyncMsg)}, + { 366, -1, sizeof(::milvus::grpc::SegmentRecord)}, + { 373, -1, sizeof(::milvus::grpc::Key2SegMsg)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::milvus::grpc::_Status_default_instance_), reinterpret_cast(&::milvus::grpc::_KeyValuePair_default_instance_), reinterpret_cast(&::milvus::grpc::_CollectionName_default_instance_), reinterpret_cast(&::milvus::grpc::_CollectionNameList_default_instance_), @@ -1407,186 +1434,200 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = }; const char descriptor_table_protodef_suvlim_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\014suvlim.proto\022\013milvus.grpc\032\014status.prot" - "o\"*\n\014KeyValuePair\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - "\002 \001(\t\")\n\016CollectionName\022\027\n\017collection_na" - "me\030\001 \001(\t\"S\n\022CollectionNameList\022#\n\006status" - "\030\001 \001(\0132\023.milvus.grpc.Status\022\030\n\020collectio" - "n_names\030\002 \003(\t\"8\n\tFieldName\022\027\n\017collection" - "_name\030\001 \001(\t\022\022\n\nfield_name\030\002 \001(\t\"\235\001\n\007Mapp" - "ing\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Status" - "\022\027\n\017collection_name\030\002 \001(\t\022#\n\006schema\030\003 \001(" - "\0132\023.milvus.grpc.Schema\022/\n\014extra_params\030\004" - " \003(\0132\031.milvus.grpc.KeyValuePair\"^\n\013Mappi" - "ngList\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Sta" - "tus\022*\n\014mapping_list\030\002 \003(\0132\024.milvus.grpc." - "Mapping\"6\n\016PartitionParam\022\027\n\017collection_" - "name\030\001 \001(\t\022\013\n\003tag\030\002 \001(\t\"Q\n\rPartitionList" - "\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Status\022\033\n" - "\023partition_tag_array\030\002 \003(\t\":\n\017VectorRowR" - "ecord\022\022\n\nfloat_data\030\001 \003(\002\022\023\n\013binary_data" - "\030\002 \001(\014\"I\n\tEntityIds\022#\n\006status\030\001 \001(\0132\023.mi" - "lvus.grpc.Status\022\027\n\017entity_id_array\030\002 \003(" - "\003\"=\n\014VectorRecord\022-\n\007records\030\001 \003(\0132\034.mil" - "vus.grpc.VectorRowRecord\"J\n\013VectorParam\022" - "\014\n\004json\030\001 \001(\t\022-\n\nrow_record\030\002 \001(\0132\031.milv" - "us.grpc.VectorRecord\"Q\n\tFieldMeta\022\022\n\nfie" - "ld_name\030\001 \001(\t\022#\n\004type\030\002 \001(\0162\025.milvus.grp" - "c.DataType\022\013\n\003dim\030\003 \001(\003\"5\n\006Schema\022+\n\013fie" - "ld_metas\030\001 \003(\0132\026.milvus.grpc.FieldMeta\"\027" - "\n\007RowData\022\014\n\004blob\030\001 \001(\014\"\325\001\n\013InsertParam\022" - "\027\n\017collection_name\030\001 \001(\t\022#\n\006schema\030\002 \001(\013" - "2\023.milvus.grpc.Schema\022\'\n\trows_data\030\003 \003(\013" - "2\024.milvus.grpc.RowData\022\027\n\017entity_id_arra" - "y\030\004 \003(\003\022\025\n\rpartition_tag\030\005 \001(\t\022/\n\014extra_" - "params\030\006 \003(\0132\031.milvus.grpc.KeyValuePair\"" - "\253\001\n\013SearchParam\022\027\n\017collection_name\030\001 \001(\t" - "\022.\n\014vector_param\030\002 \003(\0132\030.milvus.grpc.Vec" - "torParam\022\013\n\003dsl\030\003 \001(\t\022\025\n\rpartition_tag\030\004" - " \003(\t\022/\n\014extra_params\030\005 \003(\0132\031.milvus.grpc" - ".KeyValuePair\"]\n\024SearchInSegmentParam\022\025\n" - "\rfile_id_array\030\001 \003(\t\022.\n\014search_param\030\002 \001" - "(\0132\030.milvus.grpc.SearchParam\"x\n\010Entities" - "\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Status\022\013\n" - "\003ids\030\002 \003(\003\022\021\n\tvalid_row\030\003 \003(\010\022\'\n\trows_da" - "ta\030\004 \003(\0132\024.milvus.grpc.RowData\"\300\001\n\013Query" - "Result\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Sta" - "tus\022\'\n\010entities\030\002 \001(\0132\025.milvus.grpc.Enti" - "ties\022\017\n\007row_num\030\003 \001(\003\022\016\n\006scores\030\004 \003(\002\022\021\n" - "\tdistances\030\005 \003(\002\022/\n\014extra_params\030\006 \003(\0132\031" - ".milvus.grpc.KeyValuePair\"H\n\013StringReply" - "\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Status\022\024\n" - "\014string_reply\030\002 \001(\t\"D\n\tBoolReply\022#\n\006stat" - "us\030\001 \001(\0132\023.milvus.grpc.Status\022\022\n\nbool_re" - "ply\030\002 \001(\010\"W\n\022CollectionRowCount\022#\n\006statu" - "s\030\001 \001(\0132\023.milvus.grpc.Status\022\034\n\024collecti" - "on_row_count\030\002 \001(\003\"\026\n\007Command\022\013\n\003cmd\030\001 \001" - "(\t\"\243\001\n\nIndexParam\022#\n\006status\030\001 \001(\0132\023.milv" - "us.grpc.Status\022\027\n\017collection_name\030\002 \001(\t\022" - "\022\n\nfield_name\030\003 \001(\t\022\022\n\nindex_name\030\004 \001(\t\022" - "/\n\014extra_params\030\005 \003(\0132\031.milvus.grpc.KeyV" - "aluePair\"+\n\nFlushParam\022\035\n\025collection_nam" - "e_array\030\001 \003(\t\":\n\014CompactParam\022\027\n\017collect" - "ion_name\030\001 \001(\t\022\021\n\tthreshold\030\002 \001(\001\"<\n\017Del" - "eteByIDParam\022\027\n\017collection_name\030\001 \001(\t\022\020\n" - "\010id_array\030\002 \003(\003\"H\n\016CollectionInfo\022#\n\006sta" - "tus\030\001 \001(\0132\023.milvus.grpc.Status\022\021\n\tjson_i" - "nfo\030\002 \001(\t\"@\n\021GetEntityIDsParam\022\027\n\017collec" - "tion_name\030\001 \001(\t\022\022\n\nsegment_id\030\002 \001(\003\"P\n\016E" - "ntityIdentity\022\027\n\017collection_name\030\001 \001(\t\022\020" - "\n\010id_array\030\002 \003(\003\022\023\n\013field_names\030\003 \003(\t\"%\n" - "\020VectorFieldParam\022\021\n\tdimension\030\001 \001(\003\"w\n\t" - "FieldType\022*\n\tdata_type\030\001 \001(\0162\025.milvus.gr" - "pc.DataTypeH\000\0225\n\014vector_param\030\002 \001(\0132\035.mi" - "lvus.grpc.VectorFieldParamH\000B\007\n\005value\"\255\001" - "\n\nFieldParam\022\n\n\002id\030\001 \001(\004\022\014\n\004name\030\002 \001(\t\022#" - "\n\004type\030\003 \001(\0162\025.milvus.grpc.DataType\022/\n\014i" - "ndex_params\030\004 \003(\0132\031.milvus.grpc.KeyValue" - "Pair\022/\n\014extra_params\030\005 \003(\0132\031.milvus.grpc" - ".KeyValuePair\"@\n\021VectorFieldRecord\022+\n\005va" - "lue\030\001 \003(\0132\034.milvus.grpc.VectorRowRecord\"" - "\233\001\n\tTermQuery\022\022\n\nfield_name\030\001 \001(\t\022\021\n\tint" - "_value\030\002 \003(\003\022\024\n\014double_value\030\003 \003(\001\022\021\n\tva" - "lue_num\030\004 \001(\003\022\r\n\005boost\030\005 \001(\002\022/\n\014extra_pa" - "rams\030\006 \003(\0132\031.milvus.grpc.KeyValuePair\"N\n" - "\013CompareExpr\022.\n\010operator\030\001 \001(\0162\034.milvus." - "grpc.CompareOperator\022\017\n\007operand\030\002 \001(\t\"\213\001" - "\n\nRangeQuery\022\022\n\nfield_name\030\001 \001(\t\022)\n\007oper" - "and\030\002 \003(\0132\030.milvus.grpc.CompareExpr\022\r\n\005b" - "oost\030\003 \001(\002\022/\n\014extra_params\030\004 \003(\0132\031.milvu" - "s.grpc.KeyValuePair\"\244\001\n\013VectorQuery\022\022\n\nf" - "ield_name\030\001 \001(\t\022\023\n\013query_boost\030\002 \001(\002\022-\n\007" - "records\030\003 \003(\0132\034.milvus.grpc.VectorRowRec" - "ord\022\014\n\004topk\030\004 \001(\003\022/\n\014extra_params\030\005 \003(\0132" - "\031.milvus.grpc.KeyValuePair\"c\n\014BooleanQue" - "ry\022!\n\005occur\030\001 \001(\0162\022.milvus.grpc.Occur\0220\n" - "\rgeneral_query\030\002 \003(\0132\031.milvus.grpc.Gener" - "alQuery\"\333\001\n\014GeneralQuery\0222\n\rboolean_quer" - "y\030\001 \001(\0132\031.milvus.grpc.BooleanQueryH\000\022,\n\n" - "term_query\030\002 \001(\0132\026.milvus.grpc.TermQuery" - "H\000\022.\n\013range_query\030\003 \001(\0132\027.milvus.grpc.Ra" - "ngeQueryH\000\0220\n\014vector_query\030\004 \001(\0132\030.milvu" - "s.grpc.VectorQueryH\000B\007\n\005query\"\250\001\n\rSearch" - "ParamPB\022\027\n\017collection_name\030\001 \001(\t\022\033\n\023part" - "ition_tag_array\030\002 \003(\t\0220\n\rgeneral_query\030\003" - " \001(\0132\031.milvus.grpc.GeneralQuery\022/\n\014extra" - "_params\030\004 \003(\0132\031.milvus.grpc.KeyValuePair" - "\"\231\002\n\021InsertOrDeleteMsg\022\027\n\017collection_nam" - "e\030\001 \001(\t\022\'\n\trows_data\030\002 \001(\0132\024.milvus.grpc" - ".RowData\022\013\n\003uid\030\003 \001(\003\022\025\n\rpartition_tag\030\004" - " \001(\t\022\021\n\ttimestamp\030\005 \001(\004\022\022\n\nsegment_id\030\006 " - "\001(\003\022\022\n\nchannel_id\030\007 \001(\003\022\037\n\002op\030\010 \001(\0162\023.mi" - "lvus.grpc.OpType\022\021\n\tclient_id\030\t \001(\003\022/\n\014e" - "xtra_params\030\n \003(\0132\031.milvus.grpc.KeyValue" - "Pair\"\316\001\n\tSearchMsg\022\027\n\017collection_name\030\001 " - "\001(\t\022-\n\007records\030\002 \001(\0132\034.milvus.grpc.Vecto" - "rRowRecord\022\025\n\rpartition_tag\030\003 \001(\t\022\013\n\003uid" - "\030\004 \001(\003\022\021\n\ttimestamp\030\005 \001(\004\022\021\n\tclient_id\030\006" - " \001(\003\022/\n\014extra_params\030\007 \003(\0132\031.milvus.grpc" - ".KeyValuePair\"[\n\013TimeSyncMsg\022\017\n\007peer_Id\030" - "\001 \001(\003\022\021\n\tTimestamp\030\002 \001(\004\022(\n\tsync_type\030\003 " - "\001(\0162\025.milvus.grpc.SyncType\"0\n\rSegmentRec" - "ord\022\013\n\003uid\030\001 \001(\003\022\022\n\nsegment_id\030\002 \003(\003\"L\n\n" - "Key2SegMsg\022\021\n\tclient_id\030\001 \001(\003\022+\n\007records" - "\030\002 \001(\0132\032.milvus.grpc.SegmentRecord*\221\001\n\010D" - "ataType\022\010\n\004NONE\020\000\022\010\n\004BOOL\020\001\022\010\n\004INT8\020\002\022\t\n" - "\005INT16\020\003\022\t\n\005INT32\020\004\022\t\n\005INT64\020\005\022\t\n\005FLOAT\020" - "\n\022\n\n\006DOUBLE\020\013\022\n\n\006STRING\020\024\022\021\n\rVECTOR_BINA" - "RY\020d\022\020\n\014VECTOR_FLOAT\020e*C\n\017CompareOperato" - "r\022\006\n\002LT\020\000\022\007\n\003LTE\020\001\022\006\n\002EQ\020\002\022\006\n\002GT\020\003\022\007\n\003GT" - "E\020\004\022\006\n\002NE\020\005*8\n\005Occur\022\013\n\007INVALID\020\000\022\010\n\004MUS" - "T\020\001\022\n\n\006SHOULD\020\002\022\014\n\010MUST_NOT\020\003* \n\006OpType\022" - "\n\n\006INSERT\020\000\022\n\n\006DELETE\020\001*\037\n\010SyncType\022\010\n\004R" - "EAD\020\000\022\t\n\005WRITE\020\0012\333\r\n\rMilvusService\022\?\n\020Cr" - "eateCollection\022\024.milvus.grpc.Mapping\032\023.m" - "ilvus.grpc.Status\"\000\022F\n\rHasCollection\022\033.m" - "ilvus.grpc.CollectionName\032\026.milvus.grpc." - "BoolReply\"\000\022I\n\022DescribeCollection\022\033.milv" - "us.grpc.CollectionName\032\024.milvus.grpc.Map" - "ping\"\000\022Q\n\017CountCollection\022\033.milvus.grpc." - "CollectionName\032\037.milvus.grpc.CollectionR" - "owCount\"\000\022J\n\017ShowCollections\022\024.milvus.gr" - "pc.Command\032\037.milvus.grpc.CollectionNameL" - "ist\"\000\022P\n\022ShowCollectionInfo\022\033.milvus.grp" - "c.CollectionName\032\033.milvus.grpc.Collectio" - "nInfo\"\000\022D\n\016DropCollection\022\033.milvus.grpc." - "CollectionName\032\023.milvus.grpc.Status\"\000\022=\n" - "\013CreateIndex\022\027.milvus.grpc.IndexParam\032\023." - "milvus.grpc.Status\"\000\022C\n\rDescribeIndex\022\027." - "milvus.grpc.IndexParam\032\027.milvus.grpc.Ind" - "exParam\"\000\022;\n\tDropIndex\022\027.milvus.grpc.Ind" - "exParam\032\023.milvus.grpc.Status\"\000\022E\n\017Create" - "Partition\022\033.milvus.grpc.PartitionParam\032\023" - ".milvus.grpc.Status\"\000\022E\n\014HasPartition\022\033." - "milvus.grpc.PartitionParam\032\026.milvus.grpc" - ".BoolReply\"\000\022K\n\016ShowPartitions\022\033.milvus." - "grpc.CollectionName\032\032.milvus.grpc.Partit" - "ionList\"\000\022C\n\rDropPartition\022\033.milvus.grpc" - ".PartitionParam\032\023.milvus.grpc.Status\"\000\022<" - "\n\006Insert\022\030.milvus.grpc.InsertParam\032\026.mil" - "vus.grpc.EntityIds\"\000\022E\n\rGetEntityByID\022\033." - "milvus.grpc.EntityIdentity\032\025.milvus.grpc" - ".Entities\"\000\022H\n\014GetEntityIDs\022\036.milvus.grp" - "c.GetEntityIDsParam\032\026.milvus.grpc.Entity" - "Ids\"\000\022>\n\006Search\022\030.milvus.grpc.SearchPara" - "m\032\030.milvus.grpc.QueryResult\"\000\022P\n\017SearchI" - "nSegment\022!.milvus.grpc.SearchInSegmentPa" - "ram\032\030.milvus.grpc.QueryResult\"\000\0227\n\003Cmd\022\024" - ".milvus.grpc.Command\032\030.milvus.grpc.Strin" - "gReply\"\000\022A\n\nDeleteByID\022\034.milvus.grpc.Del" - "eteByIDParam\032\023.milvus.grpc.Status\"\000\022G\n\021P" - "reloadCollection\022\033.milvus.grpc.Collectio" - "nName\032\023.milvus.grpc.Status\"\000\0227\n\005Flush\022\027." - "milvus.grpc.FlushParam\032\023.milvus.grpc.Sta" - "tus\"\000\022;\n\007Compact\022\031.milvus.grpc.CompactPa" - "ram\032\023.milvus.grpc.Status\"\000\022B\n\010SearchPB\022\032" - ".milvus.grpc.SearchParamPB\032\030.milvus.grpc" - ".QueryResult\"\000b\006proto3" + "\n\014suvlim.proto\022\013milvus.grpc\"D\n\006Status\022*\n" + "\nerror_code\030\001 \001(\0162\026.milvus.grpc.ErrorCod" + "e\022\016\n\006reason\030\002 \001(\t\"*\n\014KeyValuePair\022\013\n\003key" + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\")\n\016CollectionName\022" + "\027\n\017collection_name\030\001 \001(\t\"S\n\022CollectionNa" + "meList\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Sta" + "tus\022\030\n\020collection_names\030\002 \003(\t\"8\n\tFieldNa" + "me\022\027\n\017collection_name\030\001 \001(\t\022\022\n\nfield_nam" + "e\030\002 \001(\t\"\235\001\n\007Mapping\022#\n\006status\030\001 \001(\0132\023.mi" + "lvus.grpc.Status\022\027\n\017collection_name\030\002 \001(" + "\t\022#\n\006schema\030\003 \001(\0132\023.milvus.grpc.Schema\022/" + "\n\014extra_params\030\004 \003(\0132\031.milvus.grpc.KeyVa" + "luePair\"^\n\013MappingList\022#\n\006status\030\001 \001(\0132\023" + ".milvus.grpc.Status\022*\n\014mapping_list\030\002 \003(" + "\0132\024.milvus.grpc.Mapping\"6\n\016PartitionPara" + "m\022\027\n\017collection_name\030\001 \001(\t\022\013\n\003tag\030\002 \001(\t\"" + "Q\n\rPartitionList\022#\n\006status\030\001 \001(\0132\023.milvu" + "s.grpc.Status\022\033\n\023partition_tag_array\030\002 \003" + "(\t\":\n\017VectorRowRecord\022\022\n\nfloat_data\030\001 \003(" + "\002\022\023\n\013binary_data\030\002 \001(\014\"I\n\tEntityIds\022#\n\006s" + "tatus\030\001 \001(\0132\023.milvus.grpc.Status\022\027\n\017enti" + "ty_id_array\030\002 \003(\003\"=\n\014VectorRecord\022-\n\007rec" + "ords\030\001 \003(\0132\034.milvus.grpc.VectorRowRecord" + "\"J\n\013VectorParam\022\014\n\004json\030\001 \001(\t\022-\n\nrow_rec" + "ord\030\002 \001(\0132\031.milvus.grpc.VectorRecord\"Q\n\t" + "FieldMeta\022\022\n\nfield_name\030\001 \001(\t\022#\n\004type\030\002 " + "\001(\0162\025.milvus.grpc.DataType\022\013\n\003dim\030\003 \001(\003\"" + "5\n\006Schema\022+\n\013field_metas\030\001 \003(\0132\026.milvus." + "grpc.FieldMeta\"\027\n\007RowData\022\014\n\004blob\030\001 \001(\014\"" + "\325\001\n\013InsertParam\022\027\n\017collection_name\030\001 \001(\t" + "\022#\n\006schema\030\002 \001(\0132\023.milvus.grpc.Schema\022\'\n" + "\trows_data\030\003 \003(\0132\024.milvus.grpc.RowData\022\027" + "\n\017entity_id_array\030\004 \003(\003\022\025\n\rpartition_tag" + "\030\005 \001(\t\022/\n\014extra_params\030\006 \003(\0132\031.milvus.gr" + "pc.KeyValuePair\"\253\001\n\013SearchParam\022\027\n\017colle" + "ction_name\030\001 \001(\t\022.\n\014vector_param\030\002 \003(\0132\030" + ".milvus.grpc.VectorParam\022\013\n\003dsl\030\003 \001(\t\022\025\n" + "\rpartition_tag\030\004 \003(\t\022/\n\014extra_params\030\005 \003" + "(\0132\031.milvus.grpc.KeyValuePair\"]\n\024SearchI" + "nSegmentParam\022\025\n\rfile_id_array\030\001 \003(\t\022.\n\014" + "search_param\030\002 \001(\0132\030.milvus.grpc.SearchP" + "aram\"x\n\010Entities\022#\n\006status\030\001 \001(\0132\023.milvu" + "s.grpc.Status\022\013\n\003ids\030\002 \003(\003\022\021\n\tvalid_row\030" + "\003 \003(\010\022\'\n\trows_data\030\004 \003(\0132\024.milvus.grpc.R" + "owData\"\300\001\n\013QueryResult\022#\n\006status\030\001 \001(\0132\023" + ".milvus.grpc.Status\022\'\n\010entities\030\002 \001(\0132\025." + "milvus.grpc.Entities\022\017\n\007row_num\030\003 \001(\003\022\016\n" + "\006scores\030\004 \003(\002\022\021\n\tdistances\030\005 \003(\002\022/\n\014extr" + "a_params\030\006 \003(\0132\031.milvus.grpc.KeyValuePai" + "r\"H\n\013StringReply\022#\n\006status\030\001 \001(\0132\023.milvu" + "s.grpc.Status\022\024\n\014string_reply\030\002 \001(\t\"D\n\tB" + "oolReply\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.S" + "tatus\022\022\n\nbool_reply\030\002 \001(\010\"W\n\022CollectionR" + "owCount\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.St" + "atus\022\034\n\024collection_row_count\030\002 \001(\003\"\026\n\007Co" + "mmand\022\013\n\003cmd\030\001 \001(\t\"\243\001\n\nIndexParam\022#\n\006sta" + "tus\030\001 \001(\0132\023.milvus.grpc.Status\022\027\n\017collec" + "tion_name\030\002 \001(\t\022\022\n\nfield_name\030\003 \001(\t\022\022\n\ni" + "ndex_name\030\004 \001(\t\022/\n\014extra_params\030\005 \003(\0132\031." + "milvus.grpc.KeyValuePair\"+\n\nFlushParam\022\035" + "\n\025collection_name_array\030\001 \003(\t\":\n\014Compact" + "Param\022\027\n\017collection_name\030\001 \001(\t\022\021\n\tthresh" + "old\030\002 \001(\001\"<\n\017DeleteByIDParam\022\027\n\017collecti" + "on_name\030\001 \001(\t\022\020\n\010id_array\030\002 \003(\003\"H\n\016Colle" + "ctionInfo\022#\n\006status\030\001 \001(\0132\023.milvus.grpc." + "Status\022\021\n\tjson_info\030\002 \001(\t\"@\n\021GetEntityID" + "sParam\022\027\n\017collection_name\030\001 \001(\t\022\022\n\nsegme" + "nt_id\030\002 \001(\003\"P\n\016EntityIdentity\022\027\n\017collect" + "ion_name\030\001 \001(\t\022\020\n\010id_array\030\002 \003(\003\022\023\n\013fiel" + "d_names\030\003 \003(\t\"%\n\020VectorFieldParam\022\021\n\tdim" + "ension\030\001 \001(\003\"w\n\tFieldType\022*\n\tdata_type\030\001" + " \001(\0162\025.milvus.grpc.DataTypeH\000\0225\n\014vector_" + "param\030\002 \001(\0132\035.milvus.grpc.VectorFieldPar" + "amH\000B\007\n\005value\"\255\001\n\nFieldParam\022\n\n\002id\030\001 \001(\004" + "\022\014\n\004name\030\002 \001(\t\022#\n\004type\030\003 \001(\0162\025.milvus.gr" + "pc.DataType\022/\n\014index_params\030\004 \003(\0132\031.milv" + "us.grpc.KeyValuePair\022/\n\014extra_params\030\005 \003" + "(\0132\031.milvus.grpc.KeyValuePair\"@\n\021VectorF" + "ieldRecord\022+\n\005value\030\001 \003(\0132\034.milvus.grpc." + "VectorRowRecord\"\233\001\n\tTermQuery\022\022\n\nfield_n" + "ame\030\001 \001(\t\022\021\n\tint_value\030\002 \003(\003\022\024\n\014double_v" + "alue\030\003 \003(\001\022\021\n\tvalue_num\030\004 \001(\003\022\r\n\005boost\030\005" + " \001(\002\022/\n\014extra_params\030\006 \003(\0132\031.milvus.grpc" + ".KeyValuePair\"N\n\013CompareExpr\022.\n\010operator" + "\030\001 \001(\0162\034.milvus.grpc.CompareOperator\022\017\n\007" + "operand\030\002 \001(\t\"\213\001\n\nRangeQuery\022\022\n\nfield_na" + "me\030\001 \001(\t\022)\n\007operand\030\002 \003(\0132\030.milvus.grpc." + "CompareExpr\022\r\n\005boost\030\003 \001(\002\022/\n\014extra_para" + "ms\030\004 \003(\0132\031.milvus.grpc.KeyValuePair\"\244\001\n\013" + "VectorQuery\022\022\n\nfield_name\030\001 \001(\t\022\023\n\013query" + "_boost\030\002 \001(\002\022-\n\007records\030\003 \003(\0132\034.milvus.g" + "rpc.VectorRowRecord\022\014\n\004topk\030\004 \001(\003\022/\n\014ext" + "ra_params\030\005 \003(\0132\031.milvus.grpc.KeyValuePa" + "ir\"c\n\014BooleanQuery\022!\n\005occur\030\001 \001(\0162\022.milv" + "us.grpc.Occur\0220\n\rgeneral_query\030\002 \003(\0132\031.m" + "ilvus.grpc.GeneralQuery\"\333\001\n\014GeneralQuery" + "\0222\n\rboolean_query\030\001 \001(\0132\031.milvus.grpc.Bo" + "oleanQueryH\000\022,\n\nterm_query\030\002 \001(\0132\026.milvu" + "s.grpc.TermQueryH\000\022.\n\013range_query\030\003 \001(\0132" + "\027.milvus.grpc.RangeQueryH\000\0220\n\014vector_que" + "ry\030\004 \001(\0132\030.milvus.grpc.VectorQueryH\000B\007\n\005" + "query\"\250\001\n\rSearchParamPB\022\027\n\017collection_na" + "me\030\001 \001(\t\022\033\n\023partition_tag_array\030\002 \003(\t\0220\n" + "\rgeneral_query\030\003 \001(\0132\031.milvus.grpc.Gener" + "alQuery\022/\n\014extra_params\030\004 \003(\0132\031.milvus.g" + "rpc.KeyValuePair\"\231\002\n\021InsertOrDeleteMsg\022\027" + "\n\017collection_name\030\001 \001(\t\022\'\n\trows_data\030\002 \001" + "(\0132\024.milvus.grpc.RowData\022\013\n\003uid\030\003 \001(\003\022\025\n" + "\rpartition_tag\030\004 \001(\t\022\021\n\ttimestamp\030\005 \001(\004\022" + "\022\n\nsegment_id\030\006 \001(\003\022\022\n\nchannel_id\030\007 \001(\003\022" + "\037\n\002op\030\010 \001(\0162\023.milvus.grpc.OpType\022\021\n\tclie" + "nt_id\030\t \001(\003\022/\n\014extra_params\030\n \003(\0132\031.milv" + "us.grpc.KeyValuePair\"\316\001\n\tSearchMsg\022\027\n\017co" + "llection_name\030\001 \001(\t\022-\n\007records\030\002 \001(\0132\034.m" + "ilvus.grpc.VectorRowRecord\022\025\n\rpartition_" + "tag\030\003 \001(\t\022\013\n\003uid\030\004 \001(\003\022\021\n\ttimestamp\030\005 \001(" + "\004\022\021\n\tclient_id\030\006 \001(\003\022/\n\014extra_params\030\007 \003" + "(\0132\031.milvus.grpc.KeyValuePair\"[\n\013TimeSyn" + "cMsg\022\017\n\007peer_Id\030\001 \001(\003\022\021\n\tTimestamp\030\002 \001(\004" + "\022(\n\tsync_type\030\003 \001(\0162\025.milvus.grpc.SyncTy" + "pe\"0\n\rSegmentRecord\022\013\n\003uid\030\001 \001(\003\022\022\n\nsegm" + "ent_id\030\002 \003(\003\"L\n\nKey2SegMsg\022\021\n\tclient_id\030" + "\001 \001(\003\022+\n\007records\030\002 \001(\0132\032.milvus.grpc.Seg" + "mentRecord*\242\004\n\tErrorCode\022\013\n\007SUCCESS\020\000\022\024\n" + "\020UNEXPECTED_ERROR\020\001\022\022\n\016CONNECT_FAILED\020\002\022" + "\025\n\021PERMISSION_DENIED\020\003\022\031\n\025COLLECTION_NOT" + "_EXISTS\020\004\022\024\n\020ILLEGAL_ARGUMENT\020\005\022\025\n\021ILLEG" + "AL_DIMENSION\020\007\022\026\n\022ILLEGAL_INDEX_TYPE\020\010\022\033" + "\n\027ILLEGAL_COLLECTION_NAME\020\t\022\020\n\014ILLEGAL_T" + "OPK\020\n\022\025\n\021ILLEGAL_ROWRECORD\020\013\022\025\n\021ILLEGAL_" + "VECTOR_ID\020\014\022\031\n\025ILLEGAL_SEARCH_RESULT\020\r\022\022" + "\n\016FILE_NOT_FOUND\020\016\022\017\n\013META_FAILED\020\017\022\020\n\014C" + "ACHE_FAILED\020\020\022\030\n\024CANNOT_CREATE_FOLDER\020\021\022" + "\026\n\022CANNOT_CREATE_FILE\020\022\022\030\n\024CANNOT_DELETE" + "_FOLDER\020\023\022\026\n\022CANNOT_DELETE_FILE\020\024\022\025\n\021BUI" + "LD_INDEX_ERROR\020\025\022\021\n\rILLEGAL_NLIST\020\026\022\027\n\023I" + "LLEGAL_METRIC_TYPE\020\027\022\021\n\rOUT_OF_MEMORY\020\030*" + "\221\001\n\010DataType\022\010\n\004NONE\020\000\022\010\n\004BOOL\020\001\022\010\n\004INT8" + "\020\002\022\t\n\005INT16\020\003\022\t\n\005INT32\020\004\022\t\n\005INT64\020\005\022\t\n\005F" + "LOAT\020\n\022\n\n\006DOUBLE\020\013\022\n\n\006STRING\020\024\022\021\n\rVECTOR" + "_BINARY\020d\022\020\n\014VECTOR_FLOAT\020e*C\n\017CompareOp" + "erator\022\006\n\002LT\020\000\022\007\n\003LTE\020\001\022\006\n\002EQ\020\002\022\006\n\002GT\020\003\022" + "\007\n\003GTE\020\004\022\006\n\002NE\020\005*8\n\005Occur\022\013\n\007INVALID\020\000\022\010" + "\n\004MUST\020\001\022\n\n\006SHOULD\020\002\022\014\n\010MUST_NOT\020\003* \n\006Op" + "Type\022\n\n\006INSERT\020\000\022\n\n\006DELETE\020\001*\037\n\010SyncType" + "\022\010\n\004READ\020\000\022\t\n\005WRITE\020\0012\333\r\n\rMilvusService\022" + "\?\n\020CreateCollection\022\024.milvus.grpc.Mappin" + "g\032\023.milvus.grpc.Status\"\000\022F\n\rHasCollectio" + "n\022\033.milvus.grpc.CollectionName\032\026.milvus." + "grpc.BoolReply\"\000\022I\n\022DescribeCollection\022\033" + ".milvus.grpc.CollectionName\032\024.milvus.grp" + "c.Mapping\"\000\022Q\n\017CountCollection\022\033.milvus." + "grpc.CollectionName\032\037.milvus.grpc.Collec" + "tionRowCount\"\000\022J\n\017ShowCollections\022\024.milv" + "us.grpc.Command\032\037.milvus.grpc.Collection" + "NameList\"\000\022P\n\022ShowCollectionInfo\022\033.milvu" + "s.grpc.CollectionName\032\033.milvus.grpc.Coll" + "ectionInfo\"\000\022D\n\016DropCollection\022\033.milvus." + "grpc.CollectionName\032\023.milvus.grpc.Status" + "\"\000\022=\n\013CreateIndex\022\027.milvus.grpc.IndexPar" + "am\032\023.milvus.grpc.Status\"\000\022C\n\rDescribeInd" + "ex\022\027.milvus.grpc.IndexParam\032\027.milvus.grp" + "c.IndexParam\"\000\022;\n\tDropIndex\022\027.milvus.grp" + "c.IndexParam\032\023.milvus.grpc.Status\"\000\022E\n\017C" + "reatePartition\022\033.milvus.grpc.PartitionPa" + "ram\032\023.milvus.grpc.Status\"\000\022E\n\014HasPartiti" + "on\022\033.milvus.grpc.PartitionParam\032\026.milvus" + ".grpc.BoolReply\"\000\022K\n\016ShowPartitions\022\033.mi" + "lvus.grpc.CollectionName\032\032.milvus.grpc.P" + "artitionList\"\000\022C\n\rDropPartition\022\033.milvus" + ".grpc.PartitionParam\032\023.milvus.grpc.Statu" + "s\"\000\022<\n\006Insert\022\030.milvus.grpc.InsertParam\032" + "\026.milvus.grpc.EntityIds\"\000\022E\n\rGetEntityBy" + "ID\022\033.milvus.grpc.EntityIdentity\032\025.milvus" + ".grpc.Entities\"\000\022H\n\014GetEntityIDs\022\036.milvu" + "s.grpc.GetEntityIDsParam\032\026.milvus.grpc.E" + "ntityIds\"\000\022>\n\006Search\022\030.milvus.grpc.Searc" + "hParam\032\030.milvus.grpc.QueryResult\"\000\022P\n\017Se" + "archInSegment\022!.milvus.grpc.SearchInSegm" + "entParam\032\030.milvus.grpc.QueryResult\"\000\0227\n\003" + "Cmd\022\024.milvus.grpc.Command\032\030.milvus.grpc." + "StringReply\"\000\022A\n\nDeleteByID\022\034.milvus.grp" + "c.DeleteByIDParam\032\023.milvus.grpc.Status\"\000" + "\022G\n\021PreloadCollection\022\033.milvus.grpc.Coll" + "ectionName\032\023.milvus.grpc.Status\"\000\0227\n\005Flu" + "sh\022\027.milvus.grpc.FlushParam\032\023.milvus.grp" + "c.Status\"\000\022;\n\007Compact\022\031.milvus.grpc.Comp" + "actParam\032\023.milvus.grpc.Status\"\000\022B\n\010Searc" + "hPB\022\032.milvus.grpc.SearchParamPB\032\030.milvus" + ".grpc.QueryResult\"\000b\006proto3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_suvlim_2eproto_deps[1] = { - &::descriptor_table_status_2eproto, }; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_suvlim_2eproto_sccs[46] = { +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_suvlim_2eproto_sccs[47] = { &scc_info_BoolReply_suvlim_2eproto.base, &scc_info_BooleanQuery_suvlim_2eproto.base, &scc_info_CollectionInfo_suvlim_2eproto.base, @@ -1624,6 +1665,7 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_suv &scc_info_SearchParam_suvlim_2eproto.base, &scc_info_SearchParamPB_suvlim_2eproto.base, &scc_info_SegmentRecord_suvlim_2eproto.base, + &scc_info_Status_suvlim_2eproto.base, &scc_info_StringReply_suvlim_2eproto.base, &scc_info_TermQuery_suvlim_2eproto.base, &scc_info_TimeSyncMsg_suvlim_2eproto.base, @@ -1637,20 +1679,56 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_suv static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_suvlim_2eproto_once; static bool descriptor_table_suvlim_2eproto_initialized = false; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_suvlim_2eproto = { - &descriptor_table_suvlim_2eproto_initialized, descriptor_table_protodef_suvlim_2eproto, "suvlim.proto", 6982, - &descriptor_table_suvlim_2eproto_once, descriptor_table_suvlim_2eproto_sccs, descriptor_table_suvlim_2eproto_deps, 46, 1, + &descriptor_table_suvlim_2eproto_initialized, descriptor_table_protodef_suvlim_2eproto, "suvlim.proto", 7587, + &descriptor_table_suvlim_2eproto_once, descriptor_table_suvlim_2eproto_sccs, descriptor_table_suvlim_2eproto_deps, 47, 0, schemas, file_default_instances, TableStruct_suvlim_2eproto::offsets, - file_level_metadata_suvlim_2eproto, 47, file_level_enum_descriptors_suvlim_2eproto, file_level_service_descriptors_suvlim_2eproto, + file_level_metadata_suvlim_2eproto, 48, file_level_enum_descriptors_suvlim_2eproto, file_level_service_descriptors_suvlim_2eproto, }; // Force running AddDescriptors() at dynamic initialization time. static bool dynamic_init_dummy_suvlim_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_suvlim_2eproto), true); namespace milvus { namespace grpc { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DataType_descriptor() { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ErrorCode_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_suvlim_2eproto); return file_level_enum_descriptors_suvlim_2eproto[0]; } +bool ErrorCode_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + case 24: + return true; + default: + return false; + } +} + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DataType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_suvlim_2eproto); + return file_level_enum_descriptors_suvlim_2eproto[1]; +} bool DataType_IsValid(int value) { switch (value) { case 0: @@ -1672,7 +1750,7 @@ bool DataType_IsValid(int value) { const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CompareOperator_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_suvlim_2eproto); - return file_level_enum_descriptors_suvlim_2eproto[1]; + return file_level_enum_descriptors_suvlim_2eproto[2]; } bool CompareOperator_IsValid(int value) { switch (value) { @@ -1690,7 +1768,7 @@ bool CompareOperator_IsValid(int value) { const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Occur_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_suvlim_2eproto); - return file_level_enum_descriptors_suvlim_2eproto[2]; + return file_level_enum_descriptors_suvlim_2eproto[3]; } bool Occur_IsValid(int value) { switch (value) { @@ -1706,7 +1784,7 @@ bool Occur_IsValid(int value) { const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* OpType_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_suvlim_2eproto); - return file_level_enum_descriptors_suvlim_2eproto[3]; + return file_level_enum_descriptors_suvlim_2eproto[4]; } bool OpType_IsValid(int value) { switch (value) { @@ -1720,7 +1798,7 @@ bool OpType_IsValid(int value) { const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SyncType_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_suvlim_2eproto); - return file_level_enum_descriptors_suvlim_2eproto[4]; + return file_level_enum_descriptors_suvlim_2eproto[5]; } bool SyncType_IsValid(int value) { switch (value) { @@ -1733,6 +1811,322 @@ bool SyncType_IsValid(int value) { } +// =================================================================== + +void Status::InitAsDefaultInstance() { +} +class Status::_Internal { + public: +}; + +Status::Status() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.grpc.Status) +} +Status::Status(const Status& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + reason_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.reason().empty()) { + reason_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.reason_); + } + error_code_ = from.error_code_; + // @@protoc_insertion_point(copy_constructor:milvus.grpc.Status) +} + +void Status::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Status_suvlim_2eproto.base); + reason_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + error_code_ = 0; +} + +Status::~Status() { + // @@protoc_insertion_point(destructor:milvus.grpc.Status) + SharedDtor(); +} + +void Status::SharedDtor() { + reason_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void Status::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Status& Status::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Status_suvlim_2eproto.base); + return *internal_default_instance(); +} + + +void Status::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.grpc.Status) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + reason_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + error_code_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Status::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.grpc.ErrorCode error_code = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + set_error_code(static_cast<::milvus::grpc::ErrorCode>(val)); + } else goto handle_unusual; + continue; + // string reason = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_reason(), ptr, ctx, "milvus.grpc.Status.reason"); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Status::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.grpc.Status) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.grpc.ErrorCode error_code = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_error_code(static_cast< ::milvus::grpc::ErrorCode >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string reason = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_reason())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->reason().data(), static_cast(this->reason().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.grpc.Status.reason")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.grpc.Status) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.Status) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Status::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.Status) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.ErrorCode error_code = 1; + if (this->error_code() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( + 1, this->error_code(), output); + } + + // string reason = 2; + if (this->reason().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->reason().data(), static_cast(this->reason().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.grpc.Status.reason"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->reason(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.grpc.Status) +} + +::PROTOBUF_NAMESPACE_ID::uint8* Status::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Status) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.ErrorCode error_code = 1; + if (this->error_code() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 1, this->error_code(), target); + } + + // string reason = 2; + if (this->reason().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->reason().data(), static_cast(this->reason().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.grpc.Status.reason"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->reason(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Status) + return target; +} + +size_t Status::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.Status) + 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 reason = 2; + if (this->reason().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->reason()); + } + + // .milvus.grpc.ErrorCode error_code = 1; + if (this->error_code() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->error_code()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Status::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.Status) + GOOGLE_DCHECK_NE(&from, this); + const Status* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.Status) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Status) + MergeFrom(*source); + } +} + +void Status::MergeFrom(const Status& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.Status) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.reason().size() > 0) { + + reason_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.reason_); + } + if (from.error_code() != 0) { + set_error_code(from.error_code()); + } +} + +void Status::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Status) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Status::CopyFrom(const Status& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.Status) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Status::IsInitialized() const { + return true; +} + +void Status::InternalSwap(Status* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + reason_.Swap(&other->reason_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(error_code_, other->error_code_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { + return GetMetadataStatic(); +} + + // =================================================================== void KeyValuePair::InitAsDefaultInstance() { @@ -2349,12 +2743,6 @@ const ::milvus::grpc::Status& CollectionNameList::_Internal::status(const CollectionNameList* msg) { return *msg->status_; } -void CollectionNameList::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} CollectionNameList::CollectionNameList() : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); @@ -3020,12 +3408,6 @@ const ::milvus::grpc::Schema& Mapping::_Internal::schema(const Mapping* msg) { return *msg->schema_; } -void Mapping::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} Mapping::Mapping() : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); @@ -3464,12 +3846,6 @@ const ::milvus::grpc::Status& MappingList::_Internal::status(const MappingList* msg) { return *msg->status_; } -void MappingList::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} MappingList::MappingList() : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); @@ -4123,12 +4499,6 @@ const ::milvus::grpc::Status& PartitionList::_Internal::status(const PartitionList* msg) { return *msg->status_; } -void PartitionList::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} PartitionList::PartitionList() : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); @@ -4779,12 +5149,6 @@ const ::milvus::grpc::Status& EntityIds::_Internal::status(const EntityIds* msg) { return *msg->status_; } -void EntityIds::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} EntityIds::EntityIds() : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); @@ -7990,12 +8354,6 @@ const ::milvus::grpc::Status& Entities::_Internal::status(const Entities* msg) { return *msg->status_; } -void Entities::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} Entities::Entities() : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); @@ -8460,12 +8818,6 @@ const ::milvus::grpc::Entities& QueryResult::_Internal::entities(const QueryResult* msg) { return *msg->entities_; } -void QueryResult::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} QueryResult::QueryResult() : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); @@ -9018,12 +9370,6 @@ const ::milvus::grpc::Status& StringReply::_Internal::status(const StringReply* msg) { return *msg->status_; } -void StringReply::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} StringReply::StringReply() : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); @@ -9353,12 +9699,6 @@ const ::milvus::grpc::Status& BoolReply::_Internal::status(const BoolReply* msg) { return *msg->status_; } -void BoolReply::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} BoolReply::BoolReply() : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); @@ -9668,12 +10008,6 @@ const ::milvus::grpc::Status& CollectionRowCount::_Internal::status(const CollectionRowCount* msg) { return *msg->status_; } -void CollectionRowCount::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} CollectionRowCount::CollectionRowCount() : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); @@ -10254,12 +10588,6 @@ const ::milvus::grpc::Status& IndexParam::_Internal::status(const IndexParam* msg) { return *msg->status_; } -void IndexParam::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} IndexParam::IndexParam() : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); @@ -11685,12 +12013,6 @@ const ::milvus::grpc::Status& CollectionInfo::_Internal::status(const CollectionInfo* msg) { return *msg->status_; } -void CollectionInfo::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} CollectionInfo::CollectionInfo() : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); @@ -19348,6 +19670,9 @@ void Key2SegMsg::InternalSwap(Key2SegMsg* other) { } // namespace grpc } // namespace milvus PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::milvus::grpc::Status* Arena::CreateMaybeMessage< ::milvus::grpc::Status >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::Status >(arena); +} template<> PROTOBUF_NOINLINE ::milvus::grpc::KeyValuePair* Arena::CreateMaybeMessage< ::milvus::grpc::KeyValuePair >(Arena* arena) { return Arena::CreateInternal< ::milvus::grpc::KeyValuePair >(arena); } diff --git a/proxy/src/grpc/gen-milvus/suvlim.pb.h b/proxy/src/grpc/gen-milvus/suvlim.pb.h index 2054127225..7b2dcd26a3 100644 --- a/proxy/src/grpc/gen-milvus/suvlim.pb.h +++ b/proxy/src/grpc/gen-milvus/suvlim.pb.h @@ -33,7 +33,6 @@ #include // IWYU pragma: export #include #include -#include "status.pb.h" // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto @@ -49,7 +48,7 @@ struct TableStruct_suvlim_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[47] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[48] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; @@ -172,6 +171,9 @@ extern SearchParamPBDefaultTypeInternal _SearchParamPB_default_instance_; class SegmentRecord; class SegmentRecordDefaultTypeInternal; extern SegmentRecordDefaultTypeInternal _SegmentRecord_default_instance_; +class Status; +class StatusDefaultTypeInternal; +extern StatusDefaultTypeInternal _Status_default_instance_; class StringReply; class StringReplyDefaultTypeInternal; extern StringReplyDefaultTypeInternal _StringReply_default_instance_; @@ -240,6 +242,7 @@ template<> ::milvus::grpc::SearchMsg* Arena::CreateMaybeMessage<::milvus::grpc:: template<> ::milvus::grpc::SearchParam* Arena::CreateMaybeMessage<::milvus::grpc::SearchParam>(Arena*); template<> ::milvus::grpc::SearchParamPB* Arena::CreateMaybeMessage<::milvus::grpc::SearchParamPB>(Arena*); template<> ::milvus::grpc::SegmentRecord* Arena::CreateMaybeMessage<::milvus::grpc::SegmentRecord>(Arena*); +template<> ::milvus::grpc::Status* Arena::CreateMaybeMessage<::milvus::grpc::Status>(Arena*); template<> ::milvus::grpc::StringReply* Arena::CreateMaybeMessage<::milvus::grpc::StringReply>(Arena*); template<> ::milvus::grpc::TermQuery* Arena::CreateMaybeMessage<::milvus::grpc::TermQuery>(Arena*); template<> ::milvus::grpc::TimeSyncMsg* Arena::CreateMaybeMessage<::milvus::grpc::TimeSyncMsg>(Arena*); @@ -253,6 +256,53 @@ PROTOBUF_NAMESPACE_CLOSE namespace milvus { namespace grpc { +enum ErrorCode : int { + SUCCESS = 0, + UNEXPECTED_ERROR = 1, + CONNECT_FAILED = 2, + PERMISSION_DENIED = 3, + COLLECTION_NOT_EXISTS = 4, + ILLEGAL_ARGUMENT = 5, + ILLEGAL_DIMENSION = 7, + ILLEGAL_INDEX_TYPE = 8, + ILLEGAL_COLLECTION_NAME = 9, + ILLEGAL_TOPK = 10, + ILLEGAL_ROWRECORD = 11, + ILLEGAL_VECTOR_ID = 12, + ILLEGAL_SEARCH_RESULT = 13, + FILE_NOT_FOUND = 14, + META_FAILED = 15, + CACHE_FAILED = 16, + CANNOT_CREATE_FOLDER = 17, + CANNOT_CREATE_FILE = 18, + CANNOT_DELETE_FOLDER = 19, + CANNOT_DELETE_FILE = 20, + BUILD_INDEX_ERROR = 21, + ILLEGAL_NLIST = 22, + ILLEGAL_METRIC_TYPE = 23, + OUT_OF_MEMORY = 24, + ErrorCode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), + ErrorCode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() +}; +bool ErrorCode_IsValid(int value); +constexpr ErrorCode ErrorCode_MIN = SUCCESS; +constexpr ErrorCode ErrorCode_MAX = OUT_OF_MEMORY; +constexpr int ErrorCode_ARRAYSIZE = ErrorCode_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ErrorCode_descriptor(); +template +inline const std::string& ErrorCode_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ErrorCode_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + ErrorCode_descriptor(), enum_t_value); +} +inline bool ErrorCode_Parse( + const std::string& name, ErrorCode* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + ErrorCode_descriptor(), name, value); +} enum DataType : int { NONE = 0, BOOL = 1, @@ -395,6 +445,150 @@ inline bool SyncType_Parse( } // =================================================================== +class Status : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Status) */ { + public: + Status(); + virtual ~Status(); + + Status(const Status& from); + Status(Status&& from) noexcept + : Status() { + *this = ::std::move(from); + } + + inline Status& operator=(const Status& from) { + CopyFrom(from); + return *this; + } + inline Status& operator=(Status&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const Status& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Status* internal_default_instance() { + return reinterpret_cast( + &_Status_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(Status& a, Status& b) { + a.Swap(&b); + } + inline void Swap(Status* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Status* New() const final { + return CreateMaybeMessage(nullptr); + } + + Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const Status& from); + void MergeFrom(const Status& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Status* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.Status"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); + return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kReasonFieldNumber = 2, + kErrorCodeFieldNumber = 1, + }; + // string reason = 2; + void clear_reason(); + const std::string& reason() const; + void set_reason(const std::string& value); + void set_reason(std::string&& value); + void set_reason(const char* value); + void set_reason(const char* value, size_t size); + std::string* mutable_reason(); + std::string* release_reason(); + void set_allocated_reason(std::string* reason); + + // .milvus.grpc.ErrorCode error_code = 1; + void clear_error_code(); + ::milvus::grpc::ErrorCode error_code() const; + void set_error_code(::milvus::grpc::ErrorCode value); + + // @@protoc_insertion_point(class_scope:milvus.grpc.Status) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reason_; + int error_code_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_suvlim_2eproto; +}; +// ------------------------------------------------------------------- + class KeyValuePair : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.KeyValuePair) */ { public: @@ -437,7 +631,7 @@ class KeyValuePair : &_KeyValuePair_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 1; friend void swap(KeyValuePair& a, KeyValuePair& b) { a.Swap(&b); @@ -587,7 +781,7 @@ class CollectionName : &_CollectionName_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 2; friend void swap(CollectionName& a, CollectionName& b) { a.Swap(&b); @@ -724,7 +918,7 @@ class CollectionNameList : &_CollectionNameList_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 3; friend void swap(CollectionNameList& a, CollectionNameList& b) { a.Swap(&b); @@ -877,7 +1071,7 @@ class FieldName : &_FieldName_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 4; friend void swap(FieldName& a, FieldName& b) { a.Swap(&b); @@ -1027,7 +1221,7 @@ class Mapping : &_Mapping_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 5; friend void swap(Mapping& a, Mapping& b) { a.Swap(&b); @@ -1197,7 +1391,7 @@ class MappingList : &_MappingList_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 6; friend void swap(MappingList& a, MappingList& b) { a.Swap(&b); @@ -1344,7 +1538,7 @@ class PartitionParam : &_PartitionParam_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 7; friend void swap(PartitionParam& a, PartitionParam& b) { a.Swap(&b); @@ -1494,7 +1688,7 @@ class PartitionList : &_PartitionList_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 8; friend void swap(PartitionList& a, PartitionList& b) { a.Swap(&b); @@ -1647,7 +1841,7 @@ class VectorRowRecord : &_VectorRowRecord_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 9; friend void swap(VectorRowRecord& a, VectorRowRecord& b) { a.Swap(&b); @@ -1798,7 +1992,7 @@ class EntityIds : &_EntityIds_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 10; friend void swap(EntityIds& a, EntityIds& b) { a.Swap(&b); @@ -1946,7 +2140,7 @@ class VectorRecord : &_VectorRecord_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 11; friend void swap(VectorRecord& a, VectorRecord& b) { a.Swap(&b); @@ -2083,7 +2277,7 @@ class VectorParam : &_VectorParam_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 12; friend void swap(VectorParam& a, VectorParam& b) { a.Swap(&b); @@ -2230,7 +2424,7 @@ class FieldMeta : &_FieldMeta_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 13; friend void swap(FieldMeta& a, FieldMeta& b) { a.Swap(&b); @@ -2381,7 +2575,7 @@ class Schema : &_Schema_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 14; friend void swap(Schema& a, Schema& b) { a.Swap(&b); @@ -2518,7 +2712,7 @@ class RowData : &_RowData_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 15; friend void swap(RowData& a, RowData& b) { a.Swap(&b); @@ -2655,7 +2849,7 @@ class InsertParam : &_InsertParam_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 16; friend void swap(InsertParam& a, InsertParam& b) { a.Swap(&b); @@ -2855,7 +3049,7 @@ class SearchParam : &_SearchParam_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 17; friend void swap(SearchParam& a, SearchParam& b) { a.Swap(&b); @@ -3050,7 +3244,7 @@ class SearchInSegmentParam : &_SearchInSegmentParam_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 18; friend void swap(SearchInSegmentParam& a, SearchInSegmentParam& b) { a.Swap(&b); @@ -3203,7 +3397,7 @@ class Entities : &_Entities_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 19; friend void swap(Entities& a, Entities& b) { a.Swap(&b); @@ -3378,7 +3572,7 @@ class QueryResult : &_QueryResult_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 20; friend void swap(QueryResult& a, QueryResult& b) { a.Swap(&b); @@ -3570,7 +3764,7 @@ class StringReply : &_StringReply_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 21; friend void swap(StringReply& a, StringReply& b) { a.Swap(&b); @@ -3717,7 +3911,7 @@ class BoolReply : &_BoolReply_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 22; friend void swap(BoolReply& a, BoolReply& b) { a.Swap(&b); @@ -3858,7 +4052,7 @@ class CollectionRowCount : &_CollectionRowCount_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 23; friend void swap(CollectionRowCount& a, CollectionRowCount& b) { a.Swap(&b); @@ -3999,7 +4193,7 @@ class Command : &_Command_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 24; friend void swap(Command& a, Command& b) { a.Swap(&b); @@ -4136,7 +4330,7 @@ class IndexParam : &_IndexParam_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 25; friend void swap(IndexParam& a, IndexParam& b) { a.Swap(&b); @@ -4322,7 +4516,7 @@ class FlushParam : &_FlushParam_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 26; friend void swap(FlushParam& a, FlushParam& b) { a.Swap(&b); @@ -4465,7 +4659,7 @@ class CompactParam : &_CompactParam_default_instance_); } static constexpr int kIndexInFileMessages = - 26; + 27; friend void swap(CompactParam& a, CompactParam& b) { a.Swap(&b); @@ -4609,7 +4803,7 @@ class DeleteByIDParam : &_DeleteByIDParam_default_instance_); } static constexpr int kIndexInFileMessages = - 27; + 28; friend void swap(DeleteByIDParam& a, DeleteByIDParam& b) { a.Swap(&b); @@ -4760,7 +4954,7 @@ class CollectionInfo : &_CollectionInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 28; + 29; friend void swap(CollectionInfo& a, CollectionInfo& b) { a.Swap(&b); @@ -4907,7 +5101,7 @@ class GetEntityIDsParam : &_GetEntityIDsParam_default_instance_); } static constexpr int kIndexInFileMessages = - 29; + 30; friend void swap(GetEntityIDsParam& a, GetEntityIDsParam& b) { a.Swap(&b); @@ -5051,7 +5245,7 @@ class EntityIdentity : &_EntityIdentity_default_instance_); } static constexpr int kIndexInFileMessages = - 30; + 31; friend void swap(EntityIdentity& a, EntityIdentity& b) { a.Swap(&b); @@ -5221,7 +5415,7 @@ class VectorFieldParam : &_VectorFieldParam_default_instance_); } static constexpr int kIndexInFileMessages = - 31; + 32; friend void swap(VectorFieldParam& a, VectorFieldParam& b) { a.Swap(&b); @@ -5358,7 +5552,7 @@ class FieldType : &_FieldType_default_instance_); } static constexpr int kIndexInFileMessages = - 32; + 33; friend void swap(FieldType& a, FieldType& b) { a.Swap(&b); @@ -5514,7 +5708,7 @@ class FieldParam : &_FieldParam_default_instance_); } static constexpr int kIndexInFileMessages = - 33; + 34; friend void swap(FieldParam& a, FieldParam& b) { a.Swap(&b); @@ -5691,7 +5885,7 @@ class VectorFieldRecord : &_VectorFieldRecord_default_instance_); } static constexpr int kIndexInFileMessages = - 34; + 35; friend void swap(VectorFieldRecord& a, VectorFieldRecord& b) { a.Swap(&b); @@ -5828,7 +6022,7 @@ class TermQuery : &_TermQuery_default_instance_); } static constexpr int kIndexInFileMessages = - 35; + 36; friend void swap(TermQuery& a, TermQuery& b) { a.Swap(&b); @@ -6020,7 +6214,7 @@ class CompareExpr : &_CompareExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 36; + 37; friend void swap(CompareExpr& a, CompareExpr& b) { a.Swap(&b); @@ -6164,7 +6358,7 @@ class RangeQuery : &_RangeQuery_default_instance_); } static constexpr int kIndexInFileMessages = - 37; + 38; friend void swap(RangeQuery& a, RangeQuery& b) { a.Swap(&b); @@ -6334,7 +6528,7 @@ class VectorQuery : &_VectorQuery_default_instance_); } static constexpr int kIndexInFileMessages = - 38; + 39; friend void swap(VectorQuery& a, VectorQuery& b) { a.Swap(&b); @@ -6511,7 +6705,7 @@ class BooleanQuery : &_BooleanQuery_default_instance_); } static constexpr int kIndexInFileMessages = - 39; + 40; friend void swap(BooleanQuery& a, BooleanQuery& b) { a.Swap(&b); @@ -6663,7 +6857,7 @@ class GeneralQuery : &_GeneralQuery_default_instance_); } static constexpr int kIndexInFileMessages = - 40; + 41; friend void swap(GeneralQuery& a, GeneralQuery& b) { a.Swap(&b); @@ -6841,7 +7035,7 @@ class SearchParamPB : &_SearchParamPB_default_instance_); } static constexpr int kIndexInFileMessages = - 41; + 42; friend void swap(SearchParamPB& a, SearchParamPB& b) { a.Swap(&b); @@ -7020,7 +7214,7 @@ class InsertOrDeleteMsg : &_InsertOrDeleteMsg_default_instance_); } static constexpr int kIndexInFileMessages = - 42; + 43; friend void swap(InsertOrDeleteMsg& a, InsertOrDeleteMsg& b) { a.Swap(&b); @@ -7235,7 +7429,7 @@ class SearchMsg : &_SearchMsg_default_instance_); } static constexpr int kIndexInFileMessages = - 43; + 44; friend void swap(SearchMsg& a, SearchMsg& b) { a.Swap(&b); @@ -7429,7 +7623,7 @@ class TimeSyncMsg : &_TimeSyncMsg_default_instance_); } static constexpr int kIndexInFileMessages = - 44; + 45; friend void swap(TimeSyncMsg& a, TimeSyncMsg& b) { a.Swap(&b); @@ -7574,7 +7768,7 @@ class SegmentRecord : &_SegmentRecord_default_instance_); } static constexpr int kIndexInFileMessages = - 45; + 46; friend void swap(SegmentRecord& a, SegmentRecord& b) { a.Swap(&b); @@ -7719,7 +7913,7 @@ class Key2SegMsg : &_Key2SegMsg_default_instance_); } static constexpr int kIndexInFileMessages = - 46; + 47; friend void swap(Key2SegMsg& a, Key2SegMsg& b) { a.Swap(&b); @@ -7825,6 +8019,75 @@ class Key2SegMsg : #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// Status + +// .milvus.grpc.ErrorCode error_code = 1; +inline void Status::clear_error_code() { + error_code_ = 0; +} +inline ::milvus::grpc::ErrorCode Status::error_code() const { + // @@protoc_insertion_point(field_get:milvus.grpc.Status.error_code) + return static_cast< ::milvus::grpc::ErrorCode >(error_code_); +} +inline void Status::set_error_code(::milvus::grpc::ErrorCode value) { + + error_code_ = value; + // @@protoc_insertion_point(field_set:milvus.grpc.Status.error_code) +} + +// string reason = 2; +inline void Status::clear_reason() { + reason_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& Status::reason() const { + // @@protoc_insertion_point(field_get:milvus.grpc.Status.reason) + return reason_.GetNoArena(); +} +inline void Status::set_reason(const std::string& value) { + + reason_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.grpc.Status.reason) +} +inline void Status::set_reason(std::string&& value) { + + reason_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.Status.reason) +} +inline void Status::set_reason(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + reason_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.grpc.Status.reason) +} +inline void Status::set_reason(const char* value, size_t size) { + + reason_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.grpc.Status.reason) +} +inline std::string* Status::mutable_reason() { + + // @@protoc_insertion_point(field_mutable:milvus.grpc.Status.reason) + return reason_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* Status::release_reason() { + // @@protoc_insertion_point(field_release:milvus.grpc.Status.reason) + + return reason_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void Status::set_allocated_reason(std::string* reason) { + if (reason != nullptr) { + + } else { + + } + reason_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), reason); + // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Status.reason) +} + +// ------------------------------------------------------------------- + // KeyValuePair // string key = 1; @@ -7992,6 +8255,12 @@ inline void CollectionName::set_allocated_collection_name(std::string* collectio inline bool CollectionNameList::has_status() const { return this != internal_default_instance() && status_ != nullptr; } +inline void CollectionNameList::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} inline const ::milvus::grpc::Status& CollectionNameList::status() const { const ::milvus::grpc::Status* p = status_; // @@protoc_insertion_point(field_get:milvus.grpc.CollectionNameList.status) @@ -8017,7 +8286,7 @@ inline ::milvus::grpc::Status* CollectionNameList::mutable_status() { inline void CollectionNameList::set_allocated_status(::milvus::grpc::Status* status) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + delete status_; } if (status) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; @@ -8212,6 +8481,12 @@ inline void FieldName::set_allocated_field_name(std::string* field_name) { inline bool Mapping::has_status() const { return this != internal_default_instance() && status_ != nullptr; } +inline void Mapping::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} inline const ::milvus::grpc::Status& Mapping::status() const { const ::milvus::grpc::Status* p = status_; // @@protoc_insertion_point(field_get:milvus.grpc.Mapping.status) @@ -8237,7 +8512,7 @@ inline ::milvus::grpc::Status* Mapping::mutable_status() { inline void Mapping::set_allocated_status(::milvus::grpc::Status* status) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + delete status_; } if (status) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; @@ -8393,6 +8668,12 @@ Mapping::extra_params() const { inline bool MappingList::has_status() const { return this != internal_default_instance() && status_ != nullptr; } +inline void MappingList::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} inline const ::milvus::grpc::Status& MappingList::status() const { const ::milvus::grpc::Status* p = status_; // @@protoc_insertion_point(field_get:milvus.grpc.MappingList.status) @@ -8418,7 +8699,7 @@ inline ::milvus::grpc::Status* MappingList::mutable_status() { inline void MappingList::set_allocated_status(::milvus::grpc::Status* status) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + delete status_; } if (status) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; @@ -8578,6 +8859,12 @@ inline void PartitionParam::set_allocated_tag(std::string* tag) { inline bool PartitionList::has_status() const { return this != internal_default_instance() && status_ != nullptr; } +inline void PartitionList::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} inline const ::milvus::grpc::Status& PartitionList::status() const { const ::milvus::grpc::Status* p = status_; // @@protoc_insertion_point(field_get:milvus.grpc.PartitionList.status) @@ -8603,7 +8890,7 @@ inline ::milvus::grpc::Status* PartitionList::mutable_status() { inline void PartitionList::set_allocated_status(::milvus::grpc::Status* status) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + delete status_; } if (status) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; @@ -8777,6 +9064,12 @@ inline void VectorRowRecord::set_allocated_binary_data(std::string* binary_data) inline bool EntityIds::has_status() const { return this != internal_default_instance() && status_ != nullptr; } +inline void EntityIds::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} inline const ::milvus::grpc::Status& EntityIds::status() const { const ::milvus::grpc::Status* p = status_; // @@protoc_insertion_point(field_get:milvus.grpc.EntityIds.status) @@ -8802,7 +9095,7 @@ inline ::milvus::grpc::Status* EntityIds::mutable_status() { inline void EntityIds::set_allocated_status(::milvus::grpc::Status* status) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + delete status_; } if (status) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; @@ -9766,6 +10059,12 @@ inline void SearchInSegmentParam::set_allocated_search_param(::milvus::grpc::Sea inline bool Entities::has_status() const { return this != internal_default_instance() && status_ != nullptr; } +inline void Entities::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} inline const ::milvus::grpc::Status& Entities::status() const { const ::milvus::grpc::Status* p = status_; // @@protoc_insertion_point(field_get:milvus.grpc.Entities.status) @@ -9791,7 +10090,7 @@ inline ::milvus::grpc::Status* Entities::mutable_status() { inline void Entities::set_allocated_status(::milvus::grpc::Status* status) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + delete status_; } if (status) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; @@ -9905,6 +10204,12 @@ Entities::rows_data() const { inline bool QueryResult::has_status() const { return this != internal_default_instance() && status_ != nullptr; } +inline void QueryResult::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} inline const ::milvus::grpc::Status& QueryResult::status() const { const ::milvus::grpc::Status* p = status_; // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.status) @@ -9930,7 +10235,7 @@ inline ::milvus::grpc::Status* QueryResult::mutable_status() { inline void QueryResult::set_allocated_status(::milvus::grpc::Status* status) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + delete status_; } if (status) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; @@ -10109,6 +10414,12 @@ QueryResult::extra_params() const { inline bool StringReply::has_status() const { return this != internal_default_instance() && status_ != nullptr; } +inline void StringReply::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} inline const ::milvus::grpc::Status& StringReply::status() const { const ::milvus::grpc::Status* p = status_; // @@protoc_insertion_point(field_get:milvus.grpc.StringReply.status) @@ -10134,7 +10445,7 @@ inline ::milvus::grpc::Status* StringReply::mutable_status() { inline void StringReply::set_allocated_status(::milvus::grpc::Status* status) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + delete status_; } if (status) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; @@ -10209,6 +10520,12 @@ inline void StringReply::set_allocated_string_reply(std::string* string_reply) { inline bool BoolReply::has_status() const { return this != internal_default_instance() && status_ != nullptr; } +inline void BoolReply::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} inline const ::milvus::grpc::Status& BoolReply::status() const { const ::milvus::grpc::Status* p = status_; // @@protoc_insertion_point(field_get:milvus.grpc.BoolReply.status) @@ -10234,7 +10551,7 @@ inline ::milvus::grpc::Status* BoolReply::mutable_status() { inline void BoolReply::set_allocated_status(::milvus::grpc::Status* status) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + delete status_; } if (status) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; @@ -10272,6 +10589,12 @@ inline void BoolReply::set_bool_reply(bool value) { inline bool CollectionRowCount::has_status() const { return this != internal_default_instance() && status_ != nullptr; } +inline void CollectionRowCount::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} inline const ::milvus::grpc::Status& CollectionRowCount::status() const { const ::milvus::grpc::Status* p = status_; // @@protoc_insertion_point(field_get:milvus.grpc.CollectionRowCount.status) @@ -10297,7 +10620,7 @@ inline ::milvus::grpc::Status* CollectionRowCount::mutable_status() { inline void CollectionRowCount::set_allocated_status(::milvus::grpc::Status* status) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + delete status_; } if (status) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; @@ -10390,6 +10713,12 @@ inline void Command::set_allocated_cmd(std::string* cmd) { inline bool IndexParam::has_status() const { return this != internal_default_instance() && status_ != nullptr; } +inline void IndexParam::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} inline const ::milvus::grpc::Status& IndexParam::status() const { const ::milvus::grpc::Status* p = status_; // @@protoc_insertion_point(field_get:milvus.grpc.IndexParam.status) @@ -10415,7 +10744,7 @@ inline ::milvus::grpc::Status* IndexParam::mutable_status() { inline void IndexParam::set_allocated_status(::milvus::grpc::Status* status) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + delete status_; } if (status) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; @@ -10845,6 +11174,12 @@ DeleteByIDParam::mutable_id_array() { inline bool CollectionInfo::has_status() const { return this != internal_default_instance() && status_ != nullptr; } +inline void CollectionInfo::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} inline const ::milvus::grpc::Status& CollectionInfo::status() const { const ::milvus::grpc::Status* p = status_; // @@protoc_insertion_point(field_get:milvus.grpc.CollectionInfo.status) @@ -10870,7 +11205,7 @@ inline ::milvus::grpc::Status* CollectionInfo::mutable_status() { inline void CollectionInfo::set_allocated_status(::milvus::grpc::Status* status) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + delete status_; } if (status) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; @@ -13132,6 +13467,8 @@ inline void Key2SegMsg::set_allocated_records(::milvus::grpc::SegmentRecord* rec // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) @@ -13140,6 +13477,11 @@ inline void Key2SegMsg::set_allocated_records(::milvus::grpc::SegmentRecord* rec PROTOBUF_NAMESPACE_OPEN +template <> struct is_proto_enum< ::milvus::grpc::ErrorCode> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::milvus::grpc::ErrorCode>() { + return ::milvus::grpc::ErrorCode_descriptor(); +} template <> struct is_proto_enum< ::milvus::grpc::DataType> : ::std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::milvus::grpc::DataType>() { diff --git a/proxy/src/grpc/gen-status/status.grpc.pb.cc b/proxy/src/grpc/gen-status/status.grpc.pb.cc deleted file mode 100644 index de871f5413..0000000000 --- a/proxy/src/grpc/gen-status/status.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: status.proto - -#include "status.pb.h" -#include "status.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace milvus { -namespace grpc { - -} // namespace milvus -} // namespace grpc - diff --git a/proxy/src/grpc/gen-status/status.grpc.pb.h b/proxy/src/grpc/gen-status/status.grpc.pb.h deleted file mode 100644 index 2dcedb74de..0000000000 --- a/proxy/src/grpc/gen-status/status.grpc.pb.h +++ /dev/null @@ -1,46 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: status.proto -#ifndef GRPC_status_2eproto__INCLUDED -#define GRPC_status_2eproto__INCLUDED - -#include "status.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class CompletionQueue; -class ServerCompletionQueue; -class ServerContext; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc - -namespace milvus { -namespace grpc { - -} // namespace grpc -} // namespace milvus - - -#endif // GRPC_status_2eproto__INCLUDED diff --git a/proxy/src/grpc/gen-status/status.pb.cc b/proxy/src/grpc/gen-status/status.pb.cc deleted file mode 100644 index 32aedec9d2..0000000000 --- a/proxy/src/grpc/gen-status/status.pb.cc +++ /dev/null @@ -1,461 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: status.proto - -#include "status.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include -namespace milvus { -namespace grpc { -class StatusDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Status_default_instance_; -} // namespace grpc -} // namespace milvus -static void InitDefaultsscc_info_Status_status_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_Status_default_instance_; - new (ptr) ::milvus::grpc::Status(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::Status::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Status_status_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_Status_status_2eproto}, {}}; - -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_status_2eproto[1]; -static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_status_2eproto[1]; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_status_2eproto = nullptr; - -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_status_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Status, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Status, error_code_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Status, reason_), -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::milvus::grpc::Status)}, -}; - -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::milvus::grpc::_Status_default_instance_), -}; - -const char descriptor_table_protodef_status_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\014status.proto\022\013milvus.grpc\"D\n\006Status\022*\n" - "\nerror_code\030\001 \001(\0162\026.milvus.grpc.ErrorCod" - "e\022\016\n\006reason\030\002 \001(\t*\242\004\n\tErrorCode\022\013\n\007SUCCE" - "SS\020\000\022\024\n\020UNEXPECTED_ERROR\020\001\022\022\n\016CONNECT_FA" - "ILED\020\002\022\025\n\021PERMISSION_DENIED\020\003\022\031\n\025COLLECT" - "ION_NOT_EXISTS\020\004\022\024\n\020ILLEGAL_ARGUMENT\020\005\022\025" - "\n\021ILLEGAL_DIMENSION\020\007\022\026\n\022ILLEGAL_INDEX_T" - "YPE\020\010\022\033\n\027ILLEGAL_COLLECTION_NAME\020\t\022\020\n\014IL" - "LEGAL_TOPK\020\n\022\025\n\021ILLEGAL_ROWRECORD\020\013\022\025\n\021I" - "LLEGAL_VECTOR_ID\020\014\022\031\n\025ILLEGAL_SEARCH_RES" - "ULT\020\r\022\022\n\016FILE_NOT_FOUND\020\016\022\017\n\013META_FAILED" - "\020\017\022\020\n\014CACHE_FAILED\020\020\022\030\n\024CANNOT_CREATE_FO" - "LDER\020\021\022\026\n\022CANNOT_CREATE_FILE\020\022\022\030\n\024CANNOT" - "_DELETE_FOLDER\020\023\022\026\n\022CANNOT_DELETE_FILE\020\024" - "\022\025\n\021BUILD_INDEX_ERROR\020\025\022\021\n\rILLEGAL_NLIST" - "\020\026\022\027\n\023ILLEGAL_METRIC_TYPE\020\027\022\021\n\rOUT_OF_ME" - "MORY\020\030b\006proto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_status_2eproto_deps[1] = { -}; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_status_2eproto_sccs[1] = { - &scc_info_Status_status_2eproto.base, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_status_2eproto_once; -static bool descriptor_table_status_2eproto_initialized = false; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_status_2eproto = { - &descriptor_table_status_2eproto_initialized, descriptor_table_protodef_status_2eproto, "status.proto", 654, - &descriptor_table_status_2eproto_once, descriptor_table_status_2eproto_sccs, descriptor_table_status_2eproto_deps, 1, 0, - schemas, file_default_instances, TableStruct_status_2eproto::offsets, - file_level_metadata_status_2eproto, 1, file_level_enum_descriptors_status_2eproto, file_level_service_descriptors_status_2eproto, -}; - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_status_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_status_2eproto), true); -namespace milvus { -namespace grpc { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ErrorCode_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_status_2eproto); - return file_level_enum_descriptors_status_2eproto[0]; -} -bool ErrorCode_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 23: - case 24: - return true; - default: - return false; - } -} - - -// =================================================================== - -void Status::InitAsDefaultInstance() { -} -class Status::_Internal { - public: -}; - -Status::Status() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.Status) -} -Status::Status(const Status& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - reason_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.reason().empty()) { - reason_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.reason_); - } - error_code_ = from.error_code_; - // @@protoc_insertion_point(copy_constructor:milvus.grpc.Status) -} - -void Status::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Status_status_2eproto.base); - reason_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - error_code_ = 0; -} - -Status::~Status() { - // @@protoc_insertion_point(destructor:milvus.grpc.Status) - SharedDtor(); -} - -void Status::SharedDtor() { - reason_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void Status::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Status& Status::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Status_status_2eproto.base); - return *internal_default_instance(); -} - - -void Status::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.Status) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - reason_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - error_code_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Status::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.ErrorCode error_code = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - set_error_code(static_cast<::milvus::grpc::ErrorCode>(val)); - } else goto handle_unusual; - continue; - // string reason = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_reason(), ptr, ctx, "milvus.grpc.Status.reason"); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Status::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.Status) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.grpc.ErrorCode error_code = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_error_code(static_cast< ::milvus::grpc::ErrorCode >(value)); - } else { - goto handle_unusual; - } - break; - } - - // string reason = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_reason())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), static_cast(this->reason().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.Status.reason")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.Status) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.Status) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Status::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.Status) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.ErrorCode error_code = 1; - if (this->error_code() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( - 1, this->error_code(), output); - } - - // string reason = 2; - if (this->reason().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), static_cast(this->reason().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.Status.reason"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->reason(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.Status) -} - -::PROTOBUF_NAMESPACE_ID::uint8* Status::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Status) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.ErrorCode error_code = 1; - if (this->error_code() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->error_code(), target); - } - - // string reason = 2; - if (this->reason().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), static_cast(this->reason().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.Status.reason"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 2, this->reason(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Status) - return target; -} - -size_t Status::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.Status) - 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 reason = 2; - if (this->reason().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->reason()); - } - - // .milvus.grpc.ErrorCode error_code = 1; - if (this->error_code() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->error_code()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Status::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.Status) - GOOGLE_DCHECK_NE(&from, this); - const Status* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.Status) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Status) - MergeFrom(*source); - } -} - -void Status::MergeFrom(const Status& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.Status) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.reason().size() > 0) { - - reason_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.reason_); - } - if (from.error_code() != 0) { - set_error_code(from.error_code()); - } -} - -void Status::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Status) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Status::CopyFrom(const Status& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.Status) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Status::IsInitialized() const { - return true; -} - -void Status::InternalSwap(Status* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - reason_.Swap(&other->reason_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(error_code_, other->error_code_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { - return GetMetadataStatic(); -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace grpc -} // namespace milvus -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::milvus::grpc::Status* Arena::CreateMaybeMessage< ::milvus::grpc::Status >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::Status >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) -#include diff --git a/proxy/src/grpc/gen-status/status.pb.h b/proxy/src/grpc/gen-status/status.pb.h deleted file mode 100644 index 94be8740cc..0000000000 --- a/proxy/src/grpc/gen-status/status.pb.h +++ /dev/null @@ -1,360 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: status.proto - -#ifndef GOOGLE_PROTOBUF_INCLUDED_status_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_status_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3009000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3009000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_status_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_status_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[1] - 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_status_2eproto; -namespace milvus { -namespace grpc { -class Status; -class StatusDefaultTypeInternal; -extern StatusDefaultTypeInternal _Status_default_instance_; -} // namespace grpc -} // namespace milvus -PROTOBUF_NAMESPACE_OPEN -template<> ::milvus::grpc::Status* Arena::CreateMaybeMessage<::milvus::grpc::Status>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace milvus { -namespace grpc { - -enum ErrorCode : int { - SUCCESS = 0, - UNEXPECTED_ERROR = 1, - CONNECT_FAILED = 2, - PERMISSION_DENIED = 3, - COLLECTION_NOT_EXISTS = 4, - ILLEGAL_ARGUMENT = 5, - ILLEGAL_DIMENSION = 7, - ILLEGAL_INDEX_TYPE = 8, - ILLEGAL_COLLECTION_NAME = 9, - ILLEGAL_TOPK = 10, - ILLEGAL_ROWRECORD = 11, - ILLEGAL_VECTOR_ID = 12, - ILLEGAL_SEARCH_RESULT = 13, - FILE_NOT_FOUND = 14, - META_FAILED = 15, - CACHE_FAILED = 16, - CANNOT_CREATE_FOLDER = 17, - CANNOT_CREATE_FILE = 18, - CANNOT_DELETE_FOLDER = 19, - CANNOT_DELETE_FILE = 20, - BUILD_INDEX_ERROR = 21, - ILLEGAL_NLIST = 22, - ILLEGAL_METRIC_TYPE = 23, - OUT_OF_MEMORY = 24, - ErrorCode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - ErrorCode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() -}; -bool ErrorCode_IsValid(int value); -constexpr ErrorCode ErrorCode_MIN = SUCCESS; -constexpr ErrorCode ErrorCode_MAX = OUT_OF_MEMORY; -constexpr int ErrorCode_ARRAYSIZE = ErrorCode_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ErrorCode_descriptor(); -template -inline const std::string& ErrorCode_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ErrorCode_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - ErrorCode_descriptor(), enum_t_value); -} -inline bool ErrorCode_Parse( - const std::string& name, ErrorCode* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - ErrorCode_descriptor(), name, value); -} -// =================================================================== - -class Status : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Status) */ { - public: - Status(); - virtual ~Status(); - - Status(const Status& from); - Status(Status&& from) noexcept - : Status() { - *this = ::std::move(from); - } - - inline Status& operator=(const Status& from) { - CopyFrom(from); - return *this; - } - inline Status& operator=(Status&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const Status& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Status* internal_default_instance() { - return reinterpret_cast( - &_Status_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(Status& a, Status& b) { - a.Swap(&b); - } - inline void Swap(Status* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Status* New() const final { - return CreateMaybeMessage(nullptr); - } - - Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const Status& from); - void MergeFrom(const Status& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Status* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.Status"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_status_2eproto); - return ::descriptor_table_status_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kReasonFieldNumber = 2, - kErrorCodeFieldNumber = 1, - }; - // string reason = 2; - void clear_reason(); - const std::string& reason() const; - void set_reason(const std::string& value); - void set_reason(std::string&& value); - void set_reason(const char* value); - void set_reason(const char* value, size_t size); - std::string* mutable_reason(); - std::string* release_reason(); - void set_allocated_reason(std::string* reason); - - // .milvus.grpc.ErrorCode error_code = 1; - void clear_error_code(); - ::milvus::grpc::ErrorCode error_code() const; - void set_error_code(::milvus::grpc::ErrorCode value); - - // @@protoc_insertion_point(class_scope:milvus.grpc.Status) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reason_; - int error_code_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_status_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// Status - -// .milvus.grpc.ErrorCode error_code = 1; -inline void Status::clear_error_code() { - error_code_ = 0; -} -inline ::milvus::grpc::ErrorCode Status::error_code() const { - // @@protoc_insertion_point(field_get:milvus.grpc.Status.error_code) - return static_cast< ::milvus::grpc::ErrorCode >(error_code_); -} -inline void Status::set_error_code(::milvus::grpc::ErrorCode value) { - - error_code_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.Status.error_code) -} - -// string reason = 2; -inline void Status::clear_reason() { - reason_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& Status::reason() const { - // @@protoc_insertion_point(field_get:milvus.grpc.Status.reason) - return reason_.GetNoArena(); -} -inline void Status::set_reason(const std::string& value) { - - reason_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.Status.reason) -} -inline void Status::set_reason(std::string&& value) { - - reason_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.Status.reason) -} -inline void Status::set_reason(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - reason_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.Status.reason) -} -inline void Status::set_reason(const char* value, size_t size) { - - reason_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.Status.reason) -} -inline std::string* Status::mutable_reason() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.Status.reason) - return reason_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* Status::release_reason() { - // @@protoc_insertion_point(field_release:milvus.grpc.Status.reason) - - return reason_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void Status::set_allocated_reason(std::string* reason) { - if (reason != nullptr) { - - } else { - - } - reason_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), reason); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Status.reason) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace grpc -} // namespace milvus - -PROTOBUF_NAMESPACE_OPEN - -template <> struct is_proto_enum< ::milvus::grpc::ErrorCode> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::milvus::grpc::ErrorCode>() { - return ::milvus::grpc::ErrorCode_descriptor(); -} - -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) - -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_status_2eproto diff --git a/proxy/src/grpc/milvus.proto b/proxy/src/grpc/milvus.proto deleted file mode 100644 index 89be055556..0000000000 --- a/proxy/src/grpc/milvus.proto +++ /dev/null @@ -1,716 +0,0 @@ -// Not used now, please using suvlim.proto - -syntax = "proto3"; - -import "status.proto"; - -package milvus.grpc; - -/** - * @brief Field data type - */ -enum DataType { - NONE = 0; - BOOL = 1; - INT8 = 2; - INT16 = 3; - INT32 = 4; - INT64 = 5; - - FLOAT = 10; - DOUBLE = 11; - - STRING = 20; - - VECTOR_BINARY = 100; - VECTOR_FLOAT = 101; -} - -/** - * @brief General usage - */ -message KeyValuePair { - string key = 1; - string value = 2; -} - -/** - * @brief Collection name - */ -message CollectionName { - string collection_name = 1; -} - -/** - * @brief Collection name list - */ -message CollectionNameList { - Status status = 1; - repeated string collection_names = 2; -} - -/** - * @brief Field name - */ -message FieldName { - string collection_name = 1; - string field_name = 2; -} - -/** - * @brief Collection mapping - * @extra_params: key-value pair for extra parameters of the collection - * typically usage: - * extra_params["params"] = {segment_row_count: 1000000, auto_id: true} - * Note: - * the segment_row_count specify segment row count limit for merging - * the auto_id = true means entity id is auto-generated by milvus - */ -message Mapping { - Status status = 1; - string collection_name = 2; - repeated FieldParam fields = 3; - repeated KeyValuePair extra_params = 4; -} - -/** - * @brief Collection mapping list - */ -message MappingList { - Status status = 1; - repeated Mapping mapping_list = 2; -} - -/** - * @brief Parameters of partition - */ -message PartitionParam { - string collection_name = 1; - string tag = 2; -} - -/** - * @brief Partition list - */ -message PartitionList { - Status status = 1; - repeated string partition_tag_array = 2; -} - -/** - * @brief Vector row record - */ -message VectorRowRecord { - repeated float float_data = 1; //float vector data - bytes binary_data = 2; //binary vector data -} - -/** - * @brief Attribute record - */ -message AttrRecord { - repeated int32 int32_value = 1; - repeated int64 int64_value = 2; - repeated float float_value = 3; - repeated double double_value = 4; -} - -/** - * @brief Vector records - */ -message VectorRecord { - repeated VectorRowRecord records = 1; -} - -/** - * @brief Field values - */ -message FieldValue { - string field_name = 1; - DataType type = 2; - AttrRecord attr_record = 3; - VectorRecord vector_record = 4; -} - -/** - * @brief Parameters for insert action - */ -message InsertParam { - string collection_name = 1; - repeated FieldValue fields = 2; - repeated int64 entity_id_array = 3; //optional - string partition_tag = 4; - repeated KeyValuePair extra_params = 5; -} - -/** - * @brief Entity ids - */ -message EntityIds { - Status status = 1; - repeated int64 entity_id_array = 2; -} - -/** - * @brief Search vector parameters - */ -message VectorParam { - string json = 1; - VectorRecord row_record = 2; -} - -/** - * @brief Parameters for search action - * @dsl example: - * { - * "query": { - * "bool": { - * "must": [ - * { - * "must":[ - * { - * "should": [ - * { - * "term": { - * "gender": ["male"] - * } - * }, - * { - * "range": { - * "height": {"gte": "170.0", "lte": "180.0"} - * } - * } - * ] - * }, - * { - * "must_not": [ - * { - * "term": { - * "age": [20, 21, 22, 23, 24, 25] - * } - * }, - * { - * "Range": { - * "weight": {"lte": "100"} - * } - * } - * ] - * } - * ] - * }, - * { - * "must": [ - * { - * "vector": { - * "face_img": { - * "topk": 10, - * "metric_type": "L2", - * "query": [], - * "params": { - * "nprobe": 10 - * } - * } - * } - * } - * ] - * } - * ] - * } - * }, - * "fields": ["age", "face_img"] - * } - */ -message SearchParam { - string collection_name = 1; - repeated string partition_tag_array = 2; - repeated VectorParam vector_param = 3; - string dsl = 4; - repeated KeyValuePair extra_params = 5; -} - -/** - * @brief Parameters for searching in segments - */ -message SearchInSegmentParam { - repeated string file_id_array = 1; - SearchParam search_param = 2; -} - -/** - * @brief Entities - */ -message Entities { - Status status = 1; - repeated int64 ids = 2; - repeated bool valid_row = 3; - repeated FieldValue fields = 4; -} - -/** - * @brief Query result - */ -message QueryResult { - Status status = 1; - Entities entities = 2; - int64 row_num = 3; - repeated float scores = 4; - repeated float distances = 5; - repeated KeyValuePair extra_params = 6; -} - -/** - * @brief Server string Reply - */ -message StringReply { - Status status = 1; - string string_reply = 2; -} - -/** - * @brief Server bool Reply - */ -message BoolReply { - Status status = 1; - bool bool_reply = 2; -} - -/** - * @brief Return collection row count - */ -message CollectionRowCount { - Status status = 1; - int64 collection_row_count = 2; -} - -/** - * @brief Server command parameters - */ -message Command { - string cmd = 1; -} - -/** - * @brief Index params - * @collection_name: target collection - * @field_name: target field - * @index_name: a name for index provided by user, unique within this field - * @extra_params: index parameters in json format - * for vector field: - * extra_params["index_type"] = one of the values: FLAT, IVF_LAT, IVF_SQ8, NSGMIX, IVFSQ8H, - * PQ, HNSW, HNSW_SQ8NM, ANNOY - * extra_params["metric_type"] = one of the values: L2, IP, HAMMING, JACCARD, TANIMOTO - * SUBSTRUCTURE, SUPERSTRUCTURE - * extra_params["params"] = extra parameters for index, for example ivflat: {nlist: 2048} - * for structured field: - * extra_params["index_type"] = one of the values: SORTED - */ -message IndexParam { - Status status = 1; - string collection_name = 2; - string field_name = 3; - string index_name = 4; - repeated KeyValuePair extra_params = 5; -} - -/** - * @brief Parameters for flush action - */ -message FlushParam { - repeated string collection_name_array = 1; -} - -/** - * @brief Parameters for flush action - */ -message CompactParam { - string collection_name = 1; - double threshold = 2; -} - -/** - * @brief Parameters for deleting entities by id - */ -message DeleteByIDParam { - string collection_name = 1; - repeated int64 id_array = 2; -} - -/** - * @brief Return collection stats - * @json_info: collection stats in json format, typically, the format is like: - * { - * row_count: xxx, - * data_size: xxx, - * partitions: [ - * { - * tag: xxx, - * id: xxx, - * row_count: xxx, - * data_size: xxx, - * segments: [ - * { - * id: xxx, - * row_count: xxx, - * data_size: xxx, - * files: [ - * { - * field: xxx, - * name: xxx, - * index_type: xxx, - * path: xxx, - * data_size: xxx, - * } - * ] - * } - * ] - * } - * ] - * } - */ -message CollectionInfo { - Status status = 1; - string json_info = 2; -} - -/** - * @brief Parameters for returning entities id of a segment - */ -message GetEntityIDsParam { - string collection_name = 1; - int64 segment_id = 2; -} - -/** - * @brief Entities identity - */ -message EntityIdentity { - string collection_name = 1; - repeated int64 id_array = 2; - repeated string field_names = 3; -} - -/********************************************SearchPB interface***************************************************/ -/** - * @brief Vector field parameters - */ -message VectorFieldParam { - int64 dimension = 1; -} - -/** - * @brief Field type - */ -message FieldType { - oneof value { - DataType data_type = 1; - VectorFieldParam vector_param = 2; - } -} - -/** - * @brief Field parameters - */ -message FieldParam { - uint64 id = 1; - string name = 2; - DataType type = 3; - repeated KeyValuePair index_params = 4; - repeated KeyValuePair extra_params = 5; -} - -/** - * @brief Vector field record - */ -message VectorFieldRecord { - repeated VectorRowRecord value = 1; -} - -/////////////////////////////////////////////////////////////////// - -message TermQuery { - string field_name = 1; - repeated int64 int_value = 2; - repeated double double_value = 3; - int64 value_num = 4; - float boost = 5; - repeated KeyValuePair extra_params = 6; -} - -enum CompareOperator { - LT = 0; - LTE = 1; - EQ = 2; - GT = 3; - GTE = 4; - NE = 5; -} - -message CompareExpr { - CompareOperator operator = 1; - string operand = 2; -} - -message RangeQuery { - string field_name = 1; - repeated CompareExpr operand = 2; - float boost = 3; - repeated KeyValuePair extra_params = 4; -} - -message VectorQuery { - string field_name = 1; - float query_boost = 2; - repeated VectorRowRecord records = 3; - int64 topk = 4; - repeated KeyValuePair extra_params = 5; -} - -enum Occur { - INVALID = 0; - MUST = 1; - SHOULD = 2; - MUST_NOT = 3; -} - -message BooleanQuery { - Occur occur = 1; - repeated GeneralQuery general_query = 2; -} - -message GeneralQuery { - oneof query { - BooleanQuery boolean_query = 1; - TermQuery term_query = 2; - RangeQuery range_query = 3; - VectorQuery vector_query = 4; - } -} - -message SearchParamPB { - string collection_name = 1; - repeated string partition_tag_array = 2; - GeneralQuery general_query = 3; - repeated KeyValuePair extra_params = 4; -} - -service MilvusService { - /** - * @brief This method is used to create collection - * - * @param CollectionSchema, use to provide collection information to be created. - * - * @return Status - */ - rpc CreateCollection(Mapping) returns (Status){} - - /** - * @brief This method is used to test collection existence. - * - * @param CollectionName, collection name is going to be tested. - * - * @return BoolReply - */ - rpc HasCollection(CollectionName) returns (BoolReply) {} - - /** - * @brief This method is used to get collection schema. - * - * @param CollectionName, target collection name. - * - * @return CollectionSchema - */ - rpc DescribeCollection(CollectionName) returns (Mapping) {} - - /** - * @brief This method is used to get collection schema. - * - * @param CollectionName, target collection name. - * - * @return CollectionRowCount - */ - rpc CountCollection(CollectionName) returns (CollectionRowCount) {} - - /** - * @brief This method is used to list all collections. - * - * @param Command, dummy parameter. - * - * @return CollectionNameList - */ - rpc ShowCollections(Command) returns (CollectionNameList) {} - - /** - * @brief This method is used to get collection detail information. - * - * @param CollectionName, target collection name. - * - * @return CollectionInfo - */ - rpc ShowCollectionInfo(CollectionName) returns (CollectionInfo) {} - - /** - * @brief This method is used to delete collection. - * - * @param CollectionName, collection name is going to be deleted. - * - * @return Status - */ - rpc DropCollection(CollectionName) returns (Status) {} - - /** - * @brief This method is used to build index by collection in sync mode. - * - * @param IndexParam, index paramters. - * - * @return Status - */ - rpc CreateIndex(IndexParam) returns (Status) {} - - /** - * @brief This method is used to describe index - * - * @param IndexParam, target index. - * - * @return IndexParam - */ - rpc DescribeIndex(IndexParam) returns (IndexParam) {} - - /** - * @brief This method is used to drop index - * - * @param IndexParam, target field. if the IndexParam.field_name is empty, will drop all index of the collection - * - * @return Status - */ - rpc DropIndex(IndexParam) returns (Status) {} - - /** - * @brief This method is used to create partition - * - * @param PartitionParam, partition parameters. - * - * @return Status - */ - rpc CreatePartition(PartitionParam) returns (Status) {} - - /** - * @brief This method is used to test partition existence. - * - * @param PartitionParam, target partition. - * - * @return BoolReply - */ - rpc HasPartition(PartitionParam) returns (BoolReply) {} - - /** - * @brief This method is used to show partition information - * - * @param CollectionName, target collection name. - * - * @return PartitionList - */ - rpc ShowPartitions(CollectionName) returns (PartitionList) {} - - /** - * @brief This method is used to drop partition - * - * @param PartitionParam, target partition. - * - * @return Status - */ - rpc DropPartition(PartitionParam) returns (Status) {} - - /** - * @brief This method is used to add vector array to collection. - * - * @param InsertParam, insert parameters. - * - * @return VectorIds - */ - rpc Insert(InsertParam) returns (EntityIds) {} - - /** - * @brief This method is used to get entities data by id array. - * - * @param EntitiesIdentity, target entity id array. - * - * @return EntitiesData - */ - rpc GetEntityByID(EntityIdentity) returns (Entities) {} - - /** - * @brief This method is used to get vector ids from a segment - * - * @param GetVectorIDsParam, target collection and segment - * - * @return VectorIds - */ - rpc GetEntityIDs(GetEntityIDsParam) returns (EntityIds) {} - - /** - * @brief This method is used to query vector in collection. - * - * @param SearchParam, search parameters. - * - * @return KQueryResult - */ - rpc Search(SearchParam) returns (QueryResult) {} - - /** - * @brief This method is used to query vector in specified files. - * - * @param SearchInSegmentParam, target segments to search. - * - * @return TopKQueryResult - */ - rpc SearchInSegment(SearchInSegmentParam) returns (QueryResult) {} - - /** - * @brief This method is used to give the server status. - * - * @param Command, command string - * - * @return StringReply - */ - rpc Cmd(Command) returns (StringReply) {} - - /** - * @brief This method is used to delete vector by id - * - * @param DeleteByIDParam, delete parameters. - * - * @return status - */ - rpc DeleteByID(DeleteByIDParam) returns (Status) {} - - /** - * @brief This method is used to preload collection - * - * @param CollectionName, target collection name. - * - * @return Status - */ - rpc PreloadCollection(CollectionName) returns (Status) {} - - /** - * @brief This method is used to flush buffer into storage. - * - * @param FlushParam, flush parameters - * - * @return Status - */ - rpc Flush(FlushParam) returns (Status) {} - - /** - * @brief This method is used to compact collection - * - * @param CompactParam, compact parameters - * - * @return Status - */ - rpc Compact(CompactParam) returns (Status) {} - - /********************************New Interface********************************************/ - - rpc SearchPB(SearchParamPB) returns (QueryResult) {} -} \ No newline at end of file diff --git a/proxy/src/grpc/status.proto b/proxy/src/grpc/status.proto deleted file mode 100644 index a4f018a5fc..0000000000 --- a/proxy/src/grpc/status.proto +++ /dev/null @@ -1,35 +0,0 @@ -syntax = "proto3"; - -package milvus.grpc; - -enum ErrorCode { - SUCCESS = 0; - UNEXPECTED_ERROR = 1; - CONNECT_FAILED = 2; - PERMISSION_DENIED = 3; - COLLECTION_NOT_EXISTS = 4; - ILLEGAL_ARGUMENT = 5; - ILLEGAL_DIMENSION = 7; - ILLEGAL_INDEX_TYPE = 8; - ILLEGAL_COLLECTION_NAME = 9; - ILLEGAL_TOPK = 10; - ILLEGAL_ROWRECORD = 11; - ILLEGAL_VECTOR_ID = 12; - ILLEGAL_SEARCH_RESULT = 13; - FILE_NOT_FOUND = 14; - META_FAILED = 15; - CACHE_FAILED = 16; - CANNOT_CREATE_FOLDER = 17; - CANNOT_CREATE_FILE = 18; - CANNOT_DELETE_FOLDER = 19; - CANNOT_DELETE_FILE = 20; - BUILD_INDEX_ERROR = 21; - ILLEGAL_NLIST = 22; - ILLEGAL_METRIC_TYPE = 23; - OUT_OF_MEMORY = 24; -} - -message Status { - ErrorCode error_code = 1; - string reason = 2; -} \ No newline at end of file diff --git a/proxy/src/grpc/suvlim.proto b/proxy/src/grpc/suvlim.proto index cafaf0eb10..b165c9750d 100644 --- a/proxy/src/grpc/suvlim.proto +++ b/proxy/src/grpc/suvlim.proto @@ -1,40 +1,39 @@ syntax = "proto3"; -import "status.proto"; package milvus.grpc; -// -//enum ErrorCode { -// SUCCESS = 0; -// UNEXPECTED_ERROR = 1; -// CONNECT_FAILED = 2; -// PERMISSION_DENIED = 3; -// COLLECTION_NOT_EXISTS = 4; -// ILLEGAL_ARGUMENT = 5; -// ILLEGAL_DIMENSION = 7; -// ILLEGAL_INDEX_TYPE = 8; -// ILLEGAL_COLLECTION_NAME = 9; -// ILLEGAL_TOPK = 10; -// ILLEGAL_ROWRECORD = 11; -// ILLEGAL_VECTOR_ID = 12; -// ILLEGAL_SEARCH_RESULT = 13; -// FILE_NOT_FOUND = 14; -// META_FAILED = 15; -// CACHE_FAILED = 16; -// CANNOT_CREATE_FOLDER = 17; -// CANNOT_CREATE_FILE = 18; -// CANNOT_DELETE_FOLDER = 19; -// CANNOT_DELETE_FILE = 20; -// BUILD_INDEX_ERROR = 21; -// ILLEGAL_NLIST = 22; -// ILLEGAL_METRIC_TYPE = 23; -// OUT_OF_MEMORY = 24; -//} -// -//message Status { -// ErrorCode error_code = 1; -// string reason = 2; -//} + +enum ErrorCode { + SUCCESS = 0; + UNEXPECTED_ERROR = 1; + CONNECT_FAILED = 2; + PERMISSION_DENIED = 3; + COLLECTION_NOT_EXISTS = 4; + ILLEGAL_ARGUMENT = 5; + ILLEGAL_DIMENSION = 7; + ILLEGAL_INDEX_TYPE = 8; + ILLEGAL_COLLECTION_NAME = 9; + ILLEGAL_TOPK = 10; + ILLEGAL_ROWRECORD = 11; + ILLEGAL_VECTOR_ID = 12; + ILLEGAL_SEARCH_RESULT = 13; + FILE_NOT_FOUND = 14; + META_FAILED = 15; + CACHE_FAILED = 16; + CANNOT_CREATE_FOLDER = 17; + CANNOT_CREATE_FILE = 18; + CANNOT_DELETE_FOLDER = 19; + CANNOT_DELETE_FILE = 20; + BUILD_INDEX_ERROR = 21; + ILLEGAL_NLIST = 22; + ILLEGAL_METRIC_TYPE = 23; + OUT_OF_MEMORY = 24; +} + +message Status { + ErrorCode error_code = 1; + string reason = 2; +} /** * @brief Field data type diff --git a/proxy/src/message_client/CMakeLists.txt b/proxy/src/message_client/CMakeLists.txt index fc927efe0f..c255a00916 100644 --- a/proxy/src/message_client/CMakeLists.txt +++ b/proxy/src/message_client/CMakeLists.txt @@ -3,9 +3,8 @@ set(src-cpp ClientV2.cpp Consumer.cpp Producer.cpp - ../grpc/gen-milvus/suvlim.pb.cc - ../grpc/gen-status/status.pb.cc - ) + M3_hash.cpp + PartitionPolicy.cpp) add_library(message_client_cpp ${src-cpp} @@ -16,4 +15,4 @@ target_include_directories(message_client_cpp PUBLIC ${PROJECT_BINARY_DIR}/third target_link_libraries(message_client_cpp pulsarStatic libprotobuf) #install(TARGETS message_client_cpp -# DESTINATION lib) \ No newline at end of file +# DESTINATION lib) diff --git a/proxy/src/message_client/ClientV2.cpp b/proxy/src/message_client/ClientV2.cpp index 308db29c4b..f85e82f956 100644 --- a/proxy/src/message_client/ClientV2.cpp +++ b/proxy/src/message_client/ClientV2.cpp @@ -1,5 +1,6 @@ #include "ClientV2.h" #include "pulsar/Result.h" +#include "PartitionPolicy.h" namespace { int64_t gen_channe_id(int64_t uid) { @@ -26,11 +27,17 @@ Status MsgClientV2::Init(const std::string &insert_delete, const std::string &time_sync, const std::string &search_by_id, const std::string &search_result) { + //create pulsar client auto pulsar_client = std::make_shared(service_url_); - insert_delete_producer_ = std::make_shared(pulsar_client, insert_delete); - search_producer_ = std::make_shared(pulsar_client, search); - search_by_id_producer_ = std::make_shared(pulsar_client, search_by_id); + //create pulsar producer + ProducerConfiguration producerConfiguration; + producerConfiguration.setPartitionsRoutingMode(ProducerConfiguration::CustomPartition); + producerConfiguration.setMessageRouter(std::make_shared()); + insert_delete_producer_ = std::make_shared(pulsar_client, insert_delete, producerConfiguration); + search_producer_ = std::make_shared(pulsar_client, search, producerConfiguration); + search_by_id_producer_ = std::make_shared(pulsar_client, search_by_id, producerConfiguration); time_sync_producer_ = std::make_shared(pulsar_client, time_sync); + //create pulsar consumer consumer_ = std::make_shared(pulsar_client, search_result); auto result = consumer_->subscribe(search_result); diff --git a/proxy/src/message_client/Consumer.h b/proxy/src/message_client/Consumer.h index d56e64a4e6..764c2aa991 100644 --- a/proxy/src/message_client/Consumer.h +++ b/proxy/src/message_client/Consumer.h @@ -3,7 +3,6 @@ #include "pulsar/Consumer.h" #include "Client.h" #include "grpc/gen-milvus/suvlim.pb.h" -#include "grpc/gen-status/status.pb.h" namespace milvus { namespace message_client { diff --git a/proxy/src/message_client/M3_hash.cpp b/proxy/src/message_client/M3_hash.cpp new file mode 100644 index 0000000000..105e31b25d --- /dev/null +++ b/proxy/src/message_client/M3_hash.cpp @@ -0,0 +1,94 @@ +#include "M3_hash.h" + +#include +#include + +#if BOOST_COMP_MSVC +#include +#define ROTATE_LEFT(x, y) _rotl(x, y) +#else +#define ROTATE_LEFT(x, y) rotate_left(x, y) +#endif + +#if BOOST_ENDIAN_LITTLE_BYTE +#define BYTESPWAP(x) (x) +#elif BOOST_ENDIAN_BIG_BYTE +#if BOOST_COMP_CLANG || BOOST_COMP_GNUC +#define BYTESPWAP(x) __builtin_bswap32(x) +#elif BOOST_COMP_MSVC +#define BYTESPWAP(x) _byteswap_uint32(x) +#else +#endif +#else +#endif + +#define MACRO_CHUNK_SIZE 4 +#define MACRO_C1 0xcc9e2d51U +#define MACRO_C2 0x1b873593U + +namespace milvus { +namespace message_client { + + + int32_t makeHash(const std::string &key) { + return static_cast(makeHash(&key.front(), key.length()) & std::numeric_limits::max()); + } + + uint32_t makeHash(const void *key, const int64_t len) { + const uint8_t *data = reinterpret_cast(key); + const int nblocks = len / MACRO_CHUNK_SIZE; +// uint32_t h1 = seed; + uint32_t h1 = 0; + const uint32_t *blocks = reinterpret_cast(data + nblocks * MACRO_CHUNK_SIZE); + + for (int i = -nblocks; i != 0; i++) { + uint32_t k1 = BYTESPWAP(blocks[i]); + + k1 = mixK1(k1); + h1 = mixH1(h1, k1); + } + + const uint8_t *tail = reinterpret_cast(data + nblocks * MACRO_CHUNK_SIZE); + uint32_t k1 = 0; + switch (len - nblocks * MACRO_CHUNK_SIZE) { + case 3: + k1 ^= static_cast(tail[2]) << 16; + case 2: + k1 ^= static_cast(tail[1]) << 8; + case 1: + k1 ^= static_cast(tail[0]); + }; + + h1 ^= mixK1(k1); + h1 ^= len; + h1 = fmix(h1); + + return h1; + } + + uint32_t fmix(uint32_t h) { + h ^= h >> 16; + h *= 0x85ebca6b; + h ^= h >> 13; + h *= 0xc2b2ae35; + h ^= h >> 16; + + return h; + } + + uint32_t mixK1(uint32_t k1) { + k1 *= MACRO_C1; + k1 = ROTATE_LEFT(k1, 15); + k1 *= MACRO_C2; + return k1; + } + + uint32_t mixH1(uint32_t h1, uint32_t k1) { + h1 ^= k1; + h1 = ROTATE_LEFT(h1, 13); + return h1 * 5 + 0xe6546b64; + } + + uint32_t rotate_left(uint32_t x, uint8_t r) { return (x << r) | (x >> ((32 - r))); } +} +} diff --git a/proxy/src/message_client/M3_hash.h b/proxy/src/message_client/M3_hash.h new file mode 100644 index 0000000000..52fe179a87 --- /dev/null +++ b/proxy/src/message_client/M3_hash.h @@ -0,0 +1,15 @@ +#pragma once + +#include +namespace milvus { +namespace message_client { + + int32_t makeHash(const std::string& key); + uint32_t fmix(uint32_t h); + uint32_t mixK1(uint32_t k1); + uint32_t mixH1(uint32_t h1, uint32_t k1); + uint32_t rotate_left(uint32_t x, uint8_t r); + uint32_t makeHash(const void* key, const int64_t len); + +} +} diff --git a/proxy/src/message_client/PartitionPolicy.cpp b/proxy/src/message_client/PartitionPolicy.cpp new file mode 100644 index 0000000000..5586af2e16 --- /dev/null +++ b/proxy/src/message_client/PartitionPolicy.cpp @@ -0,0 +1,13 @@ +#include "PartitionPolicy.h" +#include "M3_hash.h" + +namespace milvus { +namespace message_client { + +int PartitionPolicy::getPartition(const pulsar::Message &msg, const pulsar::TopicMetadata &topicMetadata) { + int32_t partiton_id = makeHash(msg.getPartitionKey()); + return partiton_id; +} +} +} + diff --git a/proxy/src/message_client/PartitionPolicy.h b/proxy/src/message_client/PartitionPolicy.h new file mode 100644 index 0000000000..a960b63c4b --- /dev/null +++ b/proxy/src/message_client/PartitionPolicy.h @@ -0,0 +1,16 @@ +#pragma once + +#include +#include "pulsar/MessageRoutingPolicy.h" +#include "pulsar/Message.h" +#include "pulsar/TopicMetadata.h" + +namespace milvus { +namespace message_client { +class PartitionPolicy : public pulsar::MessageRoutingPolicy { + + int getPartition(const pulsar::Message& msg, const pulsar::TopicMetadata& topicMetadata); + +}; +} +} diff --git a/proxy/src/server/CMakeLists.txt b/proxy/src/server/CMakeLists.txt index c3d2922f42..53863eec73 100644 --- a/proxy/src/server/CMakeLists.txt +++ b/proxy/src/server/CMakeLists.txt @@ -13,8 +13,8 @@ set( GRPC_SERVICE_FILES ${MILVUS_ENGINE_SRC}/grpc/gen-milvus/suvlim.grpc.pb.cc ${MILVUS_ENGINE_SRC}/grpc/gen-milvus/suvlim.pb.cc - ${MILVUS_ENGINE_SRC}/grpc/gen-status/status.grpc.pb.cc - ${MILVUS_ENGINE_SRC}/grpc/gen-status/status.pb.cc + #${MILVUS_ENGINE_SRC}/grpc/gen-status/status.grpc.pb.cc + #${MILVUS_ENGINE_SRC}/grpc/gen-status/status.pb.cc ${MILVUS_ENGINE_SRC}/grpc/gen-milvus/hello.grpc.pb.cc ${MILVUS_ENGINE_SRC}/grpc/gen-milvus/hello.pb.cc ${MILVUS_ENGINE_SRC}/grpc/gen-milvus/master.grpc.pb.cc diff --git a/proxy/src/server/delivery/request/Types.h b/proxy/src/server/delivery/request/Types.h index c3679e168d..52065a60d9 100644 --- a/proxy/src/server/delivery/request/Types.h +++ b/proxy/src/server/delivery/request/Types.h @@ -13,8 +13,6 @@ #include "db/Types.h" #include "grpc/gen-milvus/suvlim.grpc.pb.h" -#include "grpc/gen-status/status.grpc.pb.h" -#include "grpc/gen-status/status.pb.h" #include "query/GeneralQuery.h" #include "utils/Json.h" #include "utils/Status.h" diff --git a/proxy/src/server/grpc_impl/GrpcRequestHandler.h b/proxy/src/server/grpc_impl/GrpcRequestHandler.h index b28ca01473..78b56cdeb4 100644 --- a/proxy/src/server/grpc_impl/GrpcRequestHandler.h +++ b/proxy/src/server/grpc_impl/GrpcRequestHandler.h @@ -21,7 +21,6 @@ #include #include "query/BinaryQuery.h" #include "grpc/gen-milvus/suvlim.grpc.pb.h" -#include "grpc/gen-status/status.pb.h" #include "opentracing/tracer.h" #include "server/context/Context.h" #include "server/delivery/ReqHandler.h" diff --git a/proxy/src/test/CMakeLists.txt b/proxy/src/test/CMakeLists.txt deleted file mode 100644 index 4e7a6c365d..0000000000 --- a/proxy/src/test/CMakeLists.txt +++ /dev/null @@ -1,26 +0,0 @@ -#AUX_SOURCE_DIRECTORY(. TEST) - -#set( GRPC_SERVICE_FILES ${MILVUS_ENGINE_SRC}/grpc/gen-milvus/milvus.grpc.pb.cc -# ${MILVUS_ENGINE_SRC}/grpc/gen-milvus/milvus.pb.cc -# ${MILVUS_ENGINE_SRC}/grpc/gen-status/status.grpc.pb.cc -# ${MILVUS_ENGINE_SRC}/grpc/gen-status/status.pb.cc -# ${MILVUS_ENGINE_SRC}/grpc/gen-milvus/hello.grpc.pb.cc -# ${MILVUS_ENGINE_SRC}/grpc/gen-milvus/hello.pb.cc -# ${MILVUS_ENGINE_SRC}/grpc/gen-milvus/master.grpc.pb.cc -# ${MILVUS_ENGINE_SRC}/grpc/gen-milvus/master.pb.cc -# ) -#add_executable(test_pulsar ${TEST} ${GRPC_SERVICE_FILES}) -# -#target_include_directories(test_pulsar PUBLIC ${PROJECT_BINARY_DIR}/thirdparty/pulsar/pulsar-src/pulsar-client-cpp/include) -#target_include_directories(test_pulsar PUBLIC ${PROJECT_BINARY_DIR}/thirdparty/avro/avro-build/include) - -add_subdirectory(message_client_test) -#target_link_libraries(test_pulsar -# pulsarStatic -# libprotobuf -# grpc++_reflection -# grpc++ -# libboost_system.a -# libboost_filesystem.a -# libboost_serialization.a -# ) \ No newline at end of file diff --git a/proxy/src/version.h b/proxy/src/version.h index 78c17f88d1..8fa91841c0 100644 --- a/proxy/src/version.h +++ b/proxy/src/version.h @@ -11,5 +11,5 @@ #define MILVUS_VERSION "0.10.0" #define BUILD_TYPE "Debug" -#define BUILD_TIME "2020-09-06 15:30.38" -#define LAST_COMMIT_ID "f569a5f01205b6b2eb9d8fb7442c5c12c57309fe" +#define BUILD_TIME "2020-09-06 19:09.45" +#define LAST_COMMIT_ID "70397c021b76f5db2ad665f46f2bf0efa408b31e" diff --git a/proxy/unittest/CMakeLists.txt b/proxy/unittest/CMakeLists.txt new file mode 100644 index 0000000000..a9cefcc6ee --- /dev/null +++ b/proxy/unittest/CMakeLists.txt @@ -0,0 +1,38 @@ +#------------------------------------------------------------------------------- +# Copyright (C) 2019-2020 Zilliz. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software distributed under the License +# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +# or implied. See the License for the specific language governing permissions and limitations under the License. +#------------------------------------------------------------------------------- + + +include_directories(${MILVUS_SOURCE_DIR}) +include_directories(${MILVUS_ENGINE_SRC}) +include_directories(${MILVUS_THIRDPARTY_SRC}) +include_directories(${CMAKE_CURRENT_SOURCE_DIR}) + +include_directories(${MILVUS_ENGINE_SRC}/grpc/gen-milvus) + + +set( ENTRY_FILE ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp ) + +set( UNITTEST_LIBS libboost_system.a + libboost_filesystem.a + yaml-cpp + gtest + gtest_main + libstdc++fs.a + pthread + opentracing::opentracing + opentracing::mocktracer + z + ) + +add_subdirectory(message_client) +add_subdirectory(config) diff --git a/proxy/unittest/config/CMakeLists.txt b/proxy/unittest/config/CMakeLists.txt new file mode 100644 index 0000000000..1fed5ca907 --- /dev/null +++ b/proxy/unittest/config/CMakeLists.txt @@ -0,0 +1,43 @@ +#------------------------------------------------------------------------------- +# Copyright (C) 2019-2020 Zilliz. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software distributed under the License +# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +# or implied. See the License for the specific language governing permissions and limitations under the License. +#------------------------------------------------------------------------------- + +enable_testing() + +set( CONFIG_SRCS + ${MILVUS_ENGINE_SRC}/config/ConfigMgr.cpp + ${MILVUS_ENGINE_SRC}/config/ConfigType.cpp + ${MILVUS_ENGINE_SRC}/config/ServerConfig.cpp + ) + +set(unittest_srcs + ServerConfigTest.cpp + ConfigTypeTest1.cpp + ConfigTypeTest2.cpp + ) + + +add_executable(test_config ${unittest_srcs} ${CONFIG_SRCS}) +#add_executable(ServerConfigTest ServerConfigTest.cpp ${CONFIG_SRCS}) +#add_executable(ConfigTypeTest1 ConfigTypeTest1.cpp ${CONFIG_SRCS}) +#add_executable(ConfigTypeTest2 ConfigTypeTest2.cpp ${CONFIG_SRCS}) + +#target_link_libraries(ServerConfigTest ${UNITTEST_LIBS}) +#target_link_libraries(ConfigTypeTest1 ${UNITTEST_LIBS}) +#target_link_libraries(ConfigTypeTest2 ${UNITTEST_LIBS}) +target_link_libraries(test_config ${UNITTEST_LIBS}) + +install(TARGETS test_config DESTINATION unittest) + +#install(TARGETS ServerConfigTest DESTINATION unittest) +#install(TARGETS ConfigTypeTest1 DESTINATION unittest) +#install(TARGETS ConfigTypeTest2 DESTINATION unittest) diff --git a/proxy/unittest/config/ConfigTypeTest1.cpp b/proxy/unittest/config/ConfigTypeTest1.cpp new file mode 100644 index 0000000000..72aa5d7227 --- /dev/null +++ b/proxy/unittest/config/ConfigTypeTest1.cpp @@ -0,0 +1,493 @@ +// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + +#include +#include + +#include "config/ServerConfig.h" +#include "gtest/gtest.h" + +namespace milvus { + +#define _MODIFIABLE (true) +#define _IMMUTABLE (false) + +template +class Utils { + public: + bool + validate_fn(const T& value, std::string& err) { + validate_value = value; + return true; + } + + bool + update_fn(const T& value, const T& prev, std::string& err) { + new_value = value; + prev_value = prev; + return true; + } + + protected: + T validate_value; + T new_value; + T prev_value; +}; + +/* ValidBoolConfigTest */ +class ValidBoolConfigTest : public testing::Test, public Utils { + protected: +}; + +TEST_F(ValidBoolConfigTest, init_load_update_get_test) { + auto validate = std::bind(&ValidBoolConfigTest::validate_fn, this, std::placeholders::_1, std::placeholders::_2); + auto update = std::bind(&ValidBoolConfigTest::update_fn, this, std::placeholders::_1, std::placeholders::_2, + std::placeholders::_3); + + bool bool_value = true; + auto bool_config = CreateBoolConfig("b", _MODIFIABLE, &bool_value, false, validate, update); + ASSERT_EQ(bool_value, true); + ASSERT_EQ(bool_config->modifiable_, true); + + bool_config->Init(); + ASSERT_EQ(bool_value, false); + ASSERT_EQ(bool_config->Get(), "false"); + + { + // now `bool_value` is `false`, calling Set(update=false) to set it to `true`, but not notify update_fn() + validate_value = false; + new_value = false; + prev_value = true; + + ConfigStatus status(SetReturn::SUCCESS, ""); + status = bool_config->Set("true", false); + + EXPECT_EQ(status.set_return, SetReturn::SUCCESS); + EXPECT_EQ(bool_value, true); + EXPECT_EQ(bool_config->Get(), "true"); + + // expect change + EXPECT_EQ(validate_value, true); + // expect not change + EXPECT_EQ(new_value, false); + EXPECT_EQ(prev_value, true); + } + + { + // now `bool_value` is `true`, calling Set(update=true) to set it to `false`, will notify update_fn() + validate_value = true; + new_value = true; + prev_value = false; + + ConfigStatus status(SetReturn::SUCCESS, ""); + status = bool_config->Set("false", true); + + EXPECT_EQ(status.set_return, SetReturn::SUCCESS); + EXPECT_EQ(bool_value, false); + EXPECT_EQ(bool_config->Get(), "false"); + + // expect change + EXPECT_EQ(validate_value, false); + EXPECT_EQ(new_value, false); + EXPECT_EQ(prev_value, true); + } +} + +/* ValidStringConfigTest */ +class ValidStringConfigTest : public testing::Test, public Utils { + protected: +}; + +TEST_F(ValidStringConfigTest, init_load_update_get_test) { + auto validate = std::bind(&ValidStringConfigTest::validate_fn, this, std::placeholders::_1, std::placeholders::_2); + auto update = std::bind(&ValidStringConfigTest::update_fn, this, std::placeholders::_1, std::placeholders::_2, + std::placeholders::_3); + + std::string string_value; + auto string_config = CreateStringConfig("s", _MODIFIABLE, &string_value, "Magic", validate, update); + ASSERT_EQ(string_value, ""); + ASSERT_EQ(string_config->modifiable_, true); + + string_config->Init(); + ASSERT_EQ(string_value, "Magic"); + ASSERT_EQ(string_config->Get(), "Magic"); + + { + // now `string_value` is `Magic`, calling Set(update=false) to set it to `cigaM`, but not notify update_fn() + validate_value = ""; + new_value = ""; + prev_value = ""; + + ConfigStatus status(SetReturn::SUCCESS, ""); + status = string_config->Set("cigaM", false); + + EXPECT_EQ(status.set_return, SetReturn::SUCCESS); + EXPECT_EQ(string_value, "cigaM"); + EXPECT_EQ(string_config->Get(), "cigaM"); + + // expect change + EXPECT_EQ(validate_value, "cigaM"); + // expect not change + EXPECT_EQ(new_value, ""); + EXPECT_EQ(prev_value, ""); + } + + { + // now `string_value` is `cigaM`, calling Set(update=true) to set it to `Check`, will notify update_fn() + validate_value = ""; + new_value = ""; + prev_value = ""; + + ConfigStatus status(SetReturn::SUCCESS, ""); + status = string_config->Set("Check", true); + + EXPECT_EQ(status.set_return, SetReturn::SUCCESS); + EXPECT_EQ(string_value, "Check"); + EXPECT_EQ(string_config->Get(), "Check"); + + // expect change + EXPECT_EQ(validate_value, "Check"); + EXPECT_EQ(new_value, "Check"); + EXPECT_EQ(prev_value, "cigaM"); + } +} + +/* ValidIntegerConfigTest */ +class ValidIntegerConfigTest : public testing::Test, public Utils { + protected: +}; + +TEST_F(ValidIntegerConfigTest, init_load_update_get_test) { + auto validate = std::bind(&ValidIntegerConfigTest::validate_fn, this, std::placeholders::_1, std::placeholders::_2); + auto update = std::bind(&ValidIntegerConfigTest::update_fn, this, std::placeholders::_1, std::placeholders::_2, + std::placeholders::_3); + + int64_t integer_value = 0; + auto integer_config = CreateIntegerConfig("i", _MODIFIABLE, -100, 100, &integer_value, 42, validate, update); + ASSERT_EQ(integer_value, 0); + ASSERT_EQ(integer_config->modifiable_, true); + + integer_config->Init(); + ASSERT_EQ(integer_value, 42); + ASSERT_EQ(integer_config->Get(), "42"); + + { + // now `integer_value` is `42`, calling Set(update=false) to set it to `24`, but not notify update_fn() + validate_value = 0; + new_value = 0; + prev_value = 0; + + ConfigStatus status(SetReturn::SUCCESS, ""); + status = integer_config->Set("24", false); + + EXPECT_EQ(status.set_return, SetReturn::SUCCESS); + EXPECT_EQ(integer_value, 24); + EXPECT_EQ(integer_config->Get(), "24"); + + // expect change + EXPECT_EQ(validate_value, 24); + // expect not change + EXPECT_EQ(new_value, 0); + EXPECT_EQ(prev_value, 0); + } + + { + // now `integer_value` is `24`, calling Set(update=true) to set it to `36`, will notify update_fn() + validate_value = 0; + new_value = 0; + prev_value = 0; + + ConfigStatus status(SetReturn::SUCCESS, ""); + status = integer_config->Set("36", true); + + EXPECT_EQ(status.set_return, SetReturn::SUCCESS); + EXPECT_EQ(integer_value, 36); + EXPECT_EQ(integer_config->Get(), "36"); + + // expect change + EXPECT_EQ(validate_value, 36); + EXPECT_EQ(new_value, 36); + EXPECT_EQ(prev_value, 24); + } +} + +/* ValidFloatingConfigTest */ +class ValidFloatingConfigTest : public testing::Test, public Utils { + protected: +}; + +TEST_F(ValidFloatingConfigTest, init_load_update_get_test) { + auto validate = + std::bind(&ValidFloatingConfigTest::validate_fn, this, std::placeholders::_1, std::placeholders::_2); + auto update = std::bind(&ValidFloatingConfigTest::update_fn, this, std::placeholders::_1, std::placeholders::_2, + std::placeholders::_3); + + double floating_value = 0.0; + auto floating_config = CreateFloatingConfig("f", _MODIFIABLE, -10.0, 10.0, &floating_value, 3.14, validate, update); + ASSERT_FLOAT_EQ(floating_value, 0.0); + ASSERT_EQ(floating_config->modifiable_, true); + + floating_config->Init(); + ASSERT_FLOAT_EQ(floating_value, 3.14); + ASSERT_FLOAT_EQ(std::stof(floating_config->Get()), 3.14); + + { + // now `floating_value` is `3.14`, calling Set(update=false) to set it to `6.22`, but not notify update_fn() + validate_value = 0.0; + new_value = 0.0; + prev_value = 0.0; + + ConfigStatus status(SetReturn::SUCCESS, ""); + status = floating_config->Set("6.22", false); + + EXPECT_EQ(status.set_return, SetReturn::SUCCESS); + ASSERT_FLOAT_EQ(floating_value, 6.22); + ASSERT_FLOAT_EQ(std::stof(floating_config->Get()), 6.22); + + // expect change + ASSERT_FLOAT_EQ(validate_value, 6.22); + // expect not change + ASSERT_FLOAT_EQ(new_value, 0.0); + ASSERT_FLOAT_EQ(prev_value, 0.0); + } + + { + // now `integer_value` is `6.22`, calling Set(update=true) to set it to `-3.14`, will notify update_fn() + validate_value = 0.0; + new_value = 0.0; + prev_value = 0.0; + + ConfigStatus status(SetReturn::SUCCESS, ""); + status = floating_config->Set("-3.14", true); + + EXPECT_EQ(status.set_return, SetReturn::SUCCESS); + ASSERT_FLOAT_EQ(floating_value, -3.14); + ASSERT_FLOAT_EQ(std::stof(floating_config->Get()), -3.14); + + // expect change + ASSERT_FLOAT_EQ(validate_value, -3.14); + ASSERT_FLOAT_EQ(new_value, -3.14); + ASSERT_FLOAT_EQ(prev_value, 6.22); + } +} + +/* ValidEnumConfigTest */ +class ValidEnumConfigTest : public testing::Test, public Utils { + protected: +}; + +// template <> +// int64_t Utils::validate_value = 0; +// template <> +// int64_t Utils::new_value = 0; +// template <> +// int64_t Utils::prev_value = 0; + +TEST_F(ValidEnumConfigTest, init_load_update_get_test) { + auto validate = std::bind(&ValidEnumConfigTest::validate_fn, this, std::placeholders::_1, std::placeholders::_2); + auto update = std::bind(&ValidEnumConfigTest::update_fn, this, std::placeholders::_1, std::placeholders::_2, + std::placeholders::_3); + + configEnum testEnum{ + {"a", 1}, + {"b", 2}, + {"c", 3}, + }; + int64_t enum_value = 0; + auto enum_config = CreateEnumConfig("e", _MODIFIABLE, &testEnum, &enum_value, 1, validate, update); + ASSERT_EQ(enum_value, 0); + ASSERT_EQ(enum_config->modifiable_, true); + + enum_config->Init(); + ASSERT_EQ(enum_value, 1); + ASSERT_EQ(enum_config->Get(), "a"); + + { + // now `enum_value` is `a`, calling Set(update=false) to set it to `b`, but not notify update_fn() + validate_value = 0; + new_value = 0; + prev_value = 0; + + ConfigStatus status(SetReturn::SUCCESS, ""); + status = enum_config->Set("b", false); + + EXPECT_EQ(status.set_return, SetReturn::SUCCESS); + ASSERT_EQ(enum_value, 2); + ASSERT_EQ(enum_config->Get(), "b"); + + // expect change + ASSERT_EQ(validate_value, 2); + // expect not change + ASSERT_EQ(new_value, 0); + ASSERT_EQ(prev_value, 0); + } + + { + // now `enum_value` is `b`, calling Set(update=true) to set it to `c`, will notify update_fn() + validate_value = 0; + new_value = 0; + prev_value = 0; + + ConfigStatus status(SetReturn::SUCCESS, ""); + status = enum_config->Set("c", true); + + EXPECT_EQ(status.set_return, SetReturn::SUCCESS); + ASSERT_EQ(enum_value, 3); + ASSERT_EQ(enum_config->Get(), "c"); + + // expect change + ASSERT_EQ(validate_value, 3); + ASSERT_EQ(new_value, 3); + ASSERT_EQ(prev_value, 2); + } +} + +/* ValidSizeConfigTest */ +class ValidSizeConfigTest : public testing::Test, public Utils { + protected: +}; + +// template <> +// int64_t Utils::validate_value = 0; +// template <> +// int64_t Utils::new_value = 0; +// template <> +// int64_t Utils::prev_value = 0; + +TEST_F(ValidSizeConfigTest, init_load_update_get_test) { + auto validate = std::bind(&ValidSizeConfigTest::validate_fn, this, std::placeholders::_1, std::placeholders::_2); + auto update = std::bind(&ValidSizeConfigTest::update_fn, this, std::placeholders::_1, std::placeholders::_2, + std::placeholders::_3); + + int64_t size_value = 0; + auto size_config = CreateSizeConfig("i", _MODIFIABLE, 0, 1024 * 1024, &size_value, 1024, validate, update); + ASSERT_EQ(size_value, 0); + ASSERT_EQ(size_config->modifiable_, true); + + size_config->Init(); + ASSERT_EQ(size_value, 1024); + ASSERT_EQ(size_config->Get(), "1024"); + + { + // now `size_value` is `1024`, calling Set(update=false) to set it to `4096`, but not notify update_fn() + validate_value = 0; + new_value = 0; + prev_value = 0; + + ConfigStatus status(SetReturn::SUCCESS, ""); + status = size_config->Set("4096", false); + + EXPECT_EQ(status.set_return, SetReturn::SUCCESS); + EXPECT_EQ(size_value, 4096); + EXPECT_EQ(size_config->Get(), "4096"); + + // expect change + EXPECT_EQ(validate_value, 4096); + // expect not change + EXPECT_EQ(new_value, 0); + EXPECT_EQ(prev_value, 0); + } + + { + // now `size_value` is `4096`, calling Set(update=true) to set it to `256kb`, will notify update_fn() + validate_value = 0; + new_value = 0; + prev_value = 0; + + ConfigStatus status(SetReturn::SUCCESS, ""); + status = size_config->Set("256kb", true); + + EXPECT_EQ(status.set_return, SetReturn::SUCCESS); + EXPECT_EQ(size_value, 256 * 1024); + EXPECT_EQ(size_config->Get(), "262144"); + + // expect change + EXPECT_EQ(validate_value, 262144); + EXPECT_EQ(new_value, 262144); + EXPECT_EQ(prev_value, 4096); + } +} + +class ValidTest : public testing::Test { + protected: + configEnum family{ + {"ipv4", 1}, + {"ipv6", 2}, + }; + + struct Server { + bool running = true; + std::string hostname; + int64_t family = 0; + int64_t port = 0; + double uptime = 0; + }; + + Server server; + + protected: + void + SetUp() override { + config_list = { + CreateBoolConfig("running", true, &server.running, true, nullptr, nullptr), + CreateStringConfig("hostname", true, &server.hostname, "Magic", nullptr, nullptr), + CreateEnumConfig("socket_family", false, &family, &server.family, 2, nullptr, nullptr), + CreateIntegerConfig("port", true, 1024, 65535, &server.port, 19530, nullptr, nullptr), + CreateFloatingConfig("uptime", true, 0, 9999.0, &server.uptime, 0, nullptr, nullptr), + }; + } + + void + TearDown() override { + } + + protected: + void + Init() { + for (auto& config : config_list) { + config->Init(); + } + } + + void + Load() { + std::unordered_map config_file{ + {"running", "false"}, + }; + + for (auto& c : config_file) Set(c.first, c.second, false); + } + + void + Set(const std::string& name, const std::string& value, bool update = true) { + for (auto& config : config_list) { + if (std::strcmp(name.c_str(), config->name_) == 0) { + config->Set(value, update); + return; + } + } + throw "Config " + name + " not found."; + } + + std::string + Get(const std::string& name) { + for (auto& config : config_list) { + if (std::strcmp(name.c_str(), config->name_) == 0) { + return config->Get(); + } + } + throw "Config " + name + " not found."; + } + + std::vector config_list; +}; + +} // namespace milvus diff --git a/proxy/unittest/config/ConfigTypeTest2.cpp b/proxy/unittest/config/ConfigTypeTest2.cpp new file mode 100644 index 0000000000..42b903c7b1 --- /dev/null +++ b/proxy/unittest/config/ConfigTypeTest2.cpp @@ -0,0 +1,861 @@ +// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + +#include "config/ServerConfig.h" +#include "gtest/gtest.h" + +namespace milvus { + +#define _MODIFIABLE (true) +#define _IMMUTABLE (false) + +template +class Utils { + public: + static bool + valid_check_failure(const T& value, std::string& err) { + err = "Value is invalid."; + return false; + } + + static bool + update_failure(const T& value, const T& prev, std::string& err) { + err = "Update is failure"; + return false; + } + + static bool + valid_check_raise_string(const T& value, std::string& err) { + throw "string exception"; + } + + static bool + valid_check_raise_exception(const T& value, std::string& err) { + throw std::bad_alloc(); + } +}; + +/* BoolConfigTest */ +class BoolConfigTest : public testing::Test, public Utils {}; + +TEST_F(BoolConfigTest, nullptr_init_test) { + auto bool_config = CreateBoolConfig("b", _MODIFIABLE, nullptr, true, nullptr, nullptr); + ASSERT_DEATH(bool_config->Init(), "nullptr"); +} + +TEST_F(BoolConfigTest, init_twice_test) { + bool bool_value; + auto bool_config = CreateBoolConfig("b", _MODIFIABLE, &bool_value, true, nullptr, nullptr); + ASSERT_DEATH( + { + bool_config->Init(); + bool_config->Init(); + }, + "initialized"); +} + +TEST_F(BoolConfigTest, non_init_test) { + bool bool_value; + auto bool_config = CreateBoolConfig("b", _MODIFIABLE, &bool_value, true, nullptr, nullptr); + ASSERT_DEATH(bool_config->Set("false", true), "uninitialized"); + ASSERT_DEATH(bool_config->Get(), "uninitialized"); +} + +TEST_F(BoolConfigTest, immutable_update_test) { + bool bool_value = false; + auto bool_config = CreateBoolConfig("b", _IMMUTABLE, &bool_value, true, nullptr, nullptr); + bool_config->Init(); + ASSERT_EQ(bool_value, true); + + ConfigStatus status(SUCCESS, ""); + status = bool_config->Set("false", true); + ASSERT_EQ(status.set_return, SetReturn::IMMUTABLE); + ASSERT_EQ(bool_value, true); +} + +TEST_F(BoolConfigTest, set_invalid_value_test) { + bool bool_value; + auto bool_config = CreateBoolConfig("b", _MODIFIABLE, &bool_value, true, nullptr, nullptr); + bool_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = bool_config->Set(" false", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_EQ(bool_config->Get(), "true"); + + status = bool_config->Set("false ", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_EQ(bool_config->Get(), "true"); + + status = bool_config->Set("afalse", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_EQ(bool_config->Get(), "true"); + + status = bool_config->Set("falsee", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_EQ(bool_config->Get(), "true"); + + status = bool_config->Set("abcdefg", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_EQ(bool_config->Get(), "true"); + + status = bool_config->Set("123456", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_EQ(bool_config->Get(), "true"); + + status = bool_config->Set("", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_EQ(bool_config->Get(), "true"); +} + +TEST_F(BoolConfigTest, valid_check_fail_test) { + bool bool_value; + auto bool_config = CreateBoolConfig("b", _MODIFIABLE, &bool_value, true, valid_check_failure, nullptr); + bool_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = bool_config->Set("123456", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_EQ(bool_config->Get(), "true"); +} + +TEST_F(BoolConfigTest, update_fail_test) { + bool bool_value; + auto bool_config = CreateBoolConfig("b", _MODIFIABLE, &bool_value, true, nullptr, update_failure); + bool_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = bool_config->Set("false", true); + ASSERT_EQ(status.set_return, SetReturn::UPDATE_FAILURE); + ASSERT_EQ(bool_config->Get(), "true"); +} + +TEST_F(BoolConfigTest, string_exception_test) { + bool bool_value; + auto bool_config = CreateBoolConfig("b", _MODIFIABLE, &bool_value, true, valid_check_raise_string, nullptr); + bool_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = bool_config->Set("false", true); + ASSERT_EQ(status.set_return, SetReturn::UNEXPECTED); + ASSERT_EQ(bool_config->Get(), "true"); +} + +TEST_F(BoolConfigTest, standard_exception_test) { + bool bool_value; + auto bool_config = CreateBoolConfig("b", _MODIFIABLE, &bool_value, true, valid_check_raise_exception, nullptr); + bool_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = bool_config->Set("false", true); + ASSERT_EQ(status.set_return, SetReturn::EXCEPTION); + ASSERT_EQ(bool_config->Get(), "true"); +} + +/* StringConfigTest */ +class StringConfigTest : public testing::Test, public Utils {}; + +TEST_F(StringConfigTest, nullptr_init_test) { + auto string_config = CreateStringConfig("s", true, nullptr, "Magic", nullptr, nullptr); + ASSERT_DEATH(string_config->Init(), "nullptr"); +} + +TEST_F(StringConfigTest, init_twice_test) { + std::string string_value; + auto string_config = CreateStringConfig("s", _MODIFIABLE, &string_value, "Magic", nullptr, nullptr); + ASSERT_DEATH( + { + string_config->Init(); + string_config->Init(); + }, + "initialized"); +} + +TEST_F(StringConfigTest, non_init_test) { + std::string string_value; + auto string_config = CreateStringConfig("s", _MODIFIABLE, &string_value, "Magic", nullptr, nullptr); + ASSERT_DEATH(string_config->Set("value", true), "uninitialized"); + ASSERT_DEATH(string_config->Get(), "uninitialized"); +} + +TEST_F(StringConfigTest, immutable_update_test) { + std::string string_value; + auto string_config = CreateStringConfig("s", _IMMUTABLE, &string_value, "Magic", nullptr, nullptr); + string_config->Init(); + ASSERT_EQ(string_value, "Magic"); + + ConfigStatus status(SUCCESS, ""); + status = string_config->Set("cigaM", true); + ASSERT_EQ(status.set_return, SetReturn::IMMUTABLE); + ASSERT_EQ(string_value, "Magic"); +} + +TEST_F(StringConfigTest, valid_check_fail_test) { + std::string string_value; + auto string_config = CreateStringConfig("s", _MODIFIABLE, &string_value, "Magic", valid_check_failure, nullptr); + string_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = string_config->Set("123456", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_EQ(string_config->Get(), "Magic"); +} + +TEST_F(StringConfigTest, update_fail_test) { + std::string string_value; + auto string_config = CreateStringConfig("s", _MODIFIABLE, &string_value, "Magic", nullptr, update_failure); + string_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = string_config->Set("Mi", true); + ASSERT_EQ(status.set_return, SetReturn::UPDATE_FAILURE); + ASSERT_EQ(string_config->Get(), "Magic"); +} + +TEST_F(StringConfigTest, string_exception_test) { + std::string string_value; + auto string_config = + CreateStringConfig("s", _MODIFIABLE, &string_value, "Magic", valid_check_raise_string, nullptr); + string_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = string_config->Set("any", true); + ASSERT_EQ(status.set_return, SetReturn::UNEXPECTED); + ASSERT_EQ(string_config->Get(), "Magic"); +} + +TEST_F(StringConfigTest, standard_exception_test) { + std::string string_value; + auto string_config = + CreateStringConfig("s", _MODIFIABLE, &string_value, "Magic", valid_check_raise_exception, nullptr); + string_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = string_config->Set("any", true); + ASSERT_EQ(status.set_return, SetReturn::EXCEPTION); + ASSERT_EQ(string_config->Get(), "Magic"); +} + +/* IntegerConfigTest */ +class IntegerConfigTest : public testing::Test, public Utils {}; + +TEST_F(IntegerConfigTest, nullptr_init_test) { + auto integer_config = CreateIntegerConfig("i", true, 1024, 65535, nullptr, 19530, nullptr, nullptr); + ASSERT_DEATH(integer_config->Init(), "nullptr"); +} + +TEST_F(IntegerConfigTest, init_twice_test) { + int64_t integer_value; + auto integer_config = CreateIntegerConfig("i", true, 1024, 65535, &integer_value, 19530, nullptr, nullptr); + ASSERT_DEATH( + { + integer_config->Init(); + integer_config->Init(); + }, + "initialized"); +} + +TEST_F(IntegerConfigTest, non_init_test) { + int64_t integer_value; + auto integer_config = CreateIntegerConfig("i", true, 1024, 65535, &integer_value, 19530, nullptr, nullptr); + ASSERT_DEATH(integer_config->Set("42", true), "uninitialized"); + ASSERT_DEATH(integer_config->Get(), "uninitialized"); +} + +TEST_F(IntegerConfigTest, immutable_update_test) { + int64_t integer_value; + auto integer_config = CreateIntegerConfig("i", _IMMUTABLE, 1024, 65535, &integer_value, 19530, nullptr, nullptr); + integer_config->Init(); + ASSERT_EQ(integer_value, 19530); + + ConfigStatus status(SUCCESS, ""); + status = integer_config->Set("2048", true); + ASSERT_EQ(status.set_return, SetReturn::IMMUTABLE); + ASSERT_EQ(integer_value, 19530); +} + +TEST_F(IntegerConfigTest, set_invalid_value_test) { +} + +TEST_F(IntegerConfigTest, valid_check_fail_test) { + int64_t integer_value; + auto integer_config = + CreateIntegerConfig("i", true, 1024, 65535, &integer_value, 19530, valid_check_failure, nullptr); + integer_config->Init(); + ConfigStatus status(SUCCESS, ""); + status = integer_config->Set("2048", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_EQ(integer_config->Get(), "19530"); +} + +TEST_F(IntegerConfigTest, update_fail_test) { + int64_t integer_value; + auto integer_config = CreateIntegerConfig("i", true, 1024, 65535, &integer_value, 19530, nullptr, update_failure); + integer_config->Init(); + ConfigStatus status(SUCCESS, ""); + status = integer_config->Set("2048", true); + ASSERT_EQ(status.set_return, SetReturn::UPDATE_FAILURE); + ASSERT_EQ(integer_config->Get(), "19530"); +} + +TEST_F(IntegerConfigTest, string_exception_test) { + int64_t integer_value; + auto integer_config = + CreateIntegerConfig("i", true, 1024, 65535, &integer_value, 19530, valid_check_raise_string, nullptr); + integer_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = integer_config->Set("2048", true); + ASSERT_EQ(status.set_return, SetReturn::UNEXPECTED); + ASSERT_EQ(integer_config->Get(), "19530"); +} + +TEST_F(IntegerConfigTest, standard_exception_test) { + int64_t integer_value; + auto integer_config = + CreateIntegerConfig("i", true, 1024, 65535, &integer_value, 19530, valid_check_raise_exception, nullptr); + integer_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = integer_config->Set("2048", true); + ASSERT_EQ(status.set_return, SetReturn::EXCEPTION); + ASSERT_EQ(integer_config->Get(), "19530"); +} + +TEST_F(IntegerConfigTest, out_of_range_test) { + int64_t integer_value; + auto integer_config = CreateIntegerConfig("i", true, 1024, 65535, &integer_value, 19530, nullptr, nullptr); + integer_config->Init(); + + { + ConfigStatus status(SUCCESS, ""); + status = integer_config->Set("1023", true); + ASSERT_EQ(status.set_return, SetReturn::OUT_OF_RANGE); + ASSERT_EQ(integer_config->Get(), "19530"); + } + + { + ConfigStatus status(SUCCESS, ""); + status = integer_config->Set("65536", true); + ASSERT_EQ(status.set_return, SetReturn::OUT_OF_RANGE); + ASSERT_EQ(integer_config->Get(), "19530"); + } +} + +TEST_F(IntegerConfigTest, invalid_bound_test) { + int64_t integer_value; + auto integer_config = CreateIntegerConfig("i", true, 100, 0, &integer_value, 50, nullptr, nullptr); + integer_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = integer_config->Set("30", true); + ASSERT_EQ(status.set_return, SetReturn::OUT_OF_RANGE); + ASSERT_EQ(integer_config->Get(), "50"); +} + +TEST_F(IntegerConfigTest, invalid_format_test) { + int64_t integer_value; + auto integer_config = CreateIntegerConfig("i", true, 0, 100, &integer_value, 50, nullptr, nullptr); + integer_config->Init(); + + { + ConfigStatus status(SUCCESS, ""); + status = integer_config->Set("3-0", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_EQ(integer_config->Get(), "50"); + } + + { + ConfigStatus status(SUCCESS, ""); + status = integer_config->Set("30-", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_EQ(integer_config->Get(), "50"); + } + + { + ConfigStatus status(SUCCESS, ""); + status = integer_config->Set("+30", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_EQ(integer_config->Get(), "50"); + } + + { + ConfigStatus status(SUCCESS, ""); + status = integer_config->Set("a30", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_EQ(integer_config->Get(), "50"); + } + + { + ConfigStatus status(SUCCESS, ""); + status = integer_config->Set("30a", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_EQ(integer_config->Get(), "50"); + } + + { + ConfigStatus status(SUCCESS, ""); + status = integer_config->Set("3a0", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_EQ(integer_config->Get(), "50"); + } +} + +/* FloatingConfigTest */ +class FloatingConfigTest : public testing::Test, public Utils {}; + +TEST_F(FloatingConfigTest, nullptr_init_test) { + auto floating_config = CreateFloatingConfig("f", true, 1.0, 9.9, nullptr, 4.5, nullptr, nullptr); + ASSERT_DEATH(floating_config->Init(), "nullptr"); +} + +TEST_F(FloatingConfigTest, init_twice_test) { + double floating_value; + auto floating_config = CreateFloatingConfig("f", true, 1.0, 9.9, &floating_value, 4.5, nullptr, nullptr); + ASSERT_DEATH( + { + floating_config->Init(); + floating_config->Init(); + }, + "initialized"); +} + +TEST_F(FloatingConfigTest, non_init_test) { + double floating_value; + auto floating_config = CreateFloatingConfig("f", true, 1.0, 9.9, &floating_value, 4.5, nullptr, nullptr); + ASSERT_DEATH(floating_config->Set("3.14", true), "uninitialized"); + ASSERT_DEATH(floating_config->Get(), "uninitialized"); +} + +TEST_F(FloatingConfigTest, immutable_update_test) { + double floating_value; + auto floating_config = CreateFloatingConfig("f", _IMMUTABLE, 1.0, 9.9, &floating_value, 4.5, nullptr, nullptr); + floating_config->Init(); + ASSERT_FLOAT_EQ(floating_value, 4.5); + + ConfigStatus status(SUCCESS, ""); + status = floating_config->Set("1.23", true); + ASSERT_EQ(status.set_return, SetReturn::IMMUTABLE); + ASSERT_FLOAT_EQ(std::stof(floating_config->Get()), 4.5); +} + +TEST_F(FloatingConfigTest, set_invalid_value_test) { +} + +TEST_F(FloatingConfigTest, valid_check_fail_test) { + double floating_value; + auto floating_config = + CreateFloatingConfig("f", true, 1.0, 9.9, &floating_value, 4.5, valid_check_failure, nullptr); + floating_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = floating_config->Set("1.23", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_FLOAT_EQ(std::stof(floating_config->Get()), 4.5); +} + +TEST_F(FloatingConfigTest, update_fail_test) { + double floating_value; + auto floating_config = CreateFloatingConfig("f", true, 1.0, 9.9, &floating_value, 4.5, nullptr, update_failure); + floating_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = floating_config->Set("1.23", true); + ASSERT_EQ(status.set_return, SetReturn::UPDATE_FAILURE); + ASSERT_FLOAT_EQ(std::stof(floating_config->Get()), 4.5); +} + +TEST_F(FloatingConfigTest, string_exception_test) { + double floating_value; + auto floating_config = + CreateFloatingConfig("f", true, 1.0, 9.9, &floating_value, 4.5, valid_check_raise_string, nullptr); + floating_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = floating_config->Set("1.23", true); + ASSERT_EQ(status.set_return, SetReturn::UNEXPECTED); + ASSERT_FLOAT_EQ(std::stof(floating_config->Get()), 4.5); +} + +TEST_F(FloatingConfigTest, standard_exception_test) { + double floating_value; + auto floating_config = + CreateFloatingConfig("f", true, 1.0, 9.9, &floating_value, 4.5, valid_check_raise_exception, nullptr); + floating_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = floating_config->Set("1.23", true); + ASSERT_EQ(status.set_return, SetReturn::EXCEPTION); + ASSERT_FLOAT_EQ(std::stof(floating_config->Get()), 4.5); +} + +TEST_F(FloatingConfigTest, out_of_range_test) { + double floating_value; + auto floating_config = + CreateFloatingConfig("f", true, 1.0, 9.9, &floating_value, 4.5, valid_check_raise_exception, nullptr); + floating_config->Init(); + + { + ConfigStatus status(SUCCESS, ""); + status = floating_config->Set("0.99", true); + ASSERT_EQ(status.set_return, SetReturn::OUT_OF_RANGE); + ASSERT_FLOAT_EQ(std::stof(floating_config->Get()), 4.5); + } + + { + ConfigStatus status(SUCCESS, ""); + status = floating_config->Set("10.00", true); + ASSERT_EQ(status.set_return, SetReturn::OUT_OF_RANGE); + ASSERT_FLOAT_EQ(std::stof(floating_config->Get()), 4.5); + } +} + +TEST_F(FloatingConfigTest, invalid_bound_test) { + double floating_value; + auto floating_config = + CreateFloatingConfig("f", true, 9.9, 1.0, &floating_value, 4.5, valid_check_raise_exception, nullptr); + floating_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = floating_config->Set("6.0", true); + ASSERT_EQ(status.set_return, SetReturn::OUT_OF_RANGE); + ASSERT_FLOAT_EQ(std::stof(floating_config->Get()), 4.5); +} + +TEST_F(FloatingConfigTest, DISABLED_invalid_format_test) { + double floating_value; + auto floating_config = CreateFloatingConfig("f", true, 1.0, 100.0, &floating_value, 4.5, nullptr, nullptr); + floating_config->Init(); + + { + ConfigStatus status(SUCCESS, ""); + status = floating_config->Set("6.0.1", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_FLOAT_EQ(std::stof(floating_config->Get()), 4.5); + } + + { + ConfigStatus status(SUCCESS, ""); + status = floating_config->Set("6a0", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_FLOAT_EQ(std::stof(floating_config->Get()), 4.5); + } +} + +/* EnumConfigTest */ +class EnumConfigTest : public testing::Test, public Utils {}; + +TEST_F(EnumConfigTest, nullptr_init_test) { + configEnum testEnum{ + {"e", 1}, + }; + int64_t testEnumValue; + auto enum_config_1 = CreateEnumConfig("e", _MODIFIABLE, &testEnum, nullptr, 2, nullptr, nullptr); + ASSERT_DEATH(enum_config_1->Init(), "nullptr"); + + auto enum_config_2 = CreateEnumConfig("e", _MODIFIABLE, nullptr, &testEnumValue, 2, nullptr, nullptr); + ASSERT_DEATH(enum_config_2->Init(), "nullptr"); + + auto enum_config_3 = CreateEnumConfig("e", _MODIFIABLE, nullptr, nullptr, 2, nullptr, nullptr); + ASSERT_DEATH(enum_config_3->Init(), "nullptr"); +} + +TEST_F(EnumConfigTest, init_twice_test) { + configEnum testEnum{ + {"e", 1}, + }; + int64_t enum_value; + auto enum_config = CreateEnumConfig("e", _MODIFIABLE, &testEnum, &enum_value, 2, nullptr, nullptr); + ASSERT_DEATH( + { + enum_config->Init(); + enum_config->Init(); + }, + "initialized"); +} + +TEST_F(EnumConfigTest, non_init_test) { + configEnum testEnum{ + {"e", 1}, + }; + int64_t enum_value; + auto enum_config = CreateEnumConfig("e", _MODIFIABLE, &testEnum, &enum_value, 2, nullptr, nullptr); + ASSERT_DEATH(enum_config->Set("e", true), "uninitialized"); + ASSERT_DEATH(enum_config->Get(), "uninitialized"); +} + +TEST_F(EnumConfigTest, immutable_update_test) { + configEnum testEnum{ + {"a", 1}, + {"b", 2}, + {"c", 3}, + }; + int64_t enum_value = 0; + auto enum_config = CreateEnumConfig("e", _IMMUTABLE, &testEnum, &enum_value, 1, nullptr, nullptr); + enum_config->Init(); + ASSERT_EQ(enum_value, 1); + + ConfigStatus status(SUCCESS, ""); + status = enum_config->Set("b", true); + ASSERT_EQ(status.set_return, SetReturn::IMMUTABLE); + ASSERT_EQ(enum_value, 1); +} + +TEST_F(EnumConfigTest, set_invalid_value_check) { + configEnum testEnum{ + {"a", 1}, + }; + int64_t enum_value = 0; + auto enum_config = CreateEnumConfig("e", _MODIFIABLE, &testEnum, &enum_value, 1, nullptr, nullptr); + enum_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = enum_config->Set("b", true); + ASSERT_EQ(status.set_return, SetReturn::ENUM_VALUE_NOTFOUND); + ASSERT_EQ(enum_config->Get(), "a"); +} + +TEST_F(EnumConfigTest, empty_enum_test) { + configEnum testEnum{}; + int64_t enum_value; + auto enum_config = CreateEnumConfig("e", _MODIFIABLE, &testEnum, &enum_value, 2, nullptr, nullptr); + ASSERT_DEATH(enum_config->Init(), "empty"); +} + +TEST_F(EnumConfigTest, valid_check_fail_test) { + configEnum testEnum{ + {"a", 1}, + {"b", 2}, + {"c", 3}, + }; + int64_t enum_value; + auto enum_config = CreateEnumConfig("e", _MODIFIABLE, &testEnum, &enum_value, 1, valid_check_failure, nullptr); + enum_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = enum_config->Set("b", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_EQ(enum_config->Get(), "a"); +} + +TEST_F(EnumConfigTest, update_fail_test) { + configEnum testEnum{ + {"a", 1}, + {"b", 2}, + {"c", 3}, + }; + int64_t enum_value; + auto enum_config = CreateEnumConfig("e", _MODIFIABLE, &testEnum, &enum_value, 1, nullptr, update_failure); + enum_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = enum_config->Set("b", true); + ASSERT_EQ(status.set_return, SetReturn::UPDATE_FAILURE); + ASSERT_EQ(enum_config->Get(), "a"); +} + +TEST_F(EnumConfigTest, string_exception_test) { + configEnum testEnum{ + {"a", 1}, + {"b", 2}, + {"c", 3}, + }; + int64_t enum_value; + auto enum_config = CreateEnumConfig("e", _MODIFIABLE, &testEnum, &enum_value, 1, valid_check_raise_string, nullptr); + enum_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = enum_config->Set("b", true); + ASSERT_EQ(status.set_return, SetReturn::UNEXPECTED); + ASSERT_EQ(enum_config->Get(), "a"); +} + +TEST_F(EnumConfigTest, standard_exception_test) { + configEnum testEnum{ + {"a", 1}, + {"b", 2}, + {"c", 3}, + }; + int64_t enum_value; + auto enum_config = + CreateEnumConfig("e", _MODIFIABLE, &testEnum, &enum_value, 1, valid_check_raise_exception, nullptr); + enum_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = enum_config->Set("b", true); + ASSERT_EQ(status.set_return, SetReturn::EXCEPTION); + ASSERT_EQ(enum_config->Get(), "a"); +} + +/* SizeConfigTest */ +class SizeConfigTest : public testing::Test, public Utils {}; + +TEST_F(SizeConfigTest, nullptr_init_test) { + auto size_config = CreateSizeConfig("i", true, 1024, 4096, nullptr, 2048, nullptr, nullptr); + ASSERT_DEATH(size_config->Init(), "nullptr"); +} + +TEST_F(SizeConfigTest, init_twice_test) { + int64_t size_value; + auto size_config = CreateSizeConfig("i", true, 1024, 4096, &size_value, 2048, nullptr, nullptr); + ASSERT_DEATH( + { + size_config->Init(); + size_config->Init(); + }, + "initialized"); +} + +TEST_F(SizeConfigTest, non_init_test) { + int64_t size_value; + auto size_config = CreateSizeConfig("i", true, 1024, 4096, &size_value, 2048, nullptr, nullptr); + ASSERT_DEATH(size_config->Set("3000", true), "uninitialized"); + ASSERT_DEATH(size_config->Get(), "uninitialized"); +} + +TEST_F(SizeConfigTest, immutable_update_test) { + int64_t size_value = 0; + auto size_config = CreateSizeConfig("i", _IMMUTABLE, 1024, 4096, &size_value, 2048, nullptr, nullptr); + size_config->Init(); + ASSERT_EQ(size_value, 2048); + + ConfigStatus status(SUCCESS, ""); + status = size_config->Set("3000", true); + ASSERT_EQ(status.set_return, SetReturn::IMMUTABLE); + ASSERT_EQ(size_value, 2048); +} + +TEST_F(SizeConfigTest, set_invalid_value_test) { +} + +TEST_F(SizeConfigTest, valid_check_fail_test) { + int64_t size_value; + auto size_config = CreateSizeConfig("i", true, 1024, 4096, &size_value, 2048, valid_check_failure, nullptr); + size_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = size_config->Set("3000", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_EQ(size_config->Get(), "2048"); +} + +TEST_F(SizeConfigTest, update_fail_test) { + int64_t size_value; + auto size_config = CreateSizeConfig("i", true, 1024, 4096, &size_value, 2048, nullptr, update_failure); + size_config->Init(); + ConfigStatus status(SUCCESS, ""); + status = size_config->Set("3000", true); + ASSERT_EQ(status.set_return, SetReturn::UPDATE_FAILURE); + ASSERT_EQ(size_config->Get(), "2048"); +} + +TEST_F(SizeConfigTest, string_exception_test) { + int64_t size_value; + auto size_config = CreateSizeConfig("i", true, 1024, 4096, &size_value, 2048, valid_check_raise_string, nullptr); + size_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = size_config->Set("3000", true); + ASSERT_EQ(status.set_return, SetReturn::UNEXPECTED); + ASSERT_EQ(size_config->Get(), "2048"); +} + +TEST_F(SizeConfigTest, standard_exception_test) { + int64_t size_value; + auto size_config = CreateSizeConfig("i", true, 1024, 4096, &size_value, 2048, valid_check_raise_exception, nullptr); + size_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = size_config->Set("3000", true); + ASSERT_EQ(status.set_return, SetReturn::EXCEPTION); + ASSERT_EQ(size_config->Get(), "2048"); +} + +TEST_F(SizeConfigTest, out_of_range_test) { + int64_t size_value; + auto size_config = CreateSizeConfig("i", true, 1024, 4096, &size_value, 2048, nullptr, nullptr); + size_config->Init(); + + { + ConfigStatus status(SUCCESS, ""); + status = size_config->Set("1023", true); + ASSERT_EQ(status.set_return, SetReturn::OUT_OF_RANGE); + ASSERT_EQ(size_config->Get(), "2048"); + } + + { + ConfigStatus status(SUCCESS, ""); + status = size_config->Set("4097", true); + ASSERT_EQ(status.set_return, SetReturn::OUT_OF_RANGE); + ASSERT_EQ(size_config->Get(), "2048"); + } +} + +TEST_F(SizeConfigTest, negative_integer_test) { + int64_t size_value; + auto size_config = CreateSizeConfig("i", true, 1024, 4096, &size_value, 2048, nullptr, nullptr); + size_config->Init(); + ConfigStatus status(SUCCESS, ""); + status = size_config->Set("-3KB", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_EQ(size_config->Get(), "2048"); +} + +TEST_F(SizeConfigTest, invalid_bound_test) { + int64_t size_value; + auto size_config = CreateSizeConfig("i", true, 100, 0, &size_value, 50, nullptr, nullptr); + size_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = size_config->Set("30", true); + ASSERT_EQ(status.set_return, SetReturn::OUT_OF_RANGE); + ASSERT_EQ(size_config->Get(), "50"); +} + +TEST_F(SizeConfigTest, invalid_unit_test) { + int64_t size_value; + auto size_config = CreateSizeConfig("i", true, 1024, 4096, &size_value, 2048, nullptr, nullptr); + size_config->Init(); + + ConfigStatus status(SUCCESS, ""); + status = size_config->Set("1 TB", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_EQ(size_config->Get(), "2048"); +} + +TEST_F(SizeConfigTest, invalid_format_test) { + int64_t size_value; + auto size_config = CreateSizeConfig("i", true, 1024, 4096, &size_value, 2048, nullptr, nullptr); + size_config->Init(); + + { + ConfigStatus status(SUCCESS, ""); + status = size_config->Set("a10GB", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_EQ(size_config->Get(), "2048"); + } + + { + ConfigStatus status(SUCCESS, ""); + status = size_config->Set("200*0", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_EQ(size_config->Get(), "2048"); + } + + { + ConfigStatus status(SUCCESS, ""); + status = size_config->Set("10AB", true); + ASSERT_EQ(status.set_return, SetReturn::INVALID); + ASSERT_EQ(size_config->Get(), "2048"); + } +} + +} // namespace milvus diff --git a/proxy/unittest/config/ServerConfigTest.cpp b/proxy/unittest/config/ServerConfigTest.cpp new file mode 100644 index 0000000000..76e0f844a7 --- /dev/null +++ b/proxy/unittest/config/ServerConfigTest.cpp @@ -0,0 +1,19 @@ +// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + +#include + +#include "config/ServerConfig.h" + +TEST(ServerConfigTest, parse_invalid_devices) { + auto collections = milvus::ParseGPUDevices("gpu0,gpu1"); + ASSERT_EQ(collections.size(), 0); +} diff --git a/proxy/unittest/main.cpp b/proxy/unittest/main.cpp new file mode 100644 index 0000000000..197b6c0abe --- /dev/null +++ b/proxy/unittest/main.cpp @@ -0,0 +1,25 @@ +// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + +#include +#include +#include + +#include "easyloggingpp/easylogging++.h" + +INITIALIZE_EASYLOGGINGPP + +int +main(int argc, char** argv) { + fiu_init(0); + ::testing::InitGoogleTest(&argc, argv); + return RUN_ALL_TESTS(); +} diff --git a/proxy/src/test/message_client_test/CMakeLists.txt b/proxy/unittest/message_client/CMakeLists.txt similarity index 50% rename from proxy/src/test/message_client_test/CMakeLists.txt rename to proxy/unittest/message_client/CMakeLists.txt index fab2e31b21..b8af259a03 100644 --- a/proxy/src/test/message_client_test/CMakeLists.txt +++ b/proxy/unittest/message_client/CMakeLists.txt @@ -1,9 +1,22 @@ enable_testing() +set( GRPC_SERVICE_FILES + ${MILVUS_ENGINE_SRC}/grpc/gen-milvus/suvlim.grpc.pb.cc + ${MILVUS_ENGINE_SRC}/grpc/gen-milvus/suvlim.pb.cc +# ${MILVUS_ENGINE_SRC}/grpc/gen-status/status.grpc.pb.cc +# ${MILVUS_ENGINE_SRC}/grpc/gen-status/status.pb.cc +# ${MILVUS_ENGINE_SRC}/grpc/gen-milvus/hello.grpc.pb.cc +# ${MILVUS_ENGINE_SRC}/grpc/gen-milvus/hello.pb.cc +# ${MILVUS_ENGINE_SRC}/grpc/gen-milvus/master.grpc.pb.cc +# ${MILVUS_ENGINE_SRC}/grpc/gen-milvus/master.pb.cc + ) + + set(unittest_srcs unittest_entry.cpp consumer_test.cpp producer_test.cpp) -add_executable(test_pulsar ${unittest_srcs}) + +add_executable(test_pulsar ${unittest_srcs} ${GRPC_SERVICE_FILES}) target_include_directories(test_pulsar PUBLIC ${PROJECT_BINARY_DIR}/thirdparty/pulsar/pulsar-src/pulsar-client-cpp/include) target_include_directories(test_pulsar PUBLIC ${PROJECT_BINARY_DIR}/thirdparty/avro/avro-build/include) @@ -23,4 +36,4 @@ target_link_libraries(test_pulsar libboost_serialization.a ) -install(TARGETS test_pulsar DESTINATION unittest) \ No newline at end of file +install(TARGETS test_pulsar DESTINATION unittest) diff --git a/proxy/src/test/message_client_test/consumer_test.cpp b/proxy/unittest/message_client/consumer_test.cpp similarity index 93% rename from proxy/src/test/message_client_test/consumer_test.cpp rename to proxy/unittest/message_client/consumer_test.cpp index 1e2f7640c9..b27e59b12f 100644 --- a/proxy/src/test/message_client_test/consumer_test.cpp +++ b/proxy/unittest/message_client/consumer_test.cpp @@ -1,7 +1,6 @@ #include #include "message_client/Consumer.h" #include "grpc/gen-milvus/suvlim.pb.h" -#include "grpc/gen-status/status.pb.h" TEST(CLIENT_CPP, CONSUMER) { auto client= std::make_shared("pulsar://localhost:6650"); diff --git a/proxy/src/test/message_client_test/producer_test.cpp b/proxy/unittest/message_client/producer_test.cpp similarity index 97% rename from proxy/src/test/message_client_test/producer_test.cpp rename to proxy/unittest/message_client/producer_test.cpp index ac3bdc6cd0..b5499916ca 100644 --- a/proxy/src/test/message_client_test/producer_test.cpp +++ b/proxy/unittest/message_client/producer_test.cpp @@ -1,7 +1,6 @@ #include #include "message_client/Producer.h" #include "grpc/gen-milvus/suvlim.pb.h" -#include "grpc/gen-status/status.pb.h" TEST(CLIENT_CPP, Producer) { auto client= std::make_shared("pulsar://localhost:6650"); diff --git a/proxy/src/test/message_client_test/test_pulsar.cpp b/proxy/unittest/message_client/test_pulsar.cpp similarity index 98% rename from proxy/src/test/message_client_test/test_pulsar.cpp rename to proxy/unittest/message_client/test_pulsar.cpp index 3aa1989475..b07816d248 100644 --- a/proxy/src/test/message_client_test/test_pulsar.cpp +++ b/proxy/unittest/message_client/test_pulsar.cpp @@ -1,7 +1,6 @@ #include "thread" #include "pulsar/Client.h" #include -#include using namespace pulsar; using MyData = milvus::grpc::PMessage; diff --git a/proxy/src/test/message_client_test/unittest_entry.cpp b/proxy/unittest/message_client/unittest_entry.cpp similarity index 100% rename from proxy/src/test/message_client_test/unittest_entry.cpp rename to proxy/unittest/message_client/unittest_entry.cpp diff --git a/pulsar/client-cpp/CMakeLists.txt b/pulsar/client-cpp/CMakeLists.txt deleted file mode 100644 index dcb6f48841..0000000000 --- a/pulsar/client-cpp/CMakeLists.txt +++ /dev/null @@ -1,40 +0,0 @@ -project(CLIENT_CPP LANGUAGES CXX) - -set(CMAKE_POSITION_INDEPENDENT_CODE ON) - -cmake_minimum_required(VERSION 3.16) -set( CMAKE_CXX_STANDARD 17 ) -set( CMAKE_CXX_STANDARD_REQUIRED on ) -set (CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_CURRENT_SOURCE_DIR}/cmake") - -if (NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE) -endif () - -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -lprotobuf -fPIC -pthread -Wall -Wno-unused-variable -Wno-sign-compare -Werror") -set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake") -set(OUTDIR ${CMAKE_CURRENT_SOURCE_DIR}/build) -SET(EXECUTABLE_OUTPUT_PATH ${OUTDIR}) - -if( CMAKE_BUILD_TYPE STREQUAL "Release" ) - message(STATUS "Building Release version") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_ARROW_ARRAY_SIZE=1073741824") #1G -else() - message(STATUS "Building Debug version") - add_definitions(-DDEBUG_RENDER) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -g") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_ARROW_ARRAY_SIZE=16777216") #16M -endif() -if ("${MAKE}" STREQUAL "") - if (NOT MSVC) - find_program(MAKE make) - endif () -endif () - -set(CLIENT_SOURCE_DIR ${PROJECT_SOURCE_DIR}) -set(CLIENT_SRC ${PROJECT_SOURCE_DIR}/src) - -add_subdirectory(src) -add_subdirectory(unittest) -#add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/unittest) \ No newline at end of file diff --git a/pulsar/client-cpp/src/CMakeLists.txt b/pulsar/client-cpp/src/CMakeLists.txt deleted file mode 100644 index a9382beca3..0000000000 --- a/pulsar/client-cpp/src/CMakeLists.txt +++ /dev/null @@ -1,15 +0,0 @@ -set(src-cpp - Consumer.cpp - Producer.cpp - Client.cpp - pb/suvlim.pb.cc - pb/status.pb.cc) - -add_library(client_cpp SHARED - ${src-cpp} - ) - -target_link_libraries(client_cpp pulsar protobuf) - -install(TARGETS client_cpp - DESTINATION lib) \ No newline at end of file diff --git a/pulsar/client-cpp/src/Client.cpp b/pulsar/client-cpp/src/Client.cpp deleted file mode 100644 index 2d537c49cf..0000000000 --- a/pulsar/client-cpp/src/Client.cpp +++ /dev/null @@ -1,13 +0,0 @@ - -#include "Client.h" - -namespace milvus { -namespace message_client { - -MsgClient::MsgClient(const std::string &serviceUrl) : pulsar::Client(serviceUrl) {} - -MsgClient::MsgClient(const std::string &serviceUrl, const pulsar::ClientConfiguration &clientConfiguration) - : pulsar::Client(serviceUrl, clientConfiguration) {} - -} -} \ No newline at end of file diff --git a/pulsar/client-cpp/src/Client.h b/pulsar/client-cpp/src/Client.h deleted file mode 100644 index e5f945ca32..0000000000 --- a/pulsar/client-cpp/src/Client.h +++ /dev/null @@ -1,26 +0,0 @@ -#pragma once - -#include "pulsar/Client.h" -#include "pulsar/ClientConfiguration.h" - -namespace milvus { -namespace message_client { - -using Result = pulsar::Result; -using Message = pulsar::Message; - -class MsgClient : public pulsar::Client{ -public: - MsgClient(const std::string& serviceUrl); - MsgClient(const std::string& serviceUrl, const pulsar::ClientConfiguration& clientConfiguration); - - void set_client_id(int64_t id) { client_id_ = id; } - - int64_t get_client_id() { return client_id_; } - -private: - int64_t client_id_; -}; - -} -} \ No newline at end of file diff --git a/pulsar/client-cpp/src/Consumer.cpp b/pulsar/client-cpp/src/Consumer.cpp deleted file mode 100644 index 9e9a297fbf..0000000000 --- a/pulsar/client-cpp/src/Consumer.cpp +++ /dev/null @@ -1,69 +0,0 @@ - -#include "Consumer.h" -#include "pb/suvlim.pb.h" - -namespace milvus { -namespace message_client { - -MsgConsumer::MsgConsumer(std::shared_ptr &client, std::string subscription_name, const ConsumerConfiguration conf) - :client_(client), config_(conf), subscription_name_(subscription_name){} - -Result MsgConsumer::subscribe(const std::string &topic) { - return client_->subscribe(topic, subscription_name_, config_, consumer_); -} - -Result MsgConsumer::subscribe(const std::vector &topics) { - return client_->subscribe(topics, subscription_name_, config_, consumer_); -} - -Result MsgConsumer::unsubscribe() { - return consumer_.unsubscribe(); -} - -Result MsgConsumer::receive(Message &msg) { - return consumer_.receive(msg); -} - -std::shared_ptr MsgConsumer::receive_proto(ConsumerType consumer_type) { - throw std::exception(); -// Message msg; -// receive(msg); -// acknowledge(msg); -// switch (consumer_type) { -// case INSERT: { -// pb::InsertMsg insert_msg; -// insert_msg.ParseFromString(msg.getDataAsString()); -// auto message = std::make_shared(insert_msg); -// return std::shared_ptr(message); -// } -// case DELETE: { -// pb::DeleteMsg delete_msg; -// delete_msg.ParseFromString(msg.getDataAsString()); -// auto message = std::make_shared(delete_msg); -// return std::shared_ptr(message); -// } -// case SEARCH_RESULT: { -// pb::SearchResultMsg search_res_msg; -// search_res_msg.ParseFromString(msg.getDataAsString()); -// auto message = std::make_shared(search_res_msg); -// return std::shared_ptr(message); -// } -// case TEST: -// pb::TestData test_msg; -// test_msg.ParseFromString(msg.getDataAsString()); -// auto message = std::make_shared(test_msg); -// return std::shared_ptr(message); -// } -// return nullptr; -} - -Result MsgConsumer::close() { - return consumer_.close(); -} - -Result MsgConsumer::acknowledge(const Message &message) { - return consumer_.acknowledge(message); -} - -} -} diff --git a/pulsar/client-cpp/src/Consumer.h b/pulsar/client-cpp/src/Consumer.h deleted file mode 100644 index 36aa886fde..0000000000 --- a/pulsar/client-cpp/src/Consumer.h +++ /dev/null @@ -1,43 +0,0 @@ -#pragma once - -#include "pulsar/Consumer.h" -#include "Client.h" - -namespace milvus { -namespace message_client { - -enum ConsumerType { - INSERT = 0, - DELETE = 1, - SEARCH_RESULT = 2, - TEST = 3, -}; - -using Consumer = pulsar::Consumer; -using ConsumerConfiguration = pulsar::ConsumerConfiguration; - -class MsgConsumer{ -public: - MsgConsumer(std::shared_ptr &client, std::string consumer_name, - const pulsar::ConsumerConfiguration conf = ConsumerConfiguration()); - - Result subscribe(const std::string& topic); - Result subscribe(const std::vector& topics); - Result unsubscribe(); - Result receive(Message& msg); - std::shared_ptr receive_proto(ConsumerType consumer_type); - Result acknowledge(const Message& message); - Result close(); - - const Consumer& - consumer() const {return consumer_; } - -private: - Consumer consumer_; - std::shared_ptr client_; - ConsumerConfiguration config_; - std::string subscription_name_; -}; - -} -} \ No newline at end of file diff --git a/pulsar/client-cpp/src/Producer.cpp b/pulsar/client-cpp/src/Producer.cpp deleted file mode 100644 index 8e2650dc49..0000000000 --- a/pulsar/client-cpp/src/Producer.cpp +++ /dev/null @@ -1,50 +0,0 @@ - -#include "Producer.h" - -namespace milvus { -namespace message_client { - - MsgProducer::MsgProducer(std::shared_ptr &client, const std::string &topic, - const ProducerConfiguration& conf) : client_(client), config_(conf) { - createProducer(topic); - } - - Result MsgProducer::createProducer(const std::string &topic) { - return client_->createProducer(topic, producer_); - } - - Result MsgProducer::send(const Message &msg) { - return producer_.send(msg); - } - - Result MsgProducer::send(const std::string &msg) { - auto pulsar_msg = pulsar::MessageBuilder().setContent(msg).build(); - return send(pulsar_msg); - } - - Result MsgProducer::send(const milvus::grpc::InsertOrDeleteMsg &msg) { - auto msg_str = msg.SerializeAsString(); - return send(msg_str); - } - - Result MsgProducer::send(const milvus::grpc::SearchMsg &msg) { - auto msg_str = msg.SerializeAsString(); - return send(msg_str); - } - - Result MsgProducer::send(const milvus::grpc::GetEntityIDsParam &msg) { - auto msg_str = msg.SerializeAsString(); - return send(msg_str); - } - - Result MsgProducer::send(const milvus::grpc::TimeSyncMsg &msg) { - auto msg_str = msg.SerializeAsString(); - return send(msg_str); - } - - Result MsgProducer::close() { - return producer_.close(); - } - -} -} \ No newline at end of file diff --git a/pulsar/client-cpp/src/Producer.h b/pulsar/client-cpp/src/Producer.h deleted file mode 100644 index 1eb9522992..0000000000 --- a/pulsar/client-cpp/src/Producer.h +++ /dev/null @@ -1,37 +0,0 @@ -#pragma once - -#include "pulsar/Producer.h" -#include "Client.h" -#include "pb/suvlim.pb.h" - -namespace milvus { -namespace message_client { - -using Producer = pulsar::Producer; -using ProducerConfiguration = pulsar::ProducerConfiguration; - -class MsgProducer { - public: - MsgProducer(std::shared_ptr &client, const std::string &topic, - const ProducerConfiguration &conf = ProducerConfiguration()); - - Result createProducer(const std::string &topic); - Result send(const Message &msg); - Result send(const std::string &msg); - Result send(const milvus::grpc::InsertOrDeleteMsg &msg); - Result send(const milvus::grpc::SearchMsg &msg); - Result send(const milvus::grpc::GetEntityIDsParam &msg); - Result send(const milvus::grpc::TimeSyncMsg & msg); - Result close(); - - const Producer & - producer() const { return producer_; } - - private: - Producer producer_; - std::shared_ptr client_; - ProducerConfiguration config_; -}; - -} -} \ No newline at end of file diff --git a/pulsar/client-cpp/src/pb/build.sh b/pulsar/client-cpp/src/pb/build.sh deleted file mode 100755 index fa9b3f47f0..0000000000 --- a/pulsar/client-cpp/src/pb/build.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -protoc -I=./ --cpp_out=./ suvlim.proto \ No newline at end of file diff --git a/pulsar/client-cpp/src/pb/status.pb.cc b/pulsar/client-cpp/src/pb/status.pb.cc deleted file mode 100644 index 32aedec9d2..0000000000 --- a/pulsar/client-cpp/src/pb/status.pb.cc +++ /dev/null @@ -1,461 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: status.proto - -#include "status.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include -namespace milvus { -namespace grpc { -class StatusDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Status_default_instance_; -} // namespace grpc -} // namespace milvus -static void InitDefaultsscc_info_Status_status_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_Status_default_instance_; - new (ptr) ::milvus::grpc::Status(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::Status::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Status_status_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_Status_status_2eproto}, {}}; - -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_status_2eproto[1]; -static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_status_2eproto[1]; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_status_2eproto = nullptr; - -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_status_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Status, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Status, error_code_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Status, reason_), -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::milvus::grpc::Status)}, -}; - -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::milvus::grpc::_Status_default_instance_), -}; - -const char descriptor_table_protodef_status_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\014status.proto\022\013milvus.grpc\"D\n\006Status\022*\n" - "\nerror_code\030\001 \001(\0162\026.milvus.grpc.ErrorCod" - "e\022\016\n\006reason\030\002 \001(\t*\242\004\n\tErrorCode\022\013\n\007SUCCE" - "SS\020\000\022\024\n\020UNEXPECTED_ERROR\020\001\022\022\n\016CONNECT_FA" - "ILED\020\002\022\025\n\021PERMISSION_DENIED\020\003\022\031\n\025COLLECT" - "ION_NOT_EXISTS\020\004\022\024\n\020ILLEGAL_ARGUMENT\020\005\022\025" - "\n\021ILLEGAL_DIMENSION\020\007\022\026\n\022ILLEGAL_INDEX_T" - "YPE\020\010\022\033\n\027ILLEGAL_COLLECTION_NAME\020\t\022\020\n\014IL" - "LEGAL_TOPK\020\n\022\025\n\021ILLEGAL_ROWRECORD\020\013\022\025\n\021I" - "LLEGAL_VECTOR_ID\020\014\022\031\n\025ILLEGAL_SEARCH_RES" - "ULT\020\r\022\022\n\016FILE_NOT_FOUND\020\016\022\017\n\013META_FAILED" - "\020\017\022\020\n\014CACHE_FAILED\020\020\022\030\n\024CANNOT_CREATE_FO" - "LDER\020\021\022\026\n\022CANNOT_CREATE_FILE\020\022\022\030\n\024CANNOT" - "_DELETE_FOLDER\020\023\022\026\n\022CANNOT_DELETE_FILE\020\024" - "\022\025\n\021BUILD_INDEX_ERROR\020\025\022\021\n\rILLEGAL_NLIST" - "\020\026\022\027\n\023ILLEGAL_METRIC_TYPE\020\027\022\021\n\rOUT_OF_ME" - "MORY\020\030b\006proto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_status_2eproto_deps[1] = { -}; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_status_2eproto_sccs[1] = { - &scc_info_Status_status_2eproto.base, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_status_2eproto_once; -static bool descriptor_table_status_2eproto_initialized = false; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_status_2eproto = { - &descriptor_table_status_2eproto_initialized, descriptor_table_protodef_status_2eproto, "status.proto", 654, - &descriptor_table_status_2eproto_once, descriptor_table_status_2eproto_sccs, descriptor_table_status_2eproto_deps, 1, 0, - schemas, file_default_instances, TableStruct_status_2eproto::offsets, - file_level_metadata_status_2eproto, 1, file_level_enum_descriptors_status_2eproto, file_level_service_descriptors_status_2eproto, -}; - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_status_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_status_2eproto), true); -namespace milvus { -namespace grpc { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ErrorCode_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_status_2eproto); - return file_level_enum_descriptors_status_2eproto[0]; -} -bool ErrorCode_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 23: - case 24: - return true; - default: - return false; - } -} - - -// =================================================================== - -void Status::InitAsDefaultInstance() { -} -class Status::_Internal { - public: -}; - -Status::Status() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.Status) -} -Status::Status(const Status& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - reason_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.reason().empty()) { - reason_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.reason_); - } - error_code_ = from.error_code_; - // @@protoc_insertion_point(copy_constructor:milvus.grpc.Status) -} - -void Status::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Status_status_2eproto.base); - reason_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - error_code_ = 0; -} - -Status::~Status() { - // @@protoc_insertion_point(destructor:milvus.grpc.Status) - SharedDtor(); -} - -void Status::SharedDtor() { - reason_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void Status::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Status& Status::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Status_status_2eproto.base); - return *internal_default_instance(); -} - - -void Status::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.Status) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - reason_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - error_code_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Status::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.ErrorCode error_code = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - set_error_code(static_cast<::milvus::grpc::ErrorCode>(val)); - } else goto handle_unusual; - continue; - // string reason = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_reason(), ptr, ctx, "milvus.grpc.Status.reason"); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Status::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:milvus.grpc.Status) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.grpc.ErrorCode error_code = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_error_code(static_cast< ::milvus::grpc::ErrorCode >(value)); - } else { - goto handle_unusual; - } - break; - } - - // string reason = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_reason())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), static_cast(this->reason().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.Status.reason")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.grpc.Status) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.Status) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Status::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.Status) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.ErrorCode error_code = 1; - if (this->error_code() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( - 1, this->error_code(), output); - } - - // string reason = 2; - if (this->reason().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), static_cast(this->reason().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.Status.reason"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->reason(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.grpc.Status) -} - -::PROTOBUF_NAMESPACE_ID::uint8* Status::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Status) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.ErrorCode error_code = 1; - if (this->error_code() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->error_code(), target); - } - - // string reason = 2; - if (this->reason().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), static_cast(this->reason().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.Status.reason"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 2, this->reason(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Status) - return target; -} - -size_t Status::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.Status) - 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 reason = 2; - if (this->reason().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->reason()); - } - - // .milvus.grpc.ErrorCode error_code = 1; - if (this->error_code() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->error_code()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Status::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.Status) - GOOGLE_DCHECK_NE(&from, this); - const Status* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.Status) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Status) - MergeFrom(*source); - } -} - -void Status::MergeFrom(const Status& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.Status) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.reason().size() > 0) { - - reason_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.reason_); - } - if (from.error_code() != 0) { - set_error_code(from.error_code()); - } -} - -void Status::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Status) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Status::CopyFrom(const Status& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.Status) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Status::IsInitialized() const { - return true; -} - -void Status::InternalSwap(Status* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - reason_.Swap(&other->reason_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(error_code_, other->error_code_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { - return GetMetadataStatic(); -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace grpc -} // namespace milvus -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::milvus::grpc::Status* Arena::CreateMaybeMessage< ::milvus::grpc::Status >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::Status >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) -#include diff --git a/pulsar/client-cpp/src/pb/status.pb.h b/pulsar/client-cpp/src/pb/status.pb.h deleted file mode 100644 index 94be8740cc..0000000000 --- a/pulsar/client-cpp/src/pb/status.pb.h +++ /dev/null @@ -1,360 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: status.proto - -#ifndef GOOGLE_PROTOBUF_INCLUDED_status_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_status_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3009000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3009000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_status_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_status_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[1] - 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_status_2eproto; -namespace milvus { -namespace grpc { -class Status; -class StatusDefaultTypeInternal; -extern StatusDefaultTypeInternal _Status_default_instance_; -} // namespace grpc -} // namespace milvus -PROTOBUF_NAMESPACE_OPEN -template<> ::milvus::grpc::Status* Arena::CreateMaybeMessage<::milvus::grpc::Status>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace milvus { -namespace grpc { - -enum ErrorCode : int { - SUCCESS = 0, - UNEXPECTED_ERROR = 1, - CONNECT_FAILED = 2, - PERMISSION_DENIED = 3, - COLLECTION_NOT_EXISTS = 4, - ILLEGAL_ARGUMENT = 5, - ILLEGAL_DIMENSION = 7, - ILLEGAL_INDEX_TYPE = 8, - ILLEGAL_COLLECTION_NAME = 9, - ILLEGAL_TOPK = 10, - ILLEGAL_ROWRECORD = 11, - ILLEGAL_VECTOR_ID = 12, - ILLEGAL_SEARCH_RESULT = 13, - FILE_NOT_FOUND = 14, - META_FAILED = 15, - CACHE_FAILED = 16, - CANNOT_CREATE_FOLDER = 17, - CANNOT_CREATE_FILE = 18, - CANNOT_DELETE_FOLDER = 19, - CANNOT_DELETE_FILE = 20, - BUILD_INDEX_ERROR = 21, - ILLEGAL_NLIST = 22, - ILLEGAL_METRIC_TYPE = 23, - OUT_OF_MEMORY = 24, - ErrorCode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - ErrorCode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() -}; -bool ErrorCode_IsValid(int value); -constexpr ErrorCode ErrorCode_MIN = SUCCESS; -constexpr ErrorCode ErrorCode_MAX = OUT_OF_MEMORY; -constexpr int ErrorCode_ARRAYSIZE = ErrorCode_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ErrorCode_descriptor(); -template -inline const std::string& ErrorCode_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ErrorCode_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - ErrorCode_descriptor(), enum_t_value); -} -inline bool ErrorCode_Parse( - const std::string& name, ErrorCode* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - ErrorCode_descriptor(), name, value); -} -// =================================================================== - -class Status : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Status) */ { - public: - Status(); - virtual ~Status(); - - Status(const Status& from); - Status(Status&& from) noexcept - : Status() { - *this = ::std::move(from); - } - - inline Status& operator=(const Status& from) { - CopyFrom(from); - return *this; - } - inline Status& operator=(Status&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const Status& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Status* internal_default_instance() { - return reinterpret_cast( - &_Status_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(Status& a, Status& b) { - a.Swap(&b); - } - inline void Swap(Status* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Status* New() const final { - return CreateMaybeMessage(nullptr); - } - - Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const Status& from); - void MergeFrom(const Status& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Status* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.Status"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_status_2eproto); - return ::descriptor_table_status_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kReasonFieldNumber = 2, - kErrorCodeFieldNumber = 1, - }; - // string reason = 2; - void clear_reason(); - const std::string& reason() const; - void set_reason(const std::string& value); - void set_reason(std::string&& value); - void set_reason(const char* value); - void set_reason(const char* value, size_t size); - std::string* mutable_reason(); - std::string* release_reason(); - void set_allocated_reason(std::string* reason); - - // .milvus.grpc.ErrorCode error_code = 1; - void clear_error_code(); - ::milvus::grpc::ErrorCode error_code() const; - void set_error_code(::milvus::grpc::ErrorCode value); - - // @@protoc_insertion_point(class_scope:milvus.grpc.Status) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reason_; - int error_code_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_status_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// Status - -// .milvus.grpc.ErrorCode error_code = 1; -inline void Status::clear_error_code() { - error_code_ = 0; -} -inline ::milvus::grpc::ErrorCode Status::error_code() const { - // @@protoc_insertion_point(field_get:milvus.grpc.Status.error_code) - return static_cast< ::milvus::grpc::ErrorCode >(error_code_); -} -inline void Status::set_error_code(::milvus::grpc::ErrorCode value) { - - error_code_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.Status.error_code) -} - -// string reason = 2; -inline void Status::clear_reason() { - reason_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& Status::reason() const { - // @@protoc_insertion_point(field_get:milvus.grpc.Status.reason) - return reason_.GetNoArena(); -} -inline void Status::set_reason(const std::string& value) { - - reason_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.Status.reason) -} -inline void Status::set_reason(std::string&& value) { - - reason_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.Status.reason) -} -inline void Status::set_reason(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - reason_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.Status.reason) -} -inline void Status::set_reason(const char* value, size_t size) { - - reason_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.Status.reason) -} -inline std::string* Status::mutable_reason() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.Status.reason) - return reason_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* Status::release_reason() { - // @@protoc_insertion_point(field_release:milvus.grpc.Status.reason) - - return reason_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void Status::set_allocated_reason(std::string* reason) { - if (reason != nullptr) { - - } else { - - } - reason_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), reason); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Status.reason) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace grpc -} // namespace milvus - -PROTOBUF_NAMESPACE_OPEN - -template <> struct is_proto_enum< ::milvus::grpc::ErrorCode> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::milvus::grpc::ErrorCode>() { - return ::milvus::grpc::ErrorCode_descriptor(); -} - -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) - -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_status_2eproto diff --git a/pulsar/client-cpp/src/pb/status.proto b/pulsar/client-cpp/src/pb/status.proto deleted file mode 100644 index a4f018a5fc..0000000000 --- a/pulsar/client-cpp/src/pb/status.proto +++ /dev/null @@ -1,35 +0,0 @@ -syntax = "proto3"; - -package milvus.grpc; - -enum ErrorCode { - SUCCESS = 0; - UNEXPECTED_ERROR = 1; - CONNECT_FAILED = 2; - PERMISSION_DENIED = 3; - COLLECTION_NOT_EXISTS = 4; - ILLEGAL_ARGUMENT = 5; - ILLEGAL_DIMENSION = 7; - ILLEGAL_INDEX_TYPE = 8; - ILLEGAL_COLLECTION_NAME = 9; - ILLEGAL_TOPK = 10; - ILLEGAL_ROWRECORD = 11; - ILLEGAL_VECTOR_ID = 12; - ILLEGAL_SEARCH_RESULT = 13; - FILE_NOT_FOUND = 14; - META_FAILED = 15; - CACHE_FAILED = 16; - CANNOT_CREATE_FOLDER = 17; - CANNOT_CREATE_FILE = 18; - CANNOT_DELETE_FOLDER = 19; - CANNOT_DELETE_FILE = 20; - BUILD_INDEX_ERROR = 21; - ILLEGAL_NLIST = 22; - ILLEGAL_METRIC_TYPE = 23; - OUT_OF_MEMORY = 24; -} - -message Status { - ErrorCode error_code = 1; - string reason = 2; -} \ No newline at end of file diff --git a/pulsar/client-cpp/src/pb/suvlim.pb.cc b/pulsar/client-cpp/src/pb/suvlim.pb.cc deleted file mode 100644 index 0402105ebf..0000000000 --- a/pulsar/client-cpp/src/pb/suvlim.pb.cc +++ /dev/null @@ -1,14406 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: suvlim.proto - -#include "suvlim.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include -extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_BooleanQuery_suvlim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CompareExpr_suvlim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Entities_suvlim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FieldMeta_suvlim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KeyValuePair_suvlim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_Mapping_suvlim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_RangeQuery_suvlim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RowData_suvlim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Schema_suvlim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_SearchParam_suvlim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SegmentRecord_suvlim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_status_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Status_status_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TermQuery_suvlim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VectorFieldParam_suvlim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_VectorParam_suvlim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_VectorQuery_suvlim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_VectorRecord_suvlim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VectorRowRecord_suvlim_2eproto; -namespace milvus { -namespace grpc { -class KeyValuePairDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _KeyValuePair_default_instance_; -class CollectionNameDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _CollectionName_default_instance_; -class CollectionNameListDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _CollectionNameList_default_instance_; -class FieldNameDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _FieldName_default_instance_; -class MappingDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Mapping_default_instance_; -class MappingListDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _MappingList_default_instance_; -class PartitionParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PartitionParam_default_instance_; -class PartitionListDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PartitionList_default_instance_; -class VectorRowRecordDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _VectorRowRecord_default_instance_; -class EntityIdsDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _EntityIds_default_instance_; -class VectorRecordDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _VectorRecord_default_instance_; -class VectorParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _VectorParam_default_instance_; -class FieldMetaDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _FieldMeta_default_instance_; -class SchemaDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Schema_default_instance_; -class RowDataDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _RowData_default_instance_; -class InsertParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _InsertParam_default_instance_; -class SearchParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SearchParam_default_instance_; -class SearchInSegmentParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SearchInSegmentParam_default_instance_; -class EntitiesDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Entities_default_instance_; -class QueryResultDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _QueryResult_default_instance_; -class StringReplyDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _StringReply_default_instance_; -class BoolReplyDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _BoolReply_default_instance_; -class CollectionRowCountDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _CollectionRowCount_default_instance_; -class CommandDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Command_default_instance_; -class IndexParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _IndexParam_default_instance_; -class FlushParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _FlushParam_default_instance_; -class CompactParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _CompactParam_default_instance_; -class DeleteByIDParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _DeleteByIDParam_default_instance_; -class CollectionInfoDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _CollectionInfo_default_instance_; -class GetEntityIDsParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetEntityIDsParam_default_instance_; -class EntityIdentityDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _EntityIdentity_default_instance_; -class VectorFieldParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _VectorFieldParam_default_instance_; -class FieldTypeDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; - int data_type_; - const ::milvus::grpc::VectorFieldParam* vector_param_; -} _FieldType_default_instance_; -class FieldParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _FieldParam_default_instance_; -class VectorFieldRecordDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _VectorFieldRecord_default_instance_; -class TermQueryDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _TermQuery_default_instance_; -class CompareExprDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _CompareExpr_default_instance_; -class RangeQueryDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _RangeQuery_default_instance_; -class VectorQueryDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _VectorQuery_default_instance_; -class BooleanQueryDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _BooleanQuery_default_instance_; -class GeneralQueryDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; - const ::milvus::grpc::BooleanQuery* boolean_query_; - const ::milvus::grpc::TermQuery* term_query_; - const ::milvus::grpc::RangeQuery* range_query_; - const ::milvus::grpc::VectorQuery* vector_query_; -} _GeneralQuery_default_instance_; -class SearchParamPBDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SearchParamPB_default_instance_; -class InsertOrDeleteMsgDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _InsertOrDeleteMsg_default_instance_; -class SearchMsgDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SearchMsg_default_instance_; -class TimeSyncMsgDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _TimeSyncMsg_default_instance_; -class SegmentRecordDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SegmentRecord_default_instance_; -class Key2SegMsgDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Key2SegMsg_default_instance_; -} // namespace grpc -} // namespace milvus -static void InitDefaultsscc_info_BoolReply_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_BoolReply_default_instance_; - new (ptr) ::milvus::grpc::BoolReply(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::BoolReply::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_BoolReply_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_BoolReply_suvlim_2eproto}, { - &scc_info_Status_status_2eproto.base,}}; - -static void InitDefaultsscc_info_BooleanQuery_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_BooleanQuery_default_instance_; - new (ptr) ::milvus::grpc::BooleanQuery(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - { - void* ptr = &::milvus::grpc::_GeneralQuery_default_instance_; - new (ptr) ::milvus::grpc::GeneralQuery(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::BooleanQuery::InitAsDefaultInstance(); - ::milvus::grpc::GeneralQuery::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_BooleanQuery_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, 0, InitDefaultsscc_info_BooleanQuery_suvlim_2eproto}, { - &scc_info_TermQuery_suvlim_2eproto.base, - &scc_info_RangeQuery_suvlim_2eproto.base, - &scc_info_VectorQuery_suvlim_2eproto.base,}}; - -static void InitDefaultsscc_info_CollectionInfo_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_CollectionInfo_default_instance_; - new (ptr) ::milvus::grpc::CollectionInfo(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::CollectionInfo::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionInfo_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_CollectionInfo_suvlim_2eproto}, { - &scc_info_Status_status_2eproto.base,}}; - -static void InitDefaultsscc_info_CollectionName_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_CollectionName_default_instance_; - new (ptr) ::milvus::grpc::CollectionName(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::CollectionName::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CollectionName_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CollectionName_suvlim_2eproto}, {}}; - -static void InitDefaultsscc_info_CollectionNameList_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_CollectionNameList_default_instance_; - new (ptr) ::milvus::grpc::CollectionNameList(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::CollectionNameList::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionNameList_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_CollectionNameList_suvlim_2eproto}, { - &scc_info_Status_status_2eproto.base,}}; - -static void InitDefaultsscc_info_CollectionRowCount_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_CollectionRowCount_default_instance_; - new (ptr) ::milvus::grpc::CollectionRowCount(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::CollectionRowCount::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionRowCount_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_CollectionRowCount_suvlim_2eproto}, { - &scc_info_Status_status_2eproto.base,}}; - -static void InitDefaultsscc_info_Command_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_Command_default_instance_; - new (ptr) ::milvus::grpc::Command(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::Command::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Command_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Command_suvlim_2eproto}, {}}; - -static void InitDefaultsscc_info_CompactParam_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_CompactParam_default_instance_; - new (ptr) ::milvus::grpc::CompactParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::CompactParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CompactParam_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CompactParam_suvlim_2eproto}, {}}; - -static void InitDefaultsscc_info_CompareExpr_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_CompareExpr_default_instance_; - new (ptr) ::milvus::grpc::CompareExpr(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::CompareExpr::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CompareExpr_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CompareExpr_suvlim_2eproto}, {}}; - -static void InitDefaultsscc_info_DeleteByIDParam_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_DeleteByIDParam_default_instance_; - new (ptr) ::milvus::grpc::DeleteByIDParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::DeleteByIDParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DeleteByIDParam_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_DeleteByIDParam_suvlim_2eproto}, {}}; - -static void InitDefaultsscc_info_Entities_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_Entities_default_instance_; - new (ptr) ::milvus::grpc::Entities(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::Entities::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Entities_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_Entities_suvlim_2eproto}, { - &scc_info_Status_status_2eproto.base, - &scc_info_RowData_suvlim_2eproto.base,}}; - -static void InitDefaultsscc_info_EntityIdentity_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_EntityIdentity_default_instance_; - new (ptr) ::milvus::grpc::EntityIdentity(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::EntityIdentity::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EntityIdentity_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_EntityIdentity_suvlim_2eproto}, {}}; - -static void InitDefaultsscc_info_EntityIds_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_EntityIds_default_instance_; - new (ptr) ::milvus::grpc::EntityIds(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::EntityIds::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EntityIds_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_EntityIds_suvlim_2eproto}, { - &scc_info_Status_status_2eproto.base,}}; - -static void InitDefaultsscc_info_FieldMeta_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_FieldMeta_default_instance_; - new (ptr) ::milvus::grpc::FieldMeta(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::FieldMeta::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FieldMeta_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_FieldMeta_suvlim_2eproto}, {}}; - -static void InitDefaultsscc_info_FieldName_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_FieldName_default_instance_; - new (ptr) ::milvus::grpc::FieldName(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::FieldName::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FieldName_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_FieldName_suvlim_2eproto}, {}}; - -static void InitDefaultsscc_info_FieldParam_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_FieldParam_default_instance_; - new (ptr) ::milvus::grpc::FieldParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::FieldParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_FieldParam_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_FieldParam_suvlim_2eproto}, { - &scc_info_KeyValuePair_suvlim_2eproto.base,}}; - -static void InitDefaultsscc_info_FieldType_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_FieldType_default_instance_; - new (ptr) ::milvus::grpc::FieldType(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::FieldType::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_FieldType_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_FieldType_suvlim_2eproto}, { - &scc_info_VectorFieldParam_suvlim_2eproto.base,}}; - -static void InitDefaultsscc_info_FlushParam_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_FlushParam_default_instance_; - new (ptr) ::milvus::grpc::FlushParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::FlushParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FlushParam_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_FlushParam_suvlim_2eproto}, {}}; - -static void InitDefaultsscc_info_GetEntityIDsParam_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_GetEntityIDsParam_default_instance_; - new (ptr) ::milvus::grpc::GetEntityIDsParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::GetEntityIDsParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetEntityIDsParam_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetEntityIDsParam_suvlim_2eproto}, {}}; - -static void InitDefaultsscc_info_IndexParam_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_IndexParam_default_instance_; - new (ptr) ::milvus::grpc::IndexParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::IndexParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_IndexParam_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_IndexParam_suvlim_2eproto}, { - &scc_info_Status_status_2eproto.base, - &scc_info_KeyValuePair_suvlim_2eproto.base,}}; - -static void InitDefaultsscc_info_InsertOrDeleteMsg_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_InsertOrDeleteMsg_default_instance_; - new (ptr) ::milvus::grpc::InsertOrDeleteMsg(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::InsertOrDeleteMsg::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_InsertOrDeleteMsg_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_InsertOrDeleteMsg_suvlim_2eproto}, { - &scc_info_RowData_suvlim_2eproto.base, - &scc_info_KeyValuePair_suvlim_2eproto.base,}}; - -static void InitDefaultsscc_info_InsertParam_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_InsertParam_default_instance_; - new (ptr) ::milvus::grpc::InsertParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::InsertParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_InsertParam_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, 0, InitDefaultsscc_info_InsertParam_suvlim_2eproto}, { - &scc_info_Schema_suvlim_2eproto.base, - &scc_info_RowData_suvlim_2eproto.base, - &scc_info_KeyValuePair_suvlim_2eproto.base,}}; - -static void InitDefaultsscc_info_Key2SegMsg_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_Key2SegMsg_default_instance_; - new (ptr) ::milvus::grpc::Key2SegMsg(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::Key2SegMsg::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Key2SegMsg_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Key2SegMsg_suvlim_2eproto}, { - &scc_info_SegmentRecord_suvlim_2eproto.base,}}; - -static void InitDefaultsscc_info_KeyValuePair_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_KeyValuePair_default_instance_; - new (ptr) ::milvus::grpc::KeyValuePair(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::KeyValuePair::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KeyValuePair_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_KeyValuePair_suvlim_2eproto}, {}}; - -static void InitDefaultsscc_info_Mapping_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_Mapping_default_instance_; - new (ptr) ::milvus::grpc::Mapping(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::Mapping::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_Mapping_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, 0, InitDefaultsscc_info_Mapping_suvlim_2eproto}, { - &scc_info_Status_status_2eproto.base, - &scc_info_Schema_suvlim_2eproto.base, - &scc_info_KeyValuePair_suvlim_2eproto.base,}}; - -static void InitDefaultsscc_info_MappingList_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_MappingList_default_instance_; - new (ptr) ::milvus::grpc::MappingList(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::MappingList::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_MappingList_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_MappingList_suvlim_2eproto}, { - &scc_info_Status_status_2eproto.base, - &scc_info_Mapping_suvlim_2eproto.base,}}; - -static void InitDefaultsscc_info_PartitionList_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_PartitionList_default_instance_; - new (ptr) ::milvus::grpc::PartitionList(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::PartitionList::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PartitionList_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PartitionList_suvlim_2eproto}, { - &scc_info_Status_status_2eproto.base,}}; - -static void InitDefaultsscc_info_PartitionParam_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_PartitionParam_default_instance_; - new (ptr) ::milvus::grpc::PartitionParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::PartitionParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PartitionParam_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PartitionParam_suvlim_2eproto}, {}}; - -static void InitDefaultsscc_info_QueryResult_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_QueryResult_default_instance_; - new (ptr) ::milvus::grpc::QueryResult(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::QueryResult::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_QueryResult_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, 0, InitDefaultsscc_info_QueryResult_suvlim_2eproto}, { - &scc_info_Status_status_2eproto.base, - &scc_info_Entities_suvlim_2eproto.base, - &scc_info_KeyValuePair_suvlim_2eproto.base,}}; - -static void InitDefaultsscc_info_RangeQuery_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_RangeQuery_default_instance_; - new (ptr) ::milvus::grpc::RangeQuery(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::RangeQuery::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_RangeQuery_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_RangeQuery_suvlim_2eproto}, { - &scc_info_CompareExpr_suvlim_2eproto.base, - &scc_info_KeyValuePair_suvlim_2eproto.base,}}; - -static void InitDefaultsscc_info_RowData_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_RowData_default_instance_; - new (ptr) ::milvus::grpc::RowData(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::RowData::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RowData_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_RowData_suvlim_2eproto}, {}}; - -static void InitDefaultsscc_info_Schema_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_Schema_default_instance_; - new (ptr) ::milvus::grpc::Schema(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::Schema::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Schema_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Schema_suvlim_2eproto}, { - &scc_info_FieldMeta_suvlim_2eproto.base,}}; - -static void InitDefaultsscc_info_SearchInSegmentParam_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_SearchInSegmentParam_default_instance_; - new (ptr) ::milvus::grpc::SearchInSegmentParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::SearchInSegmentParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SearchInSegmentParam_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_SearchInSegmentParam_suvlim_2eproto}, { - &scc_info_SearchParam_suvlim_2eproto.base,}}; - -static void InitDefaultsscc_info_SearchMsg_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_SearchMsg_default_instance_; - new (ptr) ::milvus::grpc::SearchMsg(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::SearchMsg::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_SearchMsg_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_SearchMsg_suvlim_2eproto}, { - &scc_info_VectorRowRecord_suvlim_2eproto.base, - &scc_info_KeyValuePair_suvlim_2eproto.base,}}; - -static void InitDefaultsscc_info_SearchParam_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_SearchParam_default_instance_; - new (ptr) ::milvus::grpc::SearchParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::SearchParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_SearchParam_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_SearchParam_suvlim_2eproto}, { - &scc_info_VectorParam_suvlim_2eproto.base, - &scc_info_KeyValuePair_suvlim_2eproto.base,}}; - -static void InitDefaultsscc_info_SearchParamPB_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_SearchParamPB_default_instance_; - new (ptr) ::milvus::grpc::SearchParamPB(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::SearchParamPB::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_SearchParamPB_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_SearchParamPB_suvlim_2eproto}, { - &scc_info_BooleanQuery_suvlim_2eproto.base, - &scc_info_KeyValuePair_suvlim_2eproto.base,}}; - -static void InitDefaultsscc_info_SegmentRecord_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_SegmentRecord_default_instance_; - new (ptr) ::milvus::grpc::SegmentRecord(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::SegmentRecord::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SegmentRecord_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SegmentRecord_suvlim_2eproto}, {}}; - -static void InitDefaultsscc_info_StringReply_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_StringReply_default_instance_; - new (ptr) ::milvus::grpc::StringReply(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::StringReply::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_StringReply_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_StringReply_suvlim_2eproto}, { - &scc_info_Status_status_2eproto.base,}}; - -static void InitDefaultsscc_info_TermQuery_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_TermQuery_default_instance_; - new (ptr) ::milvus::grpc::TermQuery(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::TermQuery::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TermQuery_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_TermQuery_suvlim_2eproto}, { - &scc_info_KeyValuePair_suvlim_2eproto.base,}}; - -static void InitDefaultsscc_info_TimeSyncMsg_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_TimeSyncMsg_default_instance_; - new (ptr) ::milvus::grpc::TimeSyncMsg(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::TimeSyncMsg::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TimeSyncMsg_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_TimeSyncMsg_suvlim_2eproto}, {}}; - -static void InitDefaultsscc_info_VectorFieldParam_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_VectorFieldParam_default_instance_; - new (ptr) ::milvus::grpc::VectorFieldParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::VectorFieldParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VectorFieldParam_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_VectorFieldParam_suvlim_2eproto}, {}}; - -static void InitDefaultsscc_info_VectorFieldRecord_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_VectorFieldRecord_default_instance_; - new (ptr) ::milvus::grpc::VectorFieldRecord(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::VectorFieldRecord::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_VectorFieldRecord_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_VectorFieldRecord_suvlim_2eproto}, { - &scc_info_VectorRowRecord_suvlim_2eproto.base,}}; - -static void InitDefaultsscc_info_VectorParam_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_VectorParam_default_instance_; - new (ptr) ::milvus::grpc::VectorParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::VectorParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_VectorParam_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_VectorParam_suvlim_2eproto}, { - &scc_info_VectorRecord_suvlim_2eproto.base,}}; - -static void InitDefaultsscc_info_VectorQuery_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_VectorQuery_default_instance_; - new (ptr) ::milvus::grpc::VectorQuery(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::VectorQuery::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_VectorQuery_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_VectorQuery_suvlim_2eproto}, { - &scc_info_VectorRowRecord_suvlim_2eproto.base, - &scc_info_KeyValuePair_suvlim_2eproto.base,}}; - -static void InitDefaultsscc_info_VectorRecord_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_VectorRecord_default_instance_; - new (ptr) ::milvus::grpc::VectorRecord(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::VectorRecord::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_VectorRecord_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_VectorRecord_suvlim_2eproto}, { - &scc_info_VectorRowRecord_suvlim_2eproto.base,}}; - -static void InitDefaultsscc_info_VectorRowRecord_suvlim_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_VectorRowRecord_default_instance_; - new (ptr) ::milvus::grpc::VectorRowRecord(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::VectorRowRecord::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VectorRowRecord_suvlim_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_VectorRowRecord_suvlim_2eproto}, {}}; - -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_suvlim_2eproto[47]; -static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_suvlim_2eproto[5]; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_suvlim_2eproto = nullptr; - -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_suvlim_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::KeyValuePair, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::KeyValuePair, key_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::KeyValuePair, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionName, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionName, collection_name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionNameList, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionNameList, status_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionNameList, collection_names_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldName, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldName, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldName, field_name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Mapping, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Mapping, status_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Mapping, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Mapping, schema_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Mapping, extra_params_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::MappingList, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::MappingList, status_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::MappingList, mapping_list_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::PartitionParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::PartitionParam, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::PartitionParam, tag_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::PartitionList, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::PartitionList, status_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::PartitionList, partition_tag_array_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorRowRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorRowRecord, float_data_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorRowRecord, binary_data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::EntityIds, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::EntityIds, status_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::EntityIds, entity_id_array_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorRecord, records_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorParam, json_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorParam, row_record_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldMeta, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldMeta, field_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldMeta, type_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldMeta, dim_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Schema, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Schema, field_metas_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::RowData, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::RowData, blob_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertParam, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertParam, schema_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertParam, rows_data_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertParam, entity_id_array_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertParam, partition_tag_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertParam, extra_params_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParam, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParam, vector_param_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParam, dsl_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParam, partition_tag_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParam, extra_params_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchInSegmentParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchInSegmentParam, file_id_array_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchInSegmentParam, search_param_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Entities, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Entities, status_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Entities, ids_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Entities, valid_row_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Entities, rows_data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::QueryResult, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::QueryResult, status_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::QueryResult, entities_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::QueryResult, row_num_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::QueryResult, scores_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::QueryResult, distances_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::QueryResult, extra_params_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::StringReply, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::StringReply, status_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::StringReply, string_reply_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::BoolReply, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::BoolReply, status_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::BoolReply, bool_reply_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionRowCount, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionRowCount, status_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionRowCount, collection_row_count_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Command, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Command, cmd_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::IndexParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::IndexParam, status_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::IndexParam, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::IndexParam, field_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::IndexParam, index_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::IndexParam, extra_params_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FlushParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FlushParam, collection_name_array_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CompactParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CompactParam, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CompactParam, threshold_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::DeleteByIDParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::DeleteByIDParam, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::DeleteByIDParam, id_array_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionInfo, status_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionInfo, json_info_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::GetEntityIDsParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::GetEntityIDsParam, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::GetEntityIDsParam, segment_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::EntityIdentity, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::EntityIdentity, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::EntityIdentity, id_array_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::EntityIdentity, field_names_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorFieldParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorFieldParam, dimension_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldType, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldType, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::milvus::grpc::FieldTypeDefaultTypeInternal, data_type_), - offsetof(::milvus::grpc::FieldTypeDefaultTypeInternal, vector_param_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldType, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldParam, id_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldParam, name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldParam, type_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldParam, index_params_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldParam, extra_params_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorFieldRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorFieldRecord, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::TermQuery, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::TermQuery, field_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::TermQuery, int_value_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::TermQuery, double_value_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::TermQuery, value_num_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::TermQuery, boost_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::TermQuery, extra_params_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CompareExpr, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CompareExpr, operator__), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::CompareExpr, operand_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::RangeQuery, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::RangeQuery, field_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::RangeQuery, operand_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::RangeQuery, boost_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::RangeQuery, extra_params_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorQuery, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorQuery, field_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorQuery, query_boost_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorQuery, records_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorQuery, topk_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorQuery, extra_params_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::BooleanQuery, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::BooleanQuery, occur_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::BooleanQuery, general_query_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::GeneralQuery, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::GeneralQuery, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::milvus::grpc::GeneralQueryDefaultTypeInternal, boolean_query_), - offsetof(::milvus::grpc::GeneralQueryDefaultTypeInternal, term_query_), - offsetof(::milvus::grpc::GeneralQueryDefaultTypeInternal, range_query_), - offsetof(::milvus::grpc::GeneralQueryDefaultTypeInternal, vector_query_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::GeneralQuery, query_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParamPB, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParamPB, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParamPB, partition_tag_array_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParamPB, general_query_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParamPB, extra_params_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertOrDeleteMsg, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertOrDeleteMsg, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertOrDeleteMsg, rows_data_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertOrDeleteMsg, uid_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertOrDeleteMsg, partition_tag_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertOrDeleteMsg, timestamp_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertOrDeleteMsg, segment_id_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertOrDeleteMsg, channel_id_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertOrDeleteMsg, op_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertOrDeleteMsg, client_id_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertOrDeleteMsg, extra_params_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchMsg, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchMsg, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchMsg, records_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchMsg, partition_tag_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchMsg, uid_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchMsg, timestamp_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchMsg, client_id_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchMsg, extra_params_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::TimeSyncMsg, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::TimeSyncMsg, peer_id_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::TimeSyncMsg, timestamp_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::TimeSyncMsg, sync_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SegmentRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SegmentRecord, uid_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SegmentRecord, segment_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Key2SegMsg, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Key2SegMsg, client_id_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::Key2SegMsg, records_), -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::milvus::grpc::KeyValuePair)}, - { 7, -1, sizeof(::milvus::grpc::CollectionName)}, - { 13, -1, sizeof(::milvus::grpc::CollectionNameList)}, - { 20, -1, sizeof(::milvus::grpc::FieldName)}, - { 27, -1, sizeof(::milvus::grpc::Mapping)}, - { 36, -1, sizeof(::milvus::grpc::MappingList)}, - { 43, -1, sizeof(::milvus::grpc::PartitionParam)}, - { 50, -1, sizeof(::milvus::grpc::PartitionList)}, - { 57, -1, sizeof(::milvus::grpc::VectorRowRecord)}, - { 64, -1, sizeof(::milvus::grpc::EntityIds)}, - { 71, -1, sizeof(::milvus::grpc::VectorRecord)}, - { 77, -1, sizeof(::milvus::grpc::VectorParam)}, - { 84, -1, sizeof(::milvus::grpc::FieldMeta)}, - { 92, -1, sizeof(::milvus::grpc::Schema)}, - { 98, -1, sizeof(::milvus::grpc::RowData)}, - { 104, -1, sizeof(::milvus::grpc::InsertParam)}, - { 115, -1, sizeof(::milvus::grpc::SearchParam)}, - { 125, -1, sizeof(::milvus::grpc::SearchInSegmentParam)}, - { 132, -1, sizeof(::milvus::grpc::Entities)}, - { 141, -1, sizeof(::milvus::grpc::QueryResult)}, - { 152, -1, sizeof(::milvus::grpc::StringReply)}, - { 159, -1, sizeof(::milvus::grpc::BoolReply)}, - { 166, -1, sizeof(::milvus::grpc::CollectionRowCount)}, - { 173, -1, sizeof(::milvus::grpc::Command)}, - { 179, -1, sizeof(::milvus::grpc::IndexParam)}, - { 189, -1, sizeof(::milvus::grpc::FlushParam)}, - { 195, -1, sizeof(::milvus::grpc::CompactParam)}, - { 202, -1, sizeof(::milvus::grpc::DeleteByIDParam)}, - { 209, -1, sizeof(::milvus::grpc::CollectionInfo)}, - { 216, -1, sizeof(::milvus::grpc::GetEntityIDsParam)}, - { 223, -1, sizeof(::milvus::grpc::EntityIdentity)}, - { 231, -1, sizeof(::milvus::grpc::VectorFieldParam)}, - { 237, -1, sizeof(::milvus::grpc::FieldType)}, - { 245, -1, sizeof(::milvus::grpc::FieldParam)}, - { 255, -1, sizeof(::milvus::grpc::VectorFieldRecord)}, - { 261, -1, sizeof(::milvus::grpc::TermQuery)}, - { 272, -1, sizeof(::milvus::grpc::CompareExpr)}, - { 279, -1, sizeof(::milvus::grpc::RangeQuery)}, - { 288, -1, sizeof(::milvus::grpc::VectorQuery)}, - { 298, -1, sizeof(::milvus::grpc::BooleanQuery)}, - { 305, -1, sizeof(::milvus::grpc::GeneralQuery)}, - { 315, -1, sizeof(::milvus::grpc::SearchParamPB)}, - { 324, -1, sizeof(::milvus::grpc::InsertOrDeleteMsg)}, - { 339, -1, sizeof(::milvus::grpc::SearchMsg)}, - { 351, -1, sizeof(::milvus::grpc::TimeSyncMsg)}, - { 359, -1, sizeof(::milvus::grpc::SegmentRecord)}, - { 366, -1, sizeof(::milvus::grpc::Key2SegMsg)}, -}; - -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::milvus::grpc::_KeyValuePair_default_instance_), - reinterpret_cast(&::milvus::grpc::_CollectionName_default_instance_), - reinterpret_cast(&::milvus::grpc::_CollectionNameList_default_instance_), - reinterpret_cast(&::milvus::grpc::_FieldName_default_instance_), - reinterpret_cast(&::milvus::grpc::_Mapping_default_instance_), - reinterpret_cast(&::milvus::grpc::_MappingList_default_instance_), - reinterpret_cast(&::milvus::grpc::_PartitionParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_PartitionList_default_instance_), - reinterpret_cast(&::milvus::grpc::_VectorRowRecord_default_instance_), - reinterpret_cast(&::milvus::grpc::_EntityIds_default_instance_), - reinterpret_cast(&::milvus::grpc::_VectorRecord_default_instance_), - reinterpret_cast(&::milvus::grpc::_VectorParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_FieldMeta_default_instance_), - reinterpret_cast(&::milvus::grpc::_Schema_default_instance_), - reinterpret_cast(&::milvus::grpc::_RowData_default_instance_), - reinterpret_cast(&::milvus::grpc::_InsertParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_SearchParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_SearchInSegmentParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_Entities_default_instance_), - reinterpret_cast(&::milvus::grpc::_QueryResult_default_instance_), - reinterpret_cast(&::milvus::grpc::_StringReply_default_instance_), - reinterpret_cast(&::milvus::grpc::_BoolReply_default_instance_), - reinterpret_cast(&::milvus::grpc::_CollectionRowCount_default_instance_), - reinterpret_cast(&::milvus::grpc::_Command_default_instance_), - reinterpret_cast(&::milvus::grpc::_IndexParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_FlushParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_CompactParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_DeleteByIDParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_CollectionInfo_default_instance_), - reinterpret_cast(&::milvus::grpc::_GetEntityIDsParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_EntityIdentity_default_instance_), - reinterpret_cast(&::milvus::grpc::_VectorFieldParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_FieldType_default_instance_), - reinterpret_cast(&::milvus::grpc::_FieldParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_VectorFieldRecord_default_instance_), - reinterpret_cast(&::milvus::grpc::_TermQuery_default_instance_), - reinterpret_cast(&::milvus::grpc::_CompareExpr_default_instance_), - reinterpret_cast(&::milvus::grpc::_RangeQuery_default_instance_), - reinterpret_cast(&::milvus::grpc::_VectorQuery_default_instance_), - reinterpret_cast(&::milvus::grpc::_BooleanQuery_default_instance_), - reinterpret_cast(&::milvus::grpc::_GeneralQuery_default_instance_), - reinterpret_cast(&::milvus::grpc::_SearchParamPB_default_instance_), - reinterpret_cast(&::milvus::grpc::_InsertOrDeleteMsg_default_instance_), - reinterpret_cast(&::milvus::grpc::_SearchMsg_default_instance_), - reinterpret_cast(&::milvus::grpc::_TimeSyncMsg_default_instance_), - reinterpret_cast(&::milvus::grpc::_SegmentRecord_default_instance_), - reinterpret_cast(&::milvus::grpc::_Key2SegMsg_default_instance_), -}; - -const char descriptor_table_protodef_suvlim_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\014suvlim.proto\022\013milvus.grpc\032\014status.prot" - "o\"*\n\014KeyValuePair\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - "\002 \001(\t\")\n\016CollectionName\022\027\n\017collection_na" - "me\030\001 \001(\t\"S\n\022CollectionNameList\022#\n\006status" - "\030\001 \001(\0132\023.milvus.grpc.Status\022\030\n\020collectio" - "n_names\030\002 \003(\t\"8\n\tFieldName\022\027\n\017collection" - "_name\030\001 \001(\t\022\022\n\nfield_name\030\002 \001(\t\"\235\001\n\007Mapp" - "ing\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Status" - "\022\027\n\017collection_name\030\002 \001(\t\022#\n\006schema\030\003 \001(" - "\0132\023.milvus.grpc.Schema\022/\n\014extra_params\030\004" - " \003(\0132\031.milvus.grpc.KeyValuePair\"^\n\013Mappi" - "ngList\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Sta" - "tus\022*\n\014mapping_list\030\002 \003(\0132\024.milvus.grpc." - "Mapping\"6\n\016PartitionParam\022\027\n\017collection_" - "name\030\001 \001(\t\022\013\n\003tag\030\002 \001(\t\"Q\n\rPartitionList" - "\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Status\022\033\n" - "\023partition_tag_array\030\002 \003(\t\":\n\017VectorRowR" - "ecord\022\022\n\nfloat_data\030\001 \003(\002\022\023\n\013binary_data" - "\030\002 \001(\014\"I\n\tEntityIds\022#\n\006status\030\001 \001(\0132\023.mi" - "lvus.grpc.Status\022\027\n\017entity_id_array\030\002 \003(" - "\003\"=\n\014VectorRecord\022-\n\007records\030\001 \003(\0132\034.mil" - "vus.grpc.VectorRowRecord\"J\n\013VectorParam\022" - "\014\n\004json\030\001 \001(\t\022-\n\nrow_record\030\002 \001(\0132\031.milv" - "us.grpc.VectorRecord\"Q\n\tFieldMeta\022\022\n\nfie" - "ld_name\030\001 \001(\t\022#\n\004type\030\002 \001(\0162\025.milvus.grp" - "c.DataType\022\013\n\003dim\030\003 \001(\003\"5\n\006Schema\022+\n\013fie" - "ld_metas\030\001 \003(\0132\026.milvus.grpc.FieldMeta\"\027" - "\n\007RowData\022\014\n\004blob\030\001 \001(\014\"\325\001\n\013InsertParam\022" - "\027\n\017collection_name\030\001 \001(\t\022#\n\006schema\030\002 \001(\013" - "2\023.milvus.grpc.Schema\022\'\n\trows_data\030\003 \003(\013" - "2\024.milvus.grpc.RowData\022\027\n\017entity_id_arra" - "y\030\004 \003(\003\022\025\n\rpartition_tag\030\005 \001(\t\022/\n\014extra_" - "params\030\006 \003(\0132\031.milvus.grpc.KeyValuePair\"" - "\253\001\n\013SearchParam\022\027\n\017collection_name\030\001 \001(\t" - "\022.\n\014vector_param\030\002 \003(\0132\030.milvus.grpc.Vec" - "torParam\022\013\n\003dsl\030\003 \001(\t\022\025\n\rpartition_tag\030\004" - " \003(\t\022/\n\014extra_params\030\005 \003(\0132\031.milvus.grpc" - ".KeyValuePair\"]\n\024SearchInSegmentParam\022\025\n" - "\rfile_id_array\030\001 \003(\t\022.\n\014search_param\030\002 \001" - "(\0132\030.milvus.grpc.SearchParam\"x\n\010Entities" - "\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Status\022\013\n" - "\003ids\030\002 \003(\003\022\021\n\tvalid_row\030\003 \003(\010\022\'\n\trows_da" - "ta\030\004 \003(\0132\024.milvus.grpc.RowData\"\300\001\n\013Query" - "Result\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Sta" - "tus\022\'\n\010entities\030\002 \001(\0132\025.milvus.grpc.Enti" - "ties\022\017\n\007row_num\030\003 \001(\003\022\016\n\006scores\030\004 \003(\002\022\021\n" - "\tdistances\030\005 \003(\002\022/\n\014extra_params\030\006 \003(\0132\031" - ".milvus.grpc.KeyValuePair\"H\n\013StringReply" - "\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Status\022\024\n" - "\014string_reply\030\002 \001(\t\"D\n\tBoolReply\022#\n\006stat" - "us\030\001 \001(\0132\023.milvus.grpc.Status\022\022\n\nbool_re" - "ply\030\002 \001(\010\"W\n\022CollectionRowCount\022#\n\006statu" - "s\030\001 \001(\0132\023.milvus.grpc.Status\022\034\n\024collecti" - "on_row_count\030\002 \001(\003\"\026\n\007Command\022\013\n\003cmd\030\001 \001" - "(\t\"\243\001\n\nIndexParam\022#\n\006status\030\001 \001(\0132\023.milv" - "us.grpc.Status\022\027\n\017collection_name\030\002 \001(\t\022" - "\022\n\nfield_name\030\003 \001(\t\022\022\n\nindex_name\030\004 \001(\t\022" - "/\n\014extra_params\030\005 \003(\0132\031.milvus.grpc.KeyV" - "aluePair\"+\n\nFlushParam\022\035\n\025collection_nam" - "e_array\030\001 \003(\t\":\n\014CompactParam\022\027\n\017collect" - "ion_name\030\001 \001(\t\022\021\n\tthreshold\030\002 \001(\001\"<\n\017Del" - "eteByIDParam\022\027\n\017collection_name\030\001 \001(\t\022\020\n" - "\010id_array\030\002 \003(\003\"H\n\016CollectionInfo\022#\n\006sta" - "tus\030\001 \001(\0132\023.milvus.grpc.Status\022\021\n\tjson_i" - "nfo\030\002 \001(\t\"@\n\021GetEntityIDsParam\022\027\n\017collec" - "tion_name\030\001 \001(\t\022\022\n\nsegment_id\030\002 \001(\003\"P\n\016E" - "ntityIdentity\022\027\n\017collection_name\030\001 \001(\t\022\020" - "\n\010id_array\030\002 \003(\003\022\023\n\013field_names\030\003 \003(\t\"%\n" - "\020VectorFieldParam\022\021\n\tdimension\030\001 \001(\003\"w\n\t" - "FieldType\022*\n\tdata_type\030\001 \001(\0162\025.milvus.gr" - "pc.DataTypeH\000\0225\n\014vector_param\030\002 \001(\0132\035.mi" - "lvus.grpc.VectorFieldParamH\000B\007\n\005value\"\255\001" - "\n\nFieldParam\022\n\n\002id\030\001 \001(\004\022\014\n\004name\030\002 \001(\t\022#" - "\n\004type\030\003 \001(\0162\025.milvus.grpc.DataType\022/\n\014i" - "ndex_params\030\004 \003(\0132\031.milvus.grpc.KeyValue" - "Pair\022/\n\014extra_params\030\005 \003(\0132\031.milvus.grpc" - ".KeyValuePair\"@\n\021VectorFieldRecord\022+\n\005va" - "lue\030\001 \003(\0132\034.milvus.grpc.VectorRowRecord\"" - "\233\001\n\tTermQuery\022\022\n\nfield_name\030\001 \001(\t\022\021\n\tint" - "_value\030\002 \003(\003\022\024\n\014double_value\030\003 \003(\001\022\021\n\tva" - "lue_num\030\004 \001(\003\022\r\n\005boost\030\005 \001(\002\022/\n\014extra_pa" - "rams\030\006 \003(\0132\031.milvus.grpc.KeyValuePair\"N\n" - "\013CompareExpr\022.\n\010operator\030\001 \001(\0162\034.milvus." - "grpc.CompareOperator\022\017\n\007operand\030\002 \001(\t\"\213\001" - "\n\nRangeQuery\022\022\n\nfield_name\030\001 \001(\t\022)\n\007oper" - "and\030\002 \003(\0132\030.milvus.grpc.CompareExpr\022\r\n\005b" - "oost\030\003 \001(\002\022/\n\014extra_params\030\004 \003(\0132\031.milvu" - "s.grpc.KeyValuePair\"\244\001\n\013VectorQuery\022\022\n\nf" - "ield_name\030\001 \001(\t\022\023\n\013query_boost\030\002 \001(\002\022-\n\007" - "records\030\003 \003(\0132\034.milvus.grpc.VectorRowRec" - "ord\022\014\n\004topk\030\004 \001(\003\022/\n\014extra_params\030\005 \003(\0132" - "\031.milvus.grpc.KeyValuePair\"c\n\014BooleanQue" - "ry\022!\n\005occur\030\001 \001(\0162\022.milvus.grpc.Occur\0220\n" - "\rgeneral_query\030\002 \003(\0132\031.milvus.grpc.Gener" - "alQuery\"\333\001\n\014GeneralQuery\0222\n\rboolean_quer" - "y\030\001 \001(\0132\031.milvus.grpc.BooleanQueryH\000\022,\n\n" - "term_query\030\002 \001(\0132\026.milvus.grpc.TermQuery" - "H\000\022.\n\013range_query\030\003 \001(\0132\027.milvus.grpc.Ra" - "ngeQueryH\000\0220\n\014vector_query\030\004 \001(\0132\030.milvu" - "s.grpc.VectorQueryH\000B\007\n\005query\"\250\001\n\rSearch" - "ParamPB\022\027\n\017collection_name\030\001 \001(\t\022\033\n\023part" - "ition_tag_array\030\002 \003(\t\0220\n\rgeneral_query\030\003" - " \001(\0132\031.milvus.grpc.GeneralQuery\022/\n\014extra" - "_params\030\004 \003(\0132\031.milvus.grpc.KeyValuePair" - "\"\231\002\n\021InsertOrDeleteMsg\022\027\n\017collection_nam" - "e\030\001 \001(\t\022\'\n\trows_data\030\002 \001(\0132\024.milvus.grpc" - ".RowData\022\013\n\003uid\030\003 \001(\003\022\025\n\rpartition_tag\030\004" - " \001(\t\022\021\n\ttimestamp\030\005 \001(\004\022\022\n\nsegment_id\030\006 " - "\001(\003\022\022\n\nchannel_id\030\007 \001(\003\022\037\n\002op\030\010 \001(\0162\023.mi" - "lvus.grpc.OpType\022\021\n\tclient_id\030\t \001(\003\022/\n\014e" - "xtra_params\030\n \003(\0132\031.milvus.grpc.KeyValue" - "Pair\"\316\001\n\tSearchMsg\022\027\n\017collection_name\030\001 " - "\001(\t\022-\n\007records\030\002 \001(\0132\034.milvus.grpc.Vecto" - "rRowRecord\022\025\n\rpartition_tag\030\003 \001(\t\022\013\n\003uid" - "\030\004 \001(\003\022\021\n\ttimestamp\030\005 \001(\004\022\021\n\tclient_id\030\006" - " \001(\003\022/\n\014extra_params\030\007 \003(\0132\031.milvus.grpc" - ".KeyValuePair\"[\n\013TimeSyncMsg\022\017\n\007peer_Id\030" - "\001 \001(\003\022\021\n\tTimestamp\030\002 \001(\004\022(\n\tsync_type\030\003 " - "\001(\0162\025.milvus.grpc.SyncType\"0\n\rSegmentRec" - "ord\022\013\n\003uid\030\001 \001(\003\022\022\n\nsegment_id\030\002 \003(\003\"L\n\n" - "Key2SegMsg\022\021\n\tclient_id\030\001 \001(\003\022+\n\007records" - "\030\002 \001(\0132\032.milvus.grpc.SegmentRecord*\221\001\n\010D" - "ataType\022\010\n\004NONE\020\000\022\010\n\004BOOL\020\001\022\010\n\004INT8\020\002\022\t\n" - "\005INT16\020\003\022\t\n\005INT32\020\004\022\t\n\005INT64\020\005\022\t\n\005FLOAT\020" - "\n\022\n\n\006DOUBLE\020\013\022\n\n\006STRING\020\024\022\021\n\rVECTOR_BINA" - "RY\020d\022\020\n\014VECTOR_FLOAT\020e*C\n\017CompareOperato" - "r\022\006\n\002LT\020\000\022\007\n\003LTE\020\001\022\006\n\002EQ\020\002\022\006\n\002GT\020\003\022\007\n\003GT" - "E\020\004\022\006\n\002NE\020\005*8\n\005Occur\022\013\n\007INVALID\020\000\022\010\n\004MUS" - "T\020\001\022\n\n\006SHOULD\020\002\022\014\n\010MUST_NOT\020\003* \n\006OpType\022" - "\n\n\006INSERT\020\000\022\n\n\006DELETE\020\001*\037\n\010SyncType\022\010\n\004R" - "EAD\020\000\022\t\n\005WRITE\020\0012\333\r\n\rMilvusService\022\?\n\020Cr" - "eateCollection\022\024.milvus.grpc.Mapping\032\023.m" - "ilvus.grpc.Status\"\000\022F\n\rHasCollection\022\033.m" - "ilvus.grpc.CollectionName\032\026.milvus.grpc." - "BoolReply\"\000\022I\n\022DescribeCollection\022\033.milv" - "us.grpc.CollectionName\032\024.milvus.grpc.Map" - "ping\"\000\022Q\n\017CountCollection\022\033.milvus.grpc." - "CollectionName\032\037.milvus.grpc.CollectionR" - "owCount\"\000\022J\n\017ShowCollections\022\024.milvus.gr" - "pc.Command\032\037.milvus.grpc.CollectionNameL" - "ist\"\000\022P\n\022ShowCollectionInfo\022\033.milvus.grp" - "c.CollectionName\032\033.milvus.grpc.Collectio" - "nInfo\"\000\022D\n\016DropCollection\022\033.milvus.grpc." - "CollectionName\032\023.milvus.grpc.Status\"\000\022=\n" - "\013CreateIndex\022\027.milvus.grpc.IndexParam\032\023." - "milvus.grpc.Status\"\000\022C\n\rDescribeIndex\022\027." - "milvus.grpc.IndexParam\032\027.milvus.grpc.Ind" - "exParam\"\000\022;\n\tDropIndex\022\027.milvus.grpc.Ind" - "exParam\032\023.milvus.grpc.Status\"\000\022E\n\017Create" - "Partition\022\033.milvus.grpc.PartitionParam\032\023" - ".milvus.grpc.Status\"\000\022E\n\014HasPartition\022\033." - "milvus.grpc.PartitionParam\032\026.milvus.grpc" - ".BoolReply\"\000\022K\n\016ShowPartitions\022\033.milvus." - "grpc.CollectionName\032\032.milvus.grpc.Partit" - "ionList\"\000\022C\n\rDropPartition\022\033.milvus.grpc" - ".PartitionParam\032\023.milvus.grpc.Status\"\000\022<" - "\n\006Insert\022\030.milvus.grpc.InsertParam\032\026.mil" - "vus.grpc.EntityIds\"\000\022E\n\rGetEntityByID\022\033." - "milvus.grpc.EntityIdentity\032\025.milvus.grpc" - ".Entities\"\000\022H\n\014GetEntityIDs\022\036.milvus.grp" - "c.GetEntityIDsParam\032\026.milvus.grpc.Entity" - "Ids\"\000\022>\n\006Search\022\030.milvus.grpc.SearchPara" - "m\032\030.milvus.grpc.QueryResult\"\000\022P\n\017SearchI" - "nSegment\022!.milvus.grpc.SearchInSegmentPa" - "ram\032\030.milvus.grpc.QueryResult\"\000\0227\n\003Cmd\022\024" - ".milvus.grpc.Command\032\030.milvus.grpc.Strin" - "gReply\"\000\022A\n\nDeleteByID\022\034.milvus.grpc.Del" - "eteByIDParam\032\023.milvus.grpc.Status\"\000\022G\n\021P" - "reloadCollection\022\033.milvus.grpc.Collectio" - "nName\032\023.milvus.grpc.Status\"\000\0227\n\005Flush\022\027." - "milvus.grpc.FlushParam\032\023.milvus.grpc.Sta" - "tus\"\000\022;\n\007Compact\022\031.milvus.grpc.CompactPa" - "ram\032\023.milvus.grpc.Status\"\000\022B\n\010SearchPB\022\032" - ".milvus.grpc.SearchParamPB\032\030.milvus.grpc" - ".QueryResult\"\000b\006proto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_suvlim_2eproto_deps[1] = { - &::descriptor_table_status_2eproto, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_suvlim_2eproto_sccs[46] = { - &scc_info_BoolReply_suvlim_2eproto.base, - &scc_info_BooleanQuery_suvlim_2eproto.base, - &scc_info_CollectionInfo_suvlim_2eproto.base, - &scc_info_CollectionName_suvlim_2eproto.base, - &scc_info_CollectionNameList_suvlim_2eproto.base, - &scc_info_CollectionRowCount_suvlim_2eproto.base, - &scc_info_Command_suvlim_2eproto.base, - &scc_info_CompactParam_suvlim_2eproto.base, - &scc_info_CompareExpr_suvlim_2eproto.base, - &scc_info_DeleteByIDParam_suvlim_2eproto.base, - &scc_info_Entities_suvlim_2eproto.base, - &scc_info_EntityIdentity_suvlim_2eproto.base, - &scc_info_EntityIds_suvlim_2eproto.base, - &scc_info_FieldMeta_suvlim_2eproto.base, - &scc_info_FieldName_suvlim_2eproto.base, - &scc_info_FieldParam_suvlim_2eproto.base, - &scc_info_FieldType_suvlim_2eproto.base, - &scc_info_FlushParam_suvlim_2eproto.base, - &scc_info_GetEntityIDsParam_suvlim_2eproto.base, - &scc_info_IndexParam_suvlim_2eproto.base, - &scc_info_InsertOrDeleteMsg_suvlim_2eproto.base, - &scc_info_InsertParam_suvlim_2eproto.base, - &scc_info_Key2SegMsg_suvlim_2eproto.base, - &scc_info_KeyValuePair_suvlim_2eproto.base, - &scc_info_Mapping_suvlim_2eproto.base, - &scc_info_MappingList_suvlim_2eproto.base, - &scc_info_PartitionList_suvlim_2eproto.base, - &scc_info_PartitionParam_suvlim_2eproto.base, - &scc_info_QueryResult_suvlim_2eproto.base, - &scc_info_RangeQuery_suvlim_2eproto.base, - &scc_info_RowData_suvlim_2eproto.base, - &scc_info_Schema_suvlim_2eproto.base, - &scc_info_SearchInSegmentParam_suvlim_2eproto.base, - &scc_info_SearchMsg_suvlim_2eproto.base, - &scc_info_SearchParam_suvlim_2eproto.base, - &scc_info_SearchParamPB_suvlim_2eproto.base, - &scc_info_SegmentRecord_suvlim_2eproto.base, - &scc_info_StringReply_suvlim_2eproto.base, - &scc_info_TermQuery_suvlim_2eproto.base, - &scc_info_TimeSyncMsg_suvlim_2eproto.base, - &scc_info_VectorFieldParam_suvlim_2eproto.base, - &scc_info_VectorFieldRecord_suvlim_2eproto.base, - &scc_info_VectorParam_suvlim_2eproto.base, - &scc_info_VectorQuery_suvlim_2eproto.base, - &scc_info_VectorRecord_suvlim_2eproto.base, - &scc_info_VectorRowRecord_suvlim_2eproto.base, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_suvlim_2eproto_once; -static bool descriptor_table_suvlim_2eproto_initialized = false; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_suvlim_2eproto = { - &descriptor_table_suvlim_2eproto_initialized, descriptor_table_protodef_suvlim_2eproto, "suvlim.proto", 6982, - &descriptor_table_suvlim_2eproto_once, descriptor_table_suvlim_2eproto_sccs, descriptor_table_suvlim_2eproto_deps, 46, 1, - schemas, file_default_instances, TableStruct_suvlim_2eproto::offsets, - file_level_metadata_suvlim_2eproto, 47, file_level_enum_descriptors_suvlim_2eproto, file_level_service_descriptors_suvlim_2eproto, -}; - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_suvlim_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_suvlim_2eproto), true); -namespace milvus { -namespace grpc { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DataType_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_suvlim_2eproto); - return file_level_enum_descriptors_suvlim_2eproto[0]; -} -bool DataType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 10: - case 11: - case 20: - case 100: - case 101: - return true; - default: - return false; - } -} - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CompareOperator_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_suvlim_2eproto); - return file_level_enum_descriptors_suvlim_2eproto[1]; -} -bool CompareOperator_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - return true; - default: - return false; - } -} - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Occur_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_suvlim_2eproto); - return file_level_enum_descriptors_suvlim_2eproto[2]; -} -bool Occur_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* OpType_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_suvlim_2eproto); - return file_level_enum_descriptors_suvlim_2eproto[3]; -} -bool OpType_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SyncType_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_suvlim_2eproto); - return file_level_enum_descriptors_suvlim_2eproto[4]; -} -bool SyncType_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} - - -// =================================================================== - -void KeyValuePair::InitAsDefaultInstance() { -} -class KeyValuePair::_Internal { - public: -}; - -KeyValuePair::KeyValuePair() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.KeyValuePair) -} -KeyValuePair::KeyValuePair(const KeyValuePair& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_key().empty()) { - key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.key_); - } - value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_value().empty()) { - value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.value_); - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.KeyValuePair) -} - -void KeyValuePair::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_KeyValuePair_suvlim_2eproto.base); - key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -KeyValuePair::~KeyValuePair() { - // @@protoc_insertion_point(destructor:milvus.grpc.KeyValuePair) - SharedDtor(); -} - -void KeyValuePair::SharedDtor() { - key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void KeyValuePair::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const KeyValuePair& KeyValuePair::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_KeyValuePair_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void KeyValuePair::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.KeyValuePair) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* KeyValuePair::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string key = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.KeyValuePair.key")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string value = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_value(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.KeyValuePair.value")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* KeyValuePair::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.KeyValuePair) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string key = 1; - if (this->key().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_key().data(), static_cast(this->_internal_key().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.KeyValuePair.key"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_key(), target); - } - - // string value = 2; - if (this->value().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_value().data(), static_cast(this->_internal_value().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.KeyValuePair.value"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_value(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.KeyValuePair) - return target; -} - -size_t KeyValuePair::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.KeyValuePair) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string key = 1; - if (this->key().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_key()); - } - - // string value = 2; - if (this->value().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_value()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void KeyValuePair::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.KeyValuePair) - GOOGLE_DCHECK_NE(&from, this); - const KeyValuePair* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.KeyValuePair) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.KeyValuePair) - MergeFrom(*source); - } -} - -void KeyValuePair::MergeFrom(const KeyValuePair& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.KeyValuePair) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.key().size() > 0) { - - key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.key_); - } - if (from.value().size() > 0) { - - value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.value_); - } -} - -void KeyValuePair::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.KeyValuePair) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void KeyValuePair::CopyFrom(const KeyValuePair& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.KeyValuePair) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool KeyValuePair::IsInitialized() const { - return true; -} - -void KeyValuePair::InternalSwap(KeyValuePair* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - key_.Swap(&other->key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - value_.Swap(&other->value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata KeyValuePair::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void CollectionName::InitAsDefaultInstance() { -} -class CollectionName::_Internal { - public: -}; - -CollectionName::CollectionName() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.CollectionName) -} -CollectionName::CollectionName(const CollectionName& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.CollectionName) -} - -void CollectionName::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionName_suvlim_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -CollectionName::~CollectionName() { - // @@protoc_insertion_point(destructor:milvus.grpc.CollectionName) - SharedDtor(); -} - -void CollectionName::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void CollectionName::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CollectionName& CollectionName::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionName_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void CollectionName::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.CollectionName) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -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)) { - auto str = _internal_mutable_collection_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.CollectionName.collection_name")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* CollectionName::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.CollectionName) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_collection_name().data(), static_cast(this->_internal_collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.CollectionName.collection_name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_collection_name(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.CollectionName) - return target; -} - -size_t CollectionName::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.CollectionName) - size_t total_size = 0; - - ::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->_internal_collection_name()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CollectionName::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.CollectionName) - GOOGLE_DCHECK_NE(&from, this); - const CollectionName* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.CollectionName) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.CollectionName) - MergeFrom(*source); - } -} - -void CollectionName::MergeFrom(const CollectionName& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.CollectionName) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } -} - -void CollectionName::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.CollectionName) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CollectionName::CopyFrom(const CollectionName& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.CollectionName) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CollectionName::IsInitialized() const { - return true; -} - -void CollectionName::InternalSwap(CollectionName* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata CollectionName::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void CollectionNameList::InitAsDefaultInstance() { - ::milvus::grpc::_CollectionNameList_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( - ::milvus::grpc::Status::internal_default_instance()); -} -class CollectionNameList::_Internal { - public: - static const ::milvus::grpc::Status& status(const CollectionNameList* msg); -}; - -const ::milvus::grpc::Status& -CollectionNameList::_Internal::status(const CollectionNameList* msg) { - return *msg->status_; -} -void CollectionNameList::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -CollectionNameList::CollectionNameList() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.CollectionNameList) -} -CollectionNameList::CollectionNameList(const CollectionNameList& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - collection_names_(from.collection_names_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_status()) { - status_ = new ::milvus::grpc::Status(*from.status_); - } else { - status_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.CollectionNameList) -} - -void CollectionNameList::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionNameList_suvlim_2eproto.base); - status_ = nullptr; -} - -CollectionNameList::~CollectionNameList() { - // @@protoc_insertion_point(destructor:milvus.grpc.CollectionNameList) - SharedDtor(); -} - -void CollectionNameList::SharedDtor() { - if (this != internal_default_instance()) delete status_; -} - -void CollectionNameList::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CollectionNameList& CollectionNameList::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionNameList_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void CollectionNameList::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.CollectionNameList) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - collection_names_.Clear(); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - _internal_metadata_.Clear(); -} - -const char* CollectionNameList::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_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; - auto str = _internal_add_collection_names(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.CollectionNameList.collection_names")); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* CollectionNameList::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.CollectionNameList) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::status(this), target, stream); - } - - // repeated string collection_names = 2; - for (int i = 0, n = this->_internal_collection_names_size(); i < n; i++) { - const auto& s = this->_internal_collection_names(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.CollectionNameList.collection_names"); - target = stream->WriteString(2, s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.CollectionNameList) - return target; -} - -size_t CollectionNameList::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.CollectionNameList) - size_t total_size = 0; - - ::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(collection_names_.size()); - for (int i = 0, n = collection_names_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - collection_names_.Get(i)); - } - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CollectionNameList::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.CollectionNameList) - GOOGLE_DCHECK_NE(&from, this); - const CollectionNameList* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.CollectionNameList) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.CollectionNameList) - MergeFrom(*source); - } -} - -void CollectionNameList::MergeFrom(const CollectionNameList& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.CollectionNameList) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - collection_names_.MergeFrom(from.collection_names_); - if (from.has_status()) { - _internal_mutable_status()->::milvus::grpc::Status::MergeFrom(from._internal_status()); - } -} - -void CollectionNameList::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.CollectionNameList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CollectionNameList::CopyFrom(const CollectionNameList& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.CollectionNameList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CollectionNameList::IsInitialized() const { - return true; -} - -void CollectionNameList::InternalSwap(CollectionNameList* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - collection_names_.InternalSwap(&other->collection_names_); - swap(status_, other->status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata CollectionNameList::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void FieldName::InitAsDefaultInstance() { -} -class FieldName::_Internal { - public: -}; - -FieldName::FieldName() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.FieldName) -} -FieldName::FieldName(const FieldName& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_field_name().empty()) { - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.FieldName) -} - -void FieldName::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FieldName_suvlim_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -FieldName::~FieldName() { - // @@protoc_insertion_point(destructor:milvus.grpc.FieldName) - SharedDtor(); -} - -void FieldName::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void FieldName::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const FieldName& FieldName::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FieldName_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void FieldName::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.FieldName) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* FieldName::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_collection_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.FieldName.collection_name")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string field_name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_field_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.FieldName.field_name")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* FieldName::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.FieldName) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_collection_name().data(), static_cast(this->_internal_collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.FieldName.collection_name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_collection_name(), target); - } - - // string field_name = 2; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_field_name().data(), static_cast(this->_internal_field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.FieldName.field_name"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_field_name(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.FieldName) - return target; -} - -size_t FieldName::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.FieldName) - size_t total_size = 0; - - ::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->_internal_collection_name()); - } - - // string field_name = 2; - if (this->field_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_field_name()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void FieldName::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.FieldName) - GOOGLE_DCHECK_NE(&from, this); - const FieldName* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.FieldName) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.FieldName) - MergeFrom(*source); - } -} - -void FieldName::MergeFrom(const FieldName& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.FieldName) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.field_name().size() > 0) { - - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } -} - -void FieldName::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.FieldName) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FieldName::CopyFrom(const FieldName& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.FieldName) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FieldName::IsInitialized() const { - return true; -} - -void FieldName::InternalSwap(FieldName* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata FieldName::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void Mapping::InitAsDefaultInstance() { - ::milvus::grpc::_Mapping_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( - ::milvus::grpc::Status::internal_default_instance()); - ::milvus::grpc::_Mapping_default_instance_._instance.get_mutable()->schema_ = const_cast< ::milvus::grpc::Schema*>( - ::milvus::grpc::Schema::internal_default_instance()); -} -class Mapping::_Internal { - public: - static const ::milvus::grpc::Status& status(const Mapping* msg); - static const ::milvus::grpc::Schema& schema(const Mapping* msg); -}; - -const ::milvus::grpc::Status& -Mapping::_Internal::status(const Mapping* msg) { - return *msg->status_; -} -const ::milvus::grpc::Schema& -Mapping::_Internal::schema(const Mapping* msg) { - return *msg->schema_; -} -void Mapping::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -Mapping::Mapping() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.Mapping) -} -Mapping::Mapping(const Mapping& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - extra_params_(from.extra_params_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from._internal_has_status()) { - status_ = new ::milvus::grpc::Status(*from.status_); - } else { - status_ = nullptr; - } - if (from._internal_has_schema()) { - schema_ = new ::milvus::grpc::Schema(*from.schema_); - } else { - schema_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.Mapping) -} - -void Mapping::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Mapping_suvlim_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&status_, 0, static_cast( - reinterpret_cast(&schema_) - - reinterpret_cast(&status_)) + sizeof(schema_)); -} - -Mapping::~Mapping() { - // @@protoc_insertion_point(destructor:milvus.grpc.Mapping) - SharedDtor(); -} - -void Mapping::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete status_; - if (this != internal_default_instance()) delete schema_; -} - -void Mapping::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Mapping& Mapping::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Mapping_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void Mapping::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.Mapping) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - extra_params_.Clear(); - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - if (GetArenaNoVirtual() == nullptr && schema_ != nullptr) { - delete schema_; - } - schema_ = nullptr; - _internal_metadata_.Clear(); -} - -const char* Mapping::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_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)) { - auto str = _internal_mutable_collection_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.Mapping.collection_name")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.grpc.Schema schema = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_schema(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_extra_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* Mapping::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Mapping) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::status(this), target, stream); - } - - // string collection_name = 2; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_collection_name().data(), static_cast(this->_internal_collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.Mapping.collection_name"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_collection_name(), target); - } - - // .milvus.grpc.Schema schema = 3; - if (this->has_schema()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::schema(this), target, stream); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - for (unsigned int i = 0, - n = static_cast(this->_internal_extra_params_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, this->_internal_extra_params(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Mapping) - return target; -} - -size_t Mapping::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.Mapping) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - total_size += 1UL * this->_internal_extra_params_size(); - for (const auto& msg : this->extra_params_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // string collection_name = 2; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_collection_name()); - } - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - // .milvus.grpc.Schema schema = 3; - if (this->has_schema()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *schema_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Mapping::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.Mapping) - GOOGLE_DCHECK_NE(&from, this); - const Mapping* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.Mapping) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Mapping) - MergeFrom(*source); - } -} - -void Mapping::MergeFrom(const Mapping& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.Mapping) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - extra_params_.MergeFrom(from.extra_params_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.has_status()) { - _internal_mutable_status()->::milvus::grpc::Status::MergeFrom(from._internal_status()); - } - if (from.has_schema()) { - _internal_mutable_schema()->::milvus::grpc::Schema::MergeFrom(from._internal_schema()); - } -} - -void Mapping::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Mapping) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Mapping::CopyFrom(const Mapping& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.Mapping) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Mapping::IsInitialized() const { - return true; -} - -void Mapping::InternalSwap(Mapping* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - extra_params_.InternalSwap(&other->extra_params_); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(status_, other->status_); - swap(schema_, other->schema_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata Mapping::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void MappingList::InitAsDefaultInstance() { - ::milvus::grpc::_MappingList_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( - ::milvus::grpc::Status::internal_default_instance()); -} -class MappingList::_Internal { - public: - static const ::milvus::grpc::Status& status(const MappingList* msg); -}; - -const ::milvus::grpc::Status& -MappingList::_Internal::status(const MappingList* msg) { - return *msg->status_; -} -void MappingList::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -MappingList::MappingList() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.MappingList) -} -MappingList::MappingList(const MappingList& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - mapping_list_(from.mapping_list_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_status()) { - status_ = new ::milvus::grpc::Status(*from.status_); - } else { - status_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.MappingList) -} - -void MappingList::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MappingList_suvlim_2eproto.base); - status_ = nullptr; -} - -MappingList::~MappingList() { - // @@protoc_insertion_point(destructor:milvus.grpc.MappingList) - SharedDtor(); -} - -void MappingList::SharedDtor() { - if (this != internal_default_instance()) delete status_; -} - -void MappingList::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MappingList& MappingList::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MappingList_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void MappingList::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.MappingList) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - mapping_list_.Clear(); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - _internal_metadata_.Clear(); -} - -const char* MappingList::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.Mapping mapping_list = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_mapping_list(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* MappingList::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.MappingList) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::status(this), target, stream); - } - - // repeated .milvus.grpc.Mapping mapping_list = 2; - for (unsigned int i = 0, - n = static_cast(this->_internal_mapping_list_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, this->_internal_mapping_list(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.MappingList) - return target; -} - -size_t MappingList::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.MappingList) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.grpc.Mapping mapping_list = 2; - total_size += 1UL * this->_internal_mapping_list_size(); - for (const auto& msg : this->mapping_list_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MappingList::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.MappingList) - GOOGLE_DCHECK_NE(&from, this); - const MappingList* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.MappingList) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.MappingList) - MergeFrom(*source); - } -} - -void MappingList::MergeFrom(const MappingList& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.MappingList) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - mapping_list_.MergeFrom(from.mapping_list_); - if (from.has_status()) { - _internal_mutable_status()->::milvus::grpc::Status::MergeFrom(from._internal_status()); - } -} - -void MappingList::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.MappingList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MappingList::CopyFrom(const MappingList& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.MappingList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MappingList::IsInitialized() const { - return true; -} - -void MappingList::InternalSwap(MappingList* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - mapping_list_.InternalSwap(&other->mapping_list_); - swap(status_, other->status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MappingList::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void PartitionParam::InitAsDefaultInstance() { -} -class PartitionParam::_Internal { - public: -}; - -PartitionParam::PartitionParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.PartitionParam) -} -PartitionParam::PartitionParam(const PartitionParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_tag().empty()) { - tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.tag_); - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.PartitionParam) -} - -void PartitionParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PartitionParam_suvlim_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -PartitionParam::~PartitionParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.PartitionParam) - SharedDtor(); -} - -void PartitionParam::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - tag_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void PartitionParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PartitionParam& PartitionParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PartitionParam_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void PartitionParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.PartitionParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* PartitionParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_collection_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.PartitionParam.collection_name")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string tag = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_tag(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.PartitionParam.tag")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PartitionParam::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.PartitionParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_collection_name().data(), static_cast(this->_internal_collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.PartitionParam.collection_name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_collection_name(), target); - } - - // string tag = 2; - if (this->tag().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_tag().data(), static_cast(this->_internal_tag().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.PartitionParam.tag"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_tag(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.PartitionParam) - return target; -} - -size_t PartitionParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.PartitionParam) - size_t total_size = 0; - - ::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->_internal_collection_name()); - } - - // string tag = 2; - if (this->tag().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_tag()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PartitionParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.PartitionParam) - GOOGLE_DCHECK_NE(&from, this); - const PartitionParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.PartitionParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.PartitionParam) - MergeFrom(*source); - } -} - -void PartitionParam::MergeFrom(const PartitionParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.PartitionParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.tag().size() > 0) { - - tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.tag_); - } -} - -void PartitionParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.PartitionParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PartitionParam::CopyFrom(const PartitionParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.PartitionParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PartitionParam::IsInitialized() const { - return true; -} - -void PartitionParam::InternalSwap(PartitionParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - tag_.Swap(&other->tag_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PartitionParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void PartitionList::InitAsDefaultInstance() { - ::milvus::grpc::_PartitionList_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( - ::milvus::grpc::Status::internal_default_instance()); -} -class PartitionList::_Internal { - public: - static const ::milvus::grpc::Status& status(const PartitionList* msg); -}; - -const ::milvus::grpc::Status& -PartitionList::_Internal::status(const PartitionList* msg) { - return *msg->status_; -} -void PartitionList::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -PartitionList::PartitionList() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.PartitionList) -} -PartitionList::PartitionList(const PartitionList& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - partition_tag_array_(from.partition_tag_array_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_status()) { - status_ = new ::milvus::grpc::Status(*from.status_); - } else { - status_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.PartitionList) -} - -void PartitionList::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PartitionList_suvlim_2eproto.base); - status_ = nullptr; -} - -PartitionList::~PartitionList() { - // @@protoc_insertion_point(destructor:milvus.grpc.PartitionList) - SharedDtor(); -} - -void PartitionList::SharedDtor() { - if (this != internal_default_instance()) delete status_; -} - -void PartitionList::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PartitionList& PartitionList::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PartitionList_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void PartitionList::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.PartitionList) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - partition_tag_array_.Clear(); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - _internal_metadata_.Clear(); -} - -const char* PartitionList::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated string partition_tag_array = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_partition_tag_array(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.PartitionList.partition_tag_array")); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PartitionList::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.PartitionList) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::status(this), target, stream); - } - - // repeated string partition_tag_array = 2; - for (int i = 0, n = this->_internal_partition_tag_array_size(); i < n; i++) { - const auto& s = this->_internal_partition_tag_array(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.PartitionList.partition_tag_array"); - target = stream->WriteString(2, s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.PartitionList) - return target; -} - -size_t PartitionList::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.PartitionList) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated string partition_tag_array = 2; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(partition_tag_array_.size()); - for (int i = 0, n = partition_tag_array_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - partition_tag_array_.Get(i)); - } - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PartitionList::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.PartitionList) - GOOGLE_DCHECK_NE(&from, this); - const PartitionList* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.PartitionList) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.PartitionList) - MergeFrom(*source); - } -} - -void PartitionList::MergeFrom(const PartitionList& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.PartitionList) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - partition_tag_array_.MergeFrom(from.partition_tag_array_); - if (from.has_status()) { - _internal_mutable_status()->::milvus::grpc::Status::MergeFrom(from._internal_status()); - } -} - -void PartitionList::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.PartitionList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PartitionList::CopyFrom(const PartitionList& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.PartitionList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PartitionList::IsInitialized() const { - return true; -} - -void PartitionList::InternalSwap(PartitionList* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - partition_tag_array_.InternalSwap(&other->partition_tag_array_); - swap(status_, other->status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PartitionList::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void VectorRowRecord::InitAsDefaultInstance() { -} -class VectorRowRecord::_Internal { - public: -}; - -VectorRowRecord::VectorRowRecord() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.VectorRowRecord) -} -VectorRowRecord::VectorRowRecord(const VectorRowRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - float_data_(from.float_data_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - binary_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_binary_data().empty()) { - binary_data_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.binary_data_); - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.VectorRowRecord) -} - -void VectorRowRecord::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_VectorRowRecord_suvlim_2eproto.base); - binary_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -VectorRowRecord::~VectorRowRecord() { - // @@protoc_insertion_point(destructor:milvus.grpc.VectorRowRecord) - SharedDtor(); -} - -void VectorRowRecord::SharedDtor() { - binary_data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void VectorRowRecord::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const VectorRowRecord& VectorRowRecord::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VectorRowRecord_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void VectorRowRecord::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.VectorRowRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - float_data_.Clear(); - binary_data_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* VectorRowRecord::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated float float_data = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(_internal_mutable_float_data(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13) { - _internal_add_float_data(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // bytes binary_data = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_binary_data(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, 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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* VectorRowRecord::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.VectorRowRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated float float_data = 1; - if (this->_internal_float_data_size() > 0) { - target = stream->WriteFixedPacked(1, _internal_float_data(), target); - } - - // bytes binary_data = 2; - if (this->binary_data().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_binary_data(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.VectorRowRecord) - return target; -} - -size_t VectorRowRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.VectorRowRecord) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated float float_data = 1; - { - unsigned int count = static_cast(this->_internal_float_data_size()); - size_t data_size = 4UL * count; - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _float_data_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // bytes binary_data = 2; - if (this->binary_data().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_binary_data()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void VectorRowRecord::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.VectorRowRecord) - GOOGLE_DCHECK_NE(&from, this); - const VectorRowRecord* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.VectorRowRecord) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.VectorRowRecord) - MergeFrom(*source); - } -} - -void VectorRowRecord::MergeFrom(const VectorRowRecord& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.VectorRowRecord) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - float_data_.MergeFrom(from.float_data_); - if (from.binary_data().size() > 0) { - - binary_data_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.binary_data_); - } -} - -void VectorRowRecord::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.VectorRowRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VectorRowRecord::CopyFrom(const VectorRowRecord& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.VectorRowRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VectorRowRecord::IsInitialized() const { - return true; -} - -void VectorRowRecord::InternalSwap(VectorRowRecord* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - float_data_.InternalSwap(&other->float_data_); - binary_data_.Swap(&other->binary_data_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata VectorRowRecord::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void EntityIds::InitAsDefaultInstance() { - ::milvus::grpc::_EntityIds_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( - ::milvus::grpc::Status::internal_default_instance()); -} -class EntityIds::_Internal { - public: - static const ::milvus::grpc::Status& status(const EntityIds* msg); -}; - -const ::milvus::grpc::Status& -EntityIds::_Internal::status(const EntityIds* msg) { - return *msg->status_; -} -void EntityIds::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -EntityIds::EntityIds() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.EntityIds) -} -EntityIds::EntityIds(const EntityIds& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - entity_id_array_(from.entity_id_array_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_status()) { - status_ = new ::milvus::grpc::Status(*from.status_); - } else { - status_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.EntityIds) -} - -void EntityIds::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EntityIds_suvlim_2eproto.base); - status_ = nullptr; -} - -EntityIds::~EntityIds() { - // @@protoc_insertion_point(destructor:milvus.grpc.EntityIds) - SharedDtor(); -} - -void EntityIds::SharedDtor() { - if (this != internal_default_instance()) delete status_; -} - -void EntityIds::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const EntityIds& EntityIds::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EntityIds_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void EntityIds::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.EntityIds) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - entity_id_array_.Clear(); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - _internal_metadata_.Clear(); -} - -const char* EntityIds::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated int64 entity_id_array = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_entity_id_array(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) { - _internal_add_entity_id_array(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* EntityIds::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.EntityIds) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::status(this), target, stream); - } - - // repeated int64 entity_id_array = 2; - { - int byte_size = _entity_id_array_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt64Packed( - 2, _internal_entity_id_array(), byte_size, target); - } - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.EntityIds) - return target; -} - -size_t EntityIds::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.EntityIds) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated int64 entity_id_array = 2; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int64Size(this->entity_id_array_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _entity_id_array_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void EntityIds::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.EntityIds) - GOOGLE_DCHECK_NE(&from, this); - const EntityIds* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.EntityIds) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.EntityIds) - MergeFrom(*source); - } -} - -void EntityIds::MergeFrom(const EntityIds& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.EntityIds) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - entity_id_array_.MergeFrom(from.entity_id_array_); - if (from.has_status()) { - _internal_mutable_status()->::milvus::grpc::Status::MergeFrom(from._internal_status()); - } -} - -void EntityIds::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.EntityIds) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EntityIds::CopyFrom(const EntityIds& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.EntityIds) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EntityIds::IsInitialized() const { - return true; -} - -void EntityIds::InternalSwap(EntityIds* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - entity_id_array_.InternalSwap(&other->entity_id_array_); - swap(status_, other->status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata EntityIds::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void VectorRecord::InitAsDefaultInstance() { -} -class VectorRecord::_Internal { - public: -}; - -VectorRecord::VectorRecord() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.VectorRecord) -} -VectorRecord::VectorRecord(const VectorRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - records_(from.records_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:milvus.grpc.VectorRecord) -} - -void VectorRecord::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_VectorRecord_suvlim_2eproto.base); -} - -VectorRecord::~VectorRecord() { - // @@protoc_insertion_point(destructor:milvus.grpc.VectorRecord) - SharedDtor(); -} - -void VectorRecord::SharedDtor() { -} - -void VectorRecord::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const VectorRecord& VectorRecord::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VectorRecord_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void VectorRecord::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.VectorRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - records_.Clear(); - _internal_metadata_.Clear(); -} - -const char* VectorRecord::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .milvus.grpc.VectorRowRecord records = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_records(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* VectorRecord::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.VectorRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .milvus.grpc.VectorRowRecord records = 1; - for (unsigned int i = 0, - n = static_cast(this->_internal_records_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_records(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.VectorRecord) - return target; -} - -size_t VectorRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.VectorRecord) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.grpc.VectorRowRecord records = 1; - total_size += 1UL * this->_internal_records_size(); - for (const auto& msg : this->records_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void VectorRecord::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.VectorRecord) - GOOGLE_DCHECK_NE(&from, this); - const VectorRecord* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.VectorRecord) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.VectorRecord) - MergeFrom(*source); - } -} - -void VectorRecord::MergeFrom(const VectorRecord& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.VectorRecord) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - records_.MergeFrom(from.records_); -} - -void VectorRecord::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.VectorRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VectorRecord::CopyFrom(const VectorRecord& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.VectorRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VectorRecord::IsInitialized() const { - return true; -} - -void VectorRecord::InternalSwap(VectorRecord* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - records_.InternalSwap(&other->records_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata VectorRecord::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void VectorParam::InitAsDefaultInstance() { - ::milvus::grpc::_VectorParam_default_instance_._instance.get_mutable()->row_record_ = const_cast< ::milvus::grpc::VectorRecord*>( - ::milvus::grpc::VectorRecord::internal_default_instance()); -} -class VectorParam::_Internal { - public: - static const ::milvus::grpc::VectorRecord& row_record(const VectorParam* msg); -}; - -const ::milvus::grpc::VectorRecord& -VectorParam::_Internal::row_record(const VectorParam* msg) { - return *msg->row_record_; -} -VectorParam::VectorParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.VectorParam) -} -VectorParam::VectorParam(const VectorParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - json_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_json().empty()) { - json_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.json_); - } - if (from._internal_has_row_record()) { - row_record_ = new ::milvus::grpc::VectorRecord(*from.row_record_); - } else { - row_record_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.VectorParam) -} - -void VectorParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_VectorParam_suvlim_2eproto.base); - json_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - row_record_ = nullptr; -} - -VectorParam::~VectorParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.VectorParam) - SharedDtor(); -} - -void VectorParam::SharedDtor() { - json_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete row_record_; -} - -void VectorParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const VectorParam& VectorParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VectorParam_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void VectorParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.VectorParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - json_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && row_record_ != nullptr) { - delete row_record_; - } - row_record_ = nullptr; - _internal_metadata_.Clear(); -} - -const char* VectorParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string json = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_json(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.VectorParam.json")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.grpc.VectorRecord row_record = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_row_record(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* VectorParam::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.VectorParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string json = 1; - if (this->json().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_json().data(), static_cast(this->_internal_json().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.VectorParam.json"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_json(), target); - } - - // .milvus.grpc.VectorRecord row_record = 2; - if (this->has_row_record()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::row_record(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.VectorParam) - return target; -} - -size_t VectorParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.VectorParam) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string json = 1; - if (this->json().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_json()); - } - - // .milvus.grpc.VectorRecord row_record = 2; - if (this->has_row_record()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *row_record_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void VectorParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.VectorParam) - GOOGLE_DCHECK_NE(&from, this); - const VectorParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.VectorParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.VectorParam) - MergeFrom(*source); - } -} - -void VectorParam::MergeFrom(const VectorParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.VectorParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.json().size() > 0) { - - json_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.json_); - } - if (from.has_row_record()) { - _internal_mutable_row_record()->::milvus::grpc::VectorRecord::MergeFrom(from._internal_row_record()); - } -} - -void VectorParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.VectorParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VectorParam::CopyFrom(const VectorParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.VectorParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VectorParam::IsInitialized() const { - return true; -} - -void VectorParam::InternalSwap(VectorParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - json_.Swap(&other->json_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(row_record_, other->row_record_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata VectorParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void FieldMeta::InitAsDefaultInstance() { -} -class FieldMeta::_Internal { - public: -}; - -FieldMeta::FieldMeta() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.FieldMeta) -} -FieldMeta::FieldMeta(const FieldMeta& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_field_name().empty()) { - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - ::memcpy(&dim_, &from.dim_, - static_cast(reinterpret_cast(&type_) - - reinterpret_cast(&dim_)) + sizeof(type_)); - // @@protoc_insertion_point(copy_constructor:milvus.grpc.FieldMeta) -} - -void FieldMeta::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FieldMeta_suvlim_2eproto.base); - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&dim_, 0, static_cast( - reinterpret_cast(&type_) - - reinterpret_cast(&dim_)) + sizeof(type_)); -} - -FieldMeta::~FieldMeta() { - // @@protoc_insertion_point(destructor:milvus.grpc.FieldMeta) - SharedDtor(); -} - -void FieldMeta::SharedDtor() { - field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void FieldMeta::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const FieldMeta& FieldMeta::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FieldMeta_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void FieldMeta::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.FieldMeta) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&dim_, 0, static_cast( - reinterpret_cast(&type_) - - reinterpret_cast(&dim_)) + sizeof(type_)); - _internal_metadata_.Clear(); -} - -const char* FieldMeta::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string field_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_field_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.FieldMeta.field_name")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.grpc.DataType type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - _internal_set_type(static_cast<::milvus::grpc::DataType>(val)); - } else goto handle_unusual; - continue; - // int64 dim = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - dim_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* FieldMeta::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.FieldMeta) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string field_name = 1; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_field_name().data(), static_cast(this->_internal_field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.FieldMeta.field_name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_field_name(), target); - } - - // .milvus.grpc.DataType type = 2; - if (this->type() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_type(), target); - } - - // int64 dim = 3; - if (this->dim() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_dim(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.FieldMeta) - return target; -} - -size_t FieldMeta::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.FieldMeta) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string field_name = 1; - if (this->field_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_field_name()); - } - - // int64 dim = 3; - if (this->dim() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_dim()); - } - - // .milvus.grpc.DataType type = 2; - if (this->type() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void FieldMeta::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.FieldMeta) - GOOGLE_DCHECK_NE(&from, this); - const FieldMeta* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.FieldMeta) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.FieldMeta) - MergeFrom(*source); - } -} - -void FieldMeta::MergeFrom(const FieldMeta& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.FieldMeta) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.field_name().size() > 0) { - - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - if (from.dim() != 0) { - _internal_set_dim(from._internal_dim()); - } - if (from.type() != 0) { - _internal_set_type(from._internal_type()); - } -} - -void FieldMeta::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.FieldMeta) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FieldMeta::CopyFrom(const FieldMeta& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.FieldMeta) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FieldMeta::IsInitialized() const { - return true; -} - -void FieldMeta::InternalSwap(FieldMeta* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(dim_, other->dim_); - swap(type_, other->type_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata FieldMeta::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void Schema::InitAsDefaultInstance() { -} -class Schema::_Internal { - public: -}; - -Schema::Schema() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.Schema) -} -Schema::Schema(const Schema& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - field_metas_(from.field_metas_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:milvus.grpc.Schema) -} - -void Schema::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Schema_suvlim_2eproto.base); -} - -Schema::~Schema() { - // @@protoc_insertion_point(destructor:milvus.grpc.Schema) - SharedDtor(); -} - -void Schema::SharedDtor() { -} - -void Schema::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Schema& Schema::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Schema_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void Schema::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.Schema) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - field_metas_.Clear(); - _internal_metadata_.Clear(); -} - -const char* Schema::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .milvus.grpc.FieldMeta field_metas = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_field_metas(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* Schema::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Schema) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .milvus.grpc.FieldMeta field_metas = 1; - for (unsigned int i = 0, - n = static_cast(this->_internal_field_metas_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_field_metas(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Schema) - return target; -} - -size_t Schema::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.Schema) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.grpc.FieldMeta field_metas = 1; - total_size += 1UL * this->_internal_field_metas_size(); - for (const auto& msg : this->field_metas_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Schema::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.Schema) - GOOGLE_DCHECK_NE(&from, this); - const Schema* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.Schema) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Schema) - MergeFrom(*source); - } -} - -void Schema::MergeFrom(const Schema& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.Schema) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - field_metas_.MergeFrom(from.field_metas_); -} - -void Schema::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Schema) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Schema::CopyFrom(const Schema& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.Schema) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Schema::IsInitialized() const { - return true; -} - -void Schema::InternalSwap(Schema* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - field_metas_.InternalSwap(&other->field_metas_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata Schema::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void RowData::InitAsDefaultInstance() { -} -class RowData::_Internal { - public: -}; - -RowData::RowData() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.RowData) -} -RowData::RowData(const RowData& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - blob_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_blob().empty()) { - blob_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.blob_); - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.RowData) -} - -void RowData::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RowData_suvlim_2eproto.base); - blob_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -RowData::~RowData() { - // @@protoc_insertion_point(destructor:milvus.grpc.RowData) - SharedDtor(); -} - -void RowData::SharedDtor() { - blob_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void RowData::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const RowData& RowData::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RowData_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void RowData::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.RowData) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - blob_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* RowData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // bytes blob = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_blob(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, 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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* RowData::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.RowData) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bytes blob = 1; - if (this->blob().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_blob(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.RowData) - return target; -} - -size_t RowData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.RowData) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // bytes blob = 1; - if (this->blob().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_blob()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void RowData::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.RowData) - GOOGLE_DCHECK_NE(&from, this); - const RowData* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.RowData) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.RowData) - MergeFrom(*source); - } -} - -void RowData::MergeFrom(const RowData& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.RowData) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.blob().size() > 0) { - - blob_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.blob_); - } -} - -void RowData::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.RowData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RowData::CopyFrom(const RowData& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.RowData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RowData::IsInitialized() const { - return true; -} - -void RowData::InternalSwap(RowData* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - blob_.Swap(&other->blob_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata RowData::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void InsertParam::InitAsDefaultInstance() { - ::milvus::grpc::_InsertParam_default_instance_._instance.get_mutable()->schema_ = const_cast< ::milvus::grpc::Schema*>( - ::milvus::grpc::Schema::internal_default_instance()); -} -class InsertParam::_Internal { - public: - static const ::milvus::grpc::Schema& schema(const InsertParam* msg); -}; - -const ::milvus::grpc::Schema& -InsertParam::_Internal::schema(const InsertParam* msg) { - return *msg->schema_; -} -InsertParam::InsertParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.InsertParam) -} -InsertParam::InsertParam(const InsertParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - rows_data_(from.rows_data_), - entity_id_array_(from.entity_id_array_), - extra_params_(from.extra_params_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - partition_tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_partition_tag().empty()) { - partition_tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); - } - if (from._internal_has_schema()) { - schema_ = new ::milvus::grpc::Schema(*from.schema_); - } else { - schema_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.InsertParam) -} - -void InsertParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_InsertParam_suvlim_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - partition_tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - schema_ = nullptr; -} - -InsertParam::~InsertParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.InsertParam) - SharedDtor(); -} - -void InsertParam::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - partition_tag_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete schema_; -} - -void InsertParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const InsertParam& InsertParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_InsertParam_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void InsertParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.InsertParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - rows_data_.Clear(); - entity_id_array_.Clear(); - extra_params_.Clear(); - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - partition_tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && schema_ != nullptr) { - delete schema_; - } - schema_ = nullptr; - _internal_metadata_.Clear(); -} - -const char* InsertParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_collection_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.InsertParam.collection_name")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.grpc.Schema schema = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_schema(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.RowData rows_data = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_rows_data(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); - } else goto handle_unusual; - continue; - // repeated int64 entity_id_array = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_entity_id_array(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32) { - _internal_add_entity_id_array(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string partition_tag = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - auto str = _internal_mutable_partition_tag(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.InsertParam.partition_tag")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.KeyValuePair extra_params = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_extra_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* InsertParam::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.InsertParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_collection_name().data(), static_cast(this->_internal_collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.InsertParam.collection_name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_collection_name(), target); - } - - // .milvus.grpc.Schema schema = 2; - if (this->has_schema()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::schema(this), target, stream); - } - - // repeated .milvus.grpc.RowData rows_data = 3; - for (unsigned int i = 0, - n = static_cast(this->_internal_rows_data_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, this->_internal_rows_data(i), target, stream); - } - - // repeated int64 entity_id_array = 4; - { - int byte_size = _entity_id_array_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt64Packed( - 4, _internal_entity_id_array(), byte_size, target); - } - } - - // string partition_tag = 5; - if (this->partition_tag().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_partition_tag().data(), static_cast(this->_internal_partition_tag().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.InsertParam.partition_tag"); - target = stream->WriteStringMaybeAliased( - 5, this->_internal_partition_tag(), target); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 6; - for (unsigned int i = 0, - n = static_cast(this->_internal_extra_params_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(6, this->_internal_extra_params(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.InsertParam) - return target; -} - -size_t InsertParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.InsertParam) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.grpc.RowData rows_data = 3; - total_size += 1UL * this->_internal_rows_data_size(); - for (const auto& msg : this->rows_data_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated int64 entity_id_array = 4; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int64Size(this->entity_id_array_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _entity_id_array_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 6; - total_size += 1UL * this->_internal_extra_params_size(); - for (const auto& msg : this->extra_params_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_collection_name()); - } - - // string partition_tag = 5; - if (this->partition_tag().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_partition_tag()); - } - - // .milvus.grpc.Schema schema = 2; - if (this->has_schema()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *schema_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void InsertParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.InsertParam) - GOOGLE_DCHECK_NE(&from, this); - const InsertParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.InsertParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.InsertParam) - MergeFrom(*source); - } -} - -void InsertParam::MergeFrom(const InsertParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.InsertParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - rows_data_.MergeFrom(from.rows_data_); - entity_id_array_.MergeFrom(from.entity_id_array_); - extra_params_.MergeFrom(from.extra_params_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.partition_tag().size() > 0) { - - partition_tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); - } - if (from.has_schema()) { - _internal_mutable_schema()->::milvus::grpc::Schema::MergeFrom(from._internal_schema()); - } -} - -void InsertParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.InsertParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void InsertParam::CopyFrom(const InsertParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.InsertParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool InsertParam::IsInitialized() const { - return true; -} - -void InsertParam::InternalSwap(InsertParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - rows_data_.InternalSwap(&other->rows_data_); - entity_id_array_.InternalSwap(&other->entity_id_array_); - extra_params_.InternalSwap(&other->extra_params_); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - partition_tag_.Swap(&other->partition_tag_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(schema_, other->schema_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata InsertParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void SearchParam::InitAsDefaultInstance() { -} -class SearchParam::_Internal { - public: -}; - -SearchParam::SearchParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.SearchParam) -} -SearchParam::SearchParam(const SearchParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - vector_param_(from.vector_param_), - partition_tag_(from.partition_tag_), - extra_params_(from.extra_params_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - dsl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_dsl().empty()) { - dsl_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.dsl_); - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.SearchParam) -} - -void SearchParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SearchParam_suvlim_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - dsl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -SearchParam::~SearchParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.SearchParam) - SharedDtor(); -} - -void SearchParam::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - dsl_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void SearchParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SearchParam& SearchParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchParam_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void SearchParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.SearchParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - vector_param_.Clear(); - partition_tag_.Clear(); - extra_params_.Clear(); - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - dsl_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* SearchParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_collection_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.SearchParam.collection_name")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.VectorParam vector_param = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_vector_param(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else goto handle_unusual; - continue; - // string dsl = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_dsl(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.SearchParam.dsl")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated string partition_tag = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_partition_tag(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.SearchParam.partition_tag")); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_extra_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* SearchParam::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.SearchParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_collection_name().data(), static_cast(this->_internal_collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchParam.collection_name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_collection_name(), target); - } - - // repeated .milvus.grpc.VectorParam vector_param = 2; - for (unsigned int i = 0, - n = static_cast(this->_internal_vector_param_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, this->_internal_vector_param(i), target, stream); - } - - // string dsl = 3; - if (this->dsl().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_dsl().data(), static_cast(this->_internal_dsl().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchParam.dsl"); - target = stream->WriteStringMaybeAliased( - 3, this->_internal_dsl(), target); - } - - // repeated string partition_tag = 4; - for (int i = 0, n = this->_internal_partition_tag_size(); i < n; i++) { - const auto& s = this->_internal_partition_tag(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchParam.partition_tag"); - target = stream->WriteString(4, s, target); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, - n = static_cast(this->_internal_extra_params_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(5, this->_internal_extra_params(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SearchParam) - return target; -} - -size_t SearchParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.SearchParam) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.grpc.VectorParam vector_param = 2; - total_size += 1UL * this->_internal_vector_param_size(); - for (const auto& msg : this->vector_param_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated string partition_tag = 4; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(partition_tag_.size()); - for (int i = 0, n = partition_tag_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - partition_tag_.Get(i)); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - total_size += 1UL * this->_internal_extra_params_size(); - for (const auto& msg : this->extra_params_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_collection_name()); - } - - // string dsl = 3; - if (this->dsl().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_dsl()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SearchParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.SearchParam) - GOOGLE_DCHECK_NE(&from, this); - const SearchParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.SearchParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SearchParam) - MergeFrom(*source); - } -} - -void SearchParam::MergeFrom(const SearchParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.SearchParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - vector_param_.MergeFrom(from.vector_param_); - partition_tag_.MergeFrom(from.partition_tag_); - extra_params_.MergeFrom(from.extra_params_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.dsl().size() > 0) { - - dsl_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.dsl_); - } -} - -void SearchParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.SearchParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SearchParam::CopyFrom(const SearchParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.SearchParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SearchParam::IsInitialized() const { - return true; -} - -void SearchParam::InternalSwap(SearchParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - vector_param_.InternalSwap(&other->vector_param_); - partition_tag_.InternalSwap(&other->partition_tag_); - extra_params_.InternalSwap(&other->extra_params_); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - dsl_.Swap(&other->dsl_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata SearchParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void SearchInSegmentParam::InitAsDefaultInstance() { - ::milvus::grpc::_SearchInSegmentParam_default_instance_._instance.get_mutable()->search_param_ = const_cast< ::milvus::grpc::SearchParam*>( - ::milvus::grpc::SearchParam::internal_default_instance()); -} -class SearchInSegmentParam::_Internal { - public: - static const ::milvus::grpc::SearchParam& search_param(const SearchInSegmentParam* msg); -}; - -const ::milvus::grpc::SearchParam& -SearchInSegmentParam::_Internal::search_param(const SearchInSegmentParam* msg) { - return *msg->search_param_; -} -SearchInSegmentParam::SearchInSegmentParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.SearchInSegmentParam) -} -SearchInSegmentParam::SearchInSegmentParam(const SearchInSegmentParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - file_id_array_(from.file_id_array_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_search_param()) { - search_param_ = new ::milvus::grpc::SearchParam(*from.search_param_); - } else { - search_param_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.SearchInSegmentParam) -} - -void SearchInSegmentParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SearchInSegmentParam_suvlim_2eproto.base); - search_param_ = nullptr; -} - -SearchInSegmentParam::~SearchInSegmentParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.SearchInSegmentParam) - SharedDtor(); -} - -void SearchInSegmentParam::SharedDtor() { - if (this != internal_default_instance()) delete search_param_; -} - -void SearchInSegmentParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SearchInSegmentParam& SearchInSegmentParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchInSegmentParam_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void SearchInSegmentParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.SearchInSegmentParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - file_id_array_.Clear(); - if (GetArenaNoVirtual() == nullptr && search_param_ != nullptr) { - delete search_param_; - } - search_param_ = nullptr; - _internal_metadata_.Clear(); -} - -const char* SearchInSegmentParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated string file_id_array = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_file_id_array(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.SearchInSegmentParam.file_id_array")); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - // .milvus.grpc.SearchParam search_param = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_search_param(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* SearchInSegmentParam::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.SearchInSegmentParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string file_id_array = 1; - for (int i = 0, n = this->_internal_file_id_array_size(); i < n; i++) { - const auto& s = this->_internal_file_id_array(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchInSegmentParam.file_id_array"); - target = stream->WriteString(1, s, target); - } - - // .milvus.grpc.SearchParam search_param = 2; - if (this->has_search_param()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::search_param(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SearchInSegmentParam) - return target; -} - -size_t SearchInSegmentParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.SearchInSegmentParam) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated string file_id_array = 1; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(file_id_array_.size()); - for (int i = 0, n = file_id_array_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - file_id_array_.Get(i)); - } - - // .milvus.grpc.SearchParam search_param = 2; - if (this->has_search_param()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *search_param_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SearchInSegmentParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.SearchInSegmentParam) - GOOGLE_DCHECK_NE(&from, this); - const SearchInSegmentParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.SearchInSegmentParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SearchInSegmentParam) - MergeFrom(*source); - } -} - -void SearchInSegmentParam::MergeFrom(const SearchInSegmentParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.SearchInSegmentParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - file_id_array_.MergeFrom(from.file_id_array_); - if (from.has_search_param()) { - _internal_mutable_search_param()->::milvus::grpc::SearchParam::MergeFrom(from._internal_search_param()); - } -} - -void SearchInSegmentParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.SearchInSegmentParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SearchInSegmentParam::CopyFrom(const SearchInSegmentParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.SearchInSegmentParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SearchInSegmentParam::IsInitialized() const { - return true; -} - -void SearchInSegmentParam::InternalSwap(SearchInSegmentParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - file_id_array_.InternalSwap(&other->file_id_array_); - swap(search_param_, other->search_param_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata SearchInSegmentParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void Entities::InitAsDefaultInstance() { - ::milvus::grpc::_Entities_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( - ::milvus::grpc::Status::internal_default_instance()); -} -class Entities::_Internal { - public: - static const ::milvus::grpc::Status& status(const Entities* msg); -}; - -const ::milvus::grpc::Status& -Entities::_Internal::status(const Entities* msg) { - return *msg->status_; -} -void Entities::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -Entities::Entities() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.Entities) -} -Entities::Entities(const Entities& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - ids_(from.ids_), - valid_row_(from.valid_row_), - rows_data_(from.rows_data_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_status()) { - status_ = new ::milvus::grpc::Status(*from.status_); - } else { - status_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.Entities) -} - -void Entities::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Entities_suvlim_2eproto.base); - status_ = nullptr; -} - -Entities::~Entities() { - // @@protoc_insertion_point(destructor:milvus.grpc.Entities) - SharedDtor(); -} - -void Entities::SharedDtor() { - if (this != internal_default_instance()) delete status_; -} - -void Entities::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Entities& Entities::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Entities_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void Entities::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.Entities) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ids_.Clear(); - valid_row_.Clear(); - rows_data_.Clear(); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - _internal_metadata_.Clear(); -} - -const char* Entities::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated int64 ids = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_ids(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) { - _internal_add_ids(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated bool valid_row = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedBoolParser(_internal_mutable_valid_row(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24) { - _internal_add_valid_row(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.RowData rows_data = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_rows_data(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* Entities::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Entities) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::status(this), target, stream); - } - - // repeated int64 ids = 2; - { - int byte_size = _ids_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt64Packed( - 2, _internal_ids(), byte_size, target); - } - } - - // repeated bool valid_row = 3; - if (this->_internal_valid_row_size() > 0) { - target = stream->WriteFixedPacked(3, _internal_valid_row(), target); - } - - // repeated .milvus.grpc.RowData rows_data = 4; - for (unsigned int i = 0, - n = static_cast(this->_internal_rows_data_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, this->_internal_rows_data(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Entities) - return target; -} - -size_t Entities::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.Entities) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated int64 ids = 2; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int64Size(this->ids_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _ids_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated bool valid_row = 3; - { - unsigned int count = static_cast(this->_internal_valid_row_size()); - size_t data_size = 1UL * count; - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _valid_row_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated .milvus.grpc.RowData rows_data = 4; - total_size += 1UL * this->_internal_rows_data_size(); - for (const auto& msg : this->rows_data_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Entities::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.Entities) - GOOGLE_DCHECK_NE(&from, this); - const Entities* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.Entities) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Entities) - MergeFrom(*source); - } -} - -void Entities::MergeFrom(const Entities& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.Entities) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - ids_.MergeFrom(from.ids_); - valid_row_.MergeFrom(from.valid_row_); - rows_data_.MergeFrom(from.rows_data_); - if (from.has_status()) { - _internal_mutable_status()->::milvus::grpc::Status::MergeFrom(from._internal_status()); - } -} - -void Entities::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Entities) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Entities::CopyFrom(const Entities& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.Entities) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Entities::IsInitialized() const { - return true; -} - -void Entities::InternalSwap(Entities* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - ids_.InternalSwap(&other->ids_); - valid_row_.InternalSwap(&other->valid_row_); - rows_data_.InternalSwap(&other->rows_data_); - swap(status_, other->status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata Entities::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void QueryResult::InitAsDefaultInstance() { - ::milvus::grpc::_QueryResult_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( - ::milvus::grpc::Status::internal_default_instance()); - ::milvus::grpc::_QueryResult_default_instance_._instance.get_mutable()->entities_ = const_cast< ::milvus::grpc::Entities*>( - ::milvus::grpc::Entities::internal_default_instance()); -} -class QueryResult::_Internal { - public: - static const ::milvus::grpc::Status& status(const QueryResult* msg); - static const ::milvus::grpc::Entities& entities(const QueryResult* msg); -}; - -const ::milvus::grpc::Status& -QueryResult::_Internal::status(const QueryResult* msg) { - return *msg->status_; -} -const ::milvus::grpc::Entities& -QueryResult::_Internal::entities(const QueryResult* msg) { - return *msg->entities_; -} -void QueryResult::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -QueryResult::QueryResult() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.QueryResult) -} -QueryResult::QueryResult(const QueryResult& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - scores_(from.scores_), - distances_(from.distances_), - extra_params_(from.extra_params_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_status()) { - status_ = new ::milvus::grpc::Status(*from.status_); - } else { - status_ = nullptr; - } - if (from._internal_has_entities()) { - entities_ = new ::milvus::grpc::Entities(*from.entities_); - } else { - entities_ = nullptr; - } - row_num_ = from.row_num_; - // @@protoc_insertion_point(copy_constructor:milvus.grpc.QueryResult) -} - -void QueryResult::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_QueryResult_suvlim_2eproto.base); - ::memset(&status_, 0, static_cast( - reinterpret_cast(&row_num_) - - reinterpret_cast(&status_)) + sizeof(row_num_)); -} - -QueryResult::~QueryResult() { - // @@protoc_insertion_point(destructor:milvus.grpc.QueryResult) - SharedDtor(); -} - -void QueryResult::SharedDtor() { - if (this != internal_default_instance()) delete status_; - if (this != internal_default_instance()) delete entities_; -} - -void QueryResult::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const QueryResult& QueryResult::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_QueryResult_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void QueryResult::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.QueryResult) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - scores_.Clear(); - distances_.Clear(); - extra_params_.Clear(); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - if (GetArenaNoVirtual() == nullptr && entities_ != nullptr) { - delete entities_; - } - entities_ = nullptr; - row_num_ = PROTOBUF_LONGLONG(0); - _internal_metadata_.Clear(); -} - -const char* QueryResult::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.grpc.Entities entities = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_entities(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 row_num = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - row_num_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated float scores = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(_internal_mutable_scores(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37) { - _internal_add_scores(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // repeated float distances = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(_internal_mutable_distances(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 45) { - _internal_add_distances(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.KeyValuePair extra_params = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_extra_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* QueryResult::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.QueryResult) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::status(this), target, stream); - } - - // .milvus.grpc.Entities entities = 2; - if (this->has_entities()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::entities(this), target, stream); - } - - // int64 row_num = 3; - if (this->row_num() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_row_num(), target); - } - - // repeated float scores = 4; - if (this->_internal_scores_size() > 0) { - target = stream->WriteFixedPacked(4, _internal_scores(), target); - } - - // repeated float distances = 5; - if (this->_internal_distances_size() > 0) { - target = stream->WriteFixedPacked(5, _internal_distances(), target); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 6; - for (unsigned int i = 0, - n = static_cast(this->_internal_extra_params_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(6, this->_internal_extra_params(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.QueryResult) - return target; -} - -size_t QueryResult::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.QueryResult) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated float scores = 4; - { - unsigned int count = static_cast(this->_internal_scores_size()); - size_t data_size = 4UL * count; - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _scores_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated float distances = 5; - { - unsigned int count = static_cast(this->_internal_distances_size()); - size_t data_size = 4UL * count; - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _distances_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 6; - total_size += 1UL * this->_internal_extra_params_size(); - for (const auto& msg : this->extra_params_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - // .milvus.grpc.Entities entities = 2; - if (this->has_entities()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *entities_); - } - - // int64 row_num = 3; - if (this->row_num() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_row_num()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void QueryResult::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.QueryResult) - GOOGLE_DCHECK_NE(&from, this); - const QueryResult* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.QueryResult) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.QueryResult) - MergeFrom(*source); - } -} - -void QueryResult::MergeFrom(const QueryResult& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.QueryResult) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - scores_.MergeFrom(from.scores_); - distances_.MergeFrom(from.distances_); - extra_params_.MergeFrom(from.extra_params_); - if (from.has_status()) { - _internal_mutable_status()->::milvus::grpc::Status::MergeFrom(from._internal_status()); - } - if (from.has_entities()) { - _internal_mutable_entities()->::milvus::grpc::Entities::MergeFrom(from._internal_entities()); - } - if (from.row_num() != 0) { - _internal_set_row_num(from._internal_row_num()); - } -} - -void QueryResult::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.QueryResult) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void QueryResult::CopyFrom(const QueryResult& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.QueryResult) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool QueryResult::IsInitialized() const { - return true; -} - -void QueryResult::InternalSwap(QueryResult* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - scores_.InternalSwap(&other->scores_); - distances_.InternalSwap(&other->distances_); - extra_params_.InternalSwap(&other->extra_params_); - swap(status_, other->status_); - swap(entities_, other->entities_); - swap(row_num_, other->row_num_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata QueryResult::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void StringReply::InitAsDefaultInstance() { - ::milvus::grpc::_StringReply_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( - ::milvus::grpc::Status::internal_default_instance()); -} -class StringReply::_Internal { - public: - static const ::milvus::grpc::Status& status(const StringReply* msg); -}; - -const ::milvus::grpc::Status& -StringReply::_Internal::status(const StringReply* msg) { - return *msg->status_; -} -void StringReply::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -StringReply::StringReply() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.StringReply) -} -StringReply::StringReply(const StringReply& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - string_reply_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_string_reply().empty()) { - string_reply_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.string_reply_); - } - if (from._internal_has_status()) { - status_ = new ::milvus::grpc::Status(*from.status_); - } else { - status_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.StringReply) -} - -void StringReply::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_StringReply_suvlim_2eproto.base); - string_reply_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - status_ = nullptr; -} - -StringReply::~StringReply() { - // @@protoc_insertion_point(destructor:milvus.grpc.StringReply) - SharedDtor(); -} - -void StringReply::SharedDtor() { - string_reply_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete status_; -} - -void StringReply::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const StringReply& StringReply::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StringReply_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void StringReply::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.StringReply) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - string_reply_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - _internal_metadata_.Clear(); -} - -const char* StringReply::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string string_reply = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_string_reply(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.StringReply.string_reply")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* StringReply::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.StringReply) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::status(this), target, stream); - } - - // string string_reply = 2; - if (this->string_reply().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_string_reply().data(), static_cast(this->_internal_string_reply().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.StringReply.string_reply"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_string_reply(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.StringReply) - return target; -} - -size_t StringReply::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.StringReply) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string string_reply = 2; - if (this->string_reply().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_string_reply()); - } - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void StringReply::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.StringReply) - GOOGLE_DCHECK_NE(&from, this); - const StringReply* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.StringReply) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.StringReply) - MergeFrom(*source); - } -} - -void StringReply::MergeFrom(const StringReply& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.StringReply) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.string_reply().size() > 0) { - - string_reply_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.string_reply_); - } - if (from.has_status()) { - _internal_mutable_status()->::milvus::grpc::Status::MergeFrom(from._internal_status()); - } -} - -void StringReply::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.StringReply) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StringReply::CopyFrom(const StringReply& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.StringReply) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StringReply::IsInitialized() const { - return true; -} - -void StringReply::InternalSwap(StringReply* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - string_reply_.Swap(&other->string_reply_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(status_, other->status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata StringReply::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void BoolReply::InitAsDefaultInstance() { - ::milvus::grpc::_BoolReply_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( - ::milvus::grpc::Status::internal_default_instance()); -} -class BoolReply::_Internal { - public: - static const ::milvus::grpc::Status& status(const BoolReply* msg); -}; - -const ::milvus::grpc::Status& -BoolReply::_Internal::status(const BoolReply* msg) { - return *msg->status_; -} -void BoolReply::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -BoolReply::BoolReply() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.BoolReply) -} -BoolReply::BoolReply(const BoolReply& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_status()) { - status_ = new ::milvus::grpc::Status(*from.status_); - } else { - status_ = nullptr; - } - bool_reply_ = from.bool_reply_; - // @@protoc_insertion_point(copy_constructor:milvus.grpc.BoolReply) -} - -void BoolReply::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BoolReply_suvlim_2eproto.base); - ::memset(&status_, 0, static_cast( - reinterpret_cast(&bool_reply_) - - reinterpret_cast(&status_)) + sizeof(bool_reply_)); -} - -BoolReply::~BoolReply() { - // @@protoc_insertion_point(destructor:milvus.grpc.BoolReply) - SharedDtor(); -} - -void BoolReply::SharedDtor() { - if (this != internal_default_instance()) delete status_; -} - -void BoolReply::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const BoolReply& BoolReply::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BoolReply_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void BoolReply::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.BoolReply) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - bool_reply_ = false; - _internal_metadata_.Clear(); -} - -const char* BoolReply::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bool bool_reply = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - bool_reply_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* BoolReply::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.BoolReply) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::status(this), target, stream); - } - - // bool bool_reply = 2; - if (this->bool_reply() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_bool_reply(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.BoolReply) - return target; -} - -size_t BoolReply::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.BoolReply) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - // bool bool_reply = 2; - if (this->bool_reply() != 0) { - total_size += 1 + 1; - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void BoolReply::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.BoolReply) - GOOGLE_DCHECK_NE(&from, this); - const BoolReply* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.BoolReply) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.BoolReply) - MergeFrom(*source); - } -} - -void BoolReply::MergeFrom(const BoolReply& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.BoolReply) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_status()) { - _internal_mutable_status()->::milvus::grpc::Status::MergeFrom(from._internal_status()); - } - if (from.bool_reply() != 0) { - _internal_set_bool_reply(from._internal_bool_reply()); - } -} - -void BoolReply::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.BoolReply) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BoolReply::CopyFrom(const BoolReply& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.BoolReply) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BoolReply::IsInitialized() const { - return true; -} - -void BoolReply::InternalSwap(BoolReply* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(status_, other->status_); - swap(bool_reply_, other->bool_reply_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata BoolReply::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void CollectionRowCount::InitAsDefaultInstance() { - ::milvus::grpc::_CollectionRowCount_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( - ::milvus::grpc::Status::internal_default_instance()); -} -class CollectionRowCount::_Internal { - public: - static const ::milvus::grpc::Status& status(const CollectionRowCount* msg); -}; - -const ::milvus::grpc::Status& -CollectionRowCount::_Internal::status(const CollectionRowCount* msg) { - return *msg->status_; -} -void CollectionRowCount::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -CollectionRowCount::CollectionRowCount() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.CollectionRowCount) -} -CollectionRowCount::CollectionRowCount(const CollectionRowCount& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_status()) { - status_ = new ::milvus::grpc::Status(*from.status_); - } else { - status_ = nullptr; - } - collection_row_count_ = from.collection_row_count_; - // @@protoc_insertion_point(copy_constructor:milvus.grpc.CollectionRowCount) -} - -void CollectionRowCount::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionRowCount_suvlim_2eproto.base); - ::memset(&status_, 0, static_cast( - reinterpret_cast(&collection_row_count_) - - reinterpret_cast(&status_)) + sizeof(collection_row_count_)); -} - -CollectionRowCount::~CollectionRowCount() { - // @@protoc_insertion_point(destructor:milvus.grpc.CollectionRowCount) - SharedDtor(); -} - -void CollectionRowCount::SharedDtor() { - if (this != internal_default_instance()) delete status_; -} - -void CollectionRowCount::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CollectionRowCount& CollectionRowCount::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionRowCount_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void CollectionRowCount::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.CollectionRowCount) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - collection_row_count_ = PROTOBUF_LONGLONG(0); - _internal_metadata_.Clear(); -} - -const char* CollectionRowCount::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 collection_row_count = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - collection_row_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* CollectionRowCount::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.CollectionRowCount) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::status(this), target, stream); - } - - // int64 collection_row_count = 2; - if (this->collection_row_count() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_collection_row_count(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.CollectionRowCount) - return target; -} - -size_t CollectionRowCount::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.CollectionRowCount) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - // int64 collection_row_count = 2; - if (this->collection_row_count() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_collection_row_count()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CollectionRowCount::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.CollectionRowCount) - GOOGLE_DCHECK_NE(&from, this); - const CollectionRowCount* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.CollectionRowCount) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.CollectionRowCount) - MergeFrom(*source); - } -} - -void CollectionRowCount::MergeFrom(const CollectionRowCount& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.CollectionRowCount) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_status()) { - _internal_mutable_status()->::milvus::grpc::Status::MergeFrom(from._internal_status()); - } - if (from.collection_row_count() != 0) { - _internal_set_collection_row_count(from._internal_collection_row_count()); - } -} - -void CollectionRowCount::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.CollectionRowCount) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CollectionRowCount::CopyFrom(const CollectionRowCount& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.CollectionRowCount) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CollectionRowCount::IsInitialized() const { - return true; -} - -void CollectionRowCount::InternalSwap(CollectionRowCount* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(status_, other->status_); - swap(collection_row_count_, other->collection_row_count_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata CollectionRowCount::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void Command::InitAsDefaultInstance() { -} -class Command::_Internal { - public: -}; - -Command::Command() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.Command) -} -Command::Command(const Command& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - cmd_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_cmd().empty()) { - cmd_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.cmd_); - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.Command) -} - -void Command::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Command_suvlim_2eproto.base); - cmd_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -Command::~Command() { - // @@protoc_insertion_point(destructor:milvus.grpc.Command) - SharedDtor(); -} - -void Command::SharedDtor() { - cmd_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void Command::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Command& Command::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Command_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void Command::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.Command) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cmd_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* Command::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string cmd = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_cmd(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.Command.cmd")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* Command::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Command) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string cmd = 1; - if (this->cmd().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_cmd().data(), static_cast(this->_internal_cmd().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.Command.cmd"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_cmd(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Command) - return target; -} - -size_t Command::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.Command) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string cmd = 1; - if (this->cmd().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_cmd()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Command::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.Command) - GOOGLE_DCHECK_NE(&from, this); - const Command* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.Command) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Command) - MergeFrom(*source); - } -} - -void Command::MergeFrom(const Command& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.Command) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.cmd().size() > 0) { - - cmd_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.cmd_); - } -} - -void Command::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Command) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Command::CopyFrom(const Command& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.Command) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Command::IsInitialized() const { - return true; -} - -void Command::InternalSwap(Command* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - cmd_.Swap(&other->cmd_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata Command::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void IndexParam::InitAsDefaultInstance() { - ::milvus::grpc::_IndexParam_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( - ::milvus::grpc::Status::internal_default_instance()); -} -class IndexParam::_Internal { - public: - static const ::milvus::grpc::Status& status(const IndexParam* msg); -}; - -const ::milvus::grpc::Status& -IndexParam::_Internal::status(const IndexParam* msg) { - return *msg->status_; -} -void IndexParam::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -IndexParam::IndexParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.IndexParam) -} -IndexParam::IndexParam(const IndexParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - extra_params_(from.extra_params_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_field_name().empty()) { - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - index_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_index_name().empty()) { - index_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.index_name_); - } - if (from._internal_has_status()) { - status_ = new ::milvus::grpc::Status(*from.status_); - } else { - status_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.IndexParam) -} - -void IndexParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_IndexParam_suvlim_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - index_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - status_ = nullptr; -} - -IndexParam::~IndexParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.IndexParam) - SharedDtor(); -} - -void IndexParam::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - index_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete status_; -} - -void IndexParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const IndexParam& IndexParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_IndexParam_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void IndexParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.IndexParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - extra_params_.Clear(); - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - index_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - _internal_metadata_.Clear(); -} - -const char* IndexParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_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)) { - auto str = _internal_mutable_collection_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.IndexParam.collection_name")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string field_name = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_field_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.IndexParam.field_name")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string index_name = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - auto str = _internal_mutable_index_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.IndexParam.index_name")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_extra_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* IndexParam::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.IndexParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::status(this), target, stream); - } - - // string collection_name = 2; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_collection_name().data(), static_cast(this->_internal_collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.IndexParam.collection_name"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_collection_name(), target); - } - - // string field_name = 3; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_field_name().data(), static_cast(this->_internal_field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.IndexParam.field_name"); - target = stream->WriteStringMaybeAliased( - 3, this->_internal_field_name(), target); - } - - // string index_name = 4; - if (this->index_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_index_name().data(), static_cast(this->_internal_index_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.IndexParam.index_name"); - target = stream->WriteStringMaybeAliased( - 4, this->_internal_index_name(), target); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, - n = static_cast(this->_internal_extra_params_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(5, this->_internal_extra_params(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.IndexParam) - return target; -} - -size_t IndexParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.IndexParam) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - total_size += 1UL * this->_internal_extra_params_size(); - for (const auto& msg : this->extra_params_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // string collection_name = 2; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_collection_name()); - } - - // string field_name = 3; - if (this->field_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_field_name()); - } - - // string index_name = 4; - if (this->index_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_index_name()); - } - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void IndexParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.IndexParam) - GOOGLE_DCHECK_NE(&from, this); - const IndexParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.IndexParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.IndexParam) - MergeFrom(*source); - } -} - -void IndexParam::MergeFrom(const IndexParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.IndexParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - extra_params_.MergeFrom(from.extra_params_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.field_name().size() > 0) { - - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - if (from.index_name().size() > 0) { - - index_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.index_name_); - } - if (from.has_status()) { - _internal_mutable_status()->::milvus::grpc::Status::MergeFrom(from._internal_status()); - } -} - -void IndexParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.IndexParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void IndexParam::CopyFrom(const IndexParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.IndexParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool IndexParam::IsInitialized() const { - return true; -} - -void IndexParam::InternalSwap(IndexParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - extra_params_.InternalSwap(&other->extra_params_); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - index_name_.Swap(&other->index_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(status_, other->status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata IndexParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void FlushParam::InitAsDefaultInstance() { -} -class FlushParam::_Internal { - public: -}; - -FlushParam::FlushParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.FlushParam) -} -FlushParam::FlushParam(const FlushParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - collection_name_array_(from.collection_name_array_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:milvus.grpc.FlushParam) -} - -void FlushParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FlushParam_suvlim_2eproto.base); -} - -FlushParam::~FlushParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.FlushParam) - SharedDtor(); -} - -void FlushParam::SharedDtor() { -} - -void FlushParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const FlushParam& FlushParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FlushParam_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void FlushParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.FlushParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - collection_name_array_.Clear(); - _internal_metadata_.Clear(); -} - -const char* FlushParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated string collection_name_array = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_collection_name_array(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.FlushParam.collection_name_array")); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* FlushParam::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.FlushParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string collection_name_array = 1; - for (int i = 0, n = this->_internal_collection_name_array_size(); i < n; i++) { - const auto& s = this->_internal_collection_name_array(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.FlushParam.collection_name_array"); - target = stream->WriteString(1, s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.FlushParam) - return target; -} - -size_t FlushParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.FlushParam) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated string collection_name_array = 1; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(collection_name_array_.size()); - for (int i = 0, n = collection_name_array_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - collection_name_array_.Get(i)); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void FlushParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.FlushParam) - GOOGLE_DCHECK_NE(&from, this); - const FlushParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.FlushParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.FlushParam) - MergeFrom(*source); - } -} - -void FlushParam::MergeFrom(const FlushParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.FlushParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - collection_name_array_.MergeFrom(from.collection_name_array_); -} - -void FlushParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.FlushParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FlushParam::CopyFrom(const FlushParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.FlushParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FlushParam::IsInitialized() const { - return true; -} - -void FlushParam::InternalSwap(FlushParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - collection_name_array_.InternalSwap(&other->collection_name_array_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata FlushParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void CompactParam::InitAsDefaultInstance() { -} -class CompactParam::_Internal { - public: -}; - -CompactParam::CompactParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.CompactParam) -} -CompactParam::CompactParam(const CompactParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - threshold_ = from.threshold_; - // @@protoc_insertion_point(copy_constructor:milvus.grpc.CompactParam) -} - -void CompactParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CompactParam_suvlim_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - threshold_ = 0; -} - -CompactParam::~CompactParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.CompactParam) - SharedDtor(); -} - -void CompactParam::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void CompactParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CompactParam& CompactParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CompactParam_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void CompactParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.CompactParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - threshold_ = 0; - _internal_metadata_.Clear(); -} - -const char* CompactParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_collection_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.CompactParam.collection_name")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // double threshold = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { - threshold_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* CompactParam::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.CompactParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_collection_name().data(), static_cast(this->_internal_collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.CompactParam.collection_name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_collection_name(), target); - } - - // double threshold = 2; - if (!(this->threshold() <= 0 && this->threshold() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_threshold(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.CompactParam) - return target; -} - -size_t CompactParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.CompactParam) - size_t total_size = 0; - - ::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->_internal_collection_name()); - } - - // double threshold = 2; - if (!(this->threshold() <= 0 && this->threshold() >= 0)) { - total_size += 1 + 8; - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CompactParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.CompactParam) - GOOGLE_DCHECK_NE(&from, this); - const CompactParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.CompactParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.CompactParam) - MergeFrom(*source); - } -} - -void CompactParam::MergeFrom(const CompactParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.CompactParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (!(from.threshold() <= 0 && from.threshold() >= 0)) { - _internal_set_threshold(from._internal_threshold()); - } -} - -void CompactParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.CompactParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CompactParam::CopyFrom(const CompactParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.CompactParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CompactParam::IsInitialized() const { - return true; -} - -void CompactParam::InternalSwap(CompactParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(threshold_, other->threshold_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata CompactParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void DeleteByIDParam::InitAsDefaultInstance() { -} -class DeleteByIDParam::_Internal { - public: -}; - -DeleteByIDParam::DeleteByIDParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.DeleteByIDParam) -} -DeleteByIDParam::DeleteByIDParam(const DeleteByIDParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - id_array_(from.id_array_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.DeleteByIDParam) -} - -void DeleteByIDParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DeleteByIDParam_suvlim_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -DeleteByIDParam::~DeleteByIDParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.DeleteByIDParam) - SharedDtor(); -} - -void DeleteByIDParam::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void DeleteByIDParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DeleteByIDParam& DeleteByIDParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DeleteByIDParam_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void DeleteByIDParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.DeleteByIDParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - id_array_.Clear(); - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* DeleteByIDParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_collection_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.DeleteByIDParam.collection_name")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated int64 id_array = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_id_array(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) { - _internal_add_id_array(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* DeleteByIDParam::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.DeleteByIDParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_collection_name().data(), static_cast(this->_internal_collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.DeleteByIDParam.collection_name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_collection_name(), target); - } - - // repeated int64 id_array = 2; - { - int byte_size = _id_array_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt64Packed( - 2, _internal_id_array(), byte_size, target); - } - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.DeleteByIDParam) - return target; -} - -size_t DeleteByIDParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.DeleteByIDParam) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated int64 id_array = 2; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int64Size(this->id_array_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _id_array_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_collection_name()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DeleteByIDParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.DeleteByIDParam) - GOOGLE_DCHECK_NE(&from, this); - const DeleteByIDParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.DeleteByIDParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.DeleteByIDParam) - MergeFrom(*source); - } -} - -void DeleteByIDParam::MergeFrom(const DeleteByIDParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.DeleteByIDParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - id_array_.MergeFrom(from.id_array_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } -} - -void DeleteByIDParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.DeleteByIDParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DeleteByIDParam::CopyFrom(const DeleteByIDParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.DeleteByIDParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DeleteByIDParam::IsInitialized() const { - return true; -} - -void DeleteByIDParam::InternalSwap(DeleteByIDParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - id_array_.InternalSwap(&other->id_array_); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata DeleteByIDParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void CollectionInfo::InitAsDefaultInstance() { - ::milvus::grpc::_CollectionInfo_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( - ::milvus::grpc::Status::internal_default_instance()); -} -class CollectionInfo::_Internal { - public: - static const ::milvus::grpc::Status& status(const CollectionInfo* msg); -}; - -const ::milvus::grpc::Status& -CollectionInfo::_Internal::status(const CollectionInfo* msg) { - return *msg->status_; -} -void CollectionInfo::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -CollectionInfo::CollectionInfo() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.CollectionInfo) -} -CollectionInfo::CollectionInfo(const CollectionInfo& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - json_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_json_info().empty()) { - json_info_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.json_info_); - } - if (from._internal_has_status()) { - status_ = new ::milvus::grpc::Status(*from.status_); - } else { - status_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.CollectionInfo) -} - -void CollectionInfo::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionInfo_suvlim_2eproto.base); - json_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - status_ = nullptr; -} - -CollectionInfo::~CollectionInfo() { - // @@protoc_insertion_point(destructor:milvus.grpc.CollectionInfo) - SharedDtor(); -} - -void CollectionInfo::SharedDtor() { - json_info_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete status_; -} - -void CollectionInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CollectionInfo& CollectionInfo::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionInfo_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void CollectionInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.CollectionInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - json_info_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; - _internal_metadata_.Clear(); -} - -const char* CollectionInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Status status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_status(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string json_info = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_json_info(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.CollectionInfo.json_info")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* CollectionInfo::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.CollectionInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::status(this), target, stream); - } - - // string json_info = 2; - if (this->json_info().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_json_info().data(), static_cast(this->_internal_json_info().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.CollectionInfo.json_info"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_json_info(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.CollectionInfo) - return target; -} - -size_t CollectionInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.CollectionInfo) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string json_info = 2; - if (this->json_info().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_json_info()); - } - - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CollectionInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.CollectionInfo) - GOOGLE_DCHECK_NE(&from, this); - const CollectionInfo* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.CollectionInfo) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.CollectionInfo) - MergeFrom(*source); - } -} - -void CollectionInfo::MergeFrom(const CollectionInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.CollectionInfo) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.json_info().size() > 0) { - - json_info_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.json_info_); - } - if (from.has_status()) { - _internal_mutable_status()->::milvus::grpc::Status::MergeFrom(from._internal_status()); - } -} - -void CollectionInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.CollectionInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CollectionInfo::CopyFrom(const CollectionInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.CollectionInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CollectionInfo::IsInitialized() const { - return true; -} - -void CollectionInfo::InternalSwap(CollectionInfo* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - json_info_.Swap(&other->json_info_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(status_, other->status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata CollectionInfo::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void GetEntityIDsParam::InitAsDefaultInstance() { -} -class GetEntityIDsParam::_Internal { - public: -}; - -GetEntityIDsParam::GetEntityIDsParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.GetEntityIDsParam) -} -GetEntityIDsParam::GetEntityIDsParam(const GetEntityIDsParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - segment_id_ = from.segment_id_; - // @@protoc_insertion_point(copy_constructor:milvus.grpc.GetEntityIDsParam) -} - -void GetEntityIDsParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetEntityIDsParam_suvlim_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - segment_id_ = PROTOBUF_LONGLONG(0); -} - -GetEntityIDsParam::~GetEntityIDsParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.GetEntityIDsParam) - SharedDtor(); -} - -void GetEntityIDsParam::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void GetEntityIDsParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetEntityIDsParam& GetEntityIDsParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetEntityIDsParam_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void GetEntityIDsParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.GetEntityIDsParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - segment_id_ = PROTOBUF_LONGLONG(0); - _internal_metadata_.Clear(); -} - -const char* GetEntityIDsParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_collection_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.GetEntityIDsParam.collection_name")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 segment_id = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - segment_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* GetEntityIDsParam::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.GetEntityIDsParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_collection_name().data(), static_cast(this->_internal_collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.GetEntityIDsParam.collection_name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_collection_name(), target); - } - - // int64 segment_id = 2; - if (this->segment_id() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_segment_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.GetEntityIDsParam) - return target; -} - -size_t GetEntityIDsParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.GetEntityIDsParam) - size_t total_size = 0; - - ::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->_internal_collection_name()); - } - - // int64 segment_id = 2; - if (this->segment_id() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_segment_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetEntityIDsParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.GetEntityIDsParam) - GOOGLE_DCHECK_NE(&from, this); - const GetEntityIDsParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.GetEntityIDsParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.GetEntityIDsParam) - MergeFrom(*source); - } -} - -void GetEntityIDsParam::MergeFrom(const GetEntityIDsParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.GetEntityIDsParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.segment_id() != 0) { - _internal_set_segment_id(from._internal_segment_id()); - } -} - -void GetEntityIDsParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.GetEntityIDsParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetEntityIDsParam::CopyFrom(const GetEntityIDsParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.GetEntityIDsParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetEntityIDsParam::IsInitialized() const { - return true; -} - -void GetEntityIDsParam::InternalSwap(GetEntityIDsParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(segment_id_, other->segment_id_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetEntityIDsParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void EntityIdentity::InitAsDefaultInstance() { -} -class EntityIdentity::_Internal { - public: -}; - -EntityIdentity::EntityIdentity() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.EntityIdentity) -} -EntityIdentity::EntityIdentity(const EntityIdentity& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - id_array_(from.id_array_), - field_names_(from.field_names_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.EntityIdentity) -} - -void EntityIdentity::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EntityIdentity_suvlim_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -EntityIdentity::~EntityIdentity() { - // @@protoc_insertion_point(destructor:milvus.grpc.EntityIdentity) - SharedDtor(); -} - -void EntityIdentity::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void EntityIdentity::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const EntityIdentity& EntityIdentity::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EntityIdentity_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void EntityIdentity::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.EntityIdentity) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - id_array_.Clear(); - field_names_.Clear(); - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* EntityIdentity::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_collection_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.EntityIdentity.collection_name")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated int64 id_array = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_id_array(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) { - _internal_add_id_array(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated string field_names = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_field_names(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.EntityIdentity.field_names")); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* EntityIdentity::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.EntityIdentity) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_collection_name().data(), static_cast(this->_internal_collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.EntityIdentity.collection_name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_collection_name(), target); - } - - // repeated int64 id_array = 2; - { - int byte_size = _id_array_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt64Packed( - 2, _internal_id_array(), byte_size, target); - } - } - - // repeated string field_names = 3; - for (int i = 0, n = this->_internal_field_names_size(); i < n; i++) { - const auto& s = this->_internal_field_names(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.EntityIdentity.field_names"); - target = stream->WriteString(3, s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.EntityIdentity) - return target; -} - -size_t EntityIdentity::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.EntityIdentity) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated int64 id_array = 2; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int64Size(this->id_array_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _id_array_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated string field_names = 3; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(field_names_.size()); - for (int i = 0, n = field_names_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - field_names_.Get(i)); - } - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_collection_name()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void EntityIdentity::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.EntityIdentity) - GOOGLE_DCHECK_NE(&from, this); - const EntityIdentity* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.EntityIdentity) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.EntityIdentity) - MergeFrom(*source); - } -} - -void EntityIdentity::MergeFrom(const EntityIdentity& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.EntityIdentity) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - id_array_.MergeFrom(from.id_array_); - field_names_.MergeFrom(from.field_names_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } -} - -void EntityIdentity::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.EntityIdentity) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EntityIdentity::CopyFrom(const EntityIdentity& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.EntityIdentity) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EntityIdentity::IsInitialized() const { - return true; -} - -void EntityIdentity::InternalSwap(EntityIdentity* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - id_array_.InternalSwap(&other->id_array_); - field_names_.InternalSwap(&other->field_names_); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata EntityIdentity::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void VectorFieldParam::InitAsDefaultInstance() { -} -class VectorFieldParam::_Internal { - public: -}; - -VectorFieldParam::VectorFieldParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.VectorFieldParam) -} -VectorFieldParam::VectorFieldParam(const VectorFieldParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - dimension_ = from.dimension_; - // @@protoc_insertion_point(copy_constructor:milvus.grpc.VectorFieldParam) -} - -void VectorFieldParam::SharedCtor() { - dimension_ = PROTOBUF_LONGLONG(0); -} - -VectorFieldParam::~VectorFieldParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.VectorFieldParam) - SharedDtor(); -} - -void VectorFieldParam::SharedDtor() { -} - -void VectorFieldParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const VectorFieldParam& VectorFieldParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VectorFieldParam_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void VectorFieldParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.VectorFieldParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - dimension_ = PROTOBUF_LONGLONG(0); - _internal_metadata_.Clear(); -} - -const char* VectorFieldParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // int64 dimension = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - dimension_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* VectorFieldParam::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.VectorFieldParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 dimension = 1; - if (this->dimension() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_dimension(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.VectorFieldParam) - return target; -} - -size_t VectorFieldParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.VectorFieldParam) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // int64 dimension = 1; - if (this->dimension() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_dimension()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void VectorFieldParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.VectorFieldParam) - GOOGLE_DCHECK_NE(&from, this); - const VectorFieldParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.VectorFieldParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.VectorFieldParam) - MergeFrom(*source); - } -} - -void VectorFieldParam::MergeFrom(const VectorFieldParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.VectorFieldParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.dimension() != 0) { - _internal_set_dimension(from._internal_dimension()); - } -} - -void VectorFieldParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.VectorFieldParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VectorFieldParam::CopyFrom(const VectorFieldParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.VectorFieldParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VectorFieldParam::IsInitialized() const { - return true; -} - -void VectorFieldParam::InternalSwap(VectorFieldParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(dimension_, other->dimension_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata VectorFieldParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void FieldType::InitAsDefaultInstance() { - ::milvus::grpc::_FieldType_default_instance_.data_type_ = 0; - ::milvus::grpc::_FieldType_default_instance_.vector_param_ = const_cast< ::milvus::grpc::VectorFieldParam*>( - ::milvus::grpc::VectorFieldParam::internal_default_instance()); -} -class FieldType::_Internal { - public: - static const ::milvus::grpc::VectorFieldParam& vector_param(const FieldType* msg); -}; - -const ::milvus::grpc::VectorFieldParam& -FieldType::_Internal::vector_param(const FieldType* msg) { - return *msg->value_.vector_param_; -} -void FieldType::set_allocated_vector_param(::milvus::grpc::VectorFieldParam* vector_param) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - clear_value(); - if (vector_param) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - vector_param = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, vector_param, submessage_arena); - } - set_has_vector_param(); - value_.vector_param_ = vector_param; - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.FieldType.vector_param) -} -FieldType::FieldType() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.FieldType) -} -FieldType::FieldType(const FieldType& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_value(); - switch (from.value_case()) { - case kDataType: { - _internal_set_data_type(from._internal_data_type()); - break; - } - case kVectorParam: { - _internal_mutable_vector_param()->::milvus::grpc::VectorFieldParam::MergeFrom(from._internal_vector_param()); - break; - } - case VALUE_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.FieldType) -} - -void FieldType::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FieldType_suvlim_2eproto.base); - clear_has_value(); -} - -FieldType::~FieldType() { - // @@protoc_insertion_point(destructor:milvus.grpc.FieldType) - SharedDtor(); -} - -void FieldType::SharedDtor() { - if (has_value()) { - clear_value(); - } -} - -void FieldType::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const FieldType& FieldType::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FieldType_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void FieldType::clear_value() { -// @@protoc_insertion_point(one_of_clear_start:milvus.grpc.FieldType) - switch (value_case()) { - case kDataType: { - // No need to clear - break; - } - case kVectorParam: { - delete value_.vector_param_; - break; - } - case VALUE_NOT_SET: { - break; - } - } - _oneof_case_[0] = VALUE_NOT_SET; -} - - -void FieldType::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.FieldType) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_value(); - _internal_metadata_.Clear(); -} - -const char* FieldType::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.DataType data_type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - _internal_set_data_type(static_cast<::milvus::grpc::DataType>(val)); - } else goto handle_unusual; - continue; - // .milvus.grpc.VectorFieldParam vector_param = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_vector_param(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* FieldType::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.FieldType) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.DataType data_type = 1; - if (_internal_has_data_type()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_data_type(), target); - } - - // .milvus.grpc.VectorFieldParam vector_param = 2; - if (_internal_has_vector_param()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::vector_param(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.FieldType) - return target; -} - -size_t FieldType::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.FieldType) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - switch (value_case()) { - // .milvus.grpc.DataType data_type = 1; - case kDataType: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_data_type()); - break; - } - // .milvus.grpc.VectorFieldParam vector_param = 2; - case kVectorParam: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *value_.vector_param_); - break; - } - case VALUE_NOT_SET: { - break; - } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void FieldType::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.FieldType) - GOOGLE_DCHECK_NE(&from, this); - const FieldType* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.FieldType) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.FieldType) - MergeFrom(*source); - } -} - -void FieldType::MergeFrom(const FieldType& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.FieldType) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.value_case()) { - case kDataType: { - _internal_set_data_type(from._internal_data_type()); - break; - } - case kVectorParam: { - _internal_mutable_vector_param()->::milvus::grpc::VectorFieldParam::MergeFrom(from._internal_vector_param()); - break; - } - case VALUE_NOT_SET: { - break; - } - } -} - -void FieldType::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.FieldType) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FieldType::CopyFrom(const FieldType& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.FieldType) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FieldType::IsInitialized() const { - return true; -} - -void FieldType::InternalSwap(FieldType* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(value_, other->value_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::PROTOBUF_NAMESPACE_ID::Metadata FieldType::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void FieldParam::InitAsDefaultInstance() { -} -class FieldParam::_Internal { - public: -}; - -FieldParam::FieldParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.FieldParam) -} -FieldParam::FieldParam(const FieldParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - index_params_(from.index_params_), - extra_params_(from.extra_params_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_name().empty()) { - name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); - } - ::memcpy(&id_, &from.id_, - static_cast(reinterpret_cast(&type_) - - reinterpret_cast(&id_)) + sizeof(type_)); - // @@protoc_insertion_point(copy_constructor:milvus.grpc.FieldParam) -} - -void FieldParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FieldParam_suvlim_2eproto.base); - name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&type_) - - reinterpret_cast(&id_)) + sizeof(type_)); -} - -FieldParam::~FieldParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.FieldParam) - SharedDtor(); -} - -void FieldParam::SharedDtor() { - name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void FieldParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const FieldParam& FieldParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FieldParam_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void FieldParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.FieldParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - index_params_.Clear(); - extra_params_.Clear(); - name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&type_) - - reinterpret_cast(&id_)) + sizeof(type_)); - _internal_metadata_.Clear(); -} - -const char* FieldParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // uint64 id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.FieldParam.name")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.grpc.DataType type = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - _internal_set_type(static_cast<::milvus::grpc::DataType>(val)); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.KeyValuePair index_params = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_index_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_extra_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* FieldParam::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.FieldParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint64 id = 1; - if (this->id() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_id(), target); - } - - // string name = 2; - if (this->name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.FieldParam.name"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_name(), target); - } - - // .milvus.grpc.DataType type = 3; - if (this->type() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 3, this->_internal_type(), target); - } - - // repeated .milvus.grpc.KeyValuePair index_params = 4; - for (unsigned int i = 0, - n = static_cast(this->_internal_index_params_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, this->_internal_index_params(i), target, stream); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, - n = static_cast(this->_internal_extra_params_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(5, this->_internal_extra_params(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.FieldParam) - return target; -} - -size_t FieldParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.FieldParam) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.grpc.KeyValuePair index_params = 4; - total_size += 1UL * this->_internal_index_params_size(); - for (const auto& msg : this->index_params_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - total_size += 1UL * this->_internal_extra_params_size(); - for (const auto& msg : this->extra_params_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // string name = 2; - if (this->name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // uint64 id = 1; - if (this->id() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_id()); - } - - // .milvus.grpc.DataType type = 3; - if (this->type() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void FieldParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.FieldParam) - GOOGLE_DCHECK_NE(&from, this); - const FieldParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.FieldParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.FieldParam) - MergeFrom(*source); - } -} - -void FieldParam::MergeFrom(const FieldParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.FieldParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - index_params_.MergeFrom(from.index_params_); - extra_params_.MergeFrom(from.extra_params_); - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.id() != 0) { - _internal_set_id(from._internal_id()); - } - if (from.type() != 0) { - _internal_set_type(from._internal_type()); - } -} - -void FieldParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.FieldParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FieldParam::CopyFrom(const FieldParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.FieldParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FieldParam::IsInitialized() const { - return true; -} - -void FieldParam::InternalSwap(FieldParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - index_params_.InternalSwap(&other->index_params_); - extra_params_.InternalSwap(&other->extra_params_); - name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(id_, other->id_); - swap(type_, other->type_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata FieldParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void VectorFieldRecord::InitAsDefaultInstance() { -} -class VectorFieldRecord::_Internal { - public: -}; - -VectorFieldRecord::VectorFieldRecord() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.VectorFieldRecord) -} -VectorFieldRecord::VectorFieldRecord(const VectorFieldRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - value_(from.value_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:milvus.grpc.VectorFieldRecord) -} - -void VectorFieldRecord::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_VectorFieldRecord_suvlim_2eproto.base); -} - -VectorFieldRecord::~VectorFieldRecord() { - // @@protoc_insertion_point(destructor:milvus.grpc.VectorFieldRecord) - SharedDtor(); -} - -void VectorFieldRecord::SharedDtor() { -} - -void VectorFieldRecord::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const VectorFieldRecord& VectorFieldRecord::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VectorFieldRecord_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void VectorFieldRecord::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.VectorFieldRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - value_.Clear(); - _internal_metadata_.Clear(); -} - -const char* VectorFieldRecord::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .milvus.grpc.VectorRowRecord value = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_value(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* VectorFieldRecord::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.VectorFieldRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .milvus.grpc.VectorRowRecord value = 1; - for (unsigned int i = 0, - n = static_cast(this->_internal_value_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_value(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.VectorFieldRecord) - return target; -} - -size_t VectorFieldRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.VectorFieldRecord) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.grpc.VectorRowRecord value = 1; - total_size += 1UL * this->_internal_value_size(); - for (const auto& msg : this->value_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void VectorFieldRecord::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.VectorFieldRecord) - GOOGLE_DCHECK_NE(&from, this); - const VectorFieldRecord* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.VectorFieldRecord) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.VectorFieldRecord) - MergeFrom(*source); - } -} - -void VectorFieldRecord::MergeFrom(const VectorFieldRecord& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.VectorFieldRecord) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - value_.MergeFrom(from.value_); -} - -void VectorFieldRecord::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.VectorFieldRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VectorFieldRecord::CopyFrom(const VectorFieldRecord& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.VectorFieldRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VectorFieldRecord::IsInitialized() const { - return true; -} - -void VectorFieldRecord::InternalSwap(VectorFieldRecord* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - value_.InternalSwap(&other->value_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata VectorFieldRecord::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void TermQuery::InitAsDefaultInstance() { -} -class TermQuery::_Internal { - public: -}; - -TermQuery::TermQuery() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.TermQuery) -} -TermQuery::TermQuery(const TermQuery& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - int_value_(from.int_value_), - double_value_(from.double_value_), - extra_params_(from.extra_params_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_field_name().empty()) { - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - ::memcpy(&value_num_, &from.value_num_, - static_cast(reinterpret_cast(&boost_) - - reinterpret_cast(&value_num_)) + sizeof(boost_)); - // @@protoc_insertion_point(copy_constructor:milvus.grpc.TermQuery) -} - -void TermQuery::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TermQuery_suvlim_2eproto.base); - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&value_num_, 0, static_cast( - reinterpret_cast(&boost_) - - reinterpret_cast(&value_num_)) + sizeof(boost_)); -} - -TermQuery::~TermQuery() { - // @@protoc_insertion_point(destructor:milvus.grpc.TermQuery) - SharedDtor(); -} - -void TermQuery::SharedDtor() { - field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void TermQuery::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TermQuery& TermQuery::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TermQuery_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void TermQuery::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.TermQuery) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int_value_.Clear(); - double_value_.Clear(); - extra_params_.Clear(); - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&value_num_, 0, static_cast( - reinterpret_cast(&boost_) - - reinterpret_cast(&value_num_)) + sizeof(boost_)); - _internal_metadata_.Clear(); -} - -const char* TermQuery::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string field_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_field_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.TermQuery.field_name")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated int64 int_value = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_int_value(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) { - _internal_add_int_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated double double_value = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_double_value(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25) { - _internal_add_double_value(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(double); - } else goto handle_unusual; - continue; - // int64 value_num = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - value_num_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // float boost = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 45)) { - boost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.KeyValuePair extra_params = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_extra_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* TermQuery::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.TermQuery) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string field_name = 1; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_field_name().data(), static_cast(this->_internal_field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.TermQuery.field_name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_field_name(), target); - } - - // repeated int64 int_value = 2; - { - int byte_size = _int_value_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt64Packed( - 2, _internal_int_value(), byte_size, target); - } - } - - // repeated double double_value = 3; - if (this->_internal_double_value_size() > 0) { - target = stream->WriteFixedPacked(3, _internal_double_value(), target); - } - - // int64 value_num = 4; - if (this->value_num() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_value_num(), target); - } - - // float boost = 5; - if (!(this->boost() <= 0 && this->boost() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_boost(), target); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 6; - for (unsigned int i = 0, - n = static_cast(this->_internal_extra_params_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(6, this->_internal_extra_params(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.TermQuery) - return target; -} - -size_t TermQuery::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.TermQuery) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated int64 int_value = 2; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int64Size(this->int_value_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _int_value_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated double double_value = 3; - { - unsigned int count = static_cast(this->_internal_double_value_size()); - size_t data_size = 8UL * count; - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _double_value_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 6; - total_size += 1UL * this->_internal_extra_params_size(); - for (const auto& msg : this->extra_params_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // string field_name = 1; - if (this->field_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_field_name()); - } - - // int64 value_num = 4; - if (this->value_num() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_value_num()); - } - - // float boost = 5; - if (!(this->boost() <= 0 && this->boost() >= 0)) { - total_size += 1 + 4; - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TermQuery::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.TermQuery) - GOOGLE_DCHECK_NE(&from, this); - const TermQuery* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.TermQuery) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.TermQuery) - MergeFrom(*source); - } -} - -void TermQuery::MergeFrom(const TermQuery& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.TermQuery) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - int_value_.MergeFrom(from.int_value_); - double_value_.MergeFrom(from.double_value_); - extra_params_.MergeFrom(from.extra_params_); - if (from.field_name().size() > 0) { - - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - if (from.value_num() != 0) { - _internal_set_value_num(from._internal_value_num()); - } - if (!(from.boost() <= 0 && from.boost() >= 0)) { - _internal_set_boost(from._internal_boost()); - } -} - -void TermQuery::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.TermQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TermQuery::CopyFrom(const TermQuery& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.TermQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TermQuery::IsInitialized() const { - return true; -} - -void TermQuery::InternalSwap(TermQuery* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - int_value_.InternalSwap(&other->int_value_); - double_value_.InternalSwap(&other->double_value_); - extra_params_.InternalSwap(&other->extra_params_); - field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(value_num_, other->value_num_); - swap(boost_, other->boost_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata TermQuery::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void CompareExpr::InitAsDefaultInstance() { -} -class CompareExpr::_Internal { - public: -}; - -CompareExpr::CompareExpr() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.CompareExpr) -} -CompareExpr::CompareExpr(const CompareExpr& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - operand_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_operand().empty()) { - operand_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.operand_); - } - operator__ = from.operator__; - // @@protoc_insertion_point(copy_constructor:milvus.grpc.CompareExpr) -} - -void CompareExpr::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CompareExpr_suvlim_2eproto.base); - operand_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - operator__ = 0; -} - -CompareExpr::~CompareExpr() { - // @@protoc_insertion_point(destructor:milvus.grpc.CompareExpr) - SharedDtor(); -} - -void CompareExpr::SharedDtor() { - operand_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void CompareExpr::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CompareExpr& CompareExpr::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CompareExpr_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void CompareExpr::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.CompareExpr) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - operand_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - operator__ = 0; - _internal_metadata_.Clear(); -} - -const char* CompareExpr::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.CompareOperator operator = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - _internal_set_operator_(static_cast<::milvus::grpc::CompareOperator>(val)); - } else goto handle_unusual; - continue; - // string operand = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_operand(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.CompareExpr.operand")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* CompareExpr::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.CompareExpr) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.CompareOperator operator = 1; - if (this->operator_() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_operator_(), target); - } - - // string operand = 2; - if (this->operand().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_operand().data(), static_cast(this->_internal_operand().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.CompareExpr.operand"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_operand(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.CompareExpr) - return target; -} - -size_t CompareExpr::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.CompareExpr) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string operand = 2; - if (this->operand().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_operand()); - } - - // .milvus.grpc.CompareOperator operator = 1; - if (this->operator_() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_operator_()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CompareExpr::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.CompareExpr) - GOOGLE_DCHECK_NE(&from, this); - const CompareExpr* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.CompareExpr) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.CompareExpr) - MergeFrom(*source); - } -} - -void CompareExpr::MergeFrom(const CompareExpr& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.CompareExpr) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.operand().size() > 0) { - - operand_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.operand_); - } - if (from.operator_() != 0) { - _internal_set_operator_(from._internal_operator_()); - } -} - -void CompareExpr::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.CompareExpr) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CompareExpr::CopyFrom(const CompareExpr& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.CompareExpr) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CompareExpr::IsInitialized() const { - return true; -} - -void CompareExpr::InternalSwap(CompareExpr* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - operand_.Swap(&other->operand_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(operator__, other->operator__); -} - -::PROTOBUF_NAMESPACE_ID::Metadata CompareExpr::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void RangeQuery::InitAsDefaultInstance() { -} -class RangeQuery::_Internal { - public: -}; - -RangeQuery::RangeQuery() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.RangeQuery) -} -RangeQuery::RangeQuery(const RangeQuery& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - operand_(from.operand_), - extra_params_(from.extra_params_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_field_name().empty()) { - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - boost_ = from.boost_; - // @@protoc_insertion_point(copy_constructor:milvus.grpc.RangeQuery) -} - -void RangeQuery::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RangeQuery_suvlim_2eproto.base); - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - boost_ = 0; -} - -RangeQuery::~RangeQuery() { - // @@protoc_insertion_point(destructor:milvus.grpc.RangeQuery) - SharedDtor(); -} - -void RangeQuery::SharedDtor() { - field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void RangeQuery::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const RangeQuery& RangeQuery::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RangeQuery_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void RangeQuery::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.RangeQuery) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - operand_.Clear(); - extra_params_.Clear(); - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - boost_ = 0; - _internal_metadata_.Clear(); -} - -const char* RangeQuery::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string field_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_field_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.RangeQuery.field_name")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.CompareExpr operand = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_operand(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else goto handle_unusual; - continue; - // float boost = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) { - boost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_extra_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* RangeQuery::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.RangeQuery) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string field_name = 1; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_field_name().data(), static_cast(this->_internal_field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.RangeQuery.field_name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_field_name(), target); - } - - // repeated .milvus.grpc.CompareExpr operand = 2; - for (unsigned int i = 0, - n = static_cast(this->_internal_operand_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, this->_internal_operand(i), target, stream); - } - - // float boost = 3; - if (!(this->boost() <= 0 && this->boost() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_boost(), target); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - for (unsigned int i = 0, - n = static_cast(this->_internal_extra_params_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, this->_internal_extra_params(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.RangeQuery) - return target; -} - -size_t RangeQuery::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.RangeQuery) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.grpc.CompareExpr operand = 2; - total_size += 1UL * this->_internal_operand_size(); - for (const auto& msg : this->operand_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - total_size += 1UL * this->_internal_extra_params_size(); - for (const auto& msg : this->extra_params_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // string field_name = 1; - if (this->field_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_field_name()); - } - - // float boost = 3; - if (!(this->boost() <= 0 && this->boost() >= 0)) { - total_size += 1 + 4; - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void RangeQuery::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.RangeQuery) - GOOGLE_DCHECK_NE(&from, this); - const RangeQuery* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.RangeQuery) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.RangeQuery) - MergeFrom(*source); - } -} - -void RangeQuery::MergeFrom(const RangeQuery& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.RangeQuery) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - operand_.MergeFrom(from.operand_); - extra_params_.MergeFrom(from.extra_params_); - if (from.field_name().size() > 0) { - - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - if (!(from.boost() <= 0 && from.boost() >= 0)) { - _internal_set_boost(from._internal_boost()); - } -} - -void RangeQuery::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.RangeQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RangeQuery::CopyFrom(const RangeQuery& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.RangeQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RangeQuery::IsInitialized() const { - return true; -} - -void RangeQuery::InternalSwap(RangeQuery* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - operand_.InternalSwap(&other->operand_); - extra_params_.InternalSwap(&other->extra_params_); - field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(boost_, other->boost_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata RangeQuery::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void VectorQuery::InitAsDefaultInstance() { -} -class VectorQuery::_Internal { - public: -}; - -VectorQuery::VectorQuery() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.VectorQuery) -} -VectorQuery::VectorQuery(const VectorQuery& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - records_(from.records_), - extra_params_(from.extra_params_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_field_name().empty()) { - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - ::memcpy(&topk_, &from.topk_, - static_cast(reinterpret_cast(&query_boost_) - - reinterpret_cast(&topk_)) + sizeof(query_boost_)); - // @@protoc_insertion_point(copy_constructor:milvus.grpc.VectorQuery) -} - -void VectorQuery::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_VectorQuery_suvlim_2eproto.base); - field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&topk_, 0, static_cast( - reinterpret_cast(&query_boost_) - - reinterpret_cast(&topk_)) + sizeof(query_boost_)); -} - -VectorQuery::~VectorQuery() { - // @@protoc_insertion_point(destructor:milvus.grpc.VectorQuery) - SharedDtor(); -} - -void VectorQuery::SharedDtor() { - field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void VectorQuery::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const VectorQuery& VectorQuery::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VectorQuery_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void VectorQuery::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.VectorQuery) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - records_.Clear(); - extra_params_.Clear(); - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&topk_, 0, static_cast( - reinterpret_cast(&query_boost_) - - reinterpret_cast(&topk_)) + sizeof(query_boost_)); - _internal_metadata_.Clear(); -} - -const char* VectorQuery::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string field_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_field_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.VectorQuery.field_name")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // float query_boost = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) { - query_boost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.VectorRowRecord records = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_records(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); - } else goto handle_unusual; - continue; - // int64 topk = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - topk_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_extra_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* VectorQuery::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.VectorQuery) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string field_name = 1; - if (this->field_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_field_name().data(), static_cast(this->_internal_field_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.VectorQuery.field_name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_field_name(), target); - } - - // float query_boost = 2; - if (!(this->query_boost() <= 0 && this->query_boost() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_query_boost(), target); - } - - // repeated .milvus.grpc.VectorRowRecord records = 3; - for (unsigned int i = 0, - n = static_cast(this->_internal_records_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, this->_internal_records(i), target, stream); - } - - // int64 topk = 4; - if (this->topk() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_topk(), target); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, - n = static_cast(this->_internal_extra_params_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(5, this->_internal_extra_params(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.VectorQuery) - return target; -} - -size_t VectorQuery::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.VectorQuery) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.grpc.VectorRowRecord records = 3; - total_size += 1UL * this->_internal_records_size(); - for (const auto& msg : this->records_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - total_size += 1UL * this->_internal_extra_params_size(); - for (const auto& msg : this->extra_params_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // string field_name = 1; - if (this->field_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_field_name()); - } - - // int64 topk = 4; - if (this->topk() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_topk()); - } - - // float query_boost = 2; - if (!(this->query_boost() <= 0 && this->query_boost() >= 0)) { - total_size += 1 + 4; - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void VectorQuery::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.VectorQuery) - GOOGLE_DCHECK_NE(&from, this); - const VectorQuery* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.VectorQuery) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.VectorQuery) - MergeFrom(*source); - } -} - -void VectorQuery::MergeFrom(const VectorQuery& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.VectorQuery) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - records_.MergeFrom(from.records_); - extra_params_.MergeFrom(from.extra_params_); - if (from.field_name().size() > 0) { - - field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - if (from.topk() != 0) { - _internal_set_topk(from._internal_topk()); - } - if (!(from.query_boost() <= 0 && from.query_boost() >= 0)) { - _internal_set_query_boost(from._internal_query_boost()); - } -} - -void VectorQuery::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.VectorQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VectorQuery::CopyFrom(const VectorQuery& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.VectorQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VectorQuery::IsInitialized() const { - return true; -} - -void VectorQuery::InternalSwap(VectorQuery* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - records_.InternalSwap(&other->records_); - extra_params_.InternalSwap(&other->extra_params_); - field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(topk_, other->topk_); - swap(query_boost_, other->query_boost_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata VectorQuery::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void BooleanQuery::InitAsDefaultInstance() { -} -class BooleanQuery::_Internal { - public: -}; - -BooleanQuery::BooleanQuery() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.BooleanQuery) -} -BooleanQuery::BooleanQuery(const BooleanQuery& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - general_query_(from.general_query_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - occur_ = from.occur_; - // @@protoc_insertion_point(copy_constructor:milvus.grpc.BooleanQuery) -} - -void BooleanQuery::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BooleanQuery_suvlim_2eproto.base); - occur_ = 0; -} - -BooleanQuery::~BooleanQuery() { - // @@protoc_insertion_point(destructor:milvus.grpc.BooleanQuery) - SharedDtor(); -} - -void BooleanQuery::SharedDtor() { -} - -void BooleanQuery::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const BooleanQuery& BooleanQuery::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BooleanQuery_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void BooleanQuery::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.BooleanQuery) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - general_query_.Clear(); - occur_ = 0; - _internal_metadata_.Clear(); -} - -const char* BooleanQuery::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.Occur occur = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - _internal_set_occur(static_cast<::milvus::grpc::Occur>(val)); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.GeneralQuery general_query = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_general_query(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* BooleanQuery::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.BooleanQuery) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.Occur occur = 1; - if (this->occur() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_occur(), target); - } - - // repeated .milvus.grpc.GeneralQuery general_query = 2; - for (unsigned int i = 0, - n = static_cast(this->_internal_general_query_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, this->_internal_general_query(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.BooleanQuery) - return target; -} - -size_t BooleanQuery::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.BooleanQuery) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.grpc.GeneralQuery general_query = 2; - total_size += 1UL * this->_internal_general_query_size(); - for (const auto& msg : this->general_query_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // .milvus.grpc.Occur occur = 1; - if (this->occur() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_occur()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void BooleanQuery::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.BooleanQuery) - GOOGLE_DCHECK_NE(&from, this); - const BooleanQuery* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.BooleanQuery) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.BooleanQuery) - MergeFrom(*source); - } -} - -void BooleanQuery::MergeFrom(const BooleanQuery& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.BooleanQuery) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - general_query_.MergeFrom(from.general_query_); - if (from.occur() != 0) { - _internal_set_occur(from._internal_occur()); - } -} - -void BooleanQuery::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.BooleanQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BooleanQuery::CopyFrom(const BooleanQuery& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.BooleanQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BooleanQuery::IsInitialized() const { - return true; -} - -void BooleanQuery::InternalSwap(BooleanQuery* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - general_query_.InternalSwap(&other->general_query_); - swap(occur_, other->occur_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata BooleanQuery::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void GeneralQuery::InitAsDefaultInstance() { - ::milvus::grpc::_GeneralQuery_default_instance_.boolean_query_ = const_cast< ::milvus::grpc::BooleanQuery*>( - ::milvus::grpc::BooleanQuery::internal_default_instance()); - ::milvus::grpc::_GeneralQuery_default_instance_.term_query_ = const_cast< ::milvus::grpc::TermQuery*>( - ::milvus::grpc::TermQuery::internal_default_instance()); - ::milvus::grpc::_GeneralQuery_default_instance_.range_query_ = const_cast< ::milvus::grpc::RangeQuery*>( - ::milvus::grpc::RangeQuery::internal_default_instance()); - ::milvus::grpc::_GeneralQuery_default_instance_.vector_query_ = const_cast< ::milvus::grpc::VectorQuery*>( - ::milvus::grpc::VectorQuery::internal_default_instance()); -} -class GeneralQuery::_Internal { - public: - static const ::milvus::grpc::BooleanQuery& boolean_query(const GeneralQuery* msg); - static const ::milvus::grpc::TermQuery& term_query(const GeneralQuery* msg); - static const ::milvus::grpc::RangeQuery& range_query(const GeneralQuery* msg); - static const ::milvus::grpc::VectorQuery& vector_query(const GeneralQuery* msg); -}; - -const ::milvus::grpc::BooleanQuery& -GeneralQuery::_Internal::boolean_query(const GeneralQuery* msg) { - return *msg->query_.boolean_query_; -} -const ::milvus::grpc::TermQuery& -GeneralQuery::_Internal::term_query(const GeneralQuery* msg) { - return *msg->query_.term_query_; -} -const ::milvus::grpc::RangeQuery& -GeneralQuery::_Internal::range_query(const GeneralQuery* msg) { - return *msg->query_.range_query_; -} -const ::milvus::grpc::VectorQuery& -GeneralQuery::_Internal::vector_query(const GeneralQuery* msg) { - return *msg->query_.vector_query_; -} -void GeneralQuery::set_allocated_boolean_query(::milvus::grpc::BooleanQuery* boolean_query) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - clear_query(); - if (boolean_query) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - boolean_query = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, boolean_query, submessage_arena); - } - set_has_boolean_query(); - query_.boolean_query_ = boolean_query; - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GeneralQuery.boolean_query) -} -void GeneralQuery::set_allocated_term_query(::milvus::grpc::TermQuery* term_query) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - clear_query(); - if (term_query) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - term_query = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, term_query, submessage_arena); - } - set_has_term_query(); - query_.term_query_ = term_query; - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GeneralQuery.term_query) -} -void GeneralQuery::set_allocated_range_query(::milvus::grpc::RangeQuery* range_query) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - clear_query(); - if (range_query) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - range_query = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, range_query, submessage_arena); - } - set_has_range_query(); - query_.range_query_ = range_query; - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GeneralQuery.range_query) -} -void GeneralQuery::set_allocated_vector_query(::milvus::grpc::VectorQuery* vector_query) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - clear_query(); - if (vector_query) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - vector_query = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, vector_query, submessage_arena); - } - set_has_vector_query(); - query_.vector_query_ = vector_query; - } - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GeneralQuery.vector_query) -} -GeneralQuery::GeneralQuery() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.GeneralQuery) -} -GeneralQuery::GeneralQuery(const GeneralQuery& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_query(); - switch (from.query_case()) { - case kBooleanQuery: { - _internal_mutable_boolean_query()->::milvus::grpc::BooleanQuery::MergeFrom(from._internal_boolean_query()); - break; - } - case kTermQuery: { - _internal_mutable_term_query()->::milvus::grpc::TermQuery::MergeFrom(from._internal_term_query()); - break; - } - case kRangeQuery: { - _internal_mutable_range_query()->::milvus::grpc::RangeQuery::MergeFrom(from._internal_range_query()); - break; - } - case kVectorQuery: { - _internal_mutable_vector_query()->::milvus::grpc::VectorQuery::MergeFrom(from._internal_vector_query()); - break; - } - case QUERY_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.GeneralQuery) -} - -void GeneralQuery::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BooleanQuery_suvlim_2eproto.base); - clear_has_query(); -} - -GeneralQuery::~GeneralQuery() { - // @@protoc_insertion_point(destructor:milvus.grpc.GeneralQuery) - SharedDtor(); -} - -void GeneralQuery::SharedDtor() { - if (has_query()) { - clear_query(); - } -} - -void GeneralQuery::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GeneralQuery& GeneralQuery::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BooleanQuery_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void GeneralQuery::clear_query() { -// @@protoc_insertion_point(one_of_clear_start:milvus.grpc.GeneralQuery) - switch (query_case()) { - case kBooleanQuery: { - delete query_.boolean_query_; - break; - } - case kTermQuery: { - delete query_.term_query_; - break; - } - case kRangeQuery: { - delete query_.range_query_; - break; - } - case kVectorQuery: { - delete query_.vector_query_; - break; - } - case QUERY_NOT_SET: { - break; - } - } - _oneof_case_[0] = QUERY_NOT_SET; -} - - -void GeneralQuery::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.GeneralQuery) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_query(); - _internal_metadata_.Clear(); -} - -const char* GeneralQuery::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .milvus.grpc.BooleanQuery boolean_query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_boolean_query(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.grpc.TermQuery term_query = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_term_query(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.grpc.RangeQuery range_query = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_range_query(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.grpc.VectorQuery vector_query = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_vector_query(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* GeneralQuery::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.GeneralQuery) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .milvus.grpc.BooleanQuery boolean_query = 1; - if (_internal_has_boolean_query()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::boolean_query(this), target, stream); - } - - // .milvus.grpc.TermQuery term_query = 2; - if (_internal_has_term_query()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::term_query(this), target, stream); - } - - // .milvus.grpc.RangeQuery range_query = 3; - if (_internal_has_range_query()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::range_query(this), target, stream); - } - - // .milvus.grpc.VectorQuery vector_query = 4; - if (_internal_has_vector_query()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::vector_query(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.GeneralQuery) - return target; -} - -size_t GeneralQuery::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.GeneralQuery) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - switch (query_case()) { - // .milvus.grpc.BooleanQuery boolean_query = 1; - case kBooleanQuery: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *query_.boolean_query_); - break; - } - // .milvus.grpc.TermQuery term_query = 2; - case kTermQuery: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *query_.term_query_); - break; - } - // .milvus.grpc.RangeQuery range_query = 3; - case kRangeQuery: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *query_.range_query_); - break; - } - // .milvus.grpc.VectorQuery vector_query = 4; - case kVectorQuery: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *query_.vector_query_); - break; - } - case QUERY_NOT_SET: { - break; - } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GeneralQuery::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.GeneralQuery) - GOOGLE_DCHECK_NE(&from, this); - const GeneralQuery* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.GeneralQuery) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.GeneralQuery) - MergeFrom(*source); - } -} - -void GeneralQuery::MergeFrom(const GeneralQuery& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.GeneralQuery) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.query_case()) { - case kBooleanQuery: { - _internal_mutable_boolean_query()->::milvus::grpc::BooleanQuery::MergeFrom(from._internal_boolean_query()); - break; - } - case kTermQuery: { - _internal_mutable_term_query()->::milvus::grpc::TermQuery::MergeFrom(from._internal_term_query()); - break; - } - case kRangeQuery: { - _internal_mutable_range_query()->::milvus::grpc::RangeQuery::MergeFrom(from._internal_range_query()); - break; - } - case kVectorQuery: { - _internal_mutable_vector_query()->::milvus::grpc::VectorQuery::MergeFrom(from._internal_vector_query()); - break; - } - case QUERY_NOT_SET: { - break; - } - } -} - -void GeneralQuery::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.GeneralQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GeneralQuery::CopyFrom(const GeneralQuery& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.GeneralQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GeneralQuery::IsInitialized() const { - return true; -} - -void GeneralQuery::InternalSwap(GeneralQuery* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(query_, other->query_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GeneralQuery::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void SearchParamPB::InitAsDefaultInstance() { - ::milvus::grpc::_SearchParamPB_default_instance_._instance.get_mutable()->general_query_ = const_cast< ::milvus::grpc::GeneralQuery*>( - ::milvus::grpc::GeneralQuery::internal_default_instance()); -} -class SearchParamPB::_Internal { - public: - static const ::milvus::grpc::GeneralQuery& general_query(const SearchParamPB* msg); -}; - -const ::milvus::grpc::GeneralQuery& -SearchParamPB::_Internal::general_query(const SearchParamPB* msg) { - return *msg->general_query_; -} -SearchParamPB::SearchParamPB() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.SearchParamPB) -} -SearchParamPB::SearchParamPB(const SearchParamPB& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - partition_tag_array_(from.partition_tag_array_), - extra_params_(from.extra_params_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from._internal_has_general_query()) { - general_query_ = new ::milvus::grpc::GeneralQuery(*from.general_query_); - } else { - general_query_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.SearchParamPB) -} - -void SearchParamPB::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SearchParamPB_suvlim_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - general_query_ = nullptr; -} - -SearchParamPB::~SearchParamPB() { - // @@protoc_insertion_point(destructor:milvus.grpc.SearchParamPB) - SharedDtor(); -} - -void SearchParamPB::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete general_query_; -} - -void SearchParamPB::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SearchParamPB& SearchParamPB::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchParamPB_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void SearchParamPB::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.SearchParamPB) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - partition_tag_array_.Clear(); - extra_params_.Clear(); - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && general_query_ != nullptr) { - delete general_query_; - } - general_query_ = nullptr; - _internal_metadata_.Clear(); -} - -const char* SearchParamPB::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_collection_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.SearchParamPB.collection_name")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated string partition_tag_array = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_partition_tag_array(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.SearchParamPB.partition_tag_array")); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else goto handle_unusual; - continue; - // .milvus.grpc.GeneralQuery general_query = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_general_query(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_extra_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* SearchParamPB::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.SearchParamPB) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_collection_name().data(), static_cast(this->_internal_collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchParamPB.collection_name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_collection_name(), target); - } - - // repeated string partition_tag_array = 2; - for (int i = 0, n = this->_internal_partition_tag_array_size(); i < n; i++) { - const auto& s = this->_internal_partition_tag_array(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchParamPB.partition_tag_array"); - target = stream->WriteString(2, s, target); - } - - // .milvus.grpc.GeneralQuery general_query = 3; - if (this->has_general_query()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::general_query(this), target, stream); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - for (unsigned int i = 0, - n = static_cast(this->_internal_extra_params_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, this->_internal_extra_params(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SearchParamPB) - return target; -} - -size_t SearchParamPB::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.SearchParamPB) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated string partition_tag_array = 2; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(partition_tag_array_.size()); - for (int i = 0, n = partition_tag_array_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - partition_tag_array_.Get(i)); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - total_size += 1UL * this->_internal_extra_params_size(); - for (const auto& msg : this->extra_params_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_collection_name()); - } - - // .milvus.grpc.GeneralQuery general_query = 3; - if (this->has_general_query()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *general_query_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SearchParamPB::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.SearchParamPB) - GOOGLE_DCHECK_NE(&from, this); - const SearchParamPB* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.SearchParamPB) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SearchParamPB) - MergeFrom(*source); - } -} - -void SearchParamPB::MergeFrom(const SearchParamPB& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.SearchParamPB) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - partition_tag_array_.MergeFrom(from.partition_tag_array_); - extra_params_.MergeFrom(from.extra_params_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.has_general_query()) { - _internal_mutable_general_query()->::milvus::grpc::GeneralQuery::MergeFrom(from._internal_general_query()); - } -} - -void SearchParamPB::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.SearchParamPB) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SearchParamPB::CopyFrom(const SearchParamPB& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.SearchParamPB) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SearchParamPB::IsInitialized() const { - return true; -} - -void SearchParamPB::InternalSwap(SearchParamPB* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - partition_tag_array_.InternalSwap(&other->partition_tag_array_); - extra_params_.InternalSwap(&other->extra_params_); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(general_query_, other->general_query_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata SearchParamPB::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void InsertOrDeleteMsg::InitAsDefaultInstance() { - ::milvus::grpc::_InsertOrDeleteMsg_default_instance_._instance.get_mutable()->rows_data_ = const_cast< ::milvus::grpc::RowData*>( - ::milvus::grpc::RowData::internal_default_instance()); -} -class InsertOrDeleteMsg::_Internal { - public: - static const ::milvus::grpc::RowData& rows_data(const InsertOrDeleteMsg* msg); -}; - -const ::milvus::grpc::RowData& -InsertOrDeleteMsg::_Internal::rows_data(const InsertOrDeleteMsg* msg) { - return *msg->rows_data_; -} -InsertOrDeleteMsg::InsertOrDeleteMsg() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.InsertOrDeleteMsg) -} -InsertOrDeleteMsg::InsertOrDeleteMsg(const InsertOrDeleteMsg& 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._internal_collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - partition_tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_partition_tag().empty()) { - partition_tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); - } - if (from._internal_has_rows_data()) { - rows_data_ = new ::milvus::grpc::RowData(*from.rows_data_); - } else { - rows_data_ = nullptr; - } - ::memcpy(&uid_, &from.uid_, - static_cast(reinterpret_cast(&op_) - - reinterpret_cast(&uid_)) + sizeof(op_)); - // @@protoc_insertion_point(copy_constructor:milvus.grpc.InsertOrDeleteMsg) -} - -void InsertOrDeleteMsg::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_InsertOrDeleteMsg_suvlim_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - partition_tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&rows_data_, 0, static_cast( - reinterpret_cast(&op_) - - reinterpret_cast(&rows_data_)) + sizeof(op_)); -} - -InsertOrDeleteMsg::~InsertOrDeleteMsg() { - // @@protoc_insertion_point(destructor:milvus.grpc.InsertOrDeleteMsg) - SharedDtor(); -} - -void InsertOrDeleteMsg::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - partition_tag_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete rows_data_; -} - -void InsertOrDeleteMsg::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const InsertOrDeleteMsg& InsertOrDeleteMsg::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_InsertOrDeleteMsg_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void InsertOrDeleteMsg::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.InsertOrDeleteMsg) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - extra_params_.Clear(); - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - partition_tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && rows_data_ != nullptr) { - delete rows_data_; - } - rows_data_ = nullptr; - ::memset(&uid_, 0, static_cast( - reinterpret_cast(&op_) - - reinterpret_cast(&uid_)) + sizeof(op_)); - _internal_metadata_.Clear(); -} - -const char* InsertOrDeleteMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_collection_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.InsertOrDeleteMsg.collection_name")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.grpc.RowData rows_data = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_rows_data(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 uid = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string partition_tag = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - auto str = _internal_mutable_partition_tag(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.InsertOrDeleteMsg.partition_tag")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 timestamp = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { - timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 segment_id = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { - segment_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 channel_id = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { - channel_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.grpc.OpType op = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - _internal_set_op(static_cast<::milvus::grpc::OpType>(val)); - } else goto handle_unusual; - continue; - // int64 client_id = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { - client_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.KeyValuePair extra_params = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_extra_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<82>(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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* InsertOrDeleteMsg::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.InsertOrDeleteMsg) - ::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->_internal_collection_name().data(), static_cast(this->_internal_collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.InsertOrDeleteMsg.collection_name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_collection_name(), target); - } - - // .milvus.grpc.RowData rows_data = 2; - if (this->has_rows_data()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::rows_data(this), target, stream); - } - - // int64 uid = 3; - if (this->uid() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_uid(), target); - } - - // string partition_tag = 4; - if (this->partition_tag().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_partition_tag().data(), static_cast(this->_internal_partition_tag().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.InsertOrDeleteMsg.partition_tag"); - target = stream->WriteStringMaybeAliased( - 4, this->_internal_partition_tag(), target); - } - - // uint64 timestamp = 5; - if (this->timestamp() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(5, this->_internal_timestamp(), target); - } - - // int64 segment_id = 6; - if (this->segment_id() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->_internal_segment_id(), target); - } - - // int64 channel_id = 7; - if (this->channel_id() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(7, this->_internal_channel_id(), target); - } - - // .milvus.grpc.OpType op = 8; - if (this->op() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 8, this->_internal_op(), target); - } - - // int64 client_id = 9; - if (this->client_id() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(9, this->_internal_client_id(), target); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 10; - for (unsigned int i = 0, - n = static_cast(this->_internal_extra_params_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(10, this->_internal_extra_params(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.InsertOrDeleteMsg) - return target; -} - -size_t InsertOrDeleteMsg::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.InsertOrDeleteMsg) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.grpc.KeyValuePair extra_params = 10; - total_size += 1UL * this->_internal_extra_params_size(); - for (const auto& msg : this->extra_params_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_collection_name()); - } - - // string partition_tag = 4; - if (this->partition_tag().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_partition_tag()); - } - - // .milvus.grpc.RowData rows_data = 2; - if (this->has_rows_data()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *rows_data_); - } - - // int64 uid = 3; - if (this->uid() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_uid()); - } - - // uint64 timestamp = 5; - if (this->timestamp() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_timestamp()); - } - - // int64 segment_id = 6; - if (this->segment_id() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_segment_id()); - } - - // int64 channel_id = 7; - if (this->channel_id() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_channel_id()); - } - - // int64 client_id = 9; - if (this->client_id() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_client_id()); - } - - // .milvus.grpc.OpType op = 8; - if (this->op() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_op()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void InsertOrDeleteMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.InsertOrDeleteMsg) - GOOGLE_DCHECK_NE(&from, this); - const InsertOrDeleteMsg* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.InsertOrDeleteMsg) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.InsertOrDeleteMsg) - MergeFrom(*source); - } -} - -void InsertOrDeleteMsg::MergeFrom(const InsertOrDeleteMsg& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.InsertOrDeleteMsg) - 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.partition_tag().size() > 0) { - - partition_tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); - } - if (from.has_rows_data()) { - _internal_mutable_rows_data()->::milvus::grpc::RowData::MergeFrom(from._internal_rows_data()); - } - if (from.uid() != 0) { - _internal_set_uid(from._internal_uid()); - } - if (from.timestamp() != 0) { - _internal_set_timestamp(from._internal_timestamp()); - } - if (from.segment_id() != 0) { - _internal_set_segment_id(from._internal_segment_id()); - } - if (from.channel_id() != 0) { - _internal_set_channel_id(from._internal_channel_id()); - } - if (from.client_id() != 0) { - _internal_set_client_id(from._internal_client_id()); - } - if (from.op() != 0) { - _internal_set_op(from._internal_op()); - } -} - -void InsertOrDeleteMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.InsertOrDeleteMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void InsertOrDeleteMsg::CopyFrom(const InsertOrDeleteMsg& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.InsertOrDeleteMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool InsertOrDeleteMsg::IsInitialized() const { - return true; -} - -void InsertOrDeleteMsg::InternalSwap(InsertOrDeleteMsg* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - extra_params_.InternalSwap(&other->extra_params_); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - partition_tag_.Swap(&other->partition_tag_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(rows_data_, other->rows_data_); - swap(uid_, other->uid_); - swap(timestamp_, other->timestamp_); - swap(segment_id_, other->segment_id_); - swap(channel_id_, other->channel_id_); - swap(client_id_, other->client_id_); - swap(op_, other->op_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata InsertOrDeleteMsg::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void SearchMsg::InitAsDefaultInstance() { - ::milvus::grpc::_SearchMsg_default_instance_._instance.get_mutable()->records_ = const_cast< ::milvus::grpc::VectorRowRecord*>( - ::milvus::grpc::VectorRowRecord::internal_default_instance()); -} -class SearchMsg::_Internal { - public: - static const ::milvus::grpc::VectorRowRecord& records(const SearchMsg* msg); -}; - -const ::milvus::grpc::VectorRowRecord& -SearchMsg::_Internal::records(const SearchMsg* msg) { - return *msg->records_; -} -SearchMsg::SearchMsg() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.SearchMsg) -} -SearchMsg::SearchMsg(const SearchMsg& 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._internal_collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - partition_tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_partition_tag().empty()) { - partition_tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); - } - if (from._internal_has_records()) { - records_ = new ::milvus::grpc::VectorRowRecord(*from.records_); - } else { - records_ = nullptr; - } - ::memcpy(&uid_, &from.uid_, - static_cast(reinterpret_cast(&client_id_) - - reinterpret_cast(&uid_)) + sizeof(client_id_)); - // @@protoc_insertion_point(copy_constructor:milvus.grpc.SearchMsg) -} - -void SearchMsg::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SearchMsg_suvlim_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - partition_tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&records_, 0, static_cast( - reinterpret_cast(&client_id_) - - reinterpret_cast(&records_)) + sizeof(client_id_)); -} - -SearchMsg::~SearchMsg() { - // @@protoc_insertion_point(destructor:milvus.grpc.SearchMsg) - SharedDtor(); -} - -void SearchMsg::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - partition_tag_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete records_; -} - -void SearchMsg::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SearchMsg& SearchMsg::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchMsg_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void SearchMsg::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.SearchMsg) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - extra_params_.Clear(); - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - partition_tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && records_ != nullptr) { - delete records_; - } - records_ = nullptr; - ::memset(&uid_, 0, static_cast( - reinterpret_cast(&client_id_) - - reinterpret_cast(&uid_)) + sizeof(client_id_)); - _internal_metadata_.Clear(); -} - -const char* SearchMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_collection_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.SearchMsg.collection_name")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.grpc.VectorRowRecord records = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_records(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string partition_tag = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_partition_tag(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "milvus.grpc.SearchMsg.partition_tag")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 uid = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 timestamp = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { - timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 client_id = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { - client_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.KeyValuePair extra_params = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_extra_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* SearchMsg::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.SearchMsg) - ::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->_internal_collection_name().data(), static_cast(this->_internal_collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchMsg.collection_name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_collection_name(), target); - } - - // .milvus.grpc.VectorRowRecord records = 2; - if (this->has_records()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::records(this), target, stream); - } - - // string partition_tag = 3; - if (this->partition_tag().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_partition_tag().data(), static_cast(this->_internal_partition_tag().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchMsg.partition_tag"); - target = stream->WriteStringMaybeAliased( - 3, this->_internal_partition_tag(), target); - } - - // int64 uid = 4; - if (this->uid() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_uid(), target); - } - - // uint64 timestamp = 5; - if (this->timestamp() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(5, this->_internal_timestamp(), target); - } - - // int64 client_id = 6; - if (this->client_id() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->_internal_client_id(), target); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 7; - for (unsigned int i = 0, - n = static_cast(this->_internal_extra_params_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(7, this->_internal_extra_params(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SearchMsg) - return target; -} - -size_t SearchMsg::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.SearchMsg) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .milvus.grpc.KeyValuePair extra_params = 7; - total_size += 1UL * this->_internal_extra_params_size(); - for (const auto& msg : this->extra_params_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_collection_name()); - } - - // string partition_tag = 3; - if (this->partition_tag().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_partition_tag()); - } - - // .milvus.grpc.VectorRowRecord records = 2; - if (this->has_records()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *records_); - } - - // int64 uid = 4; - if (this->uid() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_uid()); - } - - // uint64 timestamp = 5; - if (this->timestamp() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_timestamp()); - } - - // int64 client_id = 6; - if (this->client_id() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_client_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SearchMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.SearchMsg) - GOOGLE_DCHECK_NE(&from, this); - const SearchMsg* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.SearchMsg) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SearchMsg) - MergeFrom(*source); - } -} - -void SearchMsg::MergeFrom(const SearchMsg& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.SearchMsg) - 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.partition_tag().size() > 0) { - - partition_tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); - } - if (from.has_records()) { - _internal_mutable_records()->::milvus::grpc::VectorRowRecord::MergeFrom(from._internal_records()); - } - if (from.uid() != 0) { - _internal_set_uid(from._internal_uid()); - } - if (from.timestamp() != 0) { - _internal_set_timestamp(from._internal_timestamp()); - } - if (from.client_id() != 0) { - _internal_set_client_id(from._internal_client_id()); - } -} - -void SearchMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.SearchMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SearchMsg::CopyFrom(const SearchMsg& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.SearchMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SearchMsg::IsInitialized() const { - return true; -} - -void SearchMsg::InternalSwap(SearchMsg* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - extra_params_.InternalSwap(&other->extra_params_); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - partition_tag_.Swap(&other->partition_tag_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(records_, other->records_); - swap(uid_, other->uid_); - swap(timestamp_, other->timestamp_); - swap(client_id_, other->client_id_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata SearchMsg::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void TimeSyncMsg::InitAsDefaultInstance() { -} -class TimeSyncMsg::_Internal { - public: -}; - -TimeSyncMsg::TimeSyncMsg() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.TimeSyncMsg) -} -TimeSyncMsg::TimeSyncMsg(const TimeSyncMsg& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&peer_id_, &from.peer_id_, - static_cast(reinterpret_cast(&sync_type_) - - reinterpret_cast(&peer_id_)) + sizeof(sync_type_)); - // @@protoc_insertion_point(copy_constructor:milvus.grpc.TimeSyncMsg) -} - -void TimeSyncMsg::SharedCtor() { - ::memset(&peer_id_, 0, static_cast( - reinterpret_cast(&sync_type_) - - reinterpret_cast(&peer_id_)) + sizeof(sync_type_)); -} - -TimeSyncMsg::~TimeSyncMsg() { - // @@protoc_insertion_point(destructor:milvus.grpc.TimeSyncMsg) - SharedDtor(); -} - -void TimeSyncMsg::SharedDtor() { -} - -void TimeSyncMsg::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TimeSyncMsg& TimeSyncMsg::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TimeSyncMsg_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void TimeSyncMsg::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.TimeSyncMsg) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&peer_id_, 0, static_cast( - reinterpret_cast(&sync_type_) - - reinterpret_cast(&peer_id_)) + sizeof(sync_type_)); - _internal_metadata_.Clear(); -} - -const char* TimeSyncMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // int64 peer_Id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - peer_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 Timestamp = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.grpc.SyncType sync_type = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - _internal_set_sync_type(static_cast<::milvus::grpc::SyncType>(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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* TimeSyncMsg::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.TimeSyncMsg) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 peer_Id = 1; - if (this->peer_id() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_peer_id(), target); - } - - // uint64 Timestamp = 2; - if (this->timestamp() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_timestamp(), target); - } - - // .milvus.grpc.SyncType sync_type = 3; - if (this->sync_type() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 3, this->_internal_sync_type(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.TimeSyncMsg) - return target; -} - -size_t TimeSyncMsg::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.TimeSyncMsg) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // int64 peer_Id = 1; - if (this->peer_id() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_peer_id()); - } - - // uint64 Timestamp = 2; - if (this->timestamp() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_timestamp()); - } - - // .milvus.grpc.SyncType sync_type = 3; - if (this->sync_type() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_sync_type()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TimeSyncMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.TimeSyncMsg) - GOOGLE_DCHECK_NE(&from, this); - const TimeSyncMsg* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.TimeSyncMsg) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.TimeSyncMsg) - MergeFrom(*source); - } -} - -void TimeSyncMsg::MergeFrom(const TimeSyncMsg& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.TimeSyncMsg) - 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.peer_id() != 0) { - _internal_set_peer_id(from._internal_peer_id()); - } - if (from.timestamp() != 0) { - _internal_set_timestamp(from._internal_timestamp()); - } - if (from.sync_type() != 0) { - _internal_set_sync_type(from._internal_sync_type()); - } -} - -void TimeSyncMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.TimeSyncMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TimeSyncMsg::CopyFrom(const TimeSyncMsg& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.TimeSyncMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TimeSyncMsg::IsInitialized() const { - return true; -} - -void TimeSyncMsg::InternalSwap(TimeSyncMsg* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(peer_id_, other->peer_id_); - swap(timestamp_, other->timestamp_); - swap(sync_type_, other->sync_type_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata TimeSyncMsg::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void SegmentRecord::InitAsDefaultInstance() { -} -class SegmentRecord::_Internal { - public: -}; - -SegmentRecord::SegmentRecord() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.SegmentRecord) -} -SegmentRecord::SegmentRecord(const SegmentRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - segment_id_(from.segment_id_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - uid_ = from.uid_; - // @@protoc_insertion_point(copy_constructor:milvus.grpc.SegmentRecord) -} - -void SegmentRecord::SharedCtor() { - uid_ = PROTOBUF_LONGLONG(0); -} - -SegmentRecord::~SegmentRecord() { - // @@protoc_insertion_point(destructor:milvus.grpc.SegmentRecord) - SharedDtor(); -} - -void SegmentRecord::SharedDtor() { -} - -void SegmentRecord::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SegmentRecord& SegmentRecord::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SegmentRecord_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void SegmentRecord::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.SegmentRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - segment_id_.Clear(); - uid_ = PROTOBUF_LONGLONG(0); - _internal_metadata_.Clear(); -} - -const char* SegmentRecord::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // int64 uid = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated int64 segment_id = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_segment_id(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) { - _internal_add_segment_id(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* SegmentRecord::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.SegmentRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 uid = 1; - if (this->uid() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_uid(), target); - } - - // repeated int64 segment_id = 2; - { - int byte_size = _segment_id_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt64Packed( - 2, _internal_segment_id(), byte_size, target); - } - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SegmentRecord) - return target; -} - -size_t SegmentRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.SegmentRecord) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated int64 segment_id = 2; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int64Size(this->segment_id_); - 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); - _segment_id_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // int64 uid = 1; - if (this->uid() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_uid()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SegmentRecord::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.SegmentRecord) - GOOGLE_DCHECK_NE(&from, this); - const SegmentRecord* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.SegmentRecord) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SegmentRecord) - MergeFrom(*source); - } -} - -void SegmentRecord::MergeFrom(const SegmentRecord& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.SegmentRecord) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - segment_id_.MergeFrom(from.segment_id_); - if (from.uid() != 0) { - _internal_set_uid(from._internal_uid()); - } -} - -void SegmentRecord::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.SegmentRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SegmentRecord::CopyFrom(const SegmentRecord& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.SegmentRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SegmentRecord::IsInitialized() const { - return true; -} - -void SegmentRecord::InternalSwap(SegmentRecord* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - segment_id_.InternalSwap(&other->segment_id_); - swap(uid_, other->uid_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata SegmentRecord::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void Key2SegMsg::InitAsDefaultInstance() { - ::milvus::grpc::_Key2SegMsg_default_instance_._instance.get_mutable()->records_ = const_cast< ::milvus::grpc::SegmentRecord*>( - ::milvus::grpc::SegmentRecord::internal_default_instance()); -} -class Key2SegMsg::_Internal { - public: - static const ::milvus::grpc::SegmentRecord& records(const Key2SegMsg* msg); -}; - -const ::milvus::grpc::SegmentRecord& -Key2SegMsg::_Internal::records(const Key2SegMsg* msg) { - return *msg->records_; -} -Key2SegMsg::Key2SegMsg() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.Key2SegMsg) -} -Key2SegMsg::Key2SegMsg(const Key2SegMsg& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_records()) { - records_ = new ::milvus::grpc::SegmentRecord(*from.records_); - } else { - records_ = nullptr; - } - client_id_ = from.client_id_; - // @@protoc_insertion_point(copy_constructor:milvus.grpc.Key2SegMsg) -} - -void Key2SegMsg::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Key2SegMsg_suvlim_2eproto.base); - ::memset(&records_, 0, static_cast( - reinterpret_cast(&client_id_) - - reinterpret_cast(&records_)) + sizeof(client_id_)); -} - -Key2SegMsg::~Key2SegMsg() { - // @@protoc_insertion_point(destructor:milvus.grpc.Key2SegMsg) - SharedDtor(); -} - -void Key2SegMsg::SharedDtor() { - if (this != internal_default_instance()) delete records_; -} - -void Key2SegMsg::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Key2SegMsg& Key2SegMsg::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Key2SegMsg_suvlim_2eproto.base); - return *internal_default_instance(); -} - - -void Key2SegMsg::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.Key2SegMsg) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && records_ != nullptr) { - delete records_; - } - records_ = nullptr; - client_id_ = PROTOBUF_LONGLONG(0); - _internal_metadata_.Clear(); -} - -const char* Key2SegMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // int64 client_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - client_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.grpc.SegmentRecord records = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_records(), 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_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* Key2SegMsg::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Key2SegMsg) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 client_id = 1; - if (this->client_id() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_client_id(), target); - } - - // .milvus.grpc.SegmentRecord records = 2; - if (this->has_records()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::records(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Key2SegMsg) - return target; -} - -size_t Key2SegMsg::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.Key2SegMsg) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .milvus.grpc.SegmentRecord records = 2; - if (this->has_records()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *records_); - } - - // int64 client_id = 1; - if (this->client_id() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_client_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Key2SegMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.Key2SegMsg) - GOOGLE_DCHECK_NE(&from, this); - const Key2SegMsg* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.Key2SegMsg) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Key2SegMsg) - MergeFrom(*source); - } -} - -void Key2SegMsg::MergeFrom(const Key2SegMsg& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.Key2SegMsg) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_records()) { - _internal_mutable_records()->::milvus::grpc::SegmentRecord::MergeFrom(from._internal_records()); - } - if (from.client_id() != 0) { - _internal_set_client_id(from._internal_client_id()); - } -} - -void Key2SegMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Key2SegMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Key2SegMsg::CopyFrom(const Key2SegMsg& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.Key2SegMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Key2SegMsg::IsInitialized() const { - return true; -} - -void Key2SegMsg::InternalSwap(Key2SegMsg* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(records_, other->records_); - swap(client_id_, other->client_id_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata Key2SegMsg::GetMetadata() const { - return GetMetadataStatic(); -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace grpc -} // namespace milvus -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::milvus::grpc::KeyValuePair* Arena::CreateMaybeMessage< ::milvus::grpc::KeyValuePair >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::KeyValuePair >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::CollectionName* Arena::CreateMaybeMessage< ::milvus::grpc::CollectionName >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::CollectionName >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::CollectionNameList* Arena::CreateMaybeMessage< ::milvus::grpc::CollectionNameList >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::CollectionNameList >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::FieldName* Arena::CreateMaybeMessage< ::milvus::grpc::FieldName >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::FieldName >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::Mapping* Arena::CreateMaybeMessage< ::milvus::grpc::Mapping >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::Mapping >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::MappingList* Arena::CreateMaybeMessage< ::milvus::grpc::MappingList >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::MappingList >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::PartitionParam* Arena::CreateMaybeMessage< ::milvus::grpc::PartitionParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::PartitionParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::PartitionList* Arena::CreateMaybeMessage< ::milvus::grpc::PartitionList >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::PartitionList >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::VectorRowRecord* Arena::CreateMaybeMessage< ::milvus::grpc::VectorRowRecord >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::VectorRowRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::EntityIds* Arena::CreateMaybeMessage< ::milvus::grpc::EntityIds >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::EntityIds >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::VectorRecord* Arena::CreateMaybeMessage< ::milvus::grpc::VectorRecord >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::VectorRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::VectorParam* Arena::CreateMaybeMessage< ::milvus::grpc::VectorParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::VectorParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::FieldMeta* Arena::CreateMaybeMessage< ::milvus::grpc::FieldMeta >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::FieldMeta >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::Schema* Arena::CreateMaybeMessage< ::milvus::grpc::Schema >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::Schema >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::RowData* Arena::CreateMaybeMessage< ::milvus::grpc::RowData >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::RowData >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::InsertParam* Arena::CreateMaybeMessage< ::milvus::grpc::InsertParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::InsertParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::SearchParam* Arena::CreateMaybeMessage< ::milvus::grpc::SearchParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::SearchParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::SearchInSegmentParam* Arena::CreateMaybeMessage< ::milvus::grpc::SearchInSegmentParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::SearchInSegmentParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::Entities* Arena::CreateMaybeMessage< ::milvus::grpc::Entities >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::Entities >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::QueryResult* Arena::CreateMaybeMessage< ::milvus::grpc::QueryResult >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::QueryResult >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::StringReply* Arena::CreateMaybeMessage< ::milvus::grpc::StringReply >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::StringReply >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::BoolReply* Arena::CreateMaybeMessage< ::milvus::grpc::BoolReply >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::BoolReply >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::CollectionRowCount* Arena::CreateMaybeMessage< ::milvus::grpc::CollectionRowCount >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::CollectionRowCount >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::Command* Arena::CreateMaybeMessage< ::milvus::grpc::Command >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::Command >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::IndexParam* Arena::CreateMaybeMessage< ::milvus::grpc::IndexParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::IndexParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::FlushParam* Arena::CreateMaybeMessage< ::milvus::grpc::FlushParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::FlushParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::CompactParam* Arena::CreateMaybeMessage< ::milvus::grpc::CompactParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::CompactParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::DeleteByIDParam* Arena::CreateMaybeMessage< ::milvus::grpc::DeleteByIDParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::DeleteByIDParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::CollectionInfo* Arena::CreateMaybeMessage< ::milvus::grpc::CollectionInfo >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::CollectionInfo >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::GetEntityIDsParam* Arena::CreateMaybeMessage< ::milvus::grpc::GetEntityIDsParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::GetEntityIDsParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::EntityIdentity* Arena::CreateMaybeMessage< ::milvus::grpc::EntityIdentity >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::EntityIdentity >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::VectorFieldParam* Arena::CreateMaybeMessage< ::milvus::grpc::VectorFieldParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::VectorFieldParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::FieldType* Arena::CreateMaybeMessage< ::milvus::grpc::FieldType >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::FieldType >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::FieldParam* Arena::CreateMaybeMessage< ::milvus::grpc::FieldParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::FieldParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::VectorFieldRecord* Arena::CreateMaybeMessage< ::milvus::grpc::VectorFieldRecord >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::VectorFieldRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::TermQuery* Arena::CreateMaybeMessage< ::milvus::grpc::TermQuery >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::TermQuery >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::CompareExpr* Arena::CreateMaybeMessage< ::milvus::grpc::CompareExpr >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::CompareExpr >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::RangeQuery* Arena::CreateMaybeMessage< ::milvus::grpc::RangeQuery >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::RangeQuery >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::VectorQuery* Arena::CreateMaybeMessage< ::milvus::grpc::VectorQuery >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::VectorQuery >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::BooleanQuery* Arena::CreateMaybeMessage< ::milvus::grpc::BooleanQuery >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::BooleanQuery >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::GeneralQuery* Arena::CreateMaybeMessage< ::milvus::grpc::GeneralQuery >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::GeneralQuery >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::SearchParamPB* Arena::CreateMaybeMessage< ::milvus::grpc::SearchParamPB >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::SearchParamPB >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::InsertOrDeleteMsg* Arena::CreateMaybeMessage< ::milvus::grpc::InsertOrDeleteMsg >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::InsertOrDeleteMsg >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::SearchMsg* Arena::CreateMaybeMessage< ::milvus::grpc::SearchMsg >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::SearchMsg >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::TimeSyncMsg* Arena::CreateMaybeMessage< ::milvus::grpc::TimeSyncMsg >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::TimeSyncMsg >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::SegmentRecord* Arena::CreateMaybeMessage< ::milvus::grpc::SegmentRecord >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::SegmentRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::Key2SegMsg* Arena::CreateMaybeMessage< ::milvus::grpc::Key2SegMsg >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::Key2SegMsg >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) -#include diff --git a/pulsar/client-cpp/src/pb/suvlim.pb.h b/pulsar/client-cpp/src/pb/suvlim.pb.h deleted file mode 100644 index 313dcd6795..0000000000 --- a/pulsar/client-cpp/src/pb/suvlim.pb.h +++ /dev/null @@ -1,14901 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: suvlim.proto - -#ifndef GOOGLE_PROTOBUF_INCLUDED_suvlim_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_suvlim_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3011000 -#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 3011004 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include "status.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_suvlim_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_suvlim_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[47] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; -}; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_suvlim_2eproto; -namespace milvus { -namespace grpc { -class BoolReply; -class BoolReplyDefaultTypeInternal; -extern BoolReplyDefaultTypeInternal _BoolReply_default_instance_; -class BooleanQuery; -class BooleanQueryDefaultTypeInternal; -extern BooleanQueryDefaultTypeInternal _BooleanQuery_default_instance_; -class CollectionInfo; -class CollectionInfoDefaultTypeInternal; -extern CollectionInfoDefaultTypeInternal _CollectionInfo_default_instance_; -class CollectionName; -class CollectionNameDefaultTypeInternal; -extern CollectionNameDefaultTypeInternal _CollectionName_default_instance_; -class CollectionNameList; -class CollectionNameListDefaultTypeInternal; -extern CollectionNameListDefaultTypeInternal _CollectionNameList_default_instance_; -class CollectionRowCount; -class CollectionRowCountDefaultTypeInternal; -extern CollectionRowCountDefaultTypeInternal _CollectionRowCount_default_instance_; -class Command; -class CommandDefaultTypeInternal; -extern CommandDefaultTypeInternal _Command_default_instance_; -class CompactParam; -class CompactParamDefaultTypeInternal; -extern CompactParamDefaultTypeInternal _CompactParam_default_instance_; -class CompareExpr; -class CompareExprDefaultTypeInternal; -extern CompareExprDefaultTypeInternal _CompareExpr_default_instance_; -class DeleteByIDParam; -class DeleteByIDParamDefaultTypeInternal; -extern DeleteByIDParamDefaultTypeInternal _DeleteByIDParam_default_instance_; -class Entities; -class EntitiesDefaultTypeInternal; -extern EntitiesDefaultTypeInternal _Entities_default_instance_; -class EntityIdentity; -class EntityIdentityDefaultTypeInternal; -extern EntityIdentityDefaultTypeInternal _EntityIdentity_default_instance_; -class EntityIds; -class EntityIdsDefaultTypeInternal; -extern EntityIdsDefaultTypeInternal _EntityIds_default_instance_; -class FieldMeta; -class FieldMetaDefaultTypeInternal; -extern FieldMetaDefaultTypeInternal _FieldMeta_default_instance_; -class FieldName; -class FieldNameDefaultTypeInternal; -extern FieldNameDefaultTypeInternal _FieldName_default_instance_; -class FieldParam; -class FieldParamDefaultTypeInternal; -extern FieldParamDefaultTypeInternal _FieldParam_default_instance_; -class FieldType; -class FieldTypeDefaultTypeInternal; -extern FieldTypeDefaultTypeInternal _FieldType_default_instance_; -class FlushParam; -class FlushParamDefaultTypeInternal; -extern FlushParamDefaultTypeInternal _FlushParam_default_instance_; -class GeneralQuery; -class GeneralQueryDefaultTypeInternal; -extern GeneralQueryDefaultTypeInternal _GeneralQuery_default_instance_; -class GetEntityIDsParam; -class GetEntityIDsParamDefaultTypeInternal; -extern GetEntityIDsParamDefaultTypeInternal _GetEntityIDsParam_default_instance_; -class IndexParam; -class IndexParamDefaultTypeInternal; -extern IndexParamDefaultTypeInternal _IndexParam_default_instance_; -class InsertOrDeleteMsg; -class InsertOrDeleteMsgDefaultTypeInternal; -extern InsertOrDeleteMsgDefaultTypeInternal _InsertOrDeleteMsg_default_instance_; -class InsertParam; -class InsertParamDefaultTypeInternal; -extern InsertParamDefaultTypeInternal _InsertParam_default_instance_; -class Key2SegMsg; -class Key2SegMsgDefaultTypeInternal; -extern Key2SegMsgDefaultTypeInternal _Key2SegMsg_default_instance_; -class KeyValuePair; -class KeyValuePairDefaultTypeInternal; -extern KeyValuePairDefaultTypeInternal _KeyValuePair_default_instance_; -class Mapping; -class MappingDefaultTypeInternal; -extern MappingDefaultTypeInternal _Mapping_default_instance_; -class MappingList; -class MappingListDefaultTypeInternal; -extern MappingListDefaultTypeInternal _MappingList_default_instance_; -class PartitionList; -class PartitionListDefaultTypeInternal; -extern PartitionListDefaultTypeInternal _PartitionList_default_instance_; -class PartitionParam; -class PartitionParamDefaultTypeInternal; -extern PartitionParamDefaultTypeInternal _PartitionParam_default_instance_; -class QueryResult; -class QueryResultDefaultTypeInternal; -extern QueryResultDefaultTypeInternal _QueryResult_default_instance_; -class RangeQuery; -class RangeQueryDefaultTypeInternal; -extern RangeQueryDefaultTypeInternal _RangeQuery_default_instance_; -class RowData; -class RowDataDefaultTypeInternal; -extern RowDataDefaultTypeInternal _RowData_default_instance_; -class Schema; -class SchemaDefaultTypeInternal; -extern SchemaDefaultTypeInternal _Schema_default_instance_; -class SearchInSegmentParam; -class SearchInSegmentParamDefaultTypeInternal; -extern SearchInSegmentParamDefaultTypeInternal _SearchInSegmentParam_default_instance_; -class SearchMsg; -class SearchMsgDefaultTypeInternal; -extern SearchMsgDefaultTypeInternal _SearchMsg_default_instance_; -class SearchParam; -class SearchParamDefaultTypeInternal; -extern SearchParamDefaultTypeInternal _SearchParam_default_instance_; -class SearchParamPB; -class SearchParamPBDefaultTypeInternal; -extern SearchParamPBDefaultTypeInternal _SearchParamPB_default_instance_; -class SegmentRecord; -class SegmentRecordDefaultTypeInternal; -extern SegmentRecordDefaultTypeInternal _SegmentRecord_default_instance_; -class StringReply; -class StringReplyDefaultTypeInternal; -extern StringReplyDefaultTypeInternal _StringReply_default_instance_; -class TermQuery; -class TermQueryDefaultTypeInternal; -extern TermQueryDefaultTypeInternal _TermQuery_default_instance_; -class TimeSyncMsg; -class TimeSyncMsgDefaultTypeInternal; -extern TimeSyncMsgDefaultTypeInternal _TimeSyncMsg_default_instance_; -class VectorFieldParam; -class VectorFieldParamDefaultTypeInternal; -extern VectorFieldParamDefaultTypeInternal _VectorFieldParam_default_instance_; -class VectorFieldRecord; -class VectorFieldRecordDefaultTypeInternal; -extern VectorFieldRecordDefaultTypeInternal _VectorFieldRecord_default_instance_; -class VectorParam; -class VectorParamDefaultTypeInternal; -extern VectorParamDefaultTypeInternal _VectorParam_default_instance_; -class VectorQuery; -class VectorQueryDefaultTypeInternal; -extern VectorQueryDefaultTypeInternal _VectorQuery_default_instance_; -class VectorRecord; -class VectorRecordDefaultTypeInternal; -extern VectorRecordDefaultTypeInternal _VectorRecord_default_instance_; -class VectorRowRecord; -class VectorRowRecordDefaultTypeInternal; -extern VectorRowRecordDefaultTypeInternal _VectorRowRecord_default_instance_; -} // namespace grpc -} // namespace milvus -PROTOBUF_NAMESPACE_OPEN -template<> ::milvus::grpc::BoolReply* Arena::CreateMaybeMessage<::milvus::grpc::BoolReply>(Arena*); -template<> ::milvus::grpc::BooleanQuery* Arena::CreateMaybeMessage<::milvus::grpc::BooleanQuery>(Arena*); -template<> ::milvus::grpc::CollectionInfo* Arena::CreateMaybeMessage<::milvus::grpc::CollectionInfo>(Arena*); -template<> ::milvus::grpc::CollectionName* Arena::CreateMaybeMessage<::milvus::grpc::CollectionName>(Arena*); -template<> ::milvus::grpc::CollectionNameList* Arena::CreateMaybeMessage<::milvus::grpc::CollectionNameList>(Arena*); -template<> ::milvus::grpc::CollectionRowCount* Arena::CreateMaybeMessage<::milvus::grpc::CollectionRowCount>(Arena*); -template<> ::milvus::grpc::Command* Arena::CreateMaybeMessage<::milvus::grpc::Command>(Arena*); -template<> ::milvus::grpc::CompactParam* Arena::CreateMaybeMessage<::milvus::grpc::CompactParam>(Arena*); -template<> ::milvus::grpc::CompareExpr* Arena::CreateMaybeMessage<::milvus::grpc::CompareExpr>(Arena*); -template<> ::milvus::grpc::DeleteByIDParam* Arena::CreateMaybeMessage<::milvus::grpc::DeleteByIDParam>(Arena*); -template<> ::milvus::grpc::Entities* Arena::CreateMaybeMessage<::milvus::grpc::Entities>(Arena*); -template<> ::milvus::grpc::EntityIdentity* Arena::CreateMaybeMessage<::milvus::grpc::EntityIdentity>(Arena*); -template<> ::milvus::grpc::EntityIds* Arena::CreateMaybeMessage<::milvus::grpc::EntityIds>(Arena*); -template<> ::milvus::grpc::FieldMeta* Arena::CreateMaybeMessage<::milvus::grpc::FieldMeta>(Arena*); -template<> ::milvus::grpc::FieldName* Arena::CreateMaybeMessage<::milvus::grpc::FieldName>(Arena*); -template<> ::milvus::grpc::FieldParam* Arena::CreateMaybeMessage<::milvus::grpc::FieldParam>(Arena*); -template<> ::milvus::grpc::FieldType* Arena::CreateMaybeMessage<::milvus::grpc::FieldType>(Arena*); -template<> ::milvus::grpc::FlushParam* Arena::CreateMaybeMessage<::milvus::grpc::FlushParam>(Arena*); -template<> ::milvus::grpc::GeneralQuery* Arena::CreateMaybeMessage<::milvus::grpc::GeneralQuery>(Arena*); -template<> ::milvus::grpc::GetEntityIDsParam* Arena::CreateMaybeMessage<::milvus::grpc::GetEntityIDsParam>(Arena*); -template<> ::milvus::grpc::IndexParam* Arena::CreateMaybeMessage<::milvus::grpc::IndexParam>(Arena*); -template<> ::milvus::grpc::InsertOrDeleteMsg* Arena::CreateMaybeMessage<::milvus::grpc::InsertOrDeleteMsg>(Arena*); -template<> ::milvus::grpc::InsertParam* Arena::CreateMaybeMessage<::milvus::grpc::InsertParam>(Arena*); -template<> ::milvus::grpc::Key2SegMsg* Arena::CreateMaybeMessage<::milvus::grpc::Key2SegMsg>(Arena*); -template<> ::milvus::grpc::KeyValuePair* Arena::CreateMaybeMessage<::milvus::grpc::KeyValuePair>(Arena*); -template<> ::milvus::grpc::Mapping* Arena::CreateMaybeMessage<::milvus::grpc::Mapping>(Arena*); -template<> ::milvus::grpc::MappingList* Arena::CreateMaybeMessage<::milvus::grpc::MappingList>(Arena*); -template<> ::milvus::grpc::PartitionList* Arena::CreateMaybeMessage<::milvus::grpc::PartitionList>(Arena*); -template<> ::milvus::grpc::PartitionParam* Arena::CreateMaybeMessage<::milvus::grpc::PartitionParam>(Arena*); -template<> ::milvus::grpc::QueryResult* Arena::CreateMaybeMessage<::milvus::grpc::QueryResult>(Arena*); -template<> ::milvus::grpc::RangeQuery* Arena::CreateMaybeMessage<::milvus::grpc::RangeQuery>(Arena*); -template<> ::milvus::grpc::RowData* Arena::CreateMaybeMessage<::milvus::grpc::RowData>(Arena*); -template<> ::milvus::grpc::Schema* Arena::CreateMaybeMessage<::milvus::grpc::Schema>(Arena*); -template<> ::milvus::grpc::SearchInSegmentParam* Arena::CreateMaybeMessage<::milvus::grpc::SearchInSegmentParam>(Arena*); -template<> ::milvus::grpc::SearchMsg* Arena::CreateMaybeMessage<::milvus::grpc::SearchMsg>(Arena*); -template<> ::milvus::grpc::SearchParam* Arena::CreateMaybeMessage<::milvus::grpc::SearchParam>(Arena*); -template<> ::milvus::grpc::SearchParamPB* Arena::CreateMaybeMessage<::milvus::grpc::SearchParamPB>(Arena*); -template<> ::milvus::grpc::SegmentRecord* Arena::CreateMaybeMessage<::milvus::grpc::SegmentRecord>(Arena*); -template<> ::milvus::grpc::StringReply* Arena::CreateMaybeMessage<::milvus::grpc::StringReply>(Arena*); -template<> ::milvus::grpc::TermQuery* Arena::CreateMaybeMessage<::milvus::grpc::TermQuery>(Arena*); -template<> ::milvus::grpc::TimeSyncMsg* Arena::CreateMaybeMessage<::milvus::grpc::TimeSyncMsg>(Arena*); -template<> ::milvus::grpc::VectorFieldParam* Arena::CreateMaybeMessage<::milvus::grpc::VectorFieldParam>(Arena*); -template<> ::milvus::grpc::VectorFieldRecord* Arena::CreateMaybeMessage<::milvus::grpc::VectorFieldRecord>(Arena*); -template<> ::milvus::grpc::VectorParam* Arena::CreateMaybeMessage<::milvus::grpc::VectorParam>(Arena*); -template<> ::milvus::grpc::VectorQuery* Arena::CreateMaybeMessage<::milvus::grpc::VectorQuery>(Arena*); -template<> ::milvus::grpc::VectorRecord* Arena::CreateMaybeMessage<::milvus::grpc::VectorRecord>(Arena*); -template<> ::milvus::grpc::VectorRowRecord* Arena::CreateMaybeMessage<::milvus::grpc::VectorRowRecord>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace milvus { -namespace grpc { - -enum DataType : int { - NONE = 0, - BOOL = 1, - INT8 = 2, - INT16 = 3, - INT32 = 4, - INT64 = 5, - FLOAT = 10, - DOUBLE = 11, - STRING = 20, - VECTOR_BINARY = 100, - VECTOR_FLOAT = 101, - DataType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - DataType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() -}; -bool DataType_IsValid(int value); -constexpr DataType DataType_MIN = NONE; -constexpr DataType DataType_MAX = VECTOR_FLOAT; -constexpr int DataType_ARRAYSIZE = DataType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DataType_descriptor(); -template -inline const std::string& DataType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function DataType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - DataType_descriptor(), enum_t_value); -} -inline bool DataType_Parse( - const std::string& name, DataType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - DataType_descriptor(), name, value); -} -enum CompareOperator : int { - LT = 0, - LTE = 1, - EQ = 2, - GT = 3, - GTE = 4, - NE = 5, - CompareOperator_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - CompareOperator_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() -}; -bool CompareOperator_IsValid(int value); -constexpr CompareOperator CompareOperator_MIN = LT; -constexpr CompareOperator CompareOperator_MAX = NE; -constexpr int CompareOperator_ARRAYSIZE = CompareOperator_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CompareOperator_descriptor(); -template -inline const std::string& CompareOperator_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function CompareOperator_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - CompareOperator_descriptor(), enum_t_value); -} -inline bool CompareOperator_Parse( - const std::string& name, CompareOperator* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - CompareOperator_descriptor(), name, value); -} -enum Occur : int { - INVALID = 0, - MUST = 1, - SHOULD = 2, - MUST_NOT = 3, - Occur_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - Occur_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() -}; -bool Occur_IsValid(int value); -constexpr Occur Occur_MIN = INVALID; -constexpr Occur Occur_MAX = MUST_NOT; -constexpr int Occur_ARRAYSIZE = Occur_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Occur_descriptor(); -template -inline const std::string& Occur_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Occur_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - Occur_descriptor(), enum_t_value); -} -inline bool Occur_Parse( - const std::string& name, Occur* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - Occur_descriptor(), name, value); -} -enum OpType : int { - INSERT = 0, - DELETE = 1, - OpType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - OpType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() -}; -bool OpType_IsValid(int value); -constexpr OpType OpType_MIN = INSERT; -constexpr OpType OpType_MAX = DELETE; -constexpr int OpType_ARRAYSIZE = OpType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* OpType_descriptor(); -template -inline const std::string& OpType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function OpType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - OpType_descriptor(), enum_t_value); -} -inline bool OpType_Parse( - const std::string& name, OpType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - OpType_descriptor(), name, value); -} -enum SyncType : int { - READ = 0, - WRITE = 1, - SyncType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - SyncType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() -}; -bool SyncType_IsValid(int value); -constexpr SyncType SyncType_MIN = READ; -constexpr SyncType SyncType_MAX = WRITE; -constexpr int SyncType_ARRAYSIZE = SyncType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SyncType_descriptor(); -template -inline const std::string& SyncType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SyncType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - SyncType_descriptor(), enum_t_value); -} -inline bool SyncType_Parse( - const std::string& name, SyncType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - SyncType_descriptor(), name, value); -} -// =================================================================== - -class KeyValuePair : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.KeyValuePair) */ { - public: - KeyValuePair(); - virtual ~KeyValuePair(); - - KeyValuePair(const KeyValuePair& from); - KeyValuePair(KeyValuePair&& from) noexcept - : KeyValuePair() { - *this = ::std::move(from); - } - - inline KeyValuePair& operator=(const KeyValuePair& from) { - CopyFrom(from); - return *this; - } - inline KeyValuePair& operator=(KeyValuePair&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const KeyValuePair& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const KeyValuePair* internal_default_instance() { - return reinterpret_cast( - &_KeyValuePair_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(KeyValuePair& a, KeyValuePair& b) { - a.Swap(&b); - } - inline void Swap(KeyValuePair* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline KeyValuePair* New() const final { - return CreateMaybeMessage(nullptr); - } - - KeyValuePair* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const KeyValuePair& from); - void MergeFrom(const KeyValuePair& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(KeyValuePair* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.KeyValuePair"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kKeyFieldNumber = 1, - kValueFieldNumber = 2, - }; - // string key = 1; - void clear_key(); - const std::string& key() const; - void set_key(const std::string& value); - void set_key(std::string&& value); - void set_key(const char* value); - void set_key(const char* value, size_t size); - std::string* mutable_key(); - std::string* release_key(); - void set_allocated_key(std::string* key); - private: - const std::string& _internal_key() const; - void _internal_set_key(const std::string& value); - std::string* _internal_mutable_key(); - public: - - // 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); - private: - const std::string& _internal_value() const; - void _internal_set_value(const std::string& value); - std::string* _internal_mutable_value(); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.KeyValuePair) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class CollectionName : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.CollectionName) */ { - public: - CollectionName(); - virtual ~CollectionName(); - - CollectionName(const CollectionName& from); - CollectionName(CollectionName&& from) noexcept - : CollectionName() { - *this = ::std::move(from); - } - - inline CollectionName& operator=(const CollectionName& from) { - CopyFrom(from); - return *this; - } - inline CollectionName& operator=(CollectionName&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const CollectionName& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CollectionName* internal_default_instance() { - return reinterpret_cast( - &_CollectionName_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(CollectionName& a, CollectionName& b) { - a.Swap(&b); - } - inline void Swap(CollectionName* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline CollectionName* New() const final { - return CreateMaybeMessage(nullptr); - } - - CollectionName* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const CollectionName& from); - void MergeFrom(const CollectionName& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CollectionName* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.CollectionName"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_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); - private: - const std::string& _internal_collection_name() const; - void _internal_set_collection_name(const std::string& value); - std::string* _internal_mutable_collection_name(); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.CollectionName) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class CollectionNameList : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.CollectionNameList) */ { - public: - CollectionNameList(); - virtual ~CollectionNameList(); - - CollectionNameList(const CollectionNameList& from); - CollectionNameList(CollectionNameList&& from) noexcept - : CollectionNameList() { - *this = ::std::move(from); - } - - inline CollectionNameList& operator=(const CollectionNameList& from) { - CopyFrom(from); - return *this; - } - inline CollectionNameList& operator=(CollectionNameList&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const CollectionNameList& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CollectionNameList* internal_default_instance() { - return reinterpret_cast( - &_CollectionNameList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(CollectionNameList& a, CollectionNameList& b) { - a.Swap(&b); - } - inline void Swap(CollectionNameList* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline CollectionNameList* New() const final { - return CreateMaybeMessage(nullptr); - } - - CollectionNameList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const CollectionNameList& from); - void MergeFrom(const CollectionNameList& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CollectionNameList* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.CollectionNameList"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_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; - private: - int _internal_collection_names_size() const; - public: - void clear_collection_names(); - const std::string& collection_names(int index) const; - std::string* mutable_collection_names(int index); - void set_collection_names(int index, const std::string& value); - void set_collection_names(int index, std::string&& value); - void set_collection_names(int index, const char* value); - void set_collection_names(int index, const char* value, size_t size); - std::string* add_collection_names(); - void add_collection_names(const std::string& value); - void add_collection_names(std::string&& value); - void add_collection_names(const char* value); - void add_collection_names(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& collection_names() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_collection_names(); - private: - const std::string& _internal_collection_names(int index) const; - std::string* _internal_add_collection_names(); - public: - - // .milvus.grpc.Status status = 1; - bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* release_status(); - ::milvus::grpc::Status* mutable_status(); - void set_allocated_status(::milvus::grpc::Status* status); - private: - const ::milvus::grpc::Status& _internal_status() const; - ::milvus::grpc::Status* _internal_mutable_status(); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.CollectionNameList) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField collection_names_; - ::milvus::grpc::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class FieldName : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.FieldName) */ { - public: - FieldName(); - virtual ~FieldName(); - - FieldName(const FieldName& from); - FieldName(FieldName&& from) noexcept - : FieldName() { - *this = ::std::move(from); - } - - inline FieldName& operator=(const FieldName& from) { - CopyFrom(from); - return *this; - } - inline FieldName& operator=(FieldName&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const FieldName& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const FieldName* internal_default_instance() { - return reinterpret_cast( - &_FieldName_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(FieldName& a, FieldName& b) { - a.Swap(&b); - } - inline void Swap(FieldName* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline FieldName* New() const final { - return CreateMaybeMessage(nullptr); - } - - FieldName* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const FieldName& from); - void MergeFrom(const FieldName& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(FieldName* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.FieldName"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_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); - private: - const std::string& _internal_collection_name() const; - void _internal_set_collection_name(const std::string& value); - std::string* _internal_mutable_collection_name(); - public: - - // 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); - private: - const std::string& _internal_field_name() const; - void _internal_set_field_name(const std::string& value); - std::string* _internal_mutable_field_name(); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.FieldName) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class Mapping : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Mapping) */ { - public: - Mapping(); - virtual ~Mapping(); - - Mapping(const Mapping& from); - Mapping(Mapping&& from) noexcept - : Mapping() { - *this = ::std::move(from); - } - - inline Mapping& operator=(const Mapping& from) { - CopyFrom(from); - return *this; - } - inline Mapping& operator=(Mapping&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const Mapping& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Mapping* internal_default_instance() { - return reinterpret_cast( - &_Mapping_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(Mapping& a, Mapping& b) { - a.Swap(&b); - } - inline void Swap(Mapping* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Mapping* New() const final { - return CreateMaybeMessage(nullptr); - } - - Mapping* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const Mapping& from); - void MergeFrom(const Mapping& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Mapping* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.Mapping"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kExtraParamsFieldNumber = 4, - kCollectionNameFieldNumber = 2, - kStatusFieldNumber = 1, - kSchemaFieldNumber = 3, - }; - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - int extra_params_size() const; - private: - int _internal_extra_params_size() const; - public: - void clear_extra_params(); - ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* - mutable_extra_params(); - private: - const ::milvus::grpc::KeyValuePair& _internal_extra_params(int index) const; - ::milvus::grpc::KeyValuePair* _internal_add_extra_params(); - public: - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; - ::milvus::grpc::KeyValuePair* add_extra_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& - extra_params() const; - - // string collection_name = 2; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - private: - const std::string& _internal_collection_name() const; - void _internal_set_collection_name(const std::string& value); - std::string* _internal_mutable_collection_name(); - public: - - // .milvus.grpc.Status status = 1; - bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* release_status(); - ::milvus::grpc::Status* mutable_status(); - void set_allocated_status(::milvus::grpc::Status* status); - private: - const ::milvus::grpc::Status& _internal_status() const; - ::milvus::grpc::Status* _internal_mutable_status(); - public: - - // .milvus.grpc.Schema schema = 3; - bool has_schema() const; - private: - bool _internal_has_schema() const; - public: - void clear_schema(); - const ::milvus::grpc::Schema& schema() const; - ::milvus::grpc::Schema* release_schema(); - ::milvus::grpc::Schema* mutable_schema(); - void set_allocated_schema(::milvus::grpc::Schema* schema); - private: - const ::milvus::grpc::Schema& _internal_schema() const; - ::milvus::grpc::Schema* _internal_mutable_schema(); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.Mapping) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::milvus::grpc::Status* status_; - ::milvus::grpc::Schema* schema_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class MappingList : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.MappingList) */ { - public: - MappingList(); - virtual ~MappingList(); - - MappingList(const MappingList& from); - MappingList(MappingList&& from) noexcept - : MappingList() { - *this = ::std::move(from); - } - - inline MappingList& operator=(const MappingList& from) { - CopyFrom(from); - return *this; - } - inline MappingList& operator=(MappingList&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const MappingList& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const MappingList* internal_default_instance() { - return reinterpret_cast( - &_MappingList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(MappingList& a, MappingList& b) { - a.Swap(&b); - } - inline void Swap(MappingList* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MappingList* New() const final { - return CreateMaybeMessage(nullptr); - } - - MappingList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const MappingList& from); - void MergeFrom(const MappingList& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MappingList* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.MappingList"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMappingListFieldNumber = 2, - kStatusFieldNumber = 1, - }; - // repeated .milvus.grpc.Mapping mapping_list = 2; - int mapping_list_size() const; - private: - int _internal_mapping_list_size() const; - public: - void clear_mapping_list(); - ::milvus::grpc::Mapping* mutable_mapping_list(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::Mapping >* - mutable_mapping_list(); - private: - const ::milvus::grpc::Mapping& _internal_mapping_list(int index) const; - ::milvus::grpc::Mapping* _internal_add_mapping_list(); - public: - const ::milvus::grpc::Mapping& mapping_list(int index) const; - ::milvus::grpc::Mapping* add_mapping_list(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::Mapping >& - mapping_list() const; - - // .milvus.grpc.Status status = 1; - bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* release_status(); - ::milvus::grpc::Status* mutable_status(); - void set_allocated_status(::milvus::grpc::Status* status); - private: - const ::milvus::grpc::Status& _internal_status() const; - ::milvus::grpc::Status* _internal_mutable_status(); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.MappingList) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::Mapping > mapping_list_; - ::milvus::grpc::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class PartitionParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.PartitionParam) */ { - public: - PartitionParam(); - virtual ~PartitionParam(); - - PartitionParam(const PartitionParam& from); - PartitionParam(PartitionParam&& from) noexcept - : PartitionParam() { - *this = ::std::move(from); - } - - inline PartitionParam& operator=(const PartitionParam& from) { - CopyFrom(from); - return *this; - } - inline PartitionParam& operator=(PartitionParam&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const PartitionParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PartitionParam* internal_default_instance() { - return reinterpret_cast( - &_PartitionParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(PartitionParam& a, PartitionParam& b) { - a.Swap(&b); - } - inline void Swap(PartitionParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PartitionParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - PartitionParam* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PartitionParam& from); - void MergeFrom(const PartitionParam& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PartitionParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.PartitionParam"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_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); - private: - const std::string& _internal_collection_name() const; - void _internal_set_collection_name(const std::string& value); - std::string* _internal_mutable_collection_name(); - public: - - // 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); - private: - const std::string& _internal_tag() const; - void _internal_set_tag(const std::string& value); - std::string* _internal_mutable_tag(); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.PartitionParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tag_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class PartitionList : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.PartitionList) */ { - public: - PartitionList(); - virtual ~PartitionList(); - - PartitionList(const PartitionList& from); - PartitionList(PartitionList&& from) noexcept - : PartitionList() { - *this = ::std::move(from); - } - - inline PartitionList& operator=(const PartitionList& from) { - CopyFrom(from); - return *this; - } - inline PartitionList& operator=(PartitionList&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const PartitionList& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PartitionList* internal_default_instance() { - return reinterpret_cast( - &_PartitionList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(PartitionList& a, PartitionList& b) { - a.Swap(&b); - } - inline void Swap(PartitionList* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PartitionList* New() const final { - return CreateMaybeMessage(nullptr); - } - - PartitionList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PartitionList& from); - void MergeFrom(const PartitionList& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PartitionList* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.PartitionList"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartitionTagArrayFieldNumber = 2, - kStatusFieldNumber = 1, - }; - // repeated string partition_tag_array = 2; - int partition_tag_array_size() const; - private: - int _internal_partition_tag_array_size() const; - public: - void clear_partition_tag_array(); - const std::string& partition_tag_array(int index) const; - std::string* mutable_partition_tag_array(int index); - void set_partition_tag_array(int index, const std::string& value); - void set_partition_tag_array(int index, std::string&& value); - void set_partition_tag_array(int index, const char* value); - void set_partition_tag_array(int index, const char* value, size_t size); - std::string* add_partition_tag_array(); - void add_partition_tag_array(const std::string& value); - void add_partition_tag_array(std::string&& value); - void add_partition_tag_array(const char* value); - void add_partition_tag_array(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& partition_tag_array() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_partition_tag_array(); - private: - const std::string& _internal_partition_tag_array(int index) const; - std::string* _internal_add_partition_tag_array(); - public: - - // .milvus.grpc.Status status = 1; - bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* release_status(); - ::milvus::grpc::Status* mutable_status(); - void set_allocated_status(::milvus::grpc::Status* status); - private: - const ::milvus::grpc::Status& _internal_status() const; - ::milvus::grpc::Status* _internal_mutable_status(); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.PartitionList) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField partition_tag_array_; - ::milvus::grpc::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class VectorRowRecord : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorRowRecord) */ { - public: - VectorRowRecord(); - virtual ~VectorRowRecord(); - - VectorRowRecord(const VectorRowRecord& from); - VectorRowRecord(VectorRowRecord&& from) noexcept - : VectorRowRecord() { - *this = ::std::move(from); - } - - inline VectorRowRecord& operator=(const VectorRowRecord& from) { - CopyFrom(from); - return *this; - } - inline VectorRowRecord& operator=(VectorRowRecord&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const VectorRowRecord& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const VectorRowRecord* internal_default_instance() { - return reinterpret_cast( - &_VectorRowRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(VectorRowRecord& a, VectorRowRecord& b) { - a.Swap(&b); - } - inline void Swap(VectorRowRecord* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline VectorRowRecord* New() const final { - return CreateMaybeMessage(nullptr); - } - - VectorRowRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const VectorRowRecord& from); - void MergeFrom(const VectorRowRecord& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(VectorRowRecord* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.VectorRowRecord"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFloatDataFieldNumber = 1, - kBinaryDataFieldNumber = 2, - }; - // repeated float float_data = 1; - int float_data_size() const; - private: - int _internal_float_data_size() const; - public: - void clear_float_data(); - private: - float _internal_float_data(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& - _internal_float_data() const; - void _internal_add_float_data(float value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* - _internal_mutable_float_data(); - public: - float float_data(int index) const; - void set_float_data(int index, float value); - void add_float_data(float value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& - float_data() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* - mutable_float_data(); - - // bytes binary_data = 2; - void clear_binary_data(); - const std::string& binary_data() const; - void set_binary_data(const std::string& value); - void set_binary_data(std::string&& value); - void set_binary_data(const char* value); - void set_binary_data(const void* value, size_t size); - std::string* mutable_binary_data(); - std::string* release_binary_data(); - void set_allocated_binary_data(std::string* binary_data); - private: - const std::string& _internal_binary_data() const; - void _internal_set_binary_data(const std::string& value); - std::string* _internal_mutable_binary_data(); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.VectorRowRecord) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > float_data_; - mutable std::atomic _float_data_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr binary_data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class EntityIds : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.EntityIds) */ { - public: - EntityIds(); - virtual ~EntityIds(); - - EntityIds(const EntityIds& from); - EntityIds(EntityIds&& from) noexcept - : EntityIds() { - *this = ::std::move(from); - } - - inline EntityIds& operator=(const EntityIds& from) { - CopyFrom(from); - return *this; - } - inline EntityIds& operator=(EntityIds&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const EntityIds& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const EntityIds* internal_default_instance() { - return reinterpret_cast( - &_EntityIds_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - friend void swap(EntityIds& a, EntityIds& b) { - a.Swap(&b); - } - inline void Swap(EntityIds* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline EntityIds* New() const final { - return CreateMaybeMessage(nullptr); - } - - EntityIds* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const EntityIds& from); - void MergeFrom(const EntityIds& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(EntityIds* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.EntityIds"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kEntityIdArrayFieldNumber = 2, - kStatusFieldNumber = 1, - }; - // repeated int64 entity_id_array = 2; - int entity_id_array_size() const; - private: - int _internal_entity_id_array_size() const; - public: - void clear_entity_id_array(); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_entity_id_array(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - _internal_entity_id_array() const; - void _internal_add_entity_id_array(::PROTOBUF_NAMESPACE_ID::int64 value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - _internal_mutable_entity_id_array(); - public: - ::PROTOBUF_NAMESPACE_ID::int64 entity_id_array(int index) const; - void set_entity_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); - void add_entity_id_array(::PROTOBUF_NAMESPACE_ID::int64 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - entity_id_array() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - mutable_entity_id_array(); - - // .milvus.grpc.Status status = 1; - bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* release_status(); - ::milvus::grpc::Status* mutable_status(); - void set_allocated_status(::milvus::grpc::Status* status); - private: - const ::milvus::grpc::Status& _internal_status() const; - ::milvus::grpc::Status* _internal_mutable_status(); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.EntityIds) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > entity_id_array_; - mutable std::atomic _entity_id_array_cached_byte_size_; - ::milvus::grpc::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class VectorRecord : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorRecord) */ { - public: - VectorRecord(); - virtual ~VectorRecord(); - - VectorRecord(const VectorRecord& from); - VectorRecord(VectorRecord&& from) noexcept - : VectorRecord() { - *this = ::std::move(from); - } - - inline VectorRecord& operator=(const VectorRecord& from) { - CopyFrom(from); - return *this; - } - inline VectorRecord& operator=(VectorRecord&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const VectorRecord& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const VectorRecord* internal_default_instance() { - return reinterpret_cast( - &_VectorRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - friend void swap(VectorRecord& a, VectorRecord& b) { - a.Swap(&b); - } - inline void Swap(VectorRecord* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline VectorRecord* New() const final { - return CreateMaybeMessage(nullptr); - } - - VectorRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const VectorRecord& from); - void MergeFrom(const VectorRecord& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(VectorRecord* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.VectorRecord"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRecordsFieldNumber = 1, - }; - // repeated .milvus.grpc.VectorRowRecord records = 1; - int records_size() const; - private: - int _internal_records_size() const; - public: - void clear_records(); - ::milvus::grpc::VectorRowRecord* mutable_records(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* - mutable_records(); - private: - const ::milvus::grpc::VectorRowRecord& _internal_records(int index) const; - ::milvus::grpc::VectorRowRecord* _internal_add_records(); - public: - const ::milvus::grpc::VectorRowRecord& records(int index) const; - ::milvus::grpc::VectorRowRecord* add_records(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& - records() const; - - // @@protoc_insertion_point(class_scope:milvus.grpc.VectorRecord) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord > records_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class VectorParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorParam) */ { - public: - VectorParam(); - virtual ~VectorParam(); - - VectorParam(const VectorParam& from); - VectorParam(VectorParam&& from) noexcept - : VectorParam() { - *this = ::std::move(from); - } - - inline VectorParam& operator=(const VectorParam& from) { - CopyFrom(from); - return *this; - } - inline VectorParam& operator=(VectorParam&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const VectorParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const VectorParam* internal_default_instance() { - return reinterpret_cast( - &_VectorParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - friend void swap(VectorParam& a, VectorParam& b) { - a.Swap(&b); - } - inline void Swap(VectorParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline VectorParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - VectorParam* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const VectorParam& from); - void MergeFrom(const VectorParam& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(VectorParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.VectorParam"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kJsonFieldNumber = 1, - kRowRecordFieldNumber = 2, - }; - // string json = 1; - void clear_json(); - const std::string& json() const; - void set_json(const std::string& value); - void set_json(std::string&& value); - void set_json(const char* value); - void set_json(const char* value, size_t size); - std::string* mutable_json(); - std::string* release_json(); - void set_allocated_json(std::string* json); - private: - const std::string& _internal_json() const; - void _internal_set_json(const std::string& value); - std::string* _internal_mutable_json(); - public: - - // .milvus.grpc.VectorRecord row_record = 2; - bool has_row_record() const; - private: - bool _internal_has_row_record() const; - public: - void clear_row_record(); - const ::milvus::grpc::VectorRecord& row_record() const; - ::milvus::grpc::VectorRecord* release_row_record(); - ::milvus::grpc::VectorRecord* mutable_row_record(); - void set_allocated_row_record(::milvus::grpc::VectorRecord* row_record); - private: - const ::milvus::grpc::VectorRecord& _internal_row_record() const; - ::milvus::grpc::VectorRecord* _internal_mutable_row_record(); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.VectorParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr json_; - ::milvus::grpc::VectorRecord* row_record_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class FieldMeta : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.FieldMeta) */ { - public: - FieldMeta(); - virtual ~FieldMeta(); - - FieldMeta(const FieldMeta& from); - FieldMeta(FieldMeta&& from) noexcept - : FieldMeta() { - *this = ::std::move(from); - } - - inline FieldMeta& operator=(const FieldMeta& from) { - CopyFrom(from); - return *this; - } - inline FieldMeta& operator=(FieldMeta&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const FieldMeta& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const FieldMeta* internal_default_instance() { - return reinterpret_cast( - &_FieldMeta_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(FieldMeta& a, FieldMeta& b) { - a.Swap(&b); - } - inline void Swap(FieldMeta* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline FieldMeta* New() const final { - return CreateMaybeMessage(nullptr); - } - - FieldMeta* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const FieldMeta& from); - void MergeFrom(const FieldMeta& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) 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(FieldMeta* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.FieldMeta"; - } - 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_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFieldNameFieldNumber = 1, - kDimFieldNumber = 3, - kTypeFieldNumber = 2, - }; - // string field_name = 1; - void clear_field_name(); - const std::string& field_name() const; - void set_field_name(const std::string& value); - void set_field_name(std::string&& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - std::string* mutable_field_name(); - std::string* release_field_name(); - void set_allocated_field_name(std::string* field_name); - private: - const std::string& _internal_field_name() const; - void _internal_set_field_name(const std::string& value); - std::string* _internal_mutable_field_name(); - public: - - // int64 dim = 3; - void clear_dim(); - ::PROTOBUF_NAMESPACE_ID::int64 dim() const; - void set_dim(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_dim() const; - void _internal_set_dim(::PROTOBUF_NAMESPACE_ID::int64 value); - public: - - // .milvus.grpc.DataType type = 2; - void clear_type(); - ::milvus::grpc::DataType type() const; - void set_type(::milvus::grpc::DataType value); - private: - ::milvus::grpc::DataType _internal_type() const; - void _internal_set_type(::milvus::grpc::DataType value); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.FieldMeta) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; - ::PROTOBUF_NAMESPACE_ID::int64 dim_; - int type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class Schema : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Schema) */ { - public: - Schema(); - virtual ~Schema(); - - Schema(const Schema& from); - Schema(Schema&& from) noexcept - : Schema() { - *this = ::std::move(from); - } - - inline Schema& operator=(const Schema& from) { - CopyFrom(from); - return *this; - } - inline Schema& operator=(Schema&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const Schema& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Schema* internal_default_instance() { - return reinterpret_cast( - &_Schema_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - friend void swap(Schema& a, Schema& b) { - a.Swap(&b); - } - inline void Swap(Schema* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Schema* New() const final { - return CreateMaybeMessage(nullptr); - } - - Schema* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const Schema& from); - void MergeFrom(const Schema& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) 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(Schema* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.Schema"; - } - 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_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFieldMetasFieldNumber = 1, - }; - // repeated .milvus.grpc.FieldMeta field_metas = 1; - int field_metas_size() const; - private: - int _internal_field_metas_size() const; - public: - void clear_field_metas(); - ::milvus::grpc::FieldMeta* mutable_field_metas(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldMeta >* - mutable_field_metas(); - private: - const ::milvus::grpc::FieldMeta& _internal_field_metas(int index) const; - ::milvus::grpc::FieldMeta* _internal_add_field_metas(); - public: - const ::milvus::grpc::FieldMeta& field_metas(int index) const; - ::milvus::grpc::FieldMeta* add_field_metas(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldMeta >& - field_metas() const; - - // @@protoc_insertion_point(class_scope:milvus.grpc.Schema) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldMeta > field_metas_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class RowData : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.RowData) */ { - public: - RowData(); - virtual ~RowData(); - - RowData(const RowData& from); - RowData(RowData&& from) noexcept - : RowData() { - *this = ::std::move(from); - } - - inline RowData& operator=(const RowData& from) { - CopyFrom(from); - return *this; - } - inline RowData& operator=(RowData&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const RowData& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const RowData* internal_default_instance() { - return reinterpret_cast( - &_RowData_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - friend void swap(RowData& a, RowData& b) { - a.Swap(&b); - } - inline void Swap(RowData* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline RowData* New() const final { - return CreateMaybeMessage(nullptr); - } - - RowData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const RowData& from); - void MergeFrom(const RowData& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) 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(RowData* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.RowData"; - } - 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_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kBlobFieldNumber = 1, - }; - // bytes blob = 1; - void clear_blob(); - const std::string& blob() const; - void set_blob(const std::string& value); - void set_blob(std::string&& value); - void set_blob(const char* value); - void set_blob(const void* value, size_t size); - std::string* mutable_blob(); - std::string* release_blob(); - void set_allocated_blob(std::string* blob); - private: - const std::string& _internal_blob() const; - void _internal_set_blob(const std::string& value); - std::string* _internal_mutable_blob(); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.RowData) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr blob_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class InsertParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.InsertParam) */ { - public: - InsertParam(); - virtual ~InsertParam(); - - InsertParam(const InsertParam& from); - InsertParam(InsertParam&& from) noexcept - : InsertParam() { - *this = ::std::move(from); - } - - inline InsertParam& operator=(const InsertParam& from) { - CopyFrom(from); - return *this; - } - inline InsertParam& operator=(InsertParam&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const InsertParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const InsertParam* internal_default_instance() { - return reinterpret_cast( - &_InsertParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - friend void swap(InsertParam& a, InsertParam& b) { - a.Swap(&b); - } - inline void Swap(InsertParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline InsertParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - InsertParam* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const InsertParam& from); - void MergeFrom(const InsertParam& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(InsertParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.InsertParam"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRowsDataFieldNumber = 3, - kEntityIdArrayFieldNumber = 4, - kExtraParamsFieldNumber = 6, - kCollectionNameFieldNumber = 1, - kPartitionTagFieldNumber = 5, - kSchemaFieldNumber = 2, - }; - // repeated .milvus.grpc.RowData rows_data = 3; - int rows_data_size() const; - private: - int _internal_rows_data_size() const; - public: - void clear_rows_data(); - ::milvus::grpc::RowData* mutable_rows_data(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowData >* - mutable_rows_data(); - private: - const ::milvus::grpc::RowData& _internal_rows_data(int index) const; - ::milvus::grpc::RowData* _internal_add_rows_data(); - public: - const ::milvus::grpc::RowData& rows_data(int index) const; - ::milvus::grpc::RowData* add_rows_data(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowData >& - rows_data() const; - - // repeated int64 entity_id_array = 4; - int entity_id_array_size() const; - private: - int _internal_entity_id_array_size() const; - public: - void clear_entity_id_array(); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_entity_id_array(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - _internal_entity_id_array() const; - void _internal_add_entity_id_array(::PROTOBUF_NAMESPACE_ID::int64 value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - _internal_mutable_entity_id_array(); - public: - ::PROTOBUF_NAMESPACE_ID::int64 entity_id_array(int index) const; - void set_entity_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); - void add_entity_id_array(::PROTOBUF_NAMESPACE_ID::int64 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - entity_id_array() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - mutable_entity_id_array(); - - // repeated .milvus.grpc.KeyValuePair extra_params = 6; - int extra_params_size() const; - private: - int _internal_extra_params_size() const; - public: - void clear_extra_params(); - ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* - mutable_extra_params(); - private: - const ::milvus::grpc::KeyValuePair& _internal_extra_params(int index) const; - ::milvus::grpc::KeyValuePair* _internal_add_extra_params(); - public: - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; - ::milvus::grpc::KeyValuePair* add_extra_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& - extra_params() const; - - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - private: - const std::string& _internal_collection_name() const; - void _internal_set_collection_name(const std::string& value); - std::string* _internal_mutable_collection_name(); - public: - - // string partition_tag = 5; - void clear_partition_tag(); - const std::string& partition_tag() const; - void set_partition_tag(const std::string& value); - void set_partition_tag(std::string&& value); - void set_partition_tag(const char* value); - void set_partition_tag(const char* value, size_t size); - std::string* mutable_partition_tag(); - std::string* release_partition_tag(); - void set_allocated_partition_tag(std::string* partition_tag); - private: - const std::string& _internal_partition_tag() const; - void _internal_set_partition_tag(const std::string& value); - std::string* _internal_mutable_partition_tag(); - public: - - // .milvus.grpc.Schema schema = 2; - bool has_schema() const; - private: - bool _internal_has_schema() const; - public: - void clear_schema(); - const ::milvus::grpc::Schema& schema() const; - ::milvus::grpc::Schema* release_schema(); - ::milvus::grpc::Schema* mutable_schema(); - void set_allocated_schema(::milvus::grpc::Schema* schema); - private: - const ::milvus::grpc::Schema& _internal_schema() const; - ::milvus::grpc::Schema* _internal_mutable_schema(); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.InsertParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowData > rows_data_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > entity_id_array_; - mutable std::atomic _entity_id_array_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr partition_tag_; - ::milvus::grpc::Schema* schema_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class SearchParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchParam) */ { - public: - SearchParam(); - virtual ~SearchParam(); - - SearchParam(const SearchParam& from); - SearchParam(SearchParam&& from) noexcept - : SearchParam() { - *this = ::std::move(from); - } - - inline SearchParam& operator=(const SearchParam& from) { - CopyFrom(from); - return *this; - } - inline SearchParam& operator=(SearchParam&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const SearchParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SearchParam* internal_default_instance() { - return reinterpret_cast( - &_SearchParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - friend void swap(SearchParam& a, SearchParam& b) { - a.Swap(&b); - } - inline void Swap(SearchParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline SearchParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - SearchParam* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const SearchParam& from); - void MergeFrom(const SearchParam& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SearchParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.SearchParam"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kVectorParamFieldNumber = 2, - kPartitionTagFieldNumber = 4, - kExtraParamsFieldNumber = 5, - kCollectionNameFieldNumber = 1, - kDslFieldNumber = 3, - }; - // repeated .milvus.grpc.VectorParam vector_param = 2; - int vector_param_size() const; - private: - int _internal_vector_param_size() const; - public: - void clear_vector_param(); - ::milvus::grpc::VectorParam* mutable_vector_param(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorParam >* - mutable_vector_param(); - private: - const ::milvus::grpc::VectorParam& _internal_vector_param(int index) const; - ::milvus::grpc::VectorParam* _internal_add_vector_param(); - public: - const ::milvus::grpc::VectorParam& vector_param(int index) const; - ::milvus::grpc::VectorParam* add_vector_param(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorParam >& - vector_param() const; - - // repeated string partition_tag = 4; - int partition_tag_size() const; - private: - int _internal_partition_tag_size() const; - public: - void clear_partition_tag(); - const std::string& partition_tag(int index) const; - std::string* mutable_partition_tag(int index); - void set_partition_tag(int index, const std::string& value); - void set_partition_tag(int index, std::string&& value); - void set_partition_tag(int index, const char* value); - void set_partition_tag(int index, const char* value, size_t size); - std::string* add_partition_tag(); - void add_partition_tag(const std::string& value); - void add_partition_tag(std::string&& value); - void add_partition_tag(const char* value); - void add_partition_tag(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& partition_tag() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_partition_tag(); - private: - const std::string& _internal_partition_tag(int index) const; - std::string* _internal_add_partition_tag(); - public: - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - int extra_params_size() const; - private: - int _internal_extra_params_size() const; - public: - void clear_extra_params(); - ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* - mutable_extra_params(); - private: - const ::milvus::grpc::KeyValuePair& _internal_extra_params(int index) const; - ::milvus::grpc::KeyValuePair* _internal_add_extra_params(); - public: - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; - ::milvus::grpc::KeyValuePair* add_extra_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& - extra_params() const; - - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - private: - const std::string& _internal_collection_name() const; - void _internal_set_collection_name(const std::string& value); - std::string* _internal_mutable_collection_name(); - public: - - // 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); - private: - const std::string& _internal_dsl() const; - void _internal_set_dsl(const std::string& value); - std::string* _internal_mutable_dsl(); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.SearchParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorParam > vector_param_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField partition_tag_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dsl_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class SearchInSegmentParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchInSegmentParam) */ { - public: - SearchInSegmentParam(); - virtual ~SearchInSegmentParam(); - - SearchInSegmentParam(const SearchInSegmentParam& from); - SearchInSegmentParam(SearchInSegmentParam&& from) noexcept - : SearchInSegmentParam() { - *this = ::std::move(from); - } - - inline SearchInSegmentParam& operator=(const SearchInSegmentParam& from) { - CopyFrom(from); - return *this; - } - inline SearchInSegmentParam& operator=(SearchInSegmentParam&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const SearchInSegmentParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SearchInSegmentParam* internal_default_instance() { - return reinterpret_cast( - &_SearchInSegmentParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - friend void swap(SearchInSegmentParam& a, SearchInSegmentParam& b) { - a.Swap(&b); - } - inline void Swap(SearchInSegmentParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline SearchInSegmentParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - SearchInSegmentParam* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const SearchInSegmentParam& from); - void MergeFrom(const SearchInSegmentParam& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SearchInSegmentParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.SearchInSegmentParam"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFileIdArrayFieldNumber = 1, - kSearchParamFieldNumber = 2, - }; - // repeated string file_id_array = 1; - int file_id_array_size() const; - private: - int _internal_file_id_array_size() const; - public: - void clear_file_id_array(); - const std::string& file_id_array(int index) const; - std::string* mutable_file_id_array(int index); - void set_file_id_array(int index, const std::string& value); - void set_file_id_array(int index, std::string&& value); - void set_file_id_array(int index, const char* value); - void set_file_id_array(int index, const char* value, size_t size); - std::string* add_file_id_array(); - void add_file_id_array(const std::string& value); - void add_file_id_array(std::string&& value); - void add_file_id_array(const char* value); - void add_file_id_array(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& file_id_array() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_file_id_array(); - private: - const std::string& _internal_file_id_array(int index) const; - std::string* _internal_add_file_id_array(); - public: - - // .milvus.grpc.SearchParam search_param = 2; - bool has_search_param() const; - private: - bool _internal_has_search_param() const; - public: - void clear_search_param(); - const ::milvus::grpc::SearchParam& search_param() const; - ::milvus::grpc::SearchParam* release_search_param(); - ::milvus::grpc::SearchParam* mutable_search_param(); - void set_allocated_search_param(::milvus::grpc::SearchParam* search_param); - private: - const ::milvus::grpc::SearchParam& _internal_search_param() const; - ::milvus::grpc::SearchParam* _internal_mutable_search_param(); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.SearchInSegmentParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField file_id_array_; - ::milvus::grpc::SearchParam* search_param_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class Entities : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Entities) */ { - public: - Entities(); - virtual ~Entities(); - - Entities(const Entities& from); - Entities(Entities&& from) noexcept - : Entities() { - *this = ::std::move(from); - } - - inline Entities& operator=(const Entities& from) { - CopyFrom(from); - return *this; - } - inline Entities& operator=(Entities&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const Entities& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Entities* internal_default_instance() { - return reinterpret_cast( - &_Entities_default_instance_); - } - static constexpr int kIndexInFileMessages = - 18; - - friend void swap(Entities& a, Entities& b) { - a.Swap(&b); - } - inline void Swap(Entities* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Entities* New() const final { - return CreateMaybeMessage(nullptr); - } - - Entities* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const Entities& from); - void MergeFrom(const Entities& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Entities* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.Entities"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIdsFieldNumber = 2, - kValidRowFieldNumber = 3, - kRowsDataFieldNumber = 4, - kStatusFieldNumber = 1, - }; - // repeated int64 ids = 2; - int ids_size() const; - private: - int _internal_ids_size() const; - public: - void clear_ids(); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_ids(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - _internal_ids() const; - void _internal_add_ids(::PROTOBUF_NAMESPACE_ID::int64 value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - _internal_mutable_ids(); - public: - ::PROTOBUF_NAMESPACE_ID::int64 ids(int index) const; - void set_ids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); - void add_ids(::PROTOBUF_NAMESPACE_ID::int64 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - ids() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - mutable_ids(); - - // repeated bool valid_row = 3; - int valid_row_size() const; - private: - int _internal_valid_row_size() const; - public: - void clear_valid_row(); - private: - bool _internal_valid_row(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >& - _internal_valid_row() const; - void _internal_add_valid_row(bool value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >* - _internal_mutable_valid_row(); - public: - bool valid_row(int index) const; - void set_valid_row(int index, bool value); - void add_valid_row(bool value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >& - valid_row() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >* - mutable_valid_row(); - - // repeated .milvus.grpc.RowData rows_data = 4; - int rows_data_size() const; - private: - int _internal_rows_data_size() const; - public: - void clear_rows_data(); - ::milvus::grpc::RowData* mutable_rows_data(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowData >* - mutable_rows_data(); - private: - const ::milvus::grpc::RowData& _internal_rows_data(int index) const; - ::milvus::grpc::RowData* _internal_add_rows_data(); - public: - const ::milvus::grpc::RowData& rows_data(int index) const; - ::milvus::grpc::RowData* add_rows_data(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowData >& - rows_data() const; - - // .milvus.grpc.Status status = 1; - bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* release_status(); - ::milvus::grpc::Status* mutable_status(); - void set_allocated_status(::milvus::grpc::Status* status); - private: - const ::milvus::grpc::Status& _internal_status() const; - ::milvus::grpc::Status* _internal_mutable_status(); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.Entities) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > ids_; - mutable std::atomic _ids_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool > valid_row_; - mutable std::atomic _valid_row_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowData > rows_data_; - ::milvus::grpc::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class QueryResult : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.QueryResult) */ { - public: - QueryResult(); - virtual ~QueryResult(); - - QueryResult(const QueryResult& from); - QueryResult(QueryResult&& from) noexcept - : QueryResult() { - *this = ::std::move(from); - } - - inline QueryResult& operator=(const QueryResult& from) { - CopyFrom(from); - return *this; - } - inline QueryResult& operator=(QueryResult&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const QueryResult& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const QueryResult* internal_default_instance() { - return reinterpret_cast( - &_QueryResult_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - - friend void swap(QueryResult& a, QueryResult& b) { - a.Swap(&b); - } - inline void Swap(QueryResult* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline QueryResult* New() const final { - return CreateMaybeMessage(nullptr); - } - - QueryResult* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const QueryResult& from); - void MergeFrom(const QueryResult& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(QueryResult* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.QueryResult"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kScoresFieldNumber = 4, - kDistancesFieldNumber = 5, - kExtraParamsFieldNumber = 6, - kStatusFieldNumber = 1, - kEntitiesFieldNumber = 2, - kRowNumFieldNumber = 3, - }; - // repeated float scores = 4; - int scores_size() const; - private: - int _internal_scores_size() const; - public: - void clear_scores(); - private: - float _internal_scores(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& - _internal_scores() const; - void _internal_add_scores(float value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* - _internal_mutable_scores(); - public: - float scores(int index) const; - void set_scores(int index, float value); - void add_scores(float value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& - scores() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* - mutable_scores(); - - // repeated float distances = 5; - int distances_size() const; - private: - int _internal_distances_size() const; - public: - void clear_distances(); - private: - float _internal_distances(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& - _internal_distances() const; - void _internal_add_distances(float value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* - _internal_mutable_distances(); - public: - float distances(int index) const; - void set_distances(int index, float value); - void add_distances(float value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& - distances() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* - mutable_distances(); - - // repeated .milvus.grpc.KeyValuePair extra_params = 6; - int extra_params_size() const; - private: - int _internal_extra_params_size() const; - public: - void clear_extra_params(); - ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* - mutable_extra_params(); - private: - const ::milvus::grpc::KeyValuePair& _internal_extra_params(int index) const; - ::milvus::grpc::KeyValuePair* _internal_add_extra_params(); - public: - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; - ::milvus::grpc::KeyValuePair* add_extra_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& - extra_params() const; - - // .milvus.grpc.Status status = 1; - bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* release_status(); - ::milvus::grpc::Status* mutable_status(); - void set_allocated_status(::milvus::grpc::Status* status); - private: - const ::milvus::grpc::Status& _internal_status() const; - ::milvus::grpc::Status* _internal_mutable_status(); - public: - - // .milvus.grpc.Entities entities = 2; - bool has_entities() const; - private: - bool _internal_has_entities() const; - public: - void clear_entities(); - const ::milvus::grpc::Entities& entities() const; - ::milvus::grpc::Entities* release_entities(); - ::milvus::grpc::Entities* mutable_entities(); - void set_allocated_entities(::milvus::grpc::Entities* entities); - private: - const ::milvus::grpc::Entities& _internal_entities() const; - ::milvus::grpc::Entities* _internal_mutable_entities(); - public: - - // int64 row_num = 3; - void clear_row_num(); - ::PROTOBUF_NAMESPACE_ID::int64 row_num() const; - void set_row_num(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_row_num() const; - void _internal_set_row_num(::PROTOBUF_NAMESPACE_ID::int64 value); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.QueryResult) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > scores_; - mutable std::atomic _scores_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > distances_; - mutable std::atomic _distances_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - ::milvus::grpc::Status* status_; - ::milvus::grpc::Entities* entities_; - ::PROTOBUF_NAMESPACE_ID::int64 row_num_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class StringReply : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.StringReply) */ { - public: - StringReply(); - virtual ~StringReply(); - - StringReply(const StringReply& from); - StringReply(StringReply&& from) noexcept - : StringReply() { - *this = ::std::move(from); - } - - inline StringReply& operator=(const StringReply& from) { - CopyFrom(from); - return *this; - } - inline StringReply& operator=(StringReply&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const StringReply& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const StringReply* internal_default_instance() { - return reinterpret_cast( - &_StringReply_default_instance_); - } - static constexpr int kIndexInFileMessages = - 20; - - friend void swap(StringReply& a, StringReply& b) { - a.Swap(&b); - } - inline void Swap(StringReply* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline StringReply* New() const final { - return CreateMaybeMessage(nullptr); - } - - StringReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const StringReply& from); - void MergeFrom(const StringReply& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(StringReply* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.StringReply"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStringReplyFieldNumber = 2, - kStatusFieldNumber = 1, - }; - // string string_reply = 2; - void clear_string_reply(); - const std::string& string_reply() const; - void set_string_reply(const std::string& value); - void set_string_reply(std::string&& value); - void set_string_reply(const char* value); - void set_string_reply(const char* value, size_t size); - std::string* mutable_string_reply(); - std::string* release_string_reply(); - void set_allocated_string_reply(std::string* string_reply); - private: - const std::string& _internal_string_reply() const; - void _internal_set_string_reply(const std::string& value); - std::string* _internal_mutable_string_reply(); - public: - - // .milvus.grpc.Status status = 1; - bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* release_status(); - ::milvus::grpc::Status* mutable_status(); - void set_allocated_status(::milvus::grpc::Status* status); - private: - const ::milvus::grpc::Status& _internal_status() const; - ::milvus::grpc::Status* _internal_mutable_status(); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.StringReply) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_reply_; - ::milvus::grpc::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class BoolReply : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.BoolReply) */ { - public: - BoolReply(); - virtual ~BoolReply(); - - BoolReply(const BoolReply& from); - BoolReply(BoolReply&& from) noexcept - : BoolReply() { - *this = ::std::move(from); - } - - inline BoolReply& operator=(const BoolReply& from) { - CopyFrom(from); - return *this; - } - inline BoolReply& operator=(BoolReply&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const BoolReply& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const BoolReply* internal_default_instance() { - return reinterpret_cast( - &_BoolReply_default_instance_); - } - static constexpr int kIndexInFileMessages = - 21; - - friend void swap(BoolReply& a, BoolReply& b) { - a.Swap(&b); - } - inline void Swap(BoolReply* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline BoolReply* New() const final { - return CreateMaybeMessage(nullptr); - } - - BoolReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const BoolReply& from); - void MergeFrom(const BoolReply& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(BoolReply* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.BoolReply"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStatusFieldNumber = 1, - kBoolReplyFieldNumber = 2, - }; - // .milvus.grpc.Status status = 1; - bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* release_status(); - ::milvus::grpc::Status* mutable_status(); - void set_allocated_status(::milvus::grpc::Status* status); - private: - const ::milvus::grpc::Status& _internal_status() const; - ::milvus::grpc::Status* _internal_mutable_status(); - public: - - // bool bool_reply = 2; - void clear_bool_reply(); - bool bool_reply() const; - void set_bool_reply(bool value); - private: - bool _internal_bool_reply() const; - void _internal_set_bool_reply(bool value); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.BoolReply) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::milvus::grpc::Status* status_; - bool bool_reply_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class CollectionRowCount : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.CollectionRowCount) */ { - public: - CollectionRowCount(); - virtual ~CollectionRowCount(); - - CollectionRowCount(const CollectionRowCount& from); - CollectionRowCount(CollectionRowCount&& from) noexcept - : CollectionRowCount() { - *this = ::std::move(from); - } - - inline CollectionRowCount& operator=(const CollectionRowCount& from) { - CopyFrom(from); - return *this; - } - inline CollectionRowCount& operator=(CollectionRowCount&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const CollectionRowCount& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CollectionRowCount* internal_default_instance() { - return reinterpret_cast( - &_CollectionRowCount_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - - friend void swap(CollectionRowCount& a, CollectionRowCount& b) { - a.Swap(&b); - } - inline void Swap(CollectionRowCount* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline CollectionRowCount* New() const final { - return CreateMaybeMessage(nullptr); - } - - CollectionRowCount* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const CollectionRowCount& from); - void MergeFrom(const CollectionRowCount& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CollectionRowCount* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.CollectionRowCount"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStatusFieldNumber = 1, - kCollectionRowCountFieldNumber = 2, - }; - // .milvus.grpc.Status status = 1; - bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* release_status(); - ::milvus::grpc::Status* mutable_status(); - void set_allocated_status(::milvus::grpc::Status* status); - private: - const ::milvus::grpc::Status& _internal_status() const; - ::milvus::grpc::Status* _internal_mutable_status(); - public: - - // int64 collection_row_count = 2; - void clear_collection_row_count(); - ::PROTOBUF_NAMESPACE_ID::int64 collection_row_count() const; - void set_collection_row_count(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_collection_row_count() const; - void _internal_set_collection_row_count(::PROTOBUF_NAMESPACE_ID::int64 value); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.CollectionRowCount) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::milvus::grpc::Status* status_; - ::PROTOBUF_NAMESPACE_ID::int64 collection_row_count_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class Command : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Command) */ { - public: - Command(); - virtual ~Command(); - - Command(const Command& from); - Command(Command&& from) noexcept - : Command() { - *this = ::std::move(from); - } - - inline Command& operator=(const Command& from) { - CopyFrom(from); - return *this; - } - inline Command& operator=(Command&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const Command& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Command* internal_default_instance() { - return reinterpret_cast( - &_Command_default_instance_); - } - static constexpr int kIndexInFileMessages = - 23; - - friend void swap(Command& a, Command& b) { - a.Swap(&b); - } - inline void Swap(Command* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Command* New() const final { - return CreateMaybeMessage(nullptr); - } - - Command* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const Command& from); - void MergeFrom(const Command& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Command* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.Command"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCmdFieldNumber = 1, - }; - // string cmd = 1; - void clear_cmd(); - const std::string& cmd() const; - void set_cmd(const std::string& value); - void set_cmd(std::string&& value); - void set_cmd(const char* value); - void set_cmd(const char* value, size_t size); - std::string* mutable_cmd(); - std::string* release_cmd(); - void set_allocated_cmd(std::string* cmd); - private: - const std::string& _internal_cmd() const; - void _internal_set_cmd(const std::string& value); - std::string* _internal_mutable_cmd(); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.Command) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr cmd_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class IndexParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.IndexParam) */ { - public: - IndexParam(); - virtual ~IndexParam(); - - IndexParam(const IndexParam& from); - IndexParam(IndexParam&& from) noexcept - : IndexParam() { - *this = ::std::move(from); - } - - inline IndexParam& operator=(const IndexParam& from) { - CopyFrom(from); - return *this; - } - inline IndexParam& operator=(IndexParam&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const IndexParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const IndexParam* internal_default_instance() { - return reinterpret_cast( - &_IndexParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 24; - - friend void swap(IndexParam& a, IndexParam& b) { - a.Swap(&b); - } - inline void Swap(IndexParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline IndexParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - IndexParam* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const IndexParam& from); - void MergeFrom(const IndexParam& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(IndexParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.IndexParam"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kExtraParamsFieldNumber = 5, - kCollectionNameFieldNumber = 2, - kFieldNameFieldNumber = 3, - kIndexNameFieldNumber = 4, - kStatusFieldNumber = 1, - }; - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - int extra_params_size() const; - private: - int _internal_extra_params_size() const; - public: - void clear_extra_params(); - ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* - mutable_extra_params(); - private: - const ::milvus::grpc::KeyValuePair& _internal_extra_params(int index) const; - ::milvus::grpc::KeyValuePair* _internal_add_extra_params(); - public: - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; - ::milvus::grpc::KeyValuePair* add_extra_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& - extra_params() const; - - // string collection_name = 2; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - private: - const std::string& _internal_collection_name() const; - void _internal_set_collection_name(const std::string& value); - std::string* _internal_mutable_collection_name(); - public: - - // 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); - private: - const std::string& _internal_field_name() const; - void _internal_set_field_name(const std::string& value); - std::string* _internal_mutable_field_name(); - public: - - // string index_name = 4; - void clear_index_name(); - const std::string& index_name() const; - void set_index_name(const std::string& value); - void set_index_name(std::string&& value); - void set_index_name(const char* value); - void set_index_name(const char* value, size_t size); - std::string* mutable_index_name(); - std::string* release_index_name(); - void set_allocated_index_name(std::string* index_name); - private: - const std::string& _internal_index_name() const; - void _internal_set_index_name(const std::string& value); - std::string* _internal_mutable_index_name(); - public: - - // .milvus.grpc.Status status = 1; - bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* release_status(); - ::milvus::grpc::Status* mutable_status(); - void set_allocated_status(::milvus::grpc::Status* status); - private: - const ::milvus::grpc::Status& _internal_status() const; - ::milvus::grpc::Status* _internal_mutable_status(); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.IndexParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr index_name_; - ::milvus::grpc::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class FlushParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.FlushParam) */ { - public: - FlushParam(); - virtual ~FlushParam(); - - FlushParam(const FlushParam& from); - FlushParam(FlushParam&& from) noexcept - : FlushParam() { - *this = ::std::move(from); - } - - inline FlushParam& operator=(const FlushParam& from) { - CopyFrom(from); - return *this; - } - inline FlushParam& operator=(FlushParam&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const FlushParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const FlushParam* internal_default_instance() { - return reinterpret_cast( - &_FlushParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 25; - - friend void swap(FlushParam& a, FlushParam& b) { - a.Swap(&b); - } - inline void Swap(FlushParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline FlushParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - FlushParam* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const FlushParam& from); - void MergeFrom(const FlushParam& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(FlushParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.FlushParam"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCollectionNameArrayFieldNumber = 1, - }; - // repeated string collection_name_array = 1; - int collection_name_array_size() const; - private: - int _internal_collection_name_array_size() const; - public: - void clear_collection_name_array(); - const std::string& collection_name_array(int index) const; - std::string* mutable_collection_name_array(int index); - void set_collection_name_array(int index, const std::string& value); - void set_collection_name_array(int index, std::string&& value); - void set_collection_name_array(int index, const char* value); - void set_collection_name_array(int index, const char* value, size_t size); - std::string* add_collection_name_array(); - void add_collection_name_array(const std::string& value); - void add_collection_name_array(std::string&& value); - void add_collection_name_array(const char* value); - void add_collection_name_array(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& collection_name_array() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_collection_name_array(); - private: - const std::string& _internal_collection_name_array(int index) const; - std::string* _internal_add_collection_name_array(); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.FlushParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField collection_name_array_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class CompactParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.CompactParam) */ { - public: - CompactParam(); - virtual ~CompactParam(); - - CompactParam(const CompactParam& from); - CompactParam(CompactParam&& from) noexcept - : CompactParam() { - *this = ::std::move(from); - } - - inline CompactParam& operator=(const CompactParam& from) { - CopyFrom(from); - return *this; - } - inline CompactParam& operator=(CompactParam&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const CompactParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CompactParam* internal_default_instance() { - return reinterpret_cast( - &_CompactParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 26; - - friend void swap(CompactParam& a, CompactParam& b) { - a.Swap(&b); - } - inline void Swap(CompactParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline CompactParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - CompactParam* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const CompactParam& from); - void MergeFrom(const CompactParam& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CompactParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.CompactParam"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCollectionNameFieldNumber = 1, - kThresholdFieldNumber = 2, - }; - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - private: - const std::string& _internal_collection_name() const; - void _internal_set_collection_name(const std::string& value); - std::string* _internal_mutable_collection_name(); - public: - - // double threshold = 2; - void clear_threshold(); - double threshold() const; - void set_threshold(double value); - private: - double _internal_threshold() const; - void _internal_set_threshold(double value); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.CompactParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - double threshold_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class DeleteByIDParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.DeleteByIDParam) */ { - public: - DeleteByIDParam(); - virtual ~DeleteByIDParam(); - - DeleteByIDParam(const DeleteByIDParam& from); - DeleteByIDParam(DeleteByIDParam&& from) noexcept - : DeleteByIDParam() { - *this = ::std::move(from); - } - - inline DeleteByIDParam& operator=(const DeleteByIDParam& from) { - CopyFrom(from); - return *this; - } - inline DeleteByIDParam& operator=(DeleteByIDParam&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const DeleteByIDParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DeleteByIDParam* internal_default_instance() { - return reinterpret_cast( - &_DeleteByIDParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 27; - - friend void swap(DeleteByIDParam& a, DeleteByIDParam& b) { - a.Swap(&b); - } - inline void Swap(DeleteByIDParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline DeleteByIDParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - DeleteByIDParam* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const DeleteByIDParam& from); - void MergeFrom(const DeleteByIDParam& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DeleteByIDParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.DeleteByIDParam"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIdArrayFieldNumber = 2, - kCollectionNameFieldNumber = 1, - }; - // repeated int64 id_array = 2; - int id_array_size() const; - private: - int _internal_id_array_size() const; - public: - void clear_id_array(); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_id_array(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - _internal_id_array() const; - void _internal_add_id_array(::PROTOBUF_NAMESPACE_ID::int64 value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - _internal_mutable_id_array(); - public: - ::PROTOBUF_NAMESPACE_ID::int64 id_array(int index) const; - void set_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); - void add_id_array(::PROTOBUF_NAMESPACE_ID::int64 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - id_array() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - mutable_id_array(); - - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - private: - const std::string& _internal_collection_name() const; - void _internal_set_collection_name(const std::string& value); - std::string* _internal_mutable_collection_name(); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.DeleteByIDParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > id_array_; - mutable std::atomic _id_array_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class CollectionInfo : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.CollectionInfo) */ { - public: - CollectionInfo(); - virtual ~CollectionInfo(); - - CollectionInfo(const CollectionInfo& from); - CollectionInfo(CollectionInfo&& from) noexcept - : CollectionInfo() { - *this = ::std::move(from); - } - - inline CollectionInfo& operator=(const CollectionInfo& from) { - CopyFrom(from); - return *this; - } - inline CollectionInfo& operator=(CollectionInfo&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const CollectionInfo& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CollectionInfo* internal_default_instance() { - return reinterpret_cast( - &_CollectionInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 28; - - friend void swap(CollectionInfo& a, CollectionInfo& b) { - a.Swap(&b); - } - inline void Swap(CollectionInfo* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline CollectionInfo* New() const final { - return CreateMaybeMessage(nullptr); - } - - CollectionInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const CollectionInfo& from); - void MergeFrom(const CollectionInfo& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CollectionInfo* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.CollectionInfo"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kJsonInfoFieldNumber = 2, - kStatusFieldNumber = 1, - }; - // string json_info = 2; - void clear_json_info(); - const std::string& json_info() const; - void set_json_info(const std::string& value); - void set_json_info(std::string&& value); - void set_json_info(const char* value); - void set_json_info(const char* value, size_t size); - std::string* mutable_json_info(); - std::string* release_json_info(); - void set_allocated_json_info(std::string* json_info); - private: - const std::string& _internal_json_info() const; - void _internal_set_json_info(const std::string& value); - std::string* _internal_mutable_json_info(); - public: - - // .milvus.grpc.Status status = 1; - bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* release_status(); - ::milvus::grpc::Status* mutable_status(); - void set_allocated_status(::milvus::grpc::Status* status); - private: - const ::milvus::grpc::Status& _internal_status() const; - ::milvus::grpc::Status* _internal_mutable_status(); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.CollectionInfo) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr json_info_; - ::milvus::grpc::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class GetEntityIDsParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.GetEntityIDsParam) */ { - public: - GetEntityIDsParam(); - virtual ~GetEntityIDsParam(); - - GetEntityIDsParam(const GetEntityIDsParam& from); - GetEntityIDsParam(GetEntityIDsParam&& from) noexcept - : GetEntityIDsParam() { - *this = ::std::move(from); - } - - inline GetEntityIDsParam& operator=(const GetEntityIDsParam& from) { - CopyFrom(from); - return *this; - } - inline GetEntityIDsParam& operator=(GetEntityIDsParam&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GetEntityIDsParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetEntityIDsParam* internal_default_instance() { - return reinterpret_cast( - &_GetEntityIDsParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 29; - - friend void swap(GetEntityIDsParam& a, GetEntityIDsParam& b) { - a.Swap(&b); - } - inline void Swap(GetEntityIDsParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GetEntityIDsParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetEntityIDsParam* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GetEntityIDsParam& from); - void MergeFrom(const GetEntityIDsParam& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetEntityIDsParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.GetEntityIDsParam"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCollectionNameFieldNumber = 1, - kSegmentIdFieldNumber = 2, - }; - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - private: - const std::string& _internal_collection_name() const; - void _internal_set_collection_name(const std::string& value); - std::string* _internal_mutable_collection_name(); - public: - - // int64 segment_id = 2; - void clear_segment_id(); - ::PROTOBUF_NAMESPACE_ID::int64 segment_id() const; - void set_segment_id(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_segment_id() const; - void _internal_set_segment_id(::PROTOBUF_NAMESPACE_ID::int64 value); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.GetEntityIDsParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::PROTOBUF_NAMESPACE_ID::int64 segment_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class EntityIdentity : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.EntityIdentity) */ { - public: - EntityIdentity(); - virtual ~EntityIdentity(); - - EntityIdentity(const EntityIdentity& from); - EntityIdentity(EntityIdentity&& from) noexcept - : EntityIdentity() { - *this = ::std::move(from); - } - - inline EntityIdentity& operator=(const EntityIdentity& from) { - CopyFrom(from); - return *this; - } - inline EntityIdentity& operator=(EntityIdentity&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const EntityIdentity& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const EntityIdentity* internal_default_instance() { - return reinterpret_cast( - &_EntityIdentity_default_instance_); - } - static constexpr int kIndexInFileMessages = - 30; - - friend void swap(EntityIdentity& a, EntityIdentity& b) { - a.Swap(&b); - } - inline void Swap(EntityIdentity* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline EntityIdentity* New() const final { - return CreateMaybeMessage(nullptr); - } - - EntityIdentity* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const EntityIdentity& from); - void MergeFrom(const EntityIdentity& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(EntityIdentity* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.EntityIdentity"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIdArrayFieldNumber = 2, - kFieldNamesFieldNumber = 3, - kCollectionNameFieldNumber = 1, - }; - // repeated int64 id_array = 2; - int id_array_size() const; - private: - int _internal_id_array_size() const; - public: - void clear_id_array(); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_id_array(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - _internal_id_array() const; - void _internal_add_id_array(::PROTOBUF_NAMESPACE_ID::int64 value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - _internal_mutable_id_array(); - public: - ::PROTOBUF_NAMESPACE_ID::int64 id_array(int index) const; - void set_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); - void add_id_array(::PROTOBUF_NAMESPACE_ID::int64 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - id_array() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - mutable_id_array(); - - // repeated string field_names = 3; - int field_names_size() const; - private: - int _internal_field_names_size() const; - public: - void clear_field_names(); - const std::string& field_names(int index) const; - std::string* mutable_field_names(int index); - void set_field_names(int index, const std::string& value); - void set_field_names(int index, std::string&& value); - void set_field_names(int index, const char* value); - void set_field_names(int index, const char* value, size_t size); - std::string* add_field_names(); - void add_field_names(const std::string& value); - void add_field_names(std::string&& value); - void add_field_names(const char* value); - void add_field_names(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& field_names() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_field_names(); - private: - const std::string& _internal_field_names(int index) const; - std::string* _internal_add_field_names(); - public: - - // 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); - private: - const std::string& _internal_collection_name() const; - void _internal_set_collection_name(const std::string& value); - std::string* _internal_mutable_collection_name(); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.EntityIdentity) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > id_array_; - mutable std::atomic _id_array_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField field_names_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class VectorFieldParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorFieldParam) */ { - public: - VectorFieldParam(); - virtual ~VectorFieldParam(); - - VectorFieldParam(const VectorFieldParam& from); - VectorFieldParam(VectorFieldParam&& from) noexcept - : VectorFieldParam() { - *this = ::std::move(from); - } - - inline VectorFieldParam& operator=(const VectorFieldParam& from) { - CopyFrom(from); - return *this; - } - inline VectorFieldParam& operator=(VectorFieldParam&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const VectorFieldParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const VectorFieldParam* internal_default_instance() { - return reinterpret_cast( - &_VectorFieldParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 31; - - friend void swap(VectorFieldParam& a, VectorFieldParam& b) { - a.Swap(&b); - } - inline void Swap(VectorFieldParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline VectorFieldParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - VectorFieldParam* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const VectorFieldParam& from); - void MergeFrom(const VectorFieldParam& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(VectorFieldParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.VectorFieldParam"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDimensionFieldNumber = 1, - }; - // int64 dimension = 1; - void clear_dimension(); - ::PROTOBUF_NAMESPACE_ID::int64 dimension() const; - void set_dimension(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_dimension() const; - void _internal_set_dimension(::PROTOBUF_NAMESPACE_ID::int64 value); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.VectorFieldParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::int64 dimension_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class FieldType : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.FieldType) */ { - public: - FieldType(); - virtual ~FieldType(); - - FieldType(const FieldType& from); - FieldType(FieldType&& from) noexcept - : FieldType() { - *this = ::std::move(from); - } - - inline FieldType& operator=(const FieldType& from) { - CopyFrom(from); - return *this; - } - inline FieldType& operator=(FieldType&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const FieldType& default_instance(); - - enum ValueCase { - kDataType = 1, - kVectorParam = 2, - VALUE_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const FieldType* internal_default_instance() { - return reinterpret_cast( - &_FieldType_default_instance_); - } - static constexpr int kIndexInFileMessages = - 32; - - friend void swap(FieldType& a, FieldType& b) { - a.Swap(&b); - } - inline void Swap(FieldType* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline FieldType* New() const final { - return CreateMaybeMessage(nullptr); - } - - FieldType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const FieldType& from); - void MergeFrom(const FieldType& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(FieldType* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.FieldType"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDataTypeFieldNumber = 1, - kVectorParamFieldNumber = 2, - }; - // .milvus.grpc.DataType data_type = 1; - private: - bool _internal_has_data_type() const; - public: - void clear_data_type(); - ::milvus::grpc::DataType data_type() const; - void set_data_type(::milvus::grpc::DataType value); - private: - ::milvus::grpc::DataType _internal_data_type() const; - void _internal_set_data_type(::milvus::grpc::DataType value); - public: - - // .milvus.grpc.VectorFieldParam vector_param = 2; - bool has_vector_param() const; - private: - bool _internal_has_vector_param() const; - public: - void clear_vector_param(); - const ::milvus::grpc::VectorFieldParam& vector_param() const; - ::milvus::grpc::VectorFieldParam* release_vector_param(); - ::milvus::grpc::VectorFieldParam* mutable_vector_param(); - void set_allocated_vector_param(::milvus::grpc::VectorFieldParam* vector_param); - private: - const ::milvus::grpc::VectorFieldParam& _internal_vector_param() const; - ::milvus::grpc::VectorFieldParam* _internal_mutable_vector_param(); - public: - - void clear_value(); - ValueCase value_case() const; - // @@protoc_insertion_point(class_scope:milvus.grpc.FieldType) - private: - class _Internal; - void set_has_data_type(); - void set_has_vector_param(); - - inline bool has_value() const; - inline void clear_has_value(); - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - union ValueUnion { - ValueUnion() {} - int data_type_; - ::milvus::grpc::VectorFieldParam* vector_param_; - } value_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class FieldParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.FieldParam) */ { - public: - FieldParam(); - virtual ~FieldParam(); - - FieldParam(const FieldParam& from); - FieldParam(FieldParam&& from) noexcept - : FieldParam() { - *this = ::std::move(from); - } - - inline FieldParam& operator=(const FieldParam& from) { - CopyFrom(from); - return *this; - } - inline FieldParam& operator=(FieldParam&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const FieldParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const FieldParam* internal_default_instance() { - return reinterpret_cast( - &_FieldParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 33; - - friend void swap(FieldParam& a, FieldParam& b) { - a.Swap(&b); - } - inline void Swap(FieldParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline FieldParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - FieldParam* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const FieldParam& from); - void MergeFrom(const FieldParam& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(FieldParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.FieldParam"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIndexParamsFieldNumber = 4, - kExtraParamsFieldNumber = 5, - kNameFieldNumber = 2, - kIdFieldNumber = 1, - kTypeFieldNumber = 3, - }; - // repeated .milvus.grpc.KeyValuePair index_params = 4; - int index_params_size() const; - private: - int _internal_index_params_size() const; - public: - void clear_index_params(); - ::milvus::grpc::KeyValuePair* mutable_index_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* - mutable_index_params(); - private: - const ::milvus::grpc::KeyValuePair& _internal_index_params(int index) const; - ::milvus::grpc::KeyValuePair* _internal_add_index_params(); - public: - const ::milvus::grpc::KeyValuePair& index_params(int index) const; - ::milvus::grpc::KeyValuePair* add_index_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& - index_params() const; - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - int extra_params_size() const; - private: - int _internal_extra_params_size() const; - public: - void clear_extra_params(); - ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* - mutable_extra_params(); - private: - const ::milvus::grpc::KeyValuePair& _internal_extra_params(int index) const; - ::milvus::grpc::KeyValuePair* _internal_add_extra_params(); - public: - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; - ::milvus::grpc::KeyValuePair* add_extra_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& - extra_params() const; - - // string name = 2; - void clear_name(); - const std::string& name() const; - void set_name(const std::string& value); - void set_name(std::string&& value); - void set_name(const char* value); - void set_name(const char* value, size_t size); - std::string* mutable_name(); - std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // uint64 id = 1; - void clear_id(); - ::PROTOBUF_NAMESPACE_ID::uint64 id() const; - void set_id(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_id() const; - void _internal_set_id(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // .milvus.grpc.DataType type = 3; - void clear_type(); - ::milvus::grpc::DataType type() const; - void set_type(::milvus::grpc::DataType value); - private: - ::milvus::grpc::DataType _internal_type() const; - void _internal_set_type(::milvus::grpc::DataType value); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.FieldParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > index_params_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::uint64 id_; - int type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class VectorFieldRecord : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorFieldRecord) */ { - public: - VectorFieldRecord(); - virtual ~VectorFieldRecord(); - - VectorFieldRecord(const VectorFieldRecord& from); - VectorFieldRecord(VectorFieldRecord&& from) noexcept - : VectorFieldRecord() { - *this = ::std::move(from); - } - - inline VectorFieldRecord& operator=(const VectorFieldRecord& from) { - CopyFrom(from); - return *this; - } - inline VectorFieldRecord& operator=(VectorFieldRecord&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const VectorFieldRecord& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const VectorFieldRecord* internal_default_instance() { - return reinterpret_cast( - &_VectorFieldRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 34; - - friend void swap(VectorFieldRecord& a, VectorFieldRecord& b) { - a.Swap(&b); - } - inline void Swap(VectorFieldRecord* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline VectorFieldRecord* New() const final { - return CreateMaybeMessage(nullptr); - } - - VectorFieldRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const VectorFieldRecord& from); - void MergeFrom(const VectorFieldRecord& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(VectorFieldRecord* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.VectorFieldRecord"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kValueFieldNumber = 1, - }; - // repeated .milvus.grpc.VectorRowRecord value = 1; - int value_size() const; - private: - int _internal_value_size() const; - public: - void clear_value(); - ::milvus::grpc::VectorRowRecord* mutable_value(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* - mutable_value(); - private: - const ::milvus::grpc::VectorRowRecord& _internal_value(int index) const; - ::milvus::grpc::VectorRowRecord* _internal_add_value(); - public: - const ::milvus::grpc::VectorRowRecord& value(int index) const; - ::milvus::grpc::VectorRowRecord* add_value(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& - value() const; - - // @@protoc_insertion_point(class_scope:milvus.grpc.VectorFieldRecord) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord > value_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class TermQuery : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.TermQuery) */ { - public: - TermQuery(); - virtual ~TermQuery(); - - TermQuery(const TermQuery& from); - TermQuery(TermQuery&& from) noexcept - : TermQuery() { - *this = ::std::move(from); - } - - inline TermQuery& operator=(const TermQuery& from) { - CopyFrom(from); - return *this; - } - inline TermQuery& operator=(TermQuery&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const TermQuery& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TermQuery* internal_default_instance() { - return reinterpret_cast( - &_TermQuery_default_instance_); - } - static constexpr int kIndexInFileMessages = - 35; - - friend void swap(TermQuery& a, TermQuery& b) { - a.Swap(&b); - } - inline void Swap(TermQuery* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline TermQuery* New() const final { - return CreateMaybeMessage(nullptr); - } - - TermQuery* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const TermQuery& from); - void MergeFrom(const TermQuery& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TermQuery* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.TermQuery"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIntValueFieldNumber = 2, - kDoubleValueFieldNumber = 3, - kExtraParamsFieldNumber = 6, - kFieldNameFieldNumber = 1, - kValueNumFieldNumber = 4, - kBoostFieldNumber = 5, - }; - // repeated int64 int_value = 2; - int int_value_size() const; - private: - int _internal_int_value_size() const; - public: - void clear_int_value(); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_int_value(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - _internal_int_value() const; - void _internal_add_int_value(::PROTOBUF_NAMESPACE_ID::int64 value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - _internal_mutable_int_value(); - public: - ::PROTOBUF_NAMESPACE_ID::int64 int_value(int index) const; - void set_int_value(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); - void add_int_value(::PROTOBUF_NAMESPACE_ID::int64 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - int_value() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - mutable_int_value(); - - // repeated double double_value = 3; - int double_value_size() const; - private: - int _internal_double_value_size() const; - public: - void clear_double_value(); - private: - double _internal_double_value(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - _internal_double_value() const; - void _internal_add_double_value(double value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - _internal_mutable_double_value(); - public: - double double_value(int index) const; - void set_double_value(int index, double value); - void add_double_value(double value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - double_value() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - mutable_double_value(); - - // repeated .milvus.grpc.KeyValuePair extra_params = 6; - int extra_params_size() const; - private: - int _internal_extra_params_size() const; - public: - void clear_extra_params(); - ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* - mutable_extra_params(); - private: - const ::milvus::grpc::KeyValuePair& _internal_extra_params(int index) const; - ::milvus::grpc::KeyValuePair* _internal_add_extra_params(); - public: - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; - ::milvus::grpc::KeyValuePair* add_extra_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& - extra_params() const; - - // string field_name = 1; - void clear_field_name(); - const std::string& field_name() const; - void set_field_name(const std::string& value); - void set_field_name(std::string&& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - std::string* mutable_field_name(); - std::string* release_field_name(); - void set_allocated_field_name(std::string* field_name); - private: - const std::string& _internal_field_name() const; - void _internal_set_field_name(const std::string& value); - std::string* _internal_mutable_field_name(); - public: - - // int64 value_num = 4; - void clear_value_num(); - ::PROTOBUF_NAMESPACE_ID::int64 value_num() const; - void set_value_num(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_value_num() const; - void _internal_set_value_num(::PROTOBUF_NAMESPACE_ID::int64 value); - public: - - // float boost = 5; - void clear_boost(); - float boost() const; - void set_boost(float value); - private: - float _internal_boost() const; - void _internal_set_boost(float value); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.TermQuery) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > int_value_; - mutable std::atomic _int_value_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > double_value_; - mutable std::atomic _double_value_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; - ::PROTOBUF_NAMESPACE_ID::int64 value_num_; - float boost_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class CompareExpr : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.CompareExpr) */ { - public: - CompareExpr(); - virtual ~CompareExpr(); - - CompareExpr(const CompareExpr& from); - CompareExpr(CompareExpr&& from) noexcept - : CompareExpr() { - *this = ::std::move(from); - } - - inline CompareExpr& operator=(const CompareExpr& from) { - CopyFrom(from); - return *this; - } - inline CompareExpr& operator=(CompareExpr&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const CompareExpr& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CompareExpr* internal_default_instance() { - return reinterpret_cast( - &_CompareExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 36; - - friend void swap(CompareExpr& a, CompareExpr& b) { - a.Swap(&b); - } - inline void Swap(CompareExpr* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline CompareExpr* New() const final { - return CreateMaybeMessage(nullptr); - } - - CompareExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const CompareExpr& from); - void MergeFrom(const CompareExpr& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CompareExpr* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.CompareExpr"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOperandFieldNumber = 2, - kOperatorFieldNumber = 1, - }; - // string operand = 2; - void clear_operand(); - const std::string& operand() const; - void set_operand(const std::string& value); - void set_operand(std::string&& value); - void set_operand(const char* value); - void set_operand(const char* value, size_t size); - std::string* mutable_operand(); - std::string* release_operand(); - void set_allocated_operand(std::string* operand); - private: - const std::string& _internal_operand() const; - void _internal_set_operand(const std::string& value); - std::string* _internal_mutable_operand(); - public: - - // .milvus.grpc.CompareOperator operator = 1; - void clear_operator_(); - ::milvus::grpc::CompareOperator operator_() const; - void set_operator_(::milvus::grpc::CompareOperator value); - private: - ::milvus::grpc::CompareOperator _internal_operator_() const; - void _internal_set_operator_(::milvus::grpc::CompareOperator value); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.CompareExpr) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr operand_; - int operator__; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class RangeQuery : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.RangeQuery) */ { - public: - RangeQuery(); - virtual ~RangeQuery(); - - RangeQuery(const RangeQuery& from); - RangeQuery(RangeQuery&& from) noexcept - : RangeQuery() { - *this = ::std::move(from); - } - - inline RangeQuery& operator=(const RangeQuery& from) { - CopyFrom(from); - return *this; - } - inline RangeQuery& operator=(RangeQuery&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const RangeQuery& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const RangeQuery* internal_default_instance() { - return reinterpret_cast( - &_RangeQuery_default_instance_); - } - static constexpr int kIndexInFileMessages = - 37; - - friend void swap(RangeQuery& a, RangeQuery& b) { - a.Swap(&b); - } - inline void Swap(RangeQuery* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline RangeQuery* New() const final { - return CreateMaybeMessage(nullptr); - } - - RangeQuery* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const RangeQuery& from); - void MergeFrom(const RangeQuery& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RangeQuery* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.RangeQuery"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOperandFieldNumber = 2, - kExtraParamsFieldNumber = 4, - kFieldNameFieldNumber = 1, - kBoostFieldNumber = 3, - }; - // repeated .milvus.grpc.CompareExpr operand = 2; - int operand_size() const; - private: - int _internal_operand_size() const; - public: - void clear_operand(); - ::milvus::grpc::CompareExpr* mutable_operand(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::CompareExpr >* - mutable_operand(); - private: - const ::milvus::grpc::CompareExpr& _internal_operand(int index) const; - ::milvus::grpc::CompareExpr* _internal_add_operand(); - public: - const ::milvus::grpc::CompareExpr& operand(int index) const; - ::milvus::grpc::CompareExpr* add_operand(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::CompareExpr >& - operand() const; - - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - int extra_params_size() const; - private: - int _internal_extra_params_size() const; - public: - void clear_extra_params(); - ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* - mutable_extra_params(); - private: - const ::milvus::grpc::KeyValuePair& _internal_extra_params(int index) const; - ::milvus::grpc::KeyValuePair* _internal_add_extra_params(); - public: - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; - ::milvus::grpc::KeyValuePair* add_extra_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& - extra_params() const; - - // string field_name = 1; - void clear_field_name(); - const std::string& field_name() const; - void set_field_name(const std::string& value); - void set_field_name(std::string&& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - std::string* mutable_field_name(); - std::string* release_field_name(); - void set_allocated_field_name(std::string* field_name); - private: - const std::string& _internal_field_name() const; - void _internal_set_field_name(const std::string& value); - std::string* _internal_mutable_field_name(); - public: - - // float boost = 3; - void clear_boost(); - float boost() const; - void set_boost(float value); - private: - float _internal_boost() const; - void _internal_set_boost(float value); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.RangeQuery) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::CompareExpr > operand_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; - float boost_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class VectorQuery : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorQuery) */ { - public: - VectorQuery(); - virtual ~VectorQuery(); - - VectorQuery(const VectorQuery& from); - VectorQuery(VectorQuery&& from) noexcept - : VectorQuery() { - *this = ::std::move(from); - } - - inline VectorQuery& operator=(const VectorQuery& from) { - CopyFrom(from); - return *this; - } - inline VectorQuery& operator=(VectorQuery&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const VectorQuery& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const VectorQuery* internal_default_instance() { - return reinterpret_cast( - &_VectorQuery_default_instance_); - } - static constexpr int kIndexInFileMessages = - 38; - - friend void swap(VectorQuery& a, VectorQuery& b) { - a.Swap(&b); - } - inline void Swap(VectorQuery* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline VectorQuery* New() const final { - return CreateMaybeMessage(nullptr); - } - - VectorQuery* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const VectorQuery& from); - void MergeFrom(const VectorQuery& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(VectorQuery* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.VectorQuery"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRecordsFieldNumber = 3, - kExtraParamsFieldNumber = 5, - kFieldNameFieldNumber = 1, - kTopkFieldNumber = 4, - kQueryBoostFieldNumber = 2, - }; - // repeated .milvus.grpc.VectorRowRecord records = 3; - int records_size() const; - private: - int _internal_records_size() const; - public: - void clear_records(); - ::milvus::grpc::VectorRowRecord* mutable_records(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* - mutable_records(); - private: - const ::milvus::grpc::VectorRowRecord& _internal_records(int index) const; - ::milvus::grpc::VectorRowRecord* _internal_add_records(); - public: - const ::milvus::grpc::VectorRowRecord& records(int index) const; - ::milvus::grpc::VectorRowRecord* add_records(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& - records() const; - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - int extra_params_size() const; - private: - int _internal_extra_params_size() const; - public: - void clear_extra_params(); - ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* - mutable_extra_params(); - private: - const ::milvus::grpc::KeyValuePair& _internal_extra_params(int index) const; - ::milvus::grpc::KeyValuePair* _internal_add_extra_params(); - public: - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; - ::milvus::grpc::KeyValuePair* add_extra_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& - extra_params() const; - - // string field_name = 1; - void clear_field_name(); - const std::string& field_name() const; - void set_field_name(const std::string& value); - void set_field_name(std::string&& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - std::string* mutable_field_name(); - std::string* release_field_name(); - void set_allocated_field_name(std::string* field_name); - private: - const std::string& _internal_field_name() const; - void _internal_set_field_name(const std::string& value); - std::string* _internal_mutable_field_name(); - public: - - // int64 topk = 4; - void clear_topk(); - ::PROTOBUF_NAMESPACE_ID::int64 topk() const; - void set_topk(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_topk() const; - void _internal_set_topk(::PROTOBUF_NAMESPACE_ID::int64 value); - public: - - // float query_boost = 2; - void clear_query_boost(); - float query_boost() const; - void set_query_boost(float value); - private: - float _internal_query_boost() const; - void _internal_set_query_boost(float value); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.VectorQuery) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord > records_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; - ::PROTOBUF_NAMESPACE_ID::int64 topk_; - float query_boost_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class BooleanQuery : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.BooleanQuery) */ { - public: - BooleanQuery(); - virtual ~BooleanQuery(); - - BooleanQuery(const BooleanQuery& from); - BooleanQuery(BooleanQuery&& from) noexcept - : BooleanQuery() { - *this = ::std::move(from); - } - - inline BooleanQuery& operator=(const BooleanQuery& from) { - CopyFrom(from); - return *this; - } - inline BooleanQuery& operator=(BooleanQuery&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const BooleanQuery& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const BooleanQuery* internal_default_instance() { - return reinterpret_cast( - &_BooleanQuery_default_instance_); - } - static constexpr int kIndexInFileMessages = - 39; - - friend void swap(BooleanQuery& a, BooleanQuery& b) { - a.Swap(&b); - } - inline void Swap(BooleanQuery* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline BooleanQuery* New() const final { - return CreateMaybeMessage(nullptr); - } - - BooleanQuery* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const BooleanQuery& from); - void MergeFrom(const BooleanQuery& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(BooleanQuery* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.BooleanQuery"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kGeneralQueryFieldNumber = 2, - kOccurFieldNumber = 1, - }; - // repeated .milvus.grpc.GeneralQuery general_query = 2; - int general_query_size() const; - private: - int _internal_general_query_size() const; - public: - void clear_general_query(); - ::milvus::grpc::GeneralQuery* mutable_general_query(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::GeneralQuery >* - mutable_general_query(); - private: - const ::milvus::grpc::GeneralQuery& _internal_general_query(int index) const; - ::milvus::grpc::GeneralQuery* _internal_add_general_query(); - public: - const ::milvus::grpc::GeneralQuery& general_query(int index) const; - ::milvus::grpc::GeneralQuery* add_general_query(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::GeneralQuery >& - general_query() const; - - // .milvus.grpc.Occur occur = 1; - void clear_occur(); - ::milvus::grpc::Occur occur() const; - void set_occur(::milvus::grpc::Occur value); - private: - ::milvus::grpc::Occur _internal_occur() const; - void _internal_set_occur(::milvus::grpc::Occur value); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.BooleanQuery) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::GeneralQuery > general_query_; - int occur_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class GeneralQuery : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.GeneralQuery) */ { - public: - GeneralQuery(); - virtual ~GeneralQuery(); - - GeneralQuery(const GeneralQuery& from); - GeneralQuery(GeneralQuery&& from) noexcept - : GeneralQuery() { - *this = ::std::move(from); - } - - inline GeneralQuery& operator=(const GeneralQuery& from) { - CopyFrom(from); - return *this; - } - inline GeneralQuery& operator=(GeneralQuery&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GeneralQuery& default_instance(); - - enum QueryCase { - kBooleanQuery = 1, - kTermQuery = 2, - kRangeQuery = 3, - kVectorQuery = 4, - QUERY_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GeneralQuery* internal_default_instance() { - return reinterpret_cast( - &_GeneralQuery_default_instance_); - } - static constexpr int kIndexInFileMessages = - 40; - - friend void swap(GeneralQuery& a, GeneralQuery& b) { - a.Swap(&b); - } - inline void Swap(GeneralQuery* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GeneralQuery* New() const final { - return CreateMaybeMessage(nullptr); - } - - GeneralQuery* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GeneralQuery& from); - void MergeFrom(const GeneralQuery& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GeneralQuery* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.GeneralQuery"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kBooleanQueryFieldNumber = 1, - kTermQueryFieldNumber = 2, - kRangeQueryFieldNumber = 3, - kVectorQueryFieldNumber = 4, - }; - // .milvus.grpc.BooleanQuery boolean_query = 1; - bool has_boolean_query() const; - private: - bool _internal_has_boolean_query() const; - public: - void clear_boolean_query(); - const ::milvus::grpc::BooleanQuery& boolean_query() const; - ::milvus::grpc::BooleanQuery* release_boolean_query(); - ::milvus::grpc::BooleanQuery* mutable_boolean_query(); - void set_allocated_boolean_query(::milvus::grpc::BooleanQuery* boolean_query); - private: - const ::milvus::grpc::BooleanQuery& _internal_boolean_query() const; - ::milvus::grpc::BooleanQuery* _internal_mutable_boolean_query(); - public: - - // .milvus.grpc.TermQuery term_query = 2; - bool has_term_query() const; - private: - bool _internal_has_term_query() const; - public: - void clear_term_query(); - const ::milvus::grpc::TermQuery& term_query() const; - ::milvus::grpc::TermQuery* release_term_query(); - ::milvus::grpc::TermQuery* mutable_term_query(); - void set_allocated_term_query(::milvus::grpc::TermQuery* term_query); - private: - const ::milvus::grpc::TermQuery& _internal_term_query() const; - ::milvus::grpc::TermQuery* _internal_mutable_term_query(); - public: - - // .milvus.grpc.RangeQuery range_query = 3; - bool has_range_query() const; - private: - bool _internal_has_range_query() const; - public: - void clear_range_query(); - const ::milvus::grpc::RangeQuery& range_query() const; - ::milvus::grpc::RangeQuery* release_range_query(); - ::milvus::grpc::RangeQuery* mutable_range_query(); - void set_allocated_range_query(::milvus::grpc::RangeQuery* range_query); - private: - const ::milvus::grpc::RangeQuery& _internal_range_query() const; - ::milvus::grpc::RangeQuery* _internal_mutable_range_query(); - public: - - // .milvus.grpc.VectorQuery vector_query = 4; - bool has_vector_query() const; - private: - bool _internal_has_vector_query() const; - public: - void clear_vector_query(); - const ::milvus::grpc::VectorQuery& vector_query() const; - ::milvus::grpc::VectorQuery* release_vector_query(); - ::milvus::grpc::VectorQuery* mutable_vector_query(); - void set_allocated_vector_query(::milvus::grpc::VectorQuery* vector_query); - private: - const ::milvus::grpc::VectorQuery& _internal_vector_query() const; - ::milvus::grpc::VectorQuery* _internal_mutable_vector_query(); - public: - - void clear_query(); - QueryCase query_case() const; - // @@protoc_insertion_point(class_scope:milvus.grpc.GeneralQuery) - private: - class _Internal; - void set_has_boolean_query(); - void set_has_term_query(); - void set_has_range_query(); - void set_has_vector_query(); - - inline bool has_query() const; - inline void clear_has_query(); - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - union QueryUnion { - QueryUnion() {} - ::milvus::grpc::BooleanQuery* boolean_query_; - ::milvus::grpc::TermQuery* term_query_; - ::milvus::grpc::RangeQuery* range_query_; - ::milvus::grpc::VectorQuery* vector_query_; - } query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class SearchParamPB : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchParamPB) */ { - public: - SearchParamPB(); - virtual ~SearchParamPB(); - - SearchParamPB(const SearchParamPB& from); - SearchParamPB(SearchParamPB&& from) noexcept - : SearchParamPB() { - *this = ::std::move(from); - } - - inline SearchParamPB& operator=(const SearchParamPB& from) { - CopyFrom(from); - return *this; - } - inline SearchParamPB& operator=(SearchParamPB&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const SearchParamPB& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SearchParamPB* internal_default_instance() { - return reinterpret_cast( - &_SearchParamPB_default_instance_); - } - static constexpr int kIndexInFileMessages = - 41; - - friend void swap(SearchParamPB& a, SearchParamPB& b) { - a.Swap(&b); - } - inline void Swap(SearchParamPB* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline SearchParamPB* New() const final { - return CreateMaybeMessage(nullptr); - } - - SearchParamPB* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const SearchParamPB& from); - void MergeFrom(const SearchParamPB& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SearchParamPB* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.SearchParamPB"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartitionTagArrayFieldNumber = 2, - kExtraParamsFieldNumber = 4, - kCollectionNameFieldNumber = 1, - kGeneralQueryFieldNumber = 3, - }; - // repeated string partition_tag_array = 2; - int partition_tag_array_size() const; - private: - int _internal_partition_tag_array_size() const; - public: - void clear_partition_tag_array(); - const std::string& partition_tag_array(int index) const; - std::string* mutable_partition_tag_array(int index); - void set_partition_tag_array(int index, const std::string& value); - void set_partition_tag_array(int index, std::string&& value); - void set_partition_tag_array(int index, const char* value); - void set_partition_tag_array(int index, const char* value, size_t size); - std::string* add_partition_tag_array(); - void add_partition_tag_array(const std::string& value); - void add_partition_tag_array(std::string&& value); - void add_partition_tag_array(const char* value); - void add_partition_tag_array(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& partition_tag_array() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_partition_tag_array(); - private: - const std::string& _internal_partition_tag_array(int index) const; - std::string* _internal_add_partition_tag_array(); - public: - - // repeated .milvus.grpc.KeyValuePair extra_params = 4; - int extra_params_size() const; - private: - int _internal_extra_params_size() const; - public: - void clear_extra_params(); - ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* - mutable_extra_params(); - private: - const ::milvus::grpc::KeyValuePair& _internal_extra_params(int index) const; - ::milvus::grpc::KeyValuePair* _internal_add_extra_params(); - public: - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; - ::milvus::grpc::KeyValuePair* add_extra_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& - extra_params() const; - - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - private: - const std::string& _internal_collection_name() const; - void _internal_set_collection_name(const std::string& value); - std::string* _internal_mutable_collection_name(); - public: - - // .milvus.grpc.GeneralQuery general_query = 3; - bool has_general_query() const; - private: - bool _internal_has_general_query() const; - public: - void clear_general_query(); - const ::milvus::grpc::GeneralQuery& general_query() const; - ::milvus::grpc::GeneralQuery* release_general_query(); - ::milvus::grpc::GeneralQuery* mutable_general_query(); - void set_allocated_general_query(::milvus::grpc::GeneralQuery* general_query); - private: - const ::milvus::grpc::GeneralQuery& _internal_general_query() const; - ::milvus::grpc::GeneralQuery* _internal_mutable_general_query(); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.SearchParamPB) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField partition_tag_array_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::milvus::grpc::GeneralQuery* general_query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class InsertOrDeleteMsg : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.InsertOrDeleteMsg) */ { - public: - InsertOrDeleteMsg(); - virtual ~InsertOrDeleteMsg(); - - InsertOrDeleteMsg(const InsertOrDeleteMsg& from); - InsertOrDeleteMsg(InsertOrDeleteMsg&& from) noexcept - : InsertOrDeleteMsg() { - *this = ::std::move(from); - } - - inline InsertOrDeleteMsg& operator=(const InsertOrDeleteMsg& from) { - CopyFrom(from); - return *this; - } - inline InsertOrDeleteMsg& operator=(InsertOrDeleteMsg&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const InsertOrDeleteMsg& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const InsertOrDeleteMsg* internal_default_instance() { - return reinterpret_cast( - &_InsertOrDeleteMsg_default_instance_); - } - static constexpr int kIndexInFileMessages = - 42; - - friend void swap(InsertOrDeleteMsg& a, InsertOrDeleteMsg& b) { - a.Swap(&b); - } - inline void Swap(InsertOrDeleteMsg* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline InsertOrDeleteMsg* New() const final { - return CreateMaybeMessage(nullptr); - } - - InsertOrDeleteMsg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const InsertOrDeleteMsg& from); - void MergeFrom(const InsertOrDeleteMsg& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) 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(InsertOrDeleteMsg* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.InsertOrDeleteMsg"; - } - 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_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kExtraParamsFieldNumber = 10, - kCollectionNameFieldNumber = 1, - kPartitionTagFieldNumber = 4, - kRowsDataFieldNumber = 2, - kUidFieldNumber = 3, - kTimestampFieldNumber = 5, - kSegmentIdFieldNumber = 6, - kChannelIdFieldNumber = 7, - kClientIdFieldNumber = 9, - kOpFieldNumber = 8, - }; - // repeated .milvus.grpc.KeyValuePair extra_params = 10; - int extra_params_size() const; - private: - int _internal_extra_params_size() const; - public: - void clear_extra_params(); - ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* - mutable_extra_params(); - private: - const ::milvus::grpc::KeyValuePair& _internal_extra_params(int index) const; - ::milvus::grpc::KeyValuePair* _internal_add_extra_params(); - public: - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; - ::milvus::grpc::KeyValuePair* add_extra_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& - extra_params() const; - - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - private: - const std::string& _internal_collection_name() const; - void _internal_set_collection_name(const std::string& value); - std::string* _internal_mutable_collection_name(); - public: - - // string partition_tag = 4; - void clear_partition_tag(); - const std::string& partition_tag() const; - void set_partition_tag(const std::string& value); - void set_partition_tag(std::string&& value); - void set_partition_tag(const char* value); - void set_partition_tag(const char* value, size_t size); - std::string* mutable_partition_tag(); - std::string* release_partition_tag(); - void set_allocated_partition_tag(std::string* partition_tag); - private: - const std::string& _internal_partition_tag() const; - void _internal_set_partition_tag(const std::string& value); - std::string* _internal_mutable_partition_tag(); - public: - - // .milvus.grpc.RowData rows_data = 2; - bool has_rows_data() const; - private: - bool _internal_has_rows_data() const; - public: - void clear_rows_data(); - const ::milvus::grpc::RowData& rows_data() const; - ::milvus::grpc::RowData* release_rows_data(); - ::milvus::grpc::RowData* mutable_rows_data(); - void set_allocated_rows_data(::milvus::grpc::RowData* rows_data); - private: - const ::milvus::grpc::RowData& _internal_rows_data() const; - ::milvus::grpc::RowData* _internal_mutable_rows_data(); - public: - - // int64 uid = 3; - void clear_uid(); - ::PROTOBUF_NAMESPACE_ID::int64 uid() const; - void set_uid(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_uid() const; - void _internal_set_uid(::PROTOBUF_NAMESPACE_ID::int64 value); - public: - - // uint64 timestamp = 5; - void clear_timestamp(); - ::PROTOBUF_NAMESPACE_ID::uint64 timestamp() const; - void set_timestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_timestamp() const; - void _internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // int64 segment_id = 6; - void clear_segment_id(); - ::PROTOBUF_NAMESPACE_ID::int64 segment_id() const; - void set_segment_id(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_segment_id() const; - void _internal_set_segment_id(::PROTOBUF_NAMESPACE_ID::int64 value); - public: - - // int64 channel_id = 7; - void clear_channel_id(); - ::PROTOBUF_NAMESPACE_ID::int64 channel_id() const; - void set_channel_id(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_channel_id() const; - void _internal_set_channel_id(::PROTOBUF_NAMESPACE_ID::int64 value); - public: - - // int64 client_id = 9; - void clear_client_id(); - ::PROTOBUF_NAMESPACE_ID::int64 client_id() const; - void set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_client_id() const; - void _internal_set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value); - public: - - // .milvus.grpc.OpType op = 8; - void clear_op(); - ::milvus::grpc::OpType op() const; - void set_op(::milvus::grpc::OpType value); - private: - ::milvus::grpc::OpType _internal_op() const; - void _internal_set_op(::milvus::grpc::OpType value); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.InsertOrDeleteMsg) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr partition_tag_; - ::milvus::grpc::RowData* rows_data_; - ::PROTOBUF_NAMESPACE_ID::int64 uid_; - ::PROTOBUF_NAMESPACE_ID::uint64 timestamp_; - ::PROTOBUF_NAMESPACE_ID::int64 segment_id_; - ::PROTOBUF_NAMESPACE_ID::int64 channel_id_; - ::PROTOBUF_NAMESPACE_ID::int64 client_id_; - int op_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class SearchMsg : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchMsg) */ { - public: - SearchMsg(); - virtual ~SearchMsg(); - - SearchMsg(const SearchMsg& from); - SearchMsg(SearchMsg&& from) noexcept - : SearchMsg() { - *this = ::std::move(from); - } - - inline SearchMsg& operator=(const SearchMsg& from) { - CopyFrom(from); - return *this; - } - inline SearchMsg& operator=(SearchMsg&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const SearchMsg& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SearchMsg* internal_default_instance() { - return reinterpret_cast( - &_SearchMsg_default_instance_); - } - static constexpr int kIndexInFileMessages = - 43; - - friend void swap(SearchMsg& a, SearchMsg& b) { - a.Swap(&b); - } - inline void Swap(SearchMsg* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline SearchMsg* New() const final { - return CreateMaybeMessage(nullptr); - } - - SearchMsg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const SearchMsg& from); - void MergeFrom(const SearchMsg& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SearchMsg* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.SearchMsg"; - } - 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_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kExtraParamsFieldNumber = 7, - kCollectionNameFieldNumber = 1, - kPartitionTagFieldNumber = 3, - kRecordsFieldNumber = 2, - kUidFieldNumber = 4, - kTimestampFieldNumber = 5, - kClientIdFieldNumber = 6, - }; - // repeated .milvus.grpc.KeyValuePair extra_params = 7; - int extra_params_size() const; - private: - int _internal_extra_params_size() const; - public: - void clear_extra_params(); - ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* - mutable_extra_params(); - private: - const ::milvus::grpc::KeyValuePair& _internal_extra_params(int index) const; - ::milvus::grpc::KeyValuePair* _internal_add_extra_params(); - public: - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; - ::milvus::grpc::KeyValuePair* add_extra_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& - extra_params() const; - - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - private: - const std::string& _internal_collection_name() const; - void _internal_set_collection_name(const std::string& value); - std::string* _internal_mutable_collection_name(); - public: - - // string partition_tag = 3; - void clear_partition_tag(); - const std::string& partition_tag() const; - void set_partition_tag(const std::string& value); - void set_partition_tag(std::string&& value); - void set_partition_tag(const char* value); - void set_partition_tag(const char* value, size_t size); - std::string* mutable_partition_tag(); - std::string* release_partition_tag(); - void set_allocated_partition_tag(std::string* partition_tag); - private: - const std::string& _internal_partition_tag() const; - void _internal_set_partition_tag(const std::string& value); - std::string* _internal_mutable_partition_tag(); - public: - - // .milvus.grpc.VectorRowRecord records = 2; - bool has_records() const; - private: - bool _internal_has_records() const; - public: - void clear_records(); - const ::milvus::grpc::VectorRowRecord& records() const; - ::milvus::grpc::VectorRowRecord* release_records(); - ::milvus::grpc::VectorRowRecord* mutable_records(); - void set_allocated_records(::milvus::grpc::VectorRowRecord* records); - private: - const ::milvus::grpc::VectorRowRecord& _internal_records() const; - ::milvus::grpc::VectorRowRecord* _internal_mutable_records(); - public: - - // int64 uid = 4; - void clear_uid(); - ::PROTOBUF_NAMESPACE_ID::int64 uid() const; - void set_uid(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_uid() const; - void _internal_set_uid(::PROTOBUF_NAMESPACE_ID::int64 value); - public: - - // uint64 timestamp = 5; - void clear_timestamp(); - ::PROTOBUF_NAMESPACE_ID::uint64 timestamp() const; - void set_timestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_timestamp() const; - void _internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // int64 client_id = 6; - void clear_client_id(); - ::PROTOBUF_NAMESPACE_ID::int64 client_id() const; - void set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_client_id() const; - void _internal_set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.SearchMsg) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr partition_tag_; - ::milvus::grpc::VectorRowRecord* records_; - ::PROTOBUF_NAMESPACE_ID::int64 uid_; - ::PROTOBUF_NAMESPACE_ID::uint64 timestamp_; - ::PROTOBUF_NAMESPACE_ID::int64 client_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class TimeSyncMsg : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.TimeSyncMsg) */ { - public: - TimeSyncMsg(); - virtual ~TimeSyncMsg(); - - TimeSyncMsg(const TimeSyncMsg& from); - TimeSyncMsg(TimeSyncMsg&& from) noexcept - : TimeSyncMsg() { - *this = ::std::move(from); - } - - inline TimeSyncMsg& operator=(const TimeSyncMsg& from) { - CopyFrom(from); - return *this; - } - inline TimeSyncMsg& operator=(TimeSyncMsg&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const TimeSyncMsg& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TimeSyncMsg* internal_default_instance() { - return reinterpret_cast( - &_TimeSyncMsg_default_instance_); - } - static constexpr int kIndexInFileMessages = - 44; - - friend void swap(TimeSyncMsg& a, TimeSyncMsg& b) { - a.Swap(&b); - } - inline void Swap(TimeSyncMsg* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline TimeSyncMsg* New() const final { - return CreateMaybeMessage(nullptr); - } - - TimeSyncMsg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const TimeSyncMsg& from); - void MergeFrom(const TimeSyncMsg& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) 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(TimeSyncMsg* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.TimeSyncMsg"; - } - 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_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPeerIdFieldNumber = 1, - kTimestampFieldNumber = 2, - kSyncTypeFieldNumber = 3, - }; - // int64 peer_Id = 1; - void clear_peer_id(); - ::PROTOBUF_NAMESPACE_ID::int64 peer_id() const; - void set_peer_id(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_peer_id() const; - void _internal_set_peer_id(::PROTOBUF_NAMESPACE_ID::int64 value); - public: - - // uint64 Timestamp = 2; - void clear_timestamp(); - ::PROTOBUF_NAMESPACE_ID::uint64 timestamp() const; - void set_timestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_timestamp() const; - void _internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // .milvus.grpc.SyncType sync_type = 3; - void clear_sync_type(); - ::milvus::grpc::SyncType sync_type() const; - void set_sync_type(::milvus::grpc::SyncType value); - private: - ::milvus::grpc::SyncType _internal_sync_type() const; - void _internal_set_sync_type(::milvus::grpc::SyncType value); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.TimeSyncMsg) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::int64 peer_id_; - ::PROTOBUF_NAMESPACE_ID::uint64 timestamp_; - int sync_type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class SegmentRecord : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SegmentRecord) */ { - public: - SegmentRecord(); - virtual ~SegmentRecord(); - - SegmentRecord(const SegmentRecord& from); - SegmentRecord(SegmentRecord&& from) noexcept - : SegmentRecord() { - *this = ::std::move(from); - } - - inline SegmentRecord& operator=(const SegmentRecord& from) { - CopyFrom(from); - return *this; - } - inline SegmentRecord& operator=(SegmentRecord&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const SegmentRecord& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SegmentRecord* internal_default_instance() { - return reinterpret_cast( - &_SegmentRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 45; - - friend void swap(SegmentRecord& a, SegmentRecord& b) { - a.Swap(&b); - } - inline void Swap(SegmentRecord* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline SegmentRecord* New() const final { - return CreateMaybeMessage(nullptr); - } - - SegmentRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const SegmentRecord& from); - void MergeFrom(const SegmentRecord& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SegmentRecord* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.SegmentRecord"; - } - 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_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSegmentIdFieldNumber = 2, - kUidFieldNumber = 1, - }; - // repeated int64 segment_id = 2; - int segment_id_size() const; - private: - int _internal_segment_id_size() const; - public: - void clear_segment_id(); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_segment_id(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - _internal_segment_id() const; - void _internal_add_segment_id(::PROTOBUF_NAMESPACE_ID::int64 value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - _internal_mutable_segment_id(); - public: - ::PROTOBUF_NAMESPACE_ID::int64 segment_id(int index) const; - void set_segment_id(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); - void add_segment_id(::PROTOBUF_NAMESPACE_ID::int64 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - segment_id() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - mutable_segment_id(); - - // int64 uid = 1; - void clear_uid(); - ::PROTOBUF_NAMESPACE_ID::int64 uid() const; - void set_uid(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_uid() const; - void _internal_set_uid(::PROTOBUF_NAMESPACE_ID::int64 value); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.SegmentRecord) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > segment_id_; - mutable std::atomic _segment_id_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::int64 uid_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// ------------------------------------------------------------------- - -class Key2SegMsg : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Key2SegMsg) */ { - public: - Key2SegMsg(); - virtual ~Key2SegMsg(); - - Key2SegMsg(const Key2SegMsg& from); - Key2SegMsg(Key2SegMsg&& from) noexcept - : Key2SegMsg() { - *this = ::std::move(from); - } - - inline Key2SegMsg& operator=(const Key2SegMsg& from) { - CopyFrom(from); - return *this; - } - inline Key2SegMsg& operator=(Key2SegMsg&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const Key2SegMsg& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Key2SegMsg* internal_default_instance() { - return reinterpret_cast( - &_Key2SegMsg_default_instance_); - } - static constexpr int kIndexInFileMessages = - 46; - - friend void swap(Key2SegMsg& a, Key2SegMsg& b) { - a.Swap(&b); - } - inline void Swap(Key2SegMsg* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Key2SegMsg* New() const final { - return CreateMaybeMessage(nullptr); - } - - Key2SegMsg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const Key2SegMsg& from); - void MergeFrom(const Key2SegMsg& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) 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(Key2SegMsg* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.Key2SegMsg"; - } - 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_suvlim_2eproto); - return ::descriptor_table_suvlim_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRecordsFieldNumber = 2, - kClientIdFieldNumber = 1, - }; - // .milvus.grpc.SegmentRecord records = 2; - bool has_records() const; - private: - bool _internal_has_records() const; - public: - void clear_records(); - const ::milvus::grpc::SegmentRecord& records() const; - ::milvus::grpc::SegmentRecord* release_records(); - ::milvus::grpc::SegmentRecord* mutable_records(); - void set_allocated_records(::milvus::grpc::SegmentRecord* records); - private: - const ::milvus::grpc::SegmentRecord& _internal_records() const; - ::milvus::grpc::SegmentRecord* _internal_mutable_records(); - public: - - // int64 client_id = 1; - void clear_client_id(); - ::PROTOBUF_NAMESPACE_ID::int64 client_id() const; - void set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_client_id() const; - void _internal_set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value); - public: - - // @@protoc_insertion_point(class_scope:milvus.grpc.Key2SegMsg) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::milvus::grpc::SegmentRecord* records_; - ::PROTOBUF_NAMESPACE_ID::int64 client_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_suvlim_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// KeyValuePair - -// string key = 1; -inline void KeyValuePair::clear_key() { - key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& KeyValuePair::key() const { - // @@protoc_insertion_point(field_get:milvus.grpc.KeyValuePair.key) - return _internal_key(); -} -inline void KeyValuePair::set_key(const std::string& value) { - _internal_set_key(value); - // @@protoc_insertion_point(field_set:milvus.grpc.KeyValuePair.key) -} -inline std::string* KeyValuePair::mutable_key() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.KeyValuePair.key) - return _internal_mutable_key(); -} -inline const std::string& KeyValuePair::_internal_key() const { - return key_.GetNoArena(); -} -inline void KeyValuePair::_internal_set_key(const std::string& value) { - - key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void KeyValuePair::set_key(std::string&& value) { - - key_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.KeyValuePair.key) -} -inline void KeyValuePair::set_key(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.KeyValuePair.key) -} -inline void KeyValuePair::set_key(const char* value, size_t size) { - - key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.KeyValuePair.key) -} -inline std::string* KeyValuePair::_internal_mutable_key() { - - return key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* KeyValuePair::release_key() { - // @@protoc_insertion_point(field_release:milvus.grpc.KeyValuePair.key) - - return key_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void KeyValuePair::set_allocated_key(std::string* key) { - if (key != nullptr) { - - } else { - - } - key_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.KeyValuePair.key) -} - -// string value = 2; -inline void KeyValuePair::clear_value() { - value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& KeyValuePair::value() const { - // @@protoc_insertion_point(field_get:milvus.grpc.KeyValuePair.value) - return _internal_value(); -} -inline void KeyValuePair::set_value(const std::string& value) { - _internal_set_value(value); - // @@protoc_insertion_point(field_set:milvus.grpc.KeyValuePair.value) -} -inline std::string* KeyValuePair::mutable_value() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.KeyValuePair.value) - return _internal_mutable_value(); -} -inline const std::string& KeyValuePair::_internal_value() const { - return value_.GetNoArena(); -} -inline void KeyValuePair::_internal_set_value(const std::string& value) { - - value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void KeyValuePair::set_value(std::string&& value) { - - value_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.KeyValuePair.value) -} -inline void KeyValuePair::set_value(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.KeyValuePair.value) -} -inline void KeyValuePair::set_value(const char* value, size_t size) { - - value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.KeyValuePair.value) -} -inline std::string* KeyValuePair::_internal_mutable_value() { - - return value_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* KeyValuePair::release_value() { - // @@protoc_insertion_point(field_release:milvus.grpc.KeyValuePair.value) - - return value_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void KeyValuePair::set_allocated_value(std::string* value) { - if (value != nullptr) { - - } else { - - } - value_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.KeyValuePair.value) -} - -// ------------------------------------------------------------------- - -// CollectionName - -// string collection_name = 1; -inline void CollectionName::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& CollectionName::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CollectionName.collection_name) - return _internal_collection_name(); -} -inline void CollectionName::set_collection_name(const std::string& value) { - _internal_set_collection_name(value); - // @@protoc_insertion_point(field_set:milvus.grpc.CollectionName.collection_name) -} -inline std::string* CollectionName::mutable_collection_name() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionName.collection_name) - return _internal_mutable_collection_name(); -} -inline const std::string& CollectionName::_internal_collection_name() const { - return collection_name_.GetNoArena(); -} -inline void CollectionName::_internal_set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void CollectionName::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.CollectionName.collection_name) -} -inline void CollectionName::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.CollectionName.collection_name) -} -inline void CollectionName::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.CollectionName.collection_name) -} -inline std::string* CollectionName::_internal_mutable_collection_name() { - - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* CollectionName::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.CollectionName.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void CollectionName::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CollectionName.collection_name) -} - -// ------------------------------------------------------------------- - -// CollectionNameList - -// .milvus.grpc.Status status = 1; -inline bool CollectionNameList::_internal_has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline bool CollectionNameList::has_status() const { - return _internal_has_status(); -} -inline const ::milvus::grpc::Status& CollectionNameList::_internal_status() const { - const ::milvus::grpc::Status* p = status_; - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Status_default_instance_); -} -inline const ::milvus::grpc::Status& CollectionNameList::status() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CollectionNameList.status) - return _internal_status(); -} -inline ::milvus::grpc::Status* CollectionNameList::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.CollectionNameList.status) - - ::milvus::grpc::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::grpc::Status* CollectionNameList::_internal_mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); - status_ = p; - } - return status_; -} -inline ::milvus::grpc::Status* CollectionNameList::mutable_status() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionNameList.status) - return _internal_mutable_status(); -} -inline void CollectionNameList::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CollectionNameList.status) -} - -// repeated string collection_names = 2; -inline int CollectionNameList::_internal_collection_names_size() const { - return collection_names_.size(); -} -inline int CollectionNameList::collection_names_size() const { - return _internal_collection_names_size(); -} -inline void CollectionNameList::clear_collection_names() { - collection_names_.Clear(); -} -inline std::string* CollectionNameList::add_collection_names() { - // @@protoc_insertion_point(field_add_mutable:milvus.grpc.CollectionNameList.collection_names) - return _internal_add_collection_names(); -} -inline const std::string& CollectionNameList::_internal_collection_names(int index) const { - return collection_names_.Get(index); -} -inline const std::string& CollectionNameList::collection_names(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.CollectionNameList.collection_names) - return _internal_collection_names(index); -} -inline std::string* CollectionNameList::mutable_collection_names(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionNameList.collection_names) - return collection_names_.Mutable(index); -} -inline void CollectionNameList::set_collection_names(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.CollectionNameList.collection_names) - collection_names_.Mutable(index)->assign(value); -} -inline void CollectionNameList::set_collection_names(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.CollectionNameList.collection_names) - collection_names_.Mutable(index)->assign(std::move(value)); -} -inline void CollectionNameList::set_collection_names(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - collection_names_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.grpc.CollectionNameList.collection_names) -} -inline void CollectionNameList::set_collection_names(int index, const char* value, size_t size) { - collection_names_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.CollectionNameList.collection_names) -} -inline std::string* CollectionNameList::_internal_add_collection_names() { - return collection_names_.Add(); -} -inline void CollectionNameList::add_collection_names(const std::string& value) { - collection_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.grpc.CollectionNameList.collection_names) -} -inline void CollectionNameList::add_collection_names(std::string&& value) { - collection_names_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.grpc.CollectionNameList.collection_names) -} -inline void CollectionNameList::add_collection_names(const char* value) { - GOOGLE_DCHECK(value != nullptr); - collection_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.grpc.CollectionNameList.collection_names) -} -inline void CollectionNameList::add_collection_names(const char* value, size_t size) { - collection_names_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.grpc.CollectionNameList.collection_names) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -CollectionNameList::collection_names() const { - // @@protoc_insertion_point(field_list:milvus.grpc.CollectionNameList.collection_names) - return collection_names_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -CollectionNameList::mutable_collection_names() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.CollectionNameList.collection_names) - return &collection_names_; -} - -// ------------------------------------------------------------------- - -// FieldName - -// string collection_name = 1; -inline void FieldName::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& FieldName::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldName.collection_name) - return _internal_collection_name(); -} -inline void FieldName::set_collection_name(const std::string& value) { - _internal_set_collection_name(value); - // @@protoc_insertion_point(field_set:milvus.grpc.FieldName.collection_name) -} -inline std::string* FieldName::mutable_collection_name() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldName.collection_name) - return _internal_mutable_collection_name(); -} -inline const std::string& FieldName::_internal_collection_name() const { - return collection_name_.GetNoArena(); -} -inline void FieldName::_internal_set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void FieldName::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.FieldName.collection_name) -} -inline void FieldName::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.FieldName.collection_name) -} -inline void FieldName::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.FieldName.collection_name) -} -inline std::string* FieldName::_internal_mutable_collection_name() { - - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* FieldName::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.FieldName.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void FieldName::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.FieldName.collection_name) -} - -// string field_name = 2; -inline void FieldName::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& FieldName::field_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldName.field_name) - return _internal_field_name(); -} -inline void FieldName::set_field_name(const std::string& value) { - _internal_set_field_name(value); - // @@protoc_insertion_point(field_set:milvus.grpc.FieldName.field_name) -} -inline std::string* FieldName::mutable_field_name() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldName.field_name) - return _internal_mutable_field_name(); -} -inline const std::string& FieldName::_internal_field_name() const { - return field_name_.GetNoArena(); -} -inline void FieldName::_internal_set_field_name(const std::string& value) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void FieldName::set_field_name(std::string&& value) { - - field_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.FieldName.field_name) -} -inline void FieldName::set_field_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.FieldName.field_name) -} -inline void FieldName::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.FieldName.field_name) -} -inline std::string* FieldName::_internal_mutable_field_name() { - - return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* FieldName::release_field_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.FieldName.field_name) - - return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void FieldName::set_allocated_field_name(std::string* field_name) { - if (field_name != nullptr) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.FieldName.field_name) -} - -// ------------------------------------------------------------------- - -// Mapping - -// .milvus.grpc.Status status = 1; -inline bool Mapping::_internal_has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline bool Mapping::has_status() const { - return _internal_has_status(); -} -inline const ::milvus::grpc::Status& Mapping::_internal_status() const { - const ::milvus::grpc::Status* p = status_; - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Status_default_instance_); -} -inline const ::milvus::grpc::Status& Mapping::status() const { - // @@protoc_insertion_point(field_get:milvus.grpc.Mapping.status) - return _internal_status(); -} -inline ::milvus::grpc::Status* Mapping::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.Mapping.status) - - ::milvus::grpc::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::grpc::Status* Mapping::_internal_mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); - status_ = p; - } - return status_; -} -inline ::milvus::grpc::Status* Mapping::mutable_status() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.Mapping.status) - return _internal_mutable_status(); -} -inline void Mapping::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Mapping.status) -} - -// string collection_name = 2; -inline void Mapping::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& Mapping::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.Mapping.collection_name) - return _internal_collection_name(); -} -inline void Mapping::set_collection_name(const std::string& value) { - _internal_set_collection_name(value); - // @@protoc_insertion_point(field_set:milvus.grpc.Mapping.collection_name) -} -inline std::string* Mapping::mutable_collection_name() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.Mapping.collection_name) - return _internal_mutable_collection_name(); -} -inline const std::string& Mapping::_internal_collection_name() const { - return collection_name_.GetNoArena(); -} -inline void Mapping::_internal_set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void Mapping::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.Mapping.collection_name) -} -inline void Mapping::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.Mapping.collection_name) -} -inline void Mapping::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.Mapping.collection_name) -} -inline std::string* Mapping::_internal_mutable_collection_name() { - - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* Mapping::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.Mapping.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void Mapping::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Mapping.collection_name) -} - -// .milvus.grpc.Schema schema = 3; -inline bool Mapping::_internal_has_schema() const { - return this != internal_default_instance() && schema_ != nullptr; -} -inline bool Mapping::has_schema() const { - return _internal_has_schema(); -} -inline void Mapping::clear_schema() { - if (GetArenaNoVirtual() == nullptr && schema_ != nullptr) { - delete schema_; - } - schema_ = nullptr; -} -inline const ::milvus::grpc::Schema& Mapping::_internal_schema() const { - const ::milvus::grpc::Schema* p = schema_; - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Schema_default_instance_); -} -inline const ::milvus::grpc::Schema& Mapping::schema() const { - // @@protoc_insertion_point(field_get:milvus.grpc.Mapping.schema) - return _internal_schema(); -} -inline ::milvus::grpc::Schema* Mapping::release_schema() { - // @@protoc_insertion_point(field_release:milvus.grpc.Mapping.schema) - - ::milvus::grpc::Schema* temp = schema_; - schema_ = nullptr; - return temp; -} -inline ::milvus::grpc::Schema* Mapping::_internal_mutable_schema() { - - if (schema_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Schema>(GetArenaNoVirtual()); - schema_ = p; - } - return schema_; -} -inline ::milvus::grpc::Schema* Mapping::mutable_schema() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.Mapping.schema) - return _internal_mutable_schema(); -} -inline void Mapping::set_allocated_schema(::milvus::grpc::Schema* schema) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete schema_; - } - if (schema) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - schema = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, schema, submessage_arena); - } - - } else { - - } - schema_ = schema; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Mapping.schema) -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 4; -inline int Mapping::_internal_extra_params_size() const { - return extra_params_.size(); -} -inline int Mapping::extra_params_size() const { - return _internal_extra_params_size(); -} -inline void Mapping::clear_extra_params() { - extra_params_.Clear(); -} -inline ::milvus::grpc::KeyValuePair* Mapping::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.Mapping.extra_params) - return extra_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -Mapping::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Mapping.extra_params) - return &extra_params_; -} -inline const ::milvus::grpc::KeyValuePair& Mapping::_internal_extra_params(int index) const { - return extra_params_.Get(index); -} -inline const ::milvus::grpc::KeyValuePair& Mapping::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.Mapping.extra_params) - return _internal_extra_params(index); -} -inline ::milvus::grpc::KeyValuePair* Mapping::_internal_add_extra_params() { - return extra_params_.Add(); -} -inline ::milvus::grpc::KeyValuePair* Mapping::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.Mapping.extra_params) - return _internal_add_extra_params(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -Mapping::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.Mapping.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// MappingList - -// .milvus.grpc.Status status = 1; -inline bool MappingList::_internal_has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline bool MappingList::has_status() const { - return _internal_has_status(); -} -inline const ::milvus::grpc::Status& MappingList::_internal_status() const { - const ::milvus::grpc::Status* p = status_; - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Status_default_instance_); -} -inline const ::milvus::grpc::Status& MappingList::status() const { - // @@protoc_insertion_point(field_get:milvus.grpc.MappingList.status) - return _internal_status(); -} -inline ::milvus::grpc::Status* MappingList::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.MappingList.status) - - ::milvus::grpc::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::grpc::Status* MappingList::_internal_mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); - status_ = p; - } - return status_; -} -inline ::milvus::grpc::Status* MappingList::mutable_status() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.MappingList.status) - return _internal_mutable_status(); -} -inline void MappingList::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.MappingList.status) -} - -// repeated .milvus.grpc.Mapping mapping_list = 2; -inline int MappingList::_internal_mapping_list_size() const { - return mapping_list_.size(); -} -inline int MappingList::mapping_list_size() const { - return _internal_mapping_list_size(); -} -inline void MappingList::clear_mapping_list() { - mapping_list_.Clear(); -} -inline ::milvus::grpc::Mapping* MappingList::mutable_mapping_list(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.MappingList.mapping_list) - return mapping_list_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::Mapping >* -MappingList::mutable_mapping_list() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.MappingList.mapping_list) - return &mapping_list_; -} -inline const ::milvus::grpc::Mapping& MappingList::_internal_mapping_list(int index) const { - return mapping_list_.Get(index); -} -inline const ::milvus::grpc::Mapping& MappingList::mapping_list(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.MappingList.mapping_list) - return _internal_mapping_list(index); -} -inline ::milvus::grpc::Mapping* MappingList::_internal_add_mapping_list() { - return mapping_list_.Add(); -} -inline ::milvus::grpc::Mapping* MappingList::add_mapping_list() { - // @@protoc_insertion_point(field_add:milvus.grpc.MappingList.mapping_list) - return _internal_add_mapping_list(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::Mapping >& -MappingList::mapping_list() const { - // @@protoc_insertion_point(field_list:milvus.grpc.MappingList.mapping_list) - return mapping_list_; -} - -// ------------------------------------------------------------------- - -// PartitionParam - -// string collection_name = 1; -inline void PartitionParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& PartitionParam::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.PartitionParam.collection_name) - return _internal_collection_name(); -} -inline void PartitionParam::set_collection_name(const std::string& value) { - _internal_set_collection_name(value); - // @@protoc_insertion_point(field_set:milvus.grpc.PartitionParam.collection_name) -} -inline std::string* PartitionParam::mutable_collection_name() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.PartitionParam.collection_name) - return _internal_mutable_collection_name(); -} -inline const std::string& PartitionParam::_internal_collection_name() const { - return collection_name_.GetNoArena(); -} -inline void PartitionParam::_internal_set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void PartitionParam::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.PartitionParam.collection_name) -} -inline void PartitionParam::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.PartitionParam.collection_name) -} -inline void PartitionParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.PartitionParam.collection_name) -} -inline std::string* PartitionParam::_internal_mutable_collection_name() { - - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* PartitionParam::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.PartitionParam.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void PartitionParam::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.PartitionParam.collection_name) -} - -// string tag = 2; -inline void PartitionParam::clear_tag() { - tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& PartitionParam::tag() const { - // @@protoc_insertion_point(field_get:milvus.grpc.PartitionParam.tag) - return _internal_tag(); -} -inline void PartitionParam::set_tag(const std::string& value) { - _internal_set_tag(value); - // @@protoc_insertion_point(field_set:milvus.grpc.PartitionParam.tag) -} -inline std::string* PartitionParam::mutable_tag() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.PartitionParam.tag) - return _internal_mutable_tag(); -} -inline const std::string& PartitionParam::_internal_tag() const { - return tag_.GetNoArena(); -} -inline void PartitionParam::_internal_set_tag(const std::string& value) { - - tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void PartitionParam::set_tag(std::string&& value) { - - tag_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.PartitionParam.tag) -} -inline void PartitionParam::set_tag(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.PartitionParam.tag) -} -inline void PartitionParam::set_tag(const char* value, size_t size) { - - tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.PartitionParam.tag) -} -inline std::string* PartitionParam::_internal_mutable_tag() { - - return tag_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* PartitionParam::release_tag() { - // @@protoc_insertion_point(field_release:milvus.grpc.PartitionParam.tag) - - return tag_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void PartitionParam::set_allocated_tag(std::string* tag) { - if (tag != nullptr) { - - } else { - - } - tag_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), tag); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.PartitionParam.tag) -} - -// ------------------------------------------------------------------- - -// PartitionList - -// .milvus.grpc.Status status = 1; -inline bool PartitionList::_internal_has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline bool PartitionList::has_status() const { - return _internal_has_status(); -} -inline const ::milvus::grpc::Status& PartitionList::_internal_status() const { - const ::milvus::grpc::Status* p = status_; - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Status_default_instance_); -} -inline const ::milvus::grpc::Status& PartitionList::status() const { - // @@protoc_insertion_point(field_get:milvus.grpc.PartitionList.status) - return _internal_status(); -} -inline ::milvus::grpc::Status* PartitionList::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.PartitionList.status) - - ::milvus::grpc::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::grpc::Status* PartitionList::_internal_mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); - status_ = p; - } - return status_; -} -inline ::milvus::grpc::Status* PartitionList::mutable_status() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.PartitionList.status) - return _internal_mutable_status(); -} -inline void PartitionList::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.PartitionList.status) -} - -// repeated string partition_tag_array = 2; -inline int PartitionList::_internal_partition_tag_array_size() const { - return partition_tag_array_.size(); -} -inline int PartitionList::partition_tag_array_size() const { - return _internal_partition_tag_array_size(); -} -inline void PartitionList::clear_partition_tag_array() { - partition_tag_array_.Clear(); -} -inline std::string* PartitionList::add_partition_tag_array() { - // @@protoc_insertion_point(field_add_mutable:milvus.grpc.PartitionList.partition_tag_array) - return _internal_add_partition_tag_array(); -} -inline const std::string& PartitionList::_internal_partition_tag_array(int index) const { - return partition_tag_array_.Get(index); -} -inline const std::string& PartitionList::partition_tag_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.PartitionList.partition_tag_array) - return _internal_partition_tag_array(index); -} -inline std::string* PartitionList::mutable_partition_tag_array(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.PartitionList.partition_tag_array) - return partition_tag_array_.Mutable(index); -} -inline void PartitionList::set_partition_tag_array(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.PartitionList.partition_tag_array) - partition_tag_array_.Mutable(index)->assign(value); -} -inline void PartitionList::set_partition_tag_array(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.PartitionList.partition_tag_array) - partition_tag_array_.Mutable(index)->assign(std::move(value)); -} -inline void PartitionList::set_partition_tag_array(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - partition_tag_array_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.grpc.PartitionList.partition_tag_array) -} -inline void PartitionList::set_partition_tag_array(int index, const char* value, size_t size) { - partition_tag_array_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.PartitionList.partition_tag_array) -} -inline std::string* PartitionList::_internal_add_partition_tag_array() { - return partition_tag_array_.Add(); -} -inline void PartitionList::add_partition_tag_array(const std::string& value) { - partition_tag_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.grpc.PartitionList.partition_tag_array) -} -inline void PartitionList::add_partition_tag_array(std::string&& value) { - partition_tag_array_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.grpc.PartitionList.partition_tag_array) -} -inline void PartitionList::add_partition_tag_array(const char* value) { - GOOGLE_DCHECK(value != nullptr); - partition_tag_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.grpc.PartitionList.partition_tag_array) -} -inline void PartitionList::add_partition_tag_array(const char* value, size_t size) { - partition_tag_array_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.grpc.PartitionList.partition_tag_array) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -PartitionList::partition_tag_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.PartitionList.partition_tag_array) - return partition_tag_array_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -PartitionList::mutable_partition_tag_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.PartitionList.partition_tag_array) - return &partition_tag_array_; -} - -// ------------------------------------------------------------------- - -// VectorRowRecord - -// repeated float float_data = 1; -inline int VectorRowRecord::_internal_float_data_size() const { - return float_data_.size(); -} -inline int VectorRowRecord::float_data_size() const { - return _internal_float_data_size(); -} -inline void VectorRowRecord::clear_float_data() { - float_data_.Clear(); -} -inline float VectorRowRecord::_internal_float_data(int index) const { - return float_data_.Get(index); -} -inline float VectorRowRecord::float_data(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorRowRecord.float_data) - return _internal_float_data(index); -} -inline void VectorRowRecord::set_float_data(int index, float value) { - float_data_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.VectorRowRecord.float_data) -} -inline void VectorRowRecord::_internal_add_float_data(float value) { - float_data_.Add(value); -} -inline void VectorRowRecord::add_float_data(float value) { - _internal_add_float_data(value); - // @@protoc_insertion_point(field_add:milvus.grpc.VectorRowRecord.float_data) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& -VectorRowRecord::_internal_float_data() const { - return float_data_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& -VectorRowRecord::float_data() const { - // @@protoc_insertion_point(field_list:milvus.grpc.VectorRowRecord.float_data) - return _internal_float_data(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* -VectorRowRecord::_internal_mutable_float_data() { - return &float_data_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* -VectorRowRecord::mutable_float_data() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorRowRecord.float_data) - return _internal_mutable_float_data(); -} - -// bytes binary_data = 2; -inline void VectorRowRecord::clear_binary_data() { - binary_data_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& VectorRowRecord::binary_data() const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorRowRecord.binary_data) - return _internal_binary_data(); -} -inline void VectorRowRecord::set_binary_data(const std::string& value) { - _internal_set_binary_data(value); - // @@protoc_insertion_point(field_set:milvus.grpc.VectorRowRecord.binary_data) -} -inline std::string* VectorRowRecord::mutable_binary_data() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorRowRecord.binary_data) - return _internal_mutable_binary_data(); -} -inline const std::string& VectorRowRecord::_internal_binary_data() const { - return binary_data_.GetNoArena(); -} -inline void VectorRowRecord::_internal_set_binary_data(const std::string& value) { - - binary_data_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void VectorRowRecord::set_binary_data(std::string&& value) { - - binary_data_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.VectorRowRecord.binary_data) -} -inline void VectorRowRecord::set_binary_data(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - binary_data_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.VectorRowRecord.binary_data) -} -inline void VectorRowRecord::set_binary_data(const void* value, size_t size) { - - binary_data_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.VectorRowRecord.binary_data) -} -inline std::string* VectorRowRecord::_internal_mutable_binary_data() { - - return binary_data_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* VectorRowRecord::release_binary_data() { - // @@protoc_insertion_point(field_release:milvus.grpc.VectorRowRecord.binary_data) - - return binary_data_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void VectorRowRecord::set_allocated_binary_data(std::string* binary_data) { - if (binary_data != nullptr) { - - } else { - - } - binary_data_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), binary_data); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.VectorRowRecord.binary_data) -} - -// ------------------------------------------------------------------- - -// EntityIds - -// .milvus.grpc.Status status = 1; -inline bool EntityIds::_internal_has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline bool EntityIds::has_status() const { - return _internal_has_status(); -} -inline const ::milvus::grpc::Status& EntityIds::_internal_status() const { - const ::milvus::grpc::Status* p = status_; - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Status_default_instance_); -} -inline const ::milvus::grpc::Status& EntityIds::status() const { - // @@protoc_insertion_point(field_get:milvus.grpc.EntityIds.status) - return _internal_status(); -} -inline ::milvus::grpc::Status* EntityIds::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.EntityIds.status) - - ::milvus::grpc::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::grpc::Status* EntityIds::_internal_mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); - status_ = p; - } - return status_; -} -inline ::milvus::grpc::Status* EntityIds::mutable_status() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.EntityIds.status) - return _internal_mutable_status(); -} -inline void EntityIds::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.EntityIds.status) -} - -// repeated int64 entity_id_array = 2; -inline int EntityIds::_internal_entity_id_array_size() const { - return entity_id_array_.size(); -} -inline int EntityIds::entity_id_array_size() const { - return _internal_entity_id_array_size(); -} -inline void EntityIds::clear_entity_id_array() { - entity_id_array_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 EntityIds::_internal_entity_id_array(int index) const { - return entity_id_array_.Get(index); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 EntityIds::entity_id_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.EntityIds.entity_id_array) - return _internal_entity_id_array(index); -} -inline void EntityIds::set_entity_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { - entity_id_array_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.EntityIds.entity_id_array) -} -inline void EntityIds::_internal_add_entity_id_array(::PROTOBUF_NAMESPACE_ID::int64 value) { - entity_id_array_.Add(value); -} -inline void EntityIds::add_entity_id_array(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_add_entity_id_array(value); - // @@protoc_insertion_point(field_add:milvus.grpc.EntityIds.entity_id_array) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -EntityIds::_internal_entity_id_array() const { - return entity_id_array_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -EntityIds::entity_id_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.EntityIds.entity_id_array) - return _internal_entity_id_array(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -EntityIds::_internal_mutable_entity_id_array() { - return &entity_id_array_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -EntityIds::mutable_entity_id_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.EntityIds.entity_id_array) - return _internal_mutable_entity_id_array(); -} - -// ------------------------------------------------------------------- - -// VectorRecord - -// repeated .milvus.grpc.VectorRowRecord records = 1; -inline int VectorRecord::_internal_records_size() const { - return records_.size(); -} -inline int VectorRecord::records_size() const { - return _internal_records_size(); -} -inline void VectorRecord::clear_records() { - records_.Clear(); -} -inline ::milvus::grpc::VectorRowRecord* VectorRecord::mutable_records(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorRecord.records) - return records_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* -VectorRecord::mutable_records() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorRecord.records) - return &records_; -} -inline const ::milvus::grpc::VectorRowRecord& VectorRecord::_internal_records(int index) const { - return records_.Get(index); -} -inline const ::milvus::grpc::VectorRowRecord& VectorRecord::records(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorRecord.records) - return _internal_records(index); -} -inline ::milvus::grpc::VectorRowRecord* VectorRecord::_internal_add_records() { - return records_.Add(); -} -inline ::milvus::grpc::VectorRowRecord* VectorRecord::add_records() { - // @@protoc_insertion_point(field_add:milvus.grpc.VectorRecord.records) - return _internal_add_records(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& -VectorRecord::records() const { - // @@protoc_insertion_point(field_list:milvus.grpc.VectorRecord.records) - return records_; -} - -// ------------------------------------------------------------------- - -// VectorParam - -// string json = 1; -inline void VectorParam::clear_json() { - json_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& VectorParam::json() const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorParam.json) - return _internal_json(); -} -inline void VectorParam::set_json(const std::string& value) { - _internal_set_json(value); - // @@protoc_insertion_point(field_set:milvus.grpc.VectorParam.json) -} -inline std::string* VectorParam::mutable_json() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorParam.json) - return _internal_mutable_json(); -} -inline const std::string& VectorParam::_internal_json() const { - return json_.GetNoArena(); -} -inline void VectorParam::_internal_set_json(const std::string& value) { - - json_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void VectorParam::set_json(std::string&& value) { - - json_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.VectorParam.json) -} -inline void VectorParam::set_json(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - json_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.VectorParam.json) -} -inline void VectorParam::set_json(const char* value, size_t size) { - - json_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.VectorParam.json) -} -inline std::string* VectorParam::_internal_mutable_json() { - - return json_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* VectorParam::release_json() { - // @@protoc_insertion_point(field_release:milvus.grpc.VectorParam.json) - - return json_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void VectorParam::set_allocated_json(std::string* json) { - if (json != nullptr) { - - } else { - - } - json_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), json); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.VectorParam.json) -} - -// .milvus.grpc.VectorRecord row_record = 2; -inline bool VectorParam::_internal_has_row_record() const { - return this != internal_default_instance() && row_record_ != nullptr; -} -inline bool VectorParam::has_row_record() const { - return _internal_has_row_record(); -} -inline void VectorParam::clear_row_record() { - if (GetArenaNoVirtual() == nullptr && row_record_ != nullptr) { - delete row_record_; - } - row_record_ = nullptr; -} -inline const ::milvus::grpc::VectorRecord& VectorParam::_internal_row_record() const { - const ::milvus::grpc::VectorRecord* p = row_record_; - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_VectorRecord_default_instance_); -} -inline const ::milvus::grpc::VectorRecord& VectorParam::row_record() const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorParam.row_record) - return _internal_row_record(); -} -inline ::milvus::grpc::VectorRecord* VectorParam::release_row_record() { - // @@protoc_insertion_point(field_release:milvus.grpc.VectorParam.row_record) - - ::milvus::grpc::VectorRecord* temp = row_record_; - row_record_ = nullptr; - return temp; -} -inline ::milvus::grpc::VectorRecord* VectorParam::_internal_mutable_row_record() { - - if (row_record_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::VectorRecord>(GetArenaNoVirtual()); - row_record_ = p; - } - return row_record_; -} -inline ::milvus::grpc::VectorRecord* VectorParam::mutable_row_record() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorParam.row_record) - return _internal_mutable_row_record(); -} -inline void VectorParam::set_allocated_row_record(::milvus::grpc::VectorRecord* row_record) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete row_record_; - } - if (row_record) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - row_record = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, row_record, submessage_arena); - } - - } else { - - } - row_record_ = row_record; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.VectorParam.row_record) -} - -// ------------------------------------------------------------------- - -// FieldMeta - -// string field_name = 1; -inline void FieldMeta::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& FieldMeta::field_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldMeta.field_name) - return _internal_field_name(); -} -inline void FieldMeta::set_field_name(const std::string& value) { - _internal_set_field_name(value); - // @@protoc_insertion_point(field_set:milvus.grpc.FieldMeta.field_name) -} -inline std::string* FieldMeta::mutable_field_name() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldMeta.field_name) - return _internal_mutable_field_name(); -} -inline const std::string& FieldMeta::_internal_field_name() const { - return field_name_.GetNoArena(); -} -inline void FieldMeta::_internal_set_field_name(const std::string& value) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void FieldMeta::set_field_name(std::string&& value) { - - field_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.FieldMeta.field_name) -} -inline void FieldMeta::set_field_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.FieldMeta.field_name) -} -inline void FieldMeta::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.FieldMeta.field_name) -} -inline std::string* FieldMeta::_internal_mutable_field_name() { - - return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* FieldMeta::release_field_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.FieldMeta.field_name) - - return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void FieldMeta::set_allocated_field_name(std::string* field_name) { - if (field_name != nullptr) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.FieldMeta.field_name) -} - -// .milvus.grpc.DataType type = 2; -inline void FieldMeta::clear_type() { - type_ = 0; -} -inline ::milvus::grpc::DataType FieldMeta::_internal_type() const { - return static_cast< ::milvus::grpc::DataType >(type_); -} -inline ::milvus::grpc::DataType FieldMeta::type() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldMeta.type) - return _internal_type(); -} -inline void FieldMeta::_internal_set_type(::milvus::grpc::DataType value) { - - type_ = value; -} -inline void FieldMeta::set_type(::milvus::grpc::DataType value) { - _internal_set_type(value); - // @@protoc_insertion_point(field_set:milvus.grpc.FieldMeta.type) -} - -// int64 dim = 3; -inline void FieldMeta::clear_dim() { - dim_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 FieldMeta::_internal_dim() const { - return dim_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 FieldMeta::dim() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldMeta.dim) - return _internal_dim(); -} -inline void FieldMeta::_internal_set_dim(::PROTOBUF_NAMESPACE_ID::int64 value) { - - dim_ = value; -} -inline void FieldMeta::set_dim(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_dim(value); - // @@protoc_insertion_point(field_set:milvus.grpc.FieldMeta.dim) -} - -// ------------------------------------------------------------------- - -// Schema - -// repeated .milvus.grpc.FieldMeta field_metas = 1; -inline int Schema::_internal_field_metas_size() const { - return field_metas_.size(); -} -inline int Schema::field_metas_size() const { - return _internal_field_metas_size(); -} -inline void Schema::clear_field_metas() { - field_metas_.Clear(); -} -inline ::milvus::grpc::FieldMeta* Schema::mutable_field_metas(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.Schema.field_metas) - return field_metas_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldMeta >* -Schema::mutable_field_metas() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Schema.field_metas) - return &field_metas_; -} -inline const ::milvus::grpc::FieldMeta& Schema::_internal_field_metas(int index) const { - return field_metas_.Get(index); -} -inline const ::milvus::grpc::FieldMeta& Schema::field_metas(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.Schema.field_metas) - return _internal_field_metas(index); -} -inline ::milvus::grpc::FieldMeta* Schema::_internal_add_field_metas() { - return field_metas_.Add(); -} -inline ::milvus::grpc::FieldMeta* Schema::add_field_metas() { - // @@protoc_insertion_point(field_add:milvus.grpc.Schema.field_metas) - return _internal_add_field_metas(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::FieldMeta >& -Schema::field_metas() const { - // @@protoc_insertion_point(field_list:milvus.grpc.Schema.field_metas) - return field_metas_; -} - -// ------------------------------------------------------------------- - -// RowData - -// bytes blob = 1; -inline void RowData::clear_blob() { - blob_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& RowData::blob() const { - // @@protoc_insertion_point(field_get:milvus.grpc.RowData.blob) - return _internal_blob(); -} -inline void RowData::set_blob(const std::string& value) { - _internal_set_blob(value); - // @@protoc_insertion_point(field_set:milvus.grpc.RowData.blob) -} -inline std::string* RowData::mutable_blob() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.RowData.blob) - return _internal_mutable_blob(); -} -inline const std::string& RowData::_internal_blob() const { - return blob_.GetNoArena(); -} -inline void RowData::_internal_set_blob(const std::string& value) { - - blob_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void RowData::set_blob(std::string&& value) { - - blob_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.RowData.blob) -} -inline void RowData::set_blob(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - blob_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.RowData.blob) -} -inline void RowData::set_blob(const void* value, size_t size) { - - blob_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.RowData.blob) -} -inline std::string* RowData::_internal_mutable_blob() { - - return blob_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* RowData::release_blob() { - // @@protoc_insertion_point(field_release:milvus.grpc.RowData.blob) - - return blob_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void RowData::set_allocated_blob(std::string* blob) { - if (blob != nullptr) { - - } else { - - } - blob_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), blob); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.RowData.blob) -} - -// ------------------------------------------------------------------- - -// InsertParam - -// string collection_name = 1; -inline void InsertParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& InsertParam::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.collection_name) - return _internal_collection_name(); -} -inline void InsertParam::set_collection_name(const std::string& value) { - _internal_set_collection_name(value); - // @@protoc_insertion_point(field_set:milvus.grpc.InsertParam.collection_name) -} -inline std::string* InsertParam::mutable_collection_name() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertParam.collection_name) - return _internal_mutable_collection_name(); -} -inline const std::string& InsertParam::_internal_collection_name() const { - return collection_name_.GetNoArena(); -} -inline void InsertParam::_internal_set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void InsertParam::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.InsertParam.collection_name) -} -inline void InsertParam::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.InsertParam.collection_name) -} -inline void InsertParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.InsertParam.collection_name) -} -inline std::string* InsertParam::_internal_mutable_collection_name() { - - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* InsertParam::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.InsertParam.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void InsertParam::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.InsertParam.collection_name) -} - -// .milvus.grpc.Schema schema = 2; -inline bool InsertParam::_internal_has_schema() const { - return this != internal_default_instance() && schema_ != nullptr; -} -inline bool InsertParam::has_schema() const { - return _internal_has_schema(); -} -inline void InsertParam::clear_schema() { - if (GetArenaNoVirtual() == nullptr && schema_ != nullptr) { - delete schema_; - } - schema_ = nullptr; -} -inline const ::milvus::grpc::Schema& InsertParam::_internal_schema() const { - const ::milvus::grpc::Schema* p = schema_; - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Schema_default_instance_); -} -inline const ::milvus::grpc::Schema& InsertParam::schema() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.schema) - return _internal_schema(); -} -inline ::milvus::grpc::Schema* InsertParam::release_schema() { - // @@protoc_insertion_point(field_release:milvus.grpc.InsertParam.schema) - - ::milvus::grpc::Schema* temp = schema_; - schema_ = nullptr; - return temp; -} -inline ::milvus::grpc::Schema* InsertParam::_internal_mutable_schema() { - - if (schema_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Schema>(GetArenaNoVirtual()); - schema_ = p; - } - return schema_; -} -inline ::milvus::grpc::Schema* InsertParam::mutable_schema() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertParam.schema) - return _internal_mutable_schema(); -} -inline void InsertParam::set_allocated_schema(::milvus::grpc::Schema* schema) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete schema_; - } - if (schema) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - schema = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, schema, submessage_arena); - } - - } else { - - } - schema_ = schema; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.InsertParam.schema) -} - -// repeated .milvus.grpc.RowData rows_data = 3; -inline int InsertParam::_internal_rows_data_size() const { - return rows_data_.size(); -} -inline int InsertParam::rows_data_size() const { - return _internal_rows_data_size(); -} -inline void InsertParam::clear_rows_data() { - rows_data_.Clear(); -} -inline ::milvus::grpc::RowData* InsertParam::mutable_rows_data(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertParam.rows_data) - return rows_data_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowData >* -InsertParam::mutable_rows_data() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.InsertParam.rows_data) - return &rows_data_; -} -inline const ::milvus::grpc::RowData& InsertParam::_internal_rows_data(int index) const { - return rows_data_.Get(index); -} -inline const ::milvus::grpc::RowData& InsertParam::rows_data(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.rows_data) - return _internal_rows_data(index); -} -inline ::milvus::grpc::RowData* InsertParam::_internal_add_rows_data() { - return rows_data_.Add(); -} -inline ::milvus::grpc::RowData* InsertParam::add_rows_data() { - // @@protoc_insertion_point(field_add:milvus.grpc.InsertParam.rows_data) - return _internal_add_rows_data(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowData >& -InsertParam::rows_data() const { - // @@protoc_insertion_point(field_list:milvus.grpc.InsertParam.rows_data) - return rows_data_; -} - -// repeated int64 entity_id_array = 4; -inline int InsertParam::_internal_entity_id_array_size() const { - return entity_id_array_.size(); -} -inline int InsertParam::entity_id_array_size() const { - return _internal_entity_id_array_size(); -} -inline void InsertParam::clear_entity_id_array() { - entity_id_array_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 InsertParam::_internal_entity_id_array(int index) const { - return entity_id_array_.Get(index); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 InsertParam::entity_id_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.entity_id_array) - return _internal_entity_id_array(index); -} -inline void InsertParam::set_entity_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { - entity_id_array_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.InsertParam.entity_id_array) -} -inline void InsertParam::_internal_add_entity_id_array(::PROTOBUF_NAMESPACE_ID::int64 value) { - entity_id_array_.Add(value); -} -inline void InsertParam::add_entity_id_array(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_add_entity_id_array(value); - // @@protoc_insertion_point(field_add:milvus.grpc.InsertParam.entity_id_array) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -InsertParam::_internal_entity_id_array() const { - return entity_id_array_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -InsertParam::entity_id_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.InsertParam.entity_id_array) - return _internal_entity_id_array(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -InsertParam::_internal_mutable_entity_id_array() { - return &entity_id_array_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -InsertParam::mutable_entity_id_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.InsertParam.entity_id_array) - return _internal_mutable_entity_id_array(); -} - -// string partition_tag = 5; -inline void InsertParam::clear_partition_tag() { - partition_tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& InsertParam::partition_tag() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.partition_tag) - return _internal_partition_tag(); -} -inline void InsertParam::set_partition_tag(const std::string& value) { - _internal_set_partition_tag(value); - // @@protoc_insertion_point(field_set:milvus.grpc.InsertParam.partition_tag) -} -inline std::string* InsertParam::mutable_partition_tag() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertParam.partition_tag) - return _internal_mutable_partition_tag(); -} -inline const std::string& InsertParam::_internal_partition_tag() const { - return partition_tag_.GetNoArena(); -} -inline void InsertParam::_internal_set_partition_tag(const std::string& value) { - - partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void InsertParam::set_partition_tag(std::string&& value) { - - partition_tag_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.InsertParam.partition_tag) -} -inline void InsertParam::set_partition_tag(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.InsertParam.partition_tag) -} -inline void InsertParam::set_partition_tag(const char* value, size_t size) { - - partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.InsertParam.partition_tag) -} -inline std::string* InsertParam::_internal_mutable_partition_tag() { - - return partition_tag_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* InsertParam::release_partition_tag() { - // @@protoc_insertion_point(field_release:milvus.grpc.InsertParam.partition_tag) - - return partition_tag_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void InsertParam::set_allocated_partition_tag(std::string* partition_tag) { - if (partition_tag != nullptr) { - - } else { - - } - partition_tag_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), partition_tag); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.InsertParam.partition_tag) -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 6; -inline int InsertParam::_internal_extra_params_size() const { - return extra_params_.size(); -} -inline int InsertParam::extra_params_size() const { - return _internal_extra_params_size(); -} -inline void InsertParam::clear_extra_params() { - extra_params_.Clear(); -} -inline ::milvus::grpc::KeyValuePair* InsertParam::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertParam.extra_params) - return extra_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -InsertParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.InsertParam.extra_params) - return &extra_params_; -} -inline const ::milvus::grpc::KeyValuePair& InsertParam::_internal_extra_params(int index) const { - return extra_params_.Get(index); -} -inline const ::milvus::grpc::KeyValuePair& InsertParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.extra_params) - return _internal_extra_params(index); -} -inline ::milvus::grpc::KeyValuePair* InsertParam::_internal_add_extra_params() { - return extra_params_.Add(); -} -inline ::milvus::grpc::KeyValuePair* InsertParam::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.InsertParam.extra_params) - return _internal_add_extra_params(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -InsertParam::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.InsertParam.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// SearchParam - -// string collection_name = 1; -inline void SearchParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& SearchParam::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.collection_name) - return _internal_collection_name(); -} -inline void SearchParam::set_collection_name(const std::string& value) { - _internal_set_collection_name(value); - // @@protoc_insertion_point(field_set:milvus.grpc.SearchParam.collection_name) -} -inline std::string* SearchParam::mutable_collection_name() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParam.collection_name) - return _internal_mutable_collection_name(); -} -inline const std::string& SearchParam::_internal_collection_name() const { - return collection_name_.GetNoArena(); -} -inline void SearchParam::_internal_set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void SearchParam::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.SearchParam.collection_name) -} -inline void SearchParam::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchParam.collection_name) -} -inline void SearchParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchParam.collection_name) -} -inline std::string* SearchParam::_internal_mutable_collection_name() { - - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* SearchParam::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.SearchParam.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void SearchParam::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchParam.collection_name) -} - -// repeated .milvus.grpc.VectorParam vector_param = 2; -inline int SearchParam::_internal_vector_param_size() const { - return vector_param_.size(); -} -inline int SearchParam::vector_param_size() const { - return _internal_vector_param_size(); -} -inline void SearchParam::clear_vector_param() { - vector_param_.Clear(); -} -inline ::milvus::grpc::VectorParam* SearchParam::mutable_vector_param(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParam.vector_param) - return vector_param_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorParam >* -SearchParam::mutable_vector_param() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchParam.vector_param) - return &vector_param_; -} -inline const ::milvus::grpc::VectorParam& SearchParam::_internal_vector_param(int index) const { - return vector_param_.Get(index); -} -inline const ::milvus::grpc::VectorParam& SearchParam::vector_param(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.vector_param) - return _internal_vector_param(index); -} -inline ::milvus::grpc::VectorParam* SearchParam::_internal_add_vector_param() { - return vector_param_.Add(); -} -inline ::milvus::grpc::VectorParam* SearchParam::add_vector_param() { - // @@protoc_insertion_point(field_add:milvus.grpc.SearchParam.vector_param) - return _internal_add_vector_param(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorParam >& -SearchParam::vector_param() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchParam.vector_param) - return vector_param_; -} - -// string dsl = 3; -inline void SearchParam::clear_dsl() { - dsl_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& SearchParam::dsl() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.dsl) - return _internal_dsl(); -} -inline void SearchParam::set_dsl(const std::string& value) { - _internal_set_dsl(value); - // @@protoc_insertion_point(field_set:milvus.grpc.SearchParam.dsl) -} -inline std::string* SearchParam::mutable_dsl() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParam.dsl) - return _internal_mutable_dsl(); -} -inline const std::string& SearchParam::_internal_dsl() const { - return dsl_.GetNoArena(); -} -inline void SearchParam::_internal_set_dsl(const std::string& value) { - - dsl_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void SearchParam::set_dsl(std::string&& value) { - - dsl_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.SearchParam.dsl) -} -inline void SearchParam::set_dsl(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - dsl_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchParam.dsl) -} -inline void SearchParam::set_dsl(const char* value, size_t size) { - - dsl_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchParam.dsl) -} -inline std::string* SearchParam::_internal_mutable_dsl() { - - return dsl_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* SearchParam::release_dsl() { - // @@protoc_insertion_point(field_release:milvus.grpc.SearchParam.dsl) - - return dsl_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void SearchParam::set_allocated_dsl(std::string* dsl) { - if (dsl != nullptr) { - - } else { - - } - dsl_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), dsl); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchParam.dsl) -} - -// repeated string partition_tag = 4; -inline int SearchParam::_internal_partition_tag_size() const { - return partition_tag_.size(); -} -inline int SearchParam::partition_tag_size() const { - return _internal_partition_tag_size(); -} -inline void SearchParam::clear_partition_tag() { - partition_tag_.Clear(); -} -inline std::string* SearchParam::add_partition_tag() { - // @@protoc_insertion_point(field_add_mutable:milvus.grpc.SearchParam.partition_tag) - return _internal_add_partition_tag(); -} -inline const std::string& SearchParam::_internal_partition_tag(int index) const { - return partition_tag_.Get(index); -} -inline const std::string& SearchParam::partition_tag(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.partition_tag) - return _internal_partition_tag(index); -} -inline std::string* SearchParam::mutable_partition_tag(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParam.partition_tag) - return partition_tag_.Mutable(index); -} -inline void SearchParam::set_partition_tag(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.SearchParam.partition_tag) - partition_tag_.Mutable(index)->assign(value); -} -inline void SearchParam::set_partition_tag(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.SearchParam.partition_tag) - partition_tag_.Mutable(index)->assign(std::move(value)); -} -inline void SearchParam::set_partition_tag(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - partition_tag_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchParam.partition_tag) -} -inline void SearchParam::set_partition_tag(int index, const char* value, size_t size) { - partition_tag_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchParam.partition_tag) -} -inline std::string* SearchParam::_internal_add_partition_tag() { - return partition_tag_.Add(); -} -inline void SearchParam::add_partition_tag(const std::string& value) { - partition_tag_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.grpc.SearchParam.partition_tag) -} -inline void SearchParam::add_partition_tag(std::string&& value) { - partition_tag_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.grpc.SearchParam.partition_tag) -} -inline void SearchParam::add_partition_tag(const char* value) { - GOOGLE_DCHECK(value != nullptr); - partition_tag_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.grpc.SearchParam.partition_tag) -} -inline void SearchParam::add_partition_tag(const char* value, size_t size) { - partition_tag_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.grpc.SearchParam.partition_tag) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -SearchParam::partition_tag() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchParam.partition_tag) - return partition_tag_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -SearchParam::mutable_partition_tag() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchParam.partition_tag) - return &partition_tag_; -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 5; -inline int SearchParam::_internal_extra_params_size() const { - return extra_params_.size(); -} -inline int SearchParam::extra_params_size() const { - return _internal_extra_params_size(); -} -inline void SearchParam::clear_extra_params() { - extra_params_.Clear(); -} -inline ::milvus::grpc::KeyValuePair* SearchParam::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParam.extra_params) - return extra_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -SearchParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchParam.extra_params) - return &extra_params_; -} -inline const ::milvus::grpc::KeyValuePair& SearchParam::_internal_extra_params(int index) const { - return extra_params_.Get(index); -} -inline const ::milvus::grpc::KeyValuePair& SearchParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.extra_params) - return _internal_extra_params(index); -} -inline ::milvus::grpc::KeyValuePair* SearchParam::_internal_add_extra_params() { - return extra_params_.Add(); -} -inline ::milvus::grpc::KeyValuePair* SearchParam::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.SearchParam.extra_params) - return _internal_add_extra_params(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -SearchParam::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchParam.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// SearchInSegmentParam - -// repeated string file_id_array = 1; -inline int SearchInSegmentParam::_internal_file_id_array_size() const { - return file_id_array_.size(); -} -inline int SearchInSegmentParam::file_id_array_size() const { - return _internal_file_id_array_size(); -} -inline void SearchInSegmentParam::clear_file_id_array() { - file_id_array_.Clear(); -} -inline std::string* SearchInSegmentParam::add_file_id_array() { - // @@protoc_insertion_point(field_add_mutable:milvus.grpc.SearchInSegmentParam.file_id_array) - return _internal_add_file_id_array(); -} -inline const std::string& SearchInSegmentParam::_internal_file_id_array(int index) const { - return file_id_array_.Get(index); -} -inline const std::string& SearchInSegmentParam::file_id_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchInSegmentParam.file_id_array) - return _internal_file_id_array(index); -} -inline std::string* SearchInSegmentParam::mutable_file_id_array(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchInSegmentParam.file_id_array) - return file_id_array_.Mutable(index); -} -inline void SearchInSegmentParam::set_file_id_array(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.SearchInSegmentParam.file_id_array) - file_id_array_.Mutable(index)->assign(value); -} -inline void SearchInSegmentParam::set_file_id_array(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.SearchInSegmentParam.file_id_array) - file_id_array_.Mutable(index)->assign(std::move(value)); -} -inline void SearchInSegmentParam::set_file_id_array(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - file_id_array_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchInSegmentParam.file_id_array) -} -inline void SearchInSegmentParam::set_file_id_array(int index, const char* value, size_t size) { - file_id_array_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchInSegmentParam.file_id_array) -} -inline std::string* SearchInSegmentParam::_internal_add_file_id_array() { - return file_id_array_.Add(); -} -inline void SearchInSegmentParam::add_file_id_array(const std::string& value) { - file_id_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.grpc.SearchInSegmentParam.file_id_array) -} -inline void SearchInSegmentParam::add_file_id_array(std::string&& value) { - file_id_array_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.grpc.SearchInSegmentParam.file_id_array) -} -inline void SearchInSegmentParam::add_file_id_array(const char* value) { - GOOGLE_DCHECK(value != nullptr); - file_id_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.grpc.SearchInSegmentParam.file_id_array) -} -inline void SearchInSegmentParam::add_file_id_array(const char* value, size_t size) { - file_id_array_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.grpc.SearchInSegmentParam.file_id_array) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -SearchInSegmentParam::file_id_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchInSegmentParam.file_id_array) - return file_id_array_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -SearchInSegmentParam::mutable_file_id_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchInSegmentParam.file_id_array) - return &file_id_array_; -} - -// .milvus.grpc.SearchParam search_param = 2; -inline bool SearchInSegmentParam::_internal_has_search_param() const { - return this != internal_default_instance() && search_param_ != nullptr; -} -inline bool SearchInSegmentParam::has_search_param() const { - return _internal_has_search_param(); -} -inline void SearchInSegmentParam::clear_search_param() { - if (GetArenaNoVirtual() == nullptr && search_param_ != nullptr) { - delete search_param_; - } - search_param_ = nullptr; -} -inline const ::milvus::grpc::SearchParam& SearchInSegmentParam::_internal_search_param() const { - const ::milvus::grpc::SearchParam* p = search_param_; - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_SearchParam_default_instance_); -} -inline const ::milvus::grpc::SearchParam& SearchInSegmentParam::search_param() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchInSegmentParam.search_param) - return _internal_search_param(); -} -inline ::milvus::grpc::SearchParam* SearchInSegmentParam::release_search_param() { - // @@protoc_insertion_point(field_release:milvus.grpc.SearchInSegmentParam.search_param) - - ::milvus::grpc::SearchParam* temp = search_param_; - search_param_ = nullptr; - return temp; -} -inline ::milvus::grpc::SearchParam* SearchInSegmentParam::_internal_mutable_search_param() { - - if (search_param_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::SearchParam>(GetArenaNoVirtual()); - search_param_ = p; - } - return search_param_; -} -inline ::milvus::grpc::SearchParam* SearchInSegmentParam::mutable_search_param() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchInSegmentParam.search_param) - return _internal_mutable_search_param(); -} -inline void SearchInSegmentParam::set_allocated_search_param(::milvus::grpc::SearchParam* search_param) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete search_param_; - } - if (search_param) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - search_param = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, search_param, submessage_arena); - } - - } else { - - } - search_param_ = search_param; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchInSegmentParam.search_param) -} - -// ------------------------------------------------------------------- - -// Entities - -// .milvus.grpc.Status status = 1; -inline bool Entities::_internal_has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline bool Entities::has_status() const { - return _internal_has_status(); -} -inline const ::milvus::grpc::Status& Entities::_internal_status() const { - const ::milvus::grpc::Status* p = status_; - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Status_default_instance_); -} -inline const ::milvus::grpc::Status& Entities::status() const { - // @@protoc_insertion_point(field_get:milvus.grpc.Entities.status) - return _internal_status(); -} -inline ::milvus::grpc::Status* Entities::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.Entities.status) - - ::milvus::grpc::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::grpc::Status* Entities::_internal_mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); - status_ = p; - } - return status_; -} -inline ::milvus::grpc::Status* Entities::mutable_status() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.Entities.status) - return _internal_mutable_status(); -} -inline void Entities::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Entities.status) -} - -// repeated int64 ids = 2; -inline int Entities::_internal_ids_size() const { - return ids_.size(); -} -inline int Entities::ids_size() const { - return _internal_ids_size(); -} -inline void Entities::clear_ids() { - ids_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 Entities::_internal_ids(int index) const { - return ids_.Get(index); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 Entities::ids(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.Entities.ids) - return _internal_ids(index); -} -inline void Entities::set_ids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { - ids_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.Entities.ids) -} -inline void Entities::_internal_add_ids(::PROTOBUF_NAMESPACE_ID::int64 value) { - ids_.Add(value); -} -inline void Entities::add_ids(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_add_ids(value); - // @@protoc_insertion_point(field_add:milvus.grpc.Entities.ids) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -Entities::_internal_ids() const { - return ids_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -Entities::ids() const { - // @@protoc_insertion_point(field_list:milvus.grpc.Entities.ids) - return _internal_ids(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -Entities::_internal_mutable_ids() { - return &ids_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -Entities::mutable_ids() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Entities.ids) - return _internal_mutable_ids(); -} - -// repeated bool valid_row = 3; -inline int Entities::_internal_valid_row_size() const { - return valid_row_.size(); -} -inline int Entities::valid_row_size() const { - return _internal_valid_row_size(); -} -inline void Entities::clear_valid_row() { - valid_row_.Clear(); -} -inline bool Entities::_internal_valid_row(int index) const { - return valid_row_.Get(index); -} -inline bool Entities::valid_row(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.Entities.valid_row) - return _internal_valid_row(index); -} -inline void Entities::set_valid_row(int index, bool value) { - valid_row_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.Entities.valid_row) -} -inline void Entities::_internal_add_valid_row(bool value) { - valid_row_.Add(value); -} -inline void Entities::add_valid_row(bool value) { - _internal_add_valid_row(value); - // @@protoc_insertion_point(field_add:milvus.grpc.Entities.valid_row) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >& -Entities::_internal_valid_row() const { - return valid_row_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >& -Entities::valid_row() const { - // @@protoc_insertion_point(field_list:milvus.grpc.Entities.valid_row) - return _internal_valid_row(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >* -Entities::_internal_mutable_valid_row() { - return &valid_row_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >* -Entities::mutable_valid_row() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Entities.valid_row) - return _internal_mutable_valid_row(); -} - -// repeated .milvus.grpc.RowData rows_data = 4; -inline int Entities::_internal_rows_data_size() const { - return rows_data_.size(); -} -inline int Entities::rows_data_size() const { - return _internal_rows_data_size(); -} -inline void Entities::clear_rows_data() { - rows_data_.Clear(); -} -inline ::milvus::grpc::RowData* Entities::mutable_rows_data(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.Entities.rows_data) - return rows_data_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowData >* -Entities::mutable_rows_data() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.Entities.rows_data) - return &rows_data_; -} -inline const ::milvus::grpc::RowData& Entities::_internal_rows_data(int index) const { - return rows_data_.Get(index); -} -inline const ::milvus::grpc::RowData& Entities::rows_data(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.Entities.rows_data) - return _internal_rows_data(index); -} -inline ::milvus::grpc::RowData* Entities::_internal_add_rows_data() { - return rows_data_.Add(); -} -inline ::milvus::grpc::RowData* Entities::add_rows_data() { - // @@protoc_insertion_point(field_add:milvus.grpc.Entities.rows_data) - return _internal_add_rows_data(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowData >& -Entities::rows_data() const { - // @@protoc_insertion_point(field_list:milvus.grpc.Entities.rows_data) - return rows_data_; -} - -// ------------------------------------------------------------------- - -// QueryResult - -// .milvus.grpc.Status status = 1; -inline bool QueryResult::_internal_has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline bool QueryResult::has_status() const { - return _internal_has_status(); -} -inline const ::milvus::grpc::Status& QueryResult::_internal_status() const { - const ::milvus::grpc::Status* p = status_; - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Status_default_instance_); -} -inline const ::milvus::grpc::Status& QueryResult::status() const { - // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.status) - return _internal_status(); -} -inline ::milvus::grpc::Status* QueryResult::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.QueryResult.status) - - ::milvus::grpc::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::grpc::Status* QueryResult::_internal_mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); - status_ = p; - } - return status_; -} -inline ::milvus::grpc::Status* QueryResult::mutable_status() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.QueryResult.status) - return _internal_mutable_status(); -} -inline void QueryResult::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.QueryResult.status) -} - -// .milvus.grpc.Entities entities = 2; -inline bool QueryResult::_internal_has_entities() const { - return this != internal_default_instance() && entities_ != nullptr; -} -inline bool QueryResult::has_entities() const { - return _internal_has_entities(); -} -inline void QueryResult::clear_entities() { - if (GetArenaNoVirtual() == nullptr && entities_ != nullptr) { - delete entities_; - } - entities_ = nullptr; -} -inline const ::milvus::grpc::Entities& QueryResult::_internal_entities() const { - const ::milvus::grpc::Entities* p = entities_; - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Entities_default_instance_); -} -inline const ::milvus::grpc::Entities& QueryResult::entities() const { - // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.entities) - return _internal_entities(); -} -inline ::milvus::grpc::Entities* QueryResult::release_entities() { - // @@protoc_insertion_point(field_release:milvus.grpc.QueryResult.entities) - - ::milvus::grpc::Entities* temp = entities_; - entities_ = nullptr; - return temp; -} -inline ::milvus::grpc::Entities* QueryResult::_internal_mutable_entities() { - - if (entities_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Entities>(GetArenaNoVirtual()); - entities_ = p; - } - return entities_; -} -inline ::milvus::grpc::Entities* QueryResult::mutable_entities() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.QueryResult.entities) - return _internal_mutable_entities(); -} -inline void QueryResult::set_allocated_entities(::milvus::grpc::Entities* entities) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete entities_; - } - if (entities) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - entities = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, entities, submessage_arena); - } - - } else { - - } - entities_ = entities; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.QueryResult.entities) -} - -// int64 row_num = 3; -inline void QueryResult::clear_row_num() { - row_num_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 QueryResult::_internal_row_num() const { - return row_num_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 QueryResult::row_num() const { - // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.row_num) - return _internal_row_num(); -} -inline void QueryResult::_internal_set_row_num(::PROTOBUF_NAMESPACE_ID::int64 value) { - - row_num_ = value; -} -inline void QueryResult::set_row_num(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_row_num(value); - // @@protoc_insertion_point(field_set:milvus.grpc.QueryResult.row_num) -} - -// repeated float scores = 4; -inline int QueryResult::_internal_scores_size() const { - return scores_.size(); -} -inline int QueryResult::scores_size() const { - return _internal_scores_size(); -} -inline void QueryResult::clear_scores() { - scores_.Clear(); -} -inline float QueryResult::_internal_scores(int index) const { - return scores_.Get(index); -} -inline float QueryResult::scores(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.scores) - return _internal_scores(index); -} -inline void QueryResult::set_scores(int index, float value) { - scores_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.QueryResult.scores) -} -inline void QueryResult::_internal_add_scores(float value) { - scores_.Add(value); -} -inline void QueryResult::add_scores(float value) { - _internal_add_scores(value); - // @@protoc_insertion_point(field_add:milvus.grpc.QueryResult.scores) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& -QueryResult::_internal_scores() const { - return scores_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& -QueryResult::scores() const { - // @@protoc_insertion_point(field_list:milvus.grpc.QueryResult.scores) - return _internal_scores(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* -QueryResult::_internal_mutable_scores() { - return &scores_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* -QueryResult::mutable_scores() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.QueryResult.scores) - return _internal_mutable_scores(); -} - -// repeated float distances = 5; -inline int QueryResult::_internal_distances_size() const { - return distances_.size(); -} -inline int QueryResult::distances_size() const { - return _internal_distances_size(); -} -inline void QueryResult::clear_distances() { - distances_.Clear(); -} -inline float QueryResult::_internal_distances(int index) const { - return distances_.Get(index); -} -inline float QueryResult::distances(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.distances) - return _internal_distances(index); -} -inline void QueryResult::set_distances(int index, float value) { - distances_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.QueryResult.distances) -} -inline void QueryResult::_internal_add_distances(float value) { - distances_.Add(value); -} -inline void QueryResult::add_distances(float value) { - _internal_add_distances(value); - // @@protoc_insertion_point(field_add:milvus.grpc.QueryResult.distances) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& -QueryResult::_internal_distances() const { - return distances_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& -QueryResult::distances() const { - // @@protoc_insertion_point(field_list:milvus.grpc.QueryResult.distances) - return _internal_distances(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* -QueryResult::_internal_mutable_distances() { - return &distances_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* -QueryResult::mutable_distances() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.QueryResult.distances) - return _internal_mutable_distances(); -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 6; -inline int QueryResult::_internal_extra_params_size() const { - return extra_params_.size(); -} -inline int QueryResult::extra_params_size() const { - return _internal_extra_params_size(); -} -inline void QueryResult::clear_extra_params() { - extra_params_.Clear(); -} -inline ::milvus::grpc::KeyValuePair* QueryResult::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.QueryResult.extra_params) - return extra_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -QueryResult::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.QueryResult.extra_params) - return &extra_params_; -} -inline const ::milvus::grpc::KeyValuePair& QueryResult::_internal_extra_params(int index) const { - return extra_params_.Get(index); -} -inline const ::milvus::grpc::KeyValuePair& QueryResult::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.extra_params) - return _internal_extra_params(index); -} -inline ::milvus::grpc::KeyValuePair* QueryResult::_internal_add_extra_params() { - return extra_params_.Add(); -} -inline ::milvus::grpc::KeyValuePair* QueryResult::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.QueryResult.extra_params) - return _internal_add_extra_params(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -QueryResult::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.QueryResult.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// StringReply - -// .milvus.grpc.Status status = 1; -inline bool StringReply::_internal_has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline bool StringReply::has_status() const { - return _internal_has_status(); -} -inline const ::milvus::grpc::Status& StringReply::_internal_status() const { - const ::milvus::grpc::Status* p = status_; - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Status_default_instance_); -} -inline const ::milvus::grpc::Status& StringReply::status() const { - // @@protoc_insertion_point(field_get:milvus.grpc.StringReply.status) - return _internal_status(); -} -inline ::milvus::grpc::Status* StringReply::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.StringReply.status) - - ::milvus::grpc::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::grpc::Status* StringReply::_internal_mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); - status_ = p; - } - return status_; -} -inline ::milvus::grpc::Status* StringReply::mutable_status() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.StringReply.status) - return _internal_mutable_status(); -} -inline void StringReply::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.StringReply.status) -} - -// string string_reply = 2; -inline void StringReply::clear_string_reply() { - string_reply_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& StringReply::string_reply() const { - // @@protoc_insertion_point(field_get:milvus.grpc.StringReply.string_reply) - return _internal_string_reply(); -} -inline void StringReply::set_string_reply(const std::string& value) { - _internal_set_string_reply(value); - // @@protoc_insertion_point(field_set:milvus.grpc.StringReply.string_reply) -} -inline std::string* StringReply::mutable_string_reply() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.StringReply.string_reply) - return _internal_mutable_string_reply(); -} -inline const std::string& StringReply::_internal_string_reply() const { - return string_reply_.GetNoArena(); -} -inline void StringReply::_internal_set_string_reply(const std::string& value) { - - string_reply_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void StringReply::set_string_reply(std::string&& value) { - - string_reply_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.StringReply.string_reply) -} -inline void StringReply::set_string_reply(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - string_reply_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.StringReply.string_reply) -} -inline void StringReply::set_string_reply(const char* value, size_t size) { - - string_reply_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.StringReply.string_reply) -} -inline std::string* StringReply::_internal_mutable_string_reply() { - - return string_reply_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* StringReply::release_string_reply() { - // @@protoc_insertion_point(field_release:milvus.grpc.StringReply.string_reply) - - return string_reply_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void StringReply::set_allocated_string_reply(std::string* string_reply) { - if (string_reply != nullptr) { - - } else { - - } - string_reply_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), string_reply); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.StringReply.string_reply) -} - -// ------------------------------------------------------------------- - -// BoolReply - -// .milvus.grpc.Status status = 1; -inline bool BoolReply::_internal_has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline bool BoolReply::has_status() const { - return _internal_has_status(); -} -inline const ::milvus::grpc::Status& BoolReply::_internal_status() const { - const ::milvus::grpc::Status* p = status_; - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Status_default_instance_); -} -inline const ::milvus::grpc::Status& BoolReply::status() const { - // @@protoc_insertion_point(field_get:milvus.grpc.BoolReply.status) - return _internal_status(); -} -inline ::milvus::grpc::Status* BoolReply::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.BoolReply.status) - - ::milvus::grpc::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::grpc::Status* BoolReply::_internal_mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); - status_ = p; - } - return status_; -} -inline ::milvus::grpc::Status* BoolReply::mutable_status() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.BoolReply.status) - return _internal_mutable_status(); -} -inline void BoolReply::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.BoolReply.status) -} - -// bool bool_reply = 2; -inline void BoolReply::clear_bool_reply() { - bool_reply_ = false; -} -inline bool BoolReply::_internal_bool_reply() const { - return bool_reply_; -} -inline bool BoolReply::bool_reply() const { - // @@protoc_insertion_point(field_get:milvus.grpc.BoolReply.bool_reply) - return _internal_bool_reply(); -} -inline void BoolReply::_internal_set_bool_reply(bool value) { - - bool_reply_ = value; -} -inline void BoolReply::set_bool_reply(bool value) { - _internal_set_bool_reply(value); - // @@protoc_insertion_point(field_set:milvus.grpc.BoolReply.bool_reply) -} - -// ------------------------------------------------------------------- - -// CollectionRowCount - -// .milvus.grpc.Status status = 1; -inline bool CollectionRowCount::_internal_has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline bool CollectionRowCount::has_status() const { - return _internal_has_status(); -} -inline const ::milvus::grpc::Status& CollectionRowCount::_internal_status() const { - const ::milvus::grpc::Status* p = status_; - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Status_default_instance_); -} -inline const ::milvus::grpc::Status& CollectionRowCount::status() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CollectionRowCount.status) - return _internal_status(); -} -inline ::milvus::grpc::Status* CollectionRowCount::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.CollectionRowCount.status) - - ::milvus::grpc::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::grpc::Status* CollectionRowCount::_internal_mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); - status_ = p; - } - return status_; -} -inline ::milvus::grpc::Status* CollectionRowCount::mutable_status() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionRowCount.status) - return _internal_mutable_status(); -} -inline void CollectionRowCount::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CollectionRowCount.status) -} - -// int64 collection_row_count = 2; -inline void CollectionRowCount::clear_collection_row_count() { - collection_row_count_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 CollectionRowCount::_internal_collection_row_count() const { - return collection_row_count_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 CollectionRowCount::collection_row_count() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CollectionRowCount.collection_row_count) - return _internal_collection_row_count(); -} -inline void CollectionRowCount::_internal_set_collection_row_count(::PROTOBUF_NAMESPACE_ID::int64 value) { - - collection_row_count_ = value; -} -inline void CollectionRowCount::set_collection_row_count(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_collection_row_count(value); - // @@protoc_insertion_point(field_set:milvus.grpc.CollectionRowCount.collection_row_count) -} - -// ------------------------------------------------------------------- - -// Command - -// string cmd = 1; -inline void Command::clear_cmd() { - cmd_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& Command::cmd() const { - // @@protoc_insertion_point(field_get:milvus.grpc.Command.cmd) - return _internal_cmd(); -} -inline void Command::set_cmd(const std::string& value) { - _internal_set_cmd(value); - // @@protoc_insertion_point(field_set:milvus.grpc.Command.cmd) -} -inline std::string* Command::mutable_cmd() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.Command.cmd) - return _internal_mutable_cmd(); -} -inline const std::string& Command::_internal_cmd() const { - return cmd_.GetNoArena(); -} -inline void Command::_internal_set_cmd(const std::string& value) { - - cmd_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void Command::set_cmd(std::string&& value) { - - cmd_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.Command.cmd) -} -inline void Command::set_cmd(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - cmd_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.Command.cmd) -} -inline void Command::set_cmd(const char* value, size_t size) { - - cmd_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.Command.cmd) -} -inline std::string* Command::_internal_mutable_cmd() { - - return cmd_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* Command::release_cmd() { - // @@protoc_insertion_point(field_release:milvus.grpc.Command.cmd) - - return cmd_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void Command::set_allocated_cmd(std::string* cmd) { - if (cmd != nullptr) { - - } else { - - } - cmd_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), cmd); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Command.cmd) -} - -// ------------------------------------------------------------------- - -// IndexParam - -// .milvus.grpc.Status status = 1; -inline bool IndexParam::_internal_has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline bool IndexParam::has_status() const { - return _internal_has_status(); -} -inline const ::milvus::grpc::Status& IndexParam::_internal_status() const { - const ::milvus::grpc::Status* p = status_; - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Status_default_instance_); -} -inline const ::milvus::grpc::Status& IndexParam::status() const { - // @@protoc_insertion_point(field_get:milvus.grpc.IndexParam.status) - return _internal_status(); -} -inline ::milvus::grpc::Status* IndexParam::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.IndexParam.status) - - ::milvus::grpc::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::grpc::Status* IndexParam::_internal_mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); - status_ = p; - } - return status_; -} -inline ::milvus::grpc::Status* IndexParam::mutable_status() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.IndexParam.status) - return _internal_mutable_status(); -} -inline void IndexParam::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.IndexParam.status) -} - -// string collection_name = 2; -inline void IndexParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& IndexParam::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.IndexParam.collection_name) - return _internal_collection_name(); -} -inline void IndexParam::set_collection_name(const std::string& value) { - _internal_set_collection_name(value); - // @@protoc_insertion_point(field_set:milvus.grpc.IndexParam.collection_name) -} -inline std::string* IndexParam::mutable_collection_name() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.IndexParam.collection_name) - return _internal_mutable_collection_name(); -} -inline const std::string& IndexParam::_internal_collection_name() const { - return collection_name_.GetNoArena(); -} -inline void IndexParam::_internal_set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void IndexParam::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.IndexParam.collection_name) -} -inline void IndexParam::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.IndexParam.collection_name) -} -inline void IndexParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.IndexParam.collection_name) -} -inline std::string* IndexParam::_internal_mutable_collection_name() { - - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* IndexParam::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.IndexParam.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void IndexParam::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.IndexParam.collection_name) -} - -// string field_name = 3; -inline void IndexParam::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& IndexParam::field_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.IndexParam.field_name) - return _internal_field_name(); -} -inline void IndexParam::set_field_name(const std::string& value) { - _internal_set_field_name(value); - // @@protoc_insertion_point(field_set:milvus.grpc.IndexParam.field_name) -} -inline std::string* IndexParam::mutable_field_name() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.IndexParam.field_name) - return _internal_mutable_field_name(); -} -inline const std::string& IndexParam::_internal_field_name() const { - return field_name_.GetNoArena(); -} -inline void IndexParam::_internal_set_field_name(const std::string& value) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void IndexParam::set_field_name(std::string&& value) { - - field_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.IndexParam.field_name) -} -inline void IndexParam::set_field_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.IndexParam.field_name) -} -inline void IndexParam::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.IndexParam.field_name) -} -inline std::string* IndexParam::_internal_mutable_field_name() { - - return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* IndexParam::release_field_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.IndexParam.field_name) - - return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void IndexParam::set_allocated_field_name(std::string* field_name) { - if (field_name != nullptr) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.IndexParam.field_name) -} - -// string index_name = 4; -inline void IndexParam::clear_index_name() { - index_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& IndexParam::index_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.IndexParam.index_name) - return _internal_index_name(); -} -inline void IndexParam::set_index_name(const std::string& value) { - _internal_set_index_name(value); - // @@protoc_insertion_point(field_set:milvus.grpc.IndexParam.index_name) -} -inline std::string* IndexParam::mutable_index_name() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.IndexParam.index_name) - return _internal_mutable_index_name(); -} -inline const std::string& IndexParam::_internal_index_name() const { - return index_name_.GetNoArena(); -} -inline void IndexParam::_internal_set_index_name(const std::string& value) { - - index_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void IndexParam::set_index_name(std::string&& value) { - - index_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.IndexParam.index_name) -} -inline void IndexParam::set_index_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - index_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.IndexParam.index_name) -} -inline void IndexParam::set_index_name(const char* value, size_t size) { - - index_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.IndexParam.index_name) -} -inline std::string* IndexParam::_internal_mutable_index_name() { - - return index_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* IndexParam::release_index_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.IndexParam.index_name) - - return index_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void IndexParam::set_allocated_index_name(std::string* index_name) { - if (index_name != nullptr) { - - } else { - - } - index_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), index_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.IndexParam.index_name) -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 5; -inline int IndexParam::_internal_extra_params_size() const { - return extra_params_.size(); -} -inline int IndexParam::extra_params_size() const { - return _internal_extra_params_size(); -} -inline void IndexParam::clear_extra_params() { - extra_params_.Clear(); -} -inline ::milvus::grpc::KeyValuePair* IndexParam::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.IndexParam.extra_params) - return extra_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -IndexParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.IndexParam.extra_params) - return &extra_params_; -} -inline const ::milvus::grpc::KeyValuePair& IndexParam::_internal_extra_params(int index) const { - return extra_params_.Get(index); -} -inline const ::milvus::grpc::KeyValuePair& IndexParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.IndexParam.extra_params) - return _internal_extra_params(index); -} -inline ::milvus::grpc::KeyValuePair* IndexParam::_internal_add_extra_params() { - return extra_params_.Add(); -} -inline ::milvus::grpc::KeyValuePair* IndexParam::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.IndexParam.extra_params) - return _internal_add_extra_params(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -IndexParam::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.IndexParam.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// FlushParam - -// repeated string collection_name_array = 1; -inline int FlushParam::_internal_collection_name_array_size() const { - return collection_name_array_.size(); -} -inline int FlushParam::collection_name_array_size() const { - return _internal_collection_name_array_size(); -} -inline void FlushParam::clear_collection_name_array() { - collection_name_array_.Clear(); -} -inline std::string* FlushParam::add_collection_name_array() { - // @@protoc_insertion_point(field_add_mutable:milvus.grpc.FlushParam.collection_name_array) - return _internal_add_collection_name_array(); -} -inline const std::string& FlushParam::_internal_collection_name_array(int index) const { - return collection_name_array_.Get(index); -} -inline const std::string& FlushParam::collection_name_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.FlushParam.collection_name_array) - return _internal_collection_name_array(index); -} -inline std::string* FlushParam::mutable_collection_name_array(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.FlushParam.collection_name_array) - return collection_name_array_.Mutable(index); -} -inline void FlushParam::set_collection_name_array(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.FlushParam.collection_name_array) - collection_name_array_.Mutable(index)->assign(value); -} -inline void FlushParam::set_collection_name_array(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.FlushParam.collection_name_array) - collection_name_array_.Mutable(index)->assign(std::move(value)); -} -inline void FlushParam::set_collection_name_array(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - collection_name_array_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.grpc.FlushParam.collection_name_array) -} -inline void FlushParam::set_collection_name_array(int index, const char* value, size_t size) { - collection_name_array_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.FlushParam.collection_name_array) -} -inline std::string* FlushParam::_internal_add_collection_name_array() { - return collection_name_array_.Add(); -} -inline void FlushParam::add_collection_name_array(const std::string& value) { - collection_name_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.grpc.FlushParam.collection_name_array) -} -inline void FlushParam::add_collection_name_array(std::string&& value) { - collection_name_array_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.grpc.FlushParam.collection_name_array) -} -inline void FlushParam::add_collection_name_array(const char* value) { - GOOGLE_DCHECK(value != nullptr); - collection_name_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.grpc.FlushParam.collection_name_array) -} -inline void FlushParam::add_collection_name_array(const char* value, size_t size) { - collection_name_array_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.grpc.FlushParam.collection_name_array) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -FlushParam::collection_name_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.FlushParam.collection_name_array) - return collection_name_array_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -FlushParam::mutable_collection_name_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.FlushParam.collection_name_array) - return &collection_name_array_; -} - -// ------------------------------------------------------------------- - -// CompactParam - -// string collection_name = 1; -inline void CompactParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& CompactParam::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CompactParam.collection_name) - return _internal_collection_name(); -} -inline void CompactParam::set_collection_name(const std::string& value) { - _internal_set_collection_name(value); - // @@protoc_insertion_point(field_set:milvus.grpc.CompactParam.collection_name) -} -inline std::string* CompactParam::mutable_collection_name() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.CompactParam.collection_name) - return _internal_mutable_collection_name(); -} -inline const std::string& CompactParam::_internal_collection_name() const { - return collection_name_.GetNoArena(); -} -inline void CompactParam::_internal_set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void CompactParam::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.CompactParam.collection_name) -} -inline void CompactParam::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.CompactParam.collection_name) -} -inline void CompactParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.CompactParam.collection_name) -} -inline std::string* CompactParam::_internal_mutable_collection_name() { - - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* CompactParam::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.CompactParam.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void CompactParam::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CompactParam.collection_name) -} - -// double threshold = 2; -inline void CompactParam::clear_threshold() { - threshold_ = 0; -} -inline double CompactParam::_internal_threshold() const { - return threshold_; -} -inline double CompactParam::threshold() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CompactParam.threshold) - return _internal_threshold(); -} -inline void CompactParam::_internal_set_threshold(double value) { - - threshold_ = value; -} -inline void CompactParam::set_threshold(double value) { - _internal_set_threshold(value); - // @@protoc_insertion_point(field_set:milvus.grpc.CompactParam.threshold) -} - -// ------------------------------------------------------------------- - -// DeleteByIDParam - -// string collection_name = 1; -inline void DeleteByIDParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& DeleteByIDParam::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.DeleteByIDParam.collection_name) - return _internal_collection_name(); -} -inline void DeleteByIDParam::set_collection_name(const std::string& value) { - _internal_set_collection_name(value); - // @@protoc_insertion_point(field_set:milvus.grpc.DeleteByIDParam.collection_name) -} -inline std::string* DeleteByIDParam::mutable_collection_name() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.DeleteByIDParam.collection_name) - return _internal_mutable_collection_name(); -} -inline const std::string& DeleteByIDParam::_internal_collection_name() const { - return collection_name_.GetNoArena(); -} -inline void DeleteByIDParam::_internal_set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void DeleteByIDParam::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.DeleteByIDParam.collection_name) -} -inline void DeleteByIDParam::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.DeleteByIDParam.collection_name) -} -inline void DeleteByIDParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.DeleteByIDParam.collection_name) -} -inline std::string* DeleteByIDParam::_internal_mutable_collection_name() { - - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* DeleteByIDParam::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.DeleteByIDParam.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void DeleteByIDParam::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.DeleteByIDParam.collection_name) -} - -// repeated int64 id_array = 2; -inline int DeleteByIDParam::_internal_id_array_size() const { - return id_array_.size(); -} -inline int DeleteByIDParam::id_array_size() const { - return _internal_id_array_size(); -} -inline void DeleteByIDParam::clear_id_array() { - id_array_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 DeleteByIDParam::_internal_id_array(int index) const { - return id_array_.Get(index); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 DeleteByIDParam::id_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.DeleteByIDParam.id_array) - return _internal_id_array(index); -} -inline void DeleteByIDParam::set_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { - id_array_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.DeleteByIDParam.id_array) -} -inline void DeleteByIDParam::_internal_add_id_array(::PROTOBUF_NAMESPACE_ID::int64 value) { - id_array_.Add(value); -} -inline void DeleteByIDParam::add_id_array(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_add_id_array(value); - // @@protoc_insertion_point(field_add:milvus.grpc.DeleteByIDParam.id_array) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -DeleteByIDParam::_internal_id_array() const { - return id_array_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -DeleteByIDParam::id_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.DeleteByIDParam.id_array) - return _internal_id_array(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -DeleteByIDParam::_internal_mutable_id_array() { - return &id_array_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -DeleteByIDParam::mutable_id_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.DeleteByIDParam.id_array) - return _internal_mutable_id_array(); -} - -// ------------------------------------------------------------------- - -// CollectionInfo - -// .milvus.grpc.Status status = 1; -inline bool CollectionInfo::_internal_has_status() const { - return this != internal_default_instance() && status_ != nullptr; -} -inline bool CollectionInfo::has_status() const { - return _internal_has_status(); -} -inline const ::milvus::grpc::Status& CollectionInfo::_internal_status() const { - const ::milvus::grpc::Status* p = status_; - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Status_default_instance_); -} -inline const ::milvus::grpc::Status& CollectionInfo::status() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CollectionInfo.status) - return _internal_status(); -} -inline ::milvus::grpc::Status* CollectionInfo::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.CollectionInfo.status) - - ::milvus::grpc::Status* temp = status_; - status_ = nullptr; - return temp; -} -inline ::milvus::grpc::Status* CollectionInfo::_internal_mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); - status_ = p; - } - return status_; -} -inline ::milvus::grpc::Status* CollectionInfo::mutable_status() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionInfo.status) - return _internal_mutable_status(); -} -inline void CollectionInfo::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CollectionInfo.status) -} - -// string json_info = 2; -inline void CollectionInfo::clear_json_info() { - json_info_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& CollectionInfo::json_info() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CollectionInfo.json_info) - return _internal_json_info(); -} -inline void CollectionInfo::set_json_info(const std::string& value) { - _internal_set_json_info(value); - // @@protoc_insertion_point(field_set:milvus.grpc.CollectionInfo.json_info) -} -inline std::string* CollectionInfo::mutable_json_info() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.CollectionInfo.json_info) - return _internal_mutable_json_info(); -} -inline const std::string& CollectionInfo::_internal_json_info() const { - return json_info_.GetNoArena(); -} -inline void CollectionInfo::_internal_set_json_info(const std::string& value) { - - json_info_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void CollectionInfo::set_json_info(std::string&& value) { - - json_info_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.CollectionInfo.json_info) -} -inline void CollectionInfo::set_json_info(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - json_info_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.CollectionInfo.json_info) -} -inline void CollectionInfo::set_json_info(const char* value, size_t size) { - - json_info_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.CollectionInfo.json_info) -} -inline std::string* CollectionInfo::_internal_mutable_json_info() { - - return json_info_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* CollectionInfo::release_json_info() { - // @@protoc_insertion_point(field_release:milvus.grpc.CollectionInfo.json_info) - - return json_info_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void CollectionInfo::set_allocated_json_info(std::string* json_info) { - if (json_info != nullptr) { - - } else { - - } - json_info_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), json_info); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CollectionInfo.json_info) -} - -// ------------------------------------------------------------------- - -// GetEntityIDsParam - -// string collection_name = 1; -inline void GetEntityIDsParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GetEntityIDsParam::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.GetEntityIDsParam.collection_name) - return _internal_collection_name(); -} -inline void GetEntityIDsParam::set_collection_name(const std::string& value) { - _internal_set_collection_name(value); - // @@protoc_insertion_point(field_set:milvus.grpc.GetEntityIDsParam.collection_name) -} -inline std::string* GetEntityIDsParam::mutable_collection_name() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.GetEntityIDsParam.collection_name) - return _internal_mutable_collection_name(); -} -inline const std::string& GetEntityIDsParam::_internal_collection_name() const { - return collection_name_.GetNoArena(); -} -inline void GetEntityIDsParam::_internal_set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void GetEntityIDsParam::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.GetEntityIDsParam.collection_name) -} -inline void GetEntityIDsParam::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.GetEntityIDsParam.collection_name) -} -inline void GetEntityIDsParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.GetEntityIDsParam.collection_name) -} -inline std::string* GetEntityIDsParam::_internal_mutable_collection_name() { - - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GetEntityIDsParam::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.GetEntityIDsParam.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GetEntityIDsParam::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GetEntityIDsParam.collection_name) -} - -// int64 segment_id = 2; -inline void GetEntityIDsParam::clear_segment_id() { - segment_id_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 GetEntityIDsParam::_internal_segment_id() const { - return segment_id_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 GetEntityIDsParam::segment_id() const { - // @@protoc_insertion_point(field_get:milvus.grpc.GetEntityIDsParam.segment_id) - return _internal_segment_id(); -} -inline void GetEntityIDsParam::_internal_set_segment_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - - segment_id_ = value; -} -inline void GetEntityIDsParam::set_segment_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_segment_id(value); - // @@protoc_insertion_point(field_set:milvus.grpc.GetEntityIDsParam.segment_id) -} - -// ------------------------------------------------------------------- - -// EntityIdentity - -// string collection_name = 1; -inline void EntityIdentity::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& EntityIdentity::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.EntityIdentity.collection_name) - return _internal_collection_name(); -} -inline void EntityIdentity::set_collection_name(const std::string& value) { - _internal_set_collection_name(value); - // @@protoc_insertion_point(field_set:milvus.grpc.EntityIdentity.collection_name) -} -inline std::string* EntityIdentity::mutable_collection_name() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.EntityIdentity.collection_name) - return _internal_mutable_collection_name(); -} -inline const std::string& EntityIdentity::_internal_collection_name() const { - return collection_name_.GetNoArena(); -} -inline void EntityIdentity::_internal_set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void EntityIdentity::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.EntityIdentity.collection_name) -} -inline void EntityIdentity::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.EntityIdentity.collection_name) -} -inline void EntityIdentity::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.EntityIdentity.collection_name) -} -inline std::string* EntityIdentity::_internal_mutable_collection_name() { - - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* EntityIdentity::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.EntityIdentity.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void EntityIdentity::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.EntityIdentity.collection_name) -} - -// repeated int64 id_array = 2; -inline int EntityIdentity::_internal_id_array_size() const { - return id_array_.size(); -} -inline int EntityIdentity::id_array_size() const { - return _internal_id_array_size(); -} -inline void EntityIdentity::clear_id_array() { - id_array_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 EntityIdentity::_internal_id_array(int index) const { - return id_array_.Get(index); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 EntityIdentity::id_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.EntityIdentity.id_array) - return _internal_id_array(index); -} -inline void EntityIdentity::set_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { - id_array_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.EntityIdentity.id_array) -} -inline void EntityIdentity::_internal_add_id_array(::PROTOBUF_NAMESPACE_ID::int64 value) { - id_array_.Add(value); -} -inline void EntityIdentity::add_id_array(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_add_id_array(value); - // @@protoc_insertion_point(field_add:milvus.grpc.EntityIdentity.id_array) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -EntityIdentity::_internal_id_array() const { - return id_array_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -EntityIdentity::id_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.EntityIdentity.id_array) - return _internal_id_array(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -EntityIdentity::_internal_mutable_id_array() { - return &id_array_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -EntityIdentity::mutable_id_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.EntityIdentity.id_array) - return _internal_mutable_id_array(); -} - -// repeated string field_names = 3; -inline int EntityIdentity::_internal_field_names_size() const { - return field_names_.size(); -} -inline int EntityIdentity::field_names_size() const { - return _internal_field_names_size(); -} -inline void EntityIdentity::clear_field_names() { - field_names_.Clear(); -} -inline std::string* EntityIdentity::add_field_names() { - // @@protoc_insertion_point(field_add_mutable:milvus.grpc.EntityIdentity.field_names) - return _internal_add_field_names(); -} -inline const std::string& EntityIdentity::_internal_field_names(int index) const { - return field_names_.Get(index); -} -inline const std::string& EntityIdentity::field_names(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.EntityIdentity.field_names) - return _internal_field_names(index); -} -inline std::string* EntityIdentity::mutable_field_names(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.EntityIdentity.field_names) - return field_names_.Mutable(index); -} -inline void EntityIdentity::set_field_names(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.EntityIdentity.field_names) - field_names_.Mutable(index)->assign(value); -} -inline void EntityIdentity::set_field_names(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.EntityIdentity.field_names) - field_names_.Mutable(index)->assign(std::move(value)); -} -inline void EntityIdentity::set_field_names(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - field_names_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.grpc.EntityIdentity.field_names) -} -inline void EntityIdentity::set_field_names(int index, const char* value, size_t size) { - field_names_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.EntityIdentity.field_names) -} -inline std::string* EntityIdentity::_internal_add_field_names() { - return field_names_.Add(); -} -inline void EntityIdentity::add_field_names(const std::string& value) { - field_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.grpc.EntityIdentity.field_names) -} -inline void EntityIdentity::add_field_names(std::string&& value) { - field_names_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.grpc.EntityIdentity.field_names) -} -inline void EntityIdentity::add_field_names(const char* value) { - GOOGLE_DCHECK(value != nullptr); - field_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.grpc.EntityIdentity.field_names) -} -inline void EntityIdentity::add_field_names(const char* value, size_t size) { - field_names_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.grpc.EntityIdentity.field_names) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -EntityIdentity::field_names() const { - // @@protoc_insertion_point(field_list:milvus.grpc.EntityIdentity.field_names) - return field_names_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -EntityIdentity::mutable_field_names() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.EntityIdentity.field_names) - return &field_names_; -} - -// ------------------------------------------------------------------- - -// VectorFieldParam - -// int64 dimension = 1; -inline void VectorFieldParam::clear_dimension() { - dimension_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 VectorFieldParam::_internal_dimension() const { - return dimension_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 VectorFieldParam::dimension() const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorFieldParam.dimension) - return _internal_dimension(); -} -inline void VectorFieldParam::_internal_set_dimension(::PROTOBUF_NAMESPACE_ID::int64 value) { - - dimension_ = value; -} -inline void VectorFieldParam::set_dimension(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_dimension(value); - // @@protoc_insertion_point(field_set:milvus.grpc.VectorFieldParam.dimension) -} - -// ------------------------------------------------------------------- - -// FieldType - -// .milvus.grpc.DataType data_type = 1; -inline bool FieldType::_internal_has_data_type() const { - return value_case() == kDataType; -} -inline void FieldType::set_has_data_type() { - _oneof_case_[0] = kDataType; -} -inline void FieldType::clear_data_type() { - if (_internal_has_data_type()) { - value_.data_type_ = 0; - clear_has_value(); - } -} -inline ::milvus::grpc::DataType FieldType::_internal_data_type() const { - if (_internal_has_data_type()) { - return static_cast< ::milvus::grpc::DataType >(value_.data_type_); - } - return static_cast< ::milvus::grpc::DataType >(0); -} -inline ::milvus::grpc::DataType FieldType::data_type() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldType.data_type) - return _internal_data_type(); -} -inline void FieldType::_internal_set_data_type(::milvus::grpc::DataType value) { - if (!_internal_has_data_type()) { - clear_value(); - set_has_data_type(); - } - value_.data_type_ = value; -} -inline void FieldType::set_data_type(::milvus::grpc::DataType value) { - // @@protoc_insertion_point(field_set:milvus.grpc.FieldType.data_type) - _internal_set_data_type(value); -} - -// .milvus.grpc.VectorFieldParam vector_param = 2; -inline bool FieldType::_internal_has_vector_param() const { - return value_case() == kVectorParam; -} -inline bool FieldType::has_vector_param() const { - return _internal_has_vector_param(); -} -inline void FieldType::set_has_vector_param() { - _oneof_case_[0] = kVectorParam; -} -inline void FieldType::clear_vector_param() { - if (_internal_has_vector_param()) { - delete value_.vector_param_; - clear_has_value(); - } -} -inline ::milvus::grpc::VectorFieldParam* FieldType::release_vector_param() { - // @@protoc_insertion_point(field_release:milvus.grpc.FieldType.vector_param) - if (_internal_has_vector_param()) { - clear_has_value(); - ::milvus::grpc::VectorFieldParam* temp = value_.vector_param_; - value_.vector_param_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::milvus::grpc::VectorFieldParam& FieldType::_internal_vector_param() const { - return _internal_has_vector_param() - ? *value_.vector_param_ - : *reinterpret_cast< ::milvus::grpc::VectorFieldParam*>(&::milvus::grpc::_VectorFieldParam_default_instance_); -} -inline const ::milvus::grpc::VectorFieldParam& FieldType::vector_param() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldType.vector_param) - return _internal_vector_param(); -} -inline ::milvus::grpc::VectorFieldParam* FieldType::_internal_mutable_vector_param() { - if (!_internal_has_vector_param()) { - clear_value(); - set_has_vector_param(); - value_.vector_param_ = CreateMaybeMessage< ::milvus::grpc::VectorFieldParam >( - GetArenaNoVirtual()); - } - return value_.vector_param_; -} -inline ::milvus::grpc::VectorFieldParam* FieldType::mutable_vector_param() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldType.vector_param) - return _internal_mutable_vector_param(); -} - -inline bool FieldType::has_value() const { - return value_case() != VALUE_NOT_SET; -} -inline void FieldType::clear_has_value() { - _oneof_case_[0] = VALUE_NOT_SET; -} -inline FieldType::ValueCase FieldType::value_case() const { - return FieldType::ValueCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// FieldParam - -// uint64 id = 1; -inline void FieldParam::clear_id() { - id_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 FieldParam::_internal_id() const { - return id_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 FieldParam::id() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldParam.id) - return _internal_id(); -} -inline void FieldParam::_internal_set_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - id_ = value; -} -inline void FieldParam::set_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_id(value); - // @@protoc_insertion_point(field_set:milvus.grpc.FieldParam.id) -} - -// string name = 2; -inline void FieldParam::clear_name() { - name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& FieldParam::name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldParam.name) - return _internal_name(); -} -inline void FieldParam::set_name(const std::string& value) { - _internal_set_name(value); - // @@protoc_insertion_point(field_set:milvus.grpc.FieldParam.name) -} -inline std::string* FieldParam::mutable_name() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldParam.name) - return _internal_mutable_name(); -} -inline const std::string& FieldParam::_internal_name() const { - return name_.GetNoArena(); -} -inline void FieldParam::_internal_set_name(const std::string& value) { - - name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void FieldParam::set_name(std::string&& value) { - - name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.FieldParam.name) -} -inline void FieldParam::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.FieldParam.name) -} -inline void FieldParam::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.FieldParam.name) -} -inline std::string* FieldParam::_internal_mutable_name() { - - return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* FieldParam::release_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.FieldParam.name) - - return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void FieldParam::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.FieldParam.name) -} - -// .milvus.grpc.DataType type = 3; -inline void FieldParam::clear_type() { - type_ = 0; -} -inline ::milvus::grpc::DataType FieldParam::_internal_type() const { - return static_cast< ::milvus::grpc::DataType >(type_); -} -inline ::milvus::grpc::DataType FieldParam::type() const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldParam.type) - return _internal_type(); -} -inline void FieldParam::_internal_set_type(::milvus::grpc::DataType value) { - - type_ = value; -} -inline void FieldParam::set_type(::milvus::grpc::DataType value) { - _internal_set_type(value); - // @@protoc_insertion_point(field_set:milvus.grpc.FieldParam.type) -} - -// repeated .milvus.grpc.KeyValuePair index_params = 4; -inline int FieldParam::_internal_index_params_size() const { - return index_params_.size(); -} -inline int FieldParam::index_params_size() const { - return _internal_index_params_size(); -} -inline void FieldParam::clear_index_params() { - index_params_.Clear(); -} -inline ::milvus::grpc::KeyValuePair* FieldParam::mutable_index_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldParam.index_params) - return index_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -FieldParam::mutable_index_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.FieldParam.index_params) - return &index_params_; -} -inline const ::milvus::grpc::KeyValuePair& FieldParam::_internal_index_params(int index) const { - return index_params_.Get(index); -} -inline const ::milvus::grpc::KeyValuePair& FieldParam::index_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldParam.index_params) - return _internal_index_params(index); -} -inline ::milvus::grpc::KeyValuePair* FieldParam::_internal_add_index_params() { - return index_params_.Add(); -} -inline ::milvus::grpc::KeyValuePair* FieldParam::add_index_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.FieldParam.index_params) - return _internal_add_index_params(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -FieldParam::index_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.FieldParam.index_params) - return index_params_; -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 5; -inline int FieldParam::_internal_extra_params_size() const { - return extra_params_.size(); -} -inline int FieldParam::extra_params_size() const { - return _internal_extra_params_size(); -} -inline void FieldParam::clear_extra_params() { - extra_params_.Clear(); -} -inline ::milvus::grpc::KeyValuePair* FieldParam::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldParam.extra_params) - return extra_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -FieldParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.FieldParam.extra_params) - return &extra_params_; -} -inline const ::milvus::grpc::KeyValuePair& FieldParam::_internal_extra_params(int index) const { - return extra_params_.Get(index); -} -inline const ::milvus::grpc::KeyValuePair& FieldParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.FieldParam.extra_params) - return _internal_extra_params(index); -} -inline ::milvus::grpc::KeyValuePair* FieldParam::_internal_add_extra_params() { - return extra_params_.Add(); -} -inline ::milvus::grpc::KeyValuePair* FieldParam::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.FieldParam.extra_params) - return _internal_add_extra_params(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -FieldParam::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.FieldParam.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// VectorFieldRecord - -// repeated .milvus.grpc.VectorRowRecord value = 1; -inline int VectorFieldRecord::_internal_value_size() const { - return value_.size(); -} -inline int VectorFieldRecord::value_size() const { - return _internal_value_size(); -} -inline void VectorFieldRecord::clear_value() { - value_.Clear(); -} -inline ::milvus::grpc::VectorRowRecord* VectorFieldRecord::mutable_value(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorFieldRecord.value) - return value_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* -VectorFieldRecord::mutable_value() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorFieldRecord.value) - return &value_; -} -inline const ::milvus::grpc::VectorRowRecord& VectorFieldRecord::_internal_value(int index) const { - return value_.Get(index); -} -inline const ::milvus::grpc::VectorRowRecord& VectorFieldRecord::value(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorFieldRecord.value) - return _internal_value(index); -} -inline ::milvus::grpc::VectorRowRecord* VectorFieldRecord::_internal_add_value() { - return value_.Add(); -} -inline ::milvus::grpc::VectorRowRecord* VectorFieldRecord::add_value() { - // @@protoc_insertion_point(field_add:milvus.grpc.VectorFieldRecord.value) - return _internal_add_value(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& -VectorFieldRecord::value() const { - // @@protoc_insertion_point(field_list:milvus.grpc.VectorFieldRecord.value) - return value_; -} - -// ------------------------------------------------------------------- - -// TermQuery - -// string field_name = 1; -inline void TermQuery::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& TermQuery::field_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.TermQuery.field_name) - return _internal_field_name(); -} -inline void TermQuery::set_field_name(const std::string& value) { - _internal_set_field_name(value); - // @@protoc_insertion_point(field_set:milvus.grpc.TermQuery.field_name) -} -inline std::string* TermQuery::mutable_field_name() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.TermQuery.field_name) - return _internal_mutable_field_name(); -} -inline const std::string& TermQuery::_internal_field_name() const { - return field_name_.GetNoArena(); -} -inline void TermQuery::_internal_set_field_name(const std::string& value) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void TermQuery::set_field_name(std::string&& value) { - - field_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.TermQuery.field_name) -} -inline void TermQuery::set_field_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.TermQuery.field_name) -} -inline void TermQuery::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.TermQuery.field_name) -} -inline std::string* TermQuery::_internal_mutable_field_name() { - - return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* TermQuery::release_field_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.TermQuery.field_name) - - return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void TermQuery::set_allocated_field_name(std::string* field_name) { - if (field_name != nullptr) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.TermQuery.field_name) -} - -// repeated int64 int_value = 2; -inline int TermQuery::_internal_int_value_size() const { - return int_value_.size(); -} -inline int TermQuery::int_value_size() const { - return _internal_int_value_size(); -} -inline void TermQuery::clear_int_value() { - int_value_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 TermQuery::_internal_int_value(int index) const { - return int_value_.Get(index); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 TermQuery::int_value(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.TermQuery.int_value) - return _internal_int_value(index); -} -inline void TermQuery::set_int_value(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { - int_value_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.TermQuery.int_value) -} -inline void TermQuery::_internal_add_int_value(::PROTOBUF_NAMESPACE_ID::int64 value) { - int_value_.Add(value); -} -inline void TermQuery::add_int_value(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_add_int_value(value); - // @@protoc_insertion_point(field_add:milvus.grpc.TermQuery.int_value) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -TermQuery::_internal_int_value() const { - return int_value_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -TermQuery::int_value() const { - // @@protoc_insertion_point(field_list:milvus.grpc.TermQuery.int_value) - return _internal_int_value(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -TermQuery::_internal_mutable_int_value() { - return &int_value_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -TermQuery::mutable_int_value() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.TermQuery.int_value) - return _internal_mutable_int_value(); -} - -// repeated double double_value = 3; -inline int TermQuery::_internal_double_value_size() const { - return double_value_.size(); -} -inline int TermQuery::double_value_size() const { - return _internal_double_value_size(); -} -inline void TermQuery::clear_double_value() { - double_value_.Clear(); -} -inline double TermQuery::_internal_double_value(int index) const { - return double_value_.Get(index); -} -inline double TermQuery::double_value(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.TermQuery.double_value) - return _internal_double_value(index); -} -inline void TermQuery::set_double_value(int index, double value) { - double_value_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.TermQuery.double_value) -} -inline void TermQuery::_internal_add_double_value(double value) { - double_value_.Add(value); -} -inline void TermQuery::add_double_value(double value) { - _internal_add_double_value(value); - // @@protoc_insertion_point(field_add:milvus.grpc.TermQuery.double_value) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -TermQuery::_internal_double_value() const { - return double_value_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -TermQuery::double_value() const { - // @@protoc_insertion_point(field_list:milvus.grpc.TermQuery.double_value) - return _internal_double_value(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -TermQuery::_internal_mutable_double_value() { - return &double_value_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -TermQuery::mutable_double_value() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.TermQuery.double_value) - return _internal_mutable_double_value(); -} - -// int64 value_num = 4; -inline void TermQuery::clear_value_num() { - value_num_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 TermQuery::_internal_value_num() const { - return value_num_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 TermQuery::value_num() const { - // @@protoc_insertion_point(field_get:milvus.grpc.TermQuery.value_num) - return _internal_value_num(); -} -inline void TermQuery::_internal_set_value_num(::PROTOBUF_NAMESPACE_ID::int64 value) { - - value_num_ = value; -} -inline void TermQuery::set_value_num(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_value_num(value); - // @@protoc_insertion_point(field_set:milvus.grpc.TermQuery.value_num) -} - -// float boost = 5; -inline void TermQuery::clear_boost() { - boost_ = 0; -} -inline float TermQuery::_internal_boost() const { - return boost_; -} -inline float TermQuery::boost() const { - // @@protoc_insertion_point(field_get:milvus.grpc.TermQuery.boost) - return _internal_boost(); -} -inline void TermQuery::_internal_set_boost(float value) { - - boost_ = value; -} -inline void TermQuery::set_boost(float value) { - _internal_set_boost(value); - // @@protoc_insertion_point(field_set:milvus.grpc.TermQuery.boost) -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 6; -inline int TermQuery::_internal_extra_params_size() const { - return extra_params_.size(); -} -inline int TermQuery::extra_params_size() const { - return _internal_extra_params_size(); -} -inline void TermQuery::clear_extra_params() { - extra_params_.Clear(); -} -inline ::milvus::grpc::KeyValuePair* TermQuery::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.TermQuery.extra_params) - return extra_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -TermQuery::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.TermQuery.extra_params) - return &extra_params_; -} -inline const ::milvus::grpc::KeyValuePair& TermQuery::_internal_extra_params(int index) const { - return extra_params_.Get(index); -} -inline const ::milvus::grpc::KeyValuePair& TermQuery::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.TermQuery.extra_params) - return _internal_extra_params(index); -} -inline ::milvus::grpc::KeyValuePair* TermQuery::_internal_add_extra_params() { - return extra_params_.Add(); -} -inline ::milvus::grpc::KeyValuePair* TermQuery::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.TermQuery.extra_params) - return _internal_add_extra_params(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -TermQuery::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.TermQuery.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// CompareExpr - -// .milvus.grpc.CompareOperator operator = 1; -inline void CompareExpr::clear_operator_() { - operator__ = 0; -} -inline ::milvus::grpc::CompareOperator CompareExpr::_internal_operator_() const { - return static_cast< ::milvus::grpc::CompareOperator >(operator__); -} -inline ::milvus::grpc::CompareOperator CompareExpr::operator_() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CompareExpr.operator) - return _internal_operator_(); -} -inline void CompareExpr::_internal_set_operator_(::milvus::grpc::CompareOperator value) { - - operator__ = value; -} -inline void CompareExpr::set_operator_(::milvus::grpc::CompareOperator value) { - _internal_set_operator_(value); - // @@protoc_insertion_point(field_set:milvus.grpc.CompareExpr.operator) -} - -// string operand = 2; -inline void CompareExpr::clear_operand() { - operand_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& CompareExpr::operand() const { - // @@protoc_insertion_point(field_get:milvus.grpc.CompareExpr.operand) - return _internal_operand(); -} -inline void CompareExpr::set_operand(const std::string& value) { - _internal_set_operand(value); - // @@protoc_insertion_point(field_set:milvus.grpc.CompareExpr.operand) -} -inline std::string* CompareExpr::mutable_operand() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.CompareExpr.operand) - return _internal_mutable_operand(); -} -inline const std::string& CompareExpr::_internal_operand() const { - return operand_.GetNoArena(); -} -inline void CompareExpr::_internal_set_operand(const std::string& value) { - - operand_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void CompareExpr::set_operand(std::string&& value) { - - operand_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.CompareExpr.operand) -} -inline void CompareExpr::set_operand(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - operand_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.CompareExpr.operand) -} -inline void CompareExpr::set_operand(const char* value, size_t size) { - - operand_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.CompareExpr.operand) -} -inline std::string* CompareExpr::_internal_mutable_operand() { - - return operand_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* CompareExpr::release_operand() { - // @@protoc_insertion_point(field_release:milvus.grpc.CompareExpr.operand) - - return operand_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void CompareExpr::set_allocated_operand(std::string* operand) { - if (operand != nullptr) { - - } else { - - } - operand_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), operand); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CompareExpr.operand) -} - -// ------------------------------------------------------------------- - -// RangeQuery - -// string field_name = 1; -inline void RangeQuery::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& RangeQuery::field_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.RangeQuery.field_name) - return _internal_field_name(); -} -inline void RangeQuery::set_field_name(const std::string& value) { - _internal_set_field_name(value); - // @@protoc_insertion_point(field_set:milvus.grpc.RangeQuery.field_name) -} -inline std::string* RangeQuery::mutable_field_name() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.RangeQuery.field_name) - return _internal_mutable_field_name(); -} -inline const std::string& RangeQuery::_internal_field_name() const { - return field_name_.GetNoArena(); -} -inline void RangeQuery::_internal_set_field_name(const std::string& value) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void RangeQuery::set_field_name(std::string&& value) { - - field_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.RangeQuery.field_name) -} -inline void RangeQuery::set_field_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.RangeQuery.field_name) -} -inline void RangeQuery::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.RangeQuery.field_name) -} -inline std::string* RangeQuery::_internal_mutable_field_name() { - - return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* RangeQuery::release_field_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.RangeQuery.field_name) - - return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void RangeQuery::set_allocated_field_name(std::string* field_name) { - if (field_name != nullptr) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.RangeQuery.field_name) -} - -// repeated .milvus.grpc.CompareExpr operand = 2; -inline int RangeQuery::_internal_operand_size() const { - return operand_.size(); -} -inline int RangeQuery::operand_size() const { - return _internal_operand_size(); -} -inline void RangeQuery::clear_operand() { - operand_.Clear(); -} -inline ::milvus::grpc::CompareExpr* RangeQuery::mutable_operand(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.RangeQuery.operand) - return operand_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::CompareExpr >* -RangeQuery::mutable_operand() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.RangeQuery.operand) - return &operand_; -} -inline const ::milvus::grpc::CompareExpr& RangeQuery::_internal_operand(int index) const { - return operand_.Get(index); -} -inline const ::milvus::grpc::CompareExpr& RangeQuery::operand(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.RangeQuery.operand) - return _internal_operand(index); -} -inline ::milvus::grpc::CompareExpr* RangeQuery::_internal_add_operand() { - return operand_.Add(); -} -inline ::milvus::grpc::CompareExpr* RangeQuery::add_operand() { - // @@protoc_insertion_point(field_add:milvus.grpc.RangeQuery.operand) - return _internal_add_operand(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::CompareExpr >& -RangeQuery::operand() const { - // @@protoc_insertion_point(field_list:milvus.grpc.RangeQuery.operand) - return operand_; -} - -// float boost = 3; -inline void RangeQuery::clear_boost() { - boost_ = 0; -} -inline float RangeQuery::_internal_boost() const { - return boost_; -} -inline float RangeQuery::boost() const { - // @@protoc_insertion_point(field_get:milvus.grpc.RangeQuery.boost) - return _internal_boost(); -} -inline void RangeQuery::_internal_set_boost(float value) { - - boost_ = value; -} -inline void RangeQuery::set_boost(float value) { - _internal_set_boost(value); - // @@protoc_insertion_point(field_set:milvus.grpc.RangeQuery.boost) -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 4; -inline int RangeQuery::_internal_extra_params_size() const { - return extra_params_.size(); -} -inline int RangeQuery::extra_params_size() const { - return _internal_extra_params_size(); -} -inline void RangeQuery::clear_extra_params() { - extra_params_.Clear(); -} -inline ::milvus::grpc::KeyValuePair* RangeQuery::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.RangeQuery.extra_params) - return extra_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -RangeQuery::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.RangeQuery.extra_params) - return &extra_params_; -} -inline const ::milvus::grpc::KeyValuePair& RangeQuery::_internal_extra_params(int index) const { - return extra_params_.Get(index); -} -inline const ::milvus::grpc::KeyValuePair& RangeQuery::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.RangeQuery.extra_params) - return _internal_extra_params(index); -} -inline ::milvus::grpc::KeyValuePair* RangeQuery::_internal_add_extra_params() { - return extra_params_.Add(); -} -inline ::milvus::grpc::KeyValuePair* RangeQuery::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.RangeQuery.extra_params) - return _internal_add_extra_params(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -RangeQuery::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.RangeQuery.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// VectorQuery - -// string field_name = 1; -inline void VectorQuery::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& VectorQuery::field_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorQuery.field_name) - return _internal_field_name(); -} -inline void VectorQuery::set_field_name(const std::string& value) { - _internal_set_field_name(value); - // @@protoc_insertion_point(field_set:milvus.grpc.VectorQuery.field_name) -} -inline std::string* VectorQuery::mutable_field_name() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorQuery.field_name) - return _internal_mutable_field_name(); -} -inline const std::string& VectorQuery::_internal_field_name() const { - return field_name_.GetNoArena(); -} -inline void VectorQuery::_internal_set_field_name(const std::string& value) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void VectorQuery::set_field_name(std::string&& value) { - - field_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.VectorQuery.field_name) -} -inline void VectorQuery::set_field_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.VectorQuery.field_name) -} -inline void VectorQuery::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.VectorQuery.field_name) -} -inline std::string* VectorQuery::_internal_mutable_field_name() { - - return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* VectorQuery::release_field_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.VectorQuery.field_name) - - return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void VectorQuery::set_allocated_field_name(std::string* field_name) { - if (field_name != nullptr) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.VectorQuery.field_name) -} - -// float query_boost = 2; -inline void VectorQuery::clear_query_boost() { - query_boost_ = 0; -} -inline float VectorQuery::_internal_query_boost() const { - return query_boost_; -} -inline float VectorQuery::query_boost() const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorQuery.query_boost) - return _internal_query_boost(); -} -inline void VectorQuery::_internal_set_query_boost(float value) { - - query_boost_ = value; -} -inline void VectorQuery::set_query_boost(float value) { - _internal_set_query_boost(value); - // @@protoc_insertion_point(field_set:milvus.grpc.VectorQuery.query_boost) -} - -// repeated .milvus.grpc.VectorRowRecord records = 3; -inline int VectorQuery::_internal_records_size() const { - return records_.size(); -} -inline int VectorQuery::records_size() const { - return _internal_records_size(); -} -inline void VectorQuery::clear_records() { - records_.Clear(); -} -inline ::milvus::grpc::VectorRowRecord* VectorQuery::mutable_records(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorQuery.records) - return records_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >* -VectorQuery::mutable_records() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorQuery.records) - return &records_; -} -inline const ::milvus::grpc::VectorRowRecord& VectorQuery::_internal_records(int index) const { - return records_.Get(index); -} -inline const ::milvus::grpc::VectorRowRecord& VectorQuery::records(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorQuery.records) - return _internal_records(index); -} -inline ::milvus::grpc::VectorRowRecord* VectorQuery::_internal_add_records() { - return records_.Add(); -} -inline ::milvus::grpc::VectorRowRecord* VectorQuery::add_records() { - // @@protoc_insertion_point(field_add:milvus.grpc.VectorQuery.records) - return _internal_add_records(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::VectorRowRecord >& -VectorQuery::records() const { - // @@protoc_insertion_point(field_list:milvus.grpc.VectorQuery.records) - return records_; -} - -// int64 topk = 4; -inline void VectorQuery::clear_topk() { - topk_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 VectorQuery::_internal_topk() const { - return topk_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 VectorQuery::topk() const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorQuery.topk) - return _internal_topk(); -} -inline void VectorQuery::_internal_set_topk(::PROTOBUF_NAMESPACE_ID::int64 value) { - - topk_ = value; -} -inline void VectorQuery::set_topk(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_topk(value); - // @@protoc_insertion_point(field_set:milvus.grpc.VectorQuery.topk) -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 5; -inline int VectorQuery::_internal_extra_params_size() const { - return extra_params_.size(); -} -inline int VectorQuery::extra_params_size() const { - return _internal_extra_params_size(); -} -inline void VectorQuery::clear_extra_params() { - extra_params_.Clear(); -} -inline ::milvus::grpc::KeyValuePair* VectorQuery::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.VectorQuery.extra_params) - return extra_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -VectorQuery::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorQuery.extra_params) - return &extra_params_; -} -inline const ::milvus::grpc::KeyValuePair& VectorQuery::_internal_extra_params(int index) const { - return extra_params_.Get(index); -} -inline const ::milvus::grpc::KeyValuePair& VectorQuery::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.VectorQuery.extra_params) - return _internal_extra_params(index); -} -inline ::milvus::grpc::KeyValuePair* VectorQuery::_internal_add_extra_params() { - return extra_params_.Add(); -} -inline ::milvus::grpc::KeyValuePair* VectorQuery::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.VectorQuery.extra_params) - return _internal_add_extra_params(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -VectorQuery::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.VectorQuery.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// BooleanQuery - -// .milvus.grpc.Occur occur = 1; -inline void BooleanQuery::clear_occur() { - occur_ = 0; -} -inline ::milvus::grpc::Occur BooleanQuery::_internal_occur() const { - return static_cast< ::milvus::grpc::Occur >(occur_); -} -inline ::milvus::grpc::Occur BooleanQuery::occur() const { - // @@protoc_insertion_point(field_get:milvus.grpc.BooleanQuery.occur) - return _internal_occur(); -} -inline void BooleanQuery::_internal_set_occur(::milvus::grpc::Occur value) { - - occur_ = value; -} -inline void BooleanQuery::set_occur(::milvus::grpc::Occur value) { - _internal_set_occur(value); - // @@protoc_insertion_point(field_set:milvus.grpc.BooleanQuery.occur) -} - -// repeated .milvus.grpc.GeneralQuery general_query = 2; -inline int BooleanQuery::_internal_general_query_size() const { - return general_query_.size(); -} -inline int BooleanQuery::general_query_size() const { - return _internal_general_query_size(); -} -inline void BooleanQuery::clear_general_query() { - general_query_.Clear(); -} -inline ::milvus::grpc::GeneralQuery* BooleanQuery::mutable_general_query(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.BooleanQuery.general_query) - return general_query_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::GeneralQuery >* -BooleanQuery::mutable_general_query() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.BooleanQuery.general_query) - return &general_query_; -} -inline const ::milvus::grpc::GeneralQuery& BooleanQuery::_internal_general_query(int index) const { - return general_query_.Get(index); -} -inline const ::milvus::grpc::GeneralQuery& BooleanQuery::general_query(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.BooleanQuery.general_query) - return _internal_general_query(index); -} -inline ::milvus::grpc::GeneralQuery* BooleanQuery::_internal_add_general_query() { - return general_query_.Add(); -} -inline ::milvus::grpc::GeneralQuery* BooleanQuery::add_general_query() { - // @@protoc_insertion_point(field_add:milvus.grpc.BooleanQuery.general_query) - return _internal_add_general_query(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::GeneralQuery >& -BooleanQuery::general_query() const { - // @@protoc_insertion_point(field_list:milvus.grpc.BooleanQuery.general_query) - return general_query_; -} - -// ------------------------------------------------------------------- - -// GeneralQuery - -// .milvus.grpc.BooleanQuery boolean_query = 1; -inline bool GeneralQuery::_internal_has_boolean_query() const { - return query_case() == kBooleanQuery; -} -inline bool GeneralQuery::has_boolean_query() const { - return _internal_has_boolean_query(); -} -inline void GeneralQuery::set_has_boolean_query() { - _oneof_case_[0] = kBooleanQuery; -} -inline void GeneralQuery::clear_boolean_query() { - if (_internal_has_boolean_query()) { - delete query_.boolean_query_; - clear_has_query(); - } -} -inline ::milvus::grpc::BooleanQuery* GeneralQuery::release_boolean_query() { - // @@protoc_insertion_point(field_release:milvus.grpc.GeneralQuery.boolean_query) - if (_internal_has_boolean_query()) { - clear_has_query(); - ::milvus::grpc::BooleanQuery* temp = query_.boolean_query_; - query_.boolean_query_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::milvus::grpc::BooleanQuery& GeneralQuery::_internal_boolean_query() const { - return _internal_has_boolean_query() - ? *query_.boolean_query_ - : *reinterpret_cast< ::milvus::grpc::BooleanQuery*>(&::milvus::grpc::_BooleanQuery_default_instance_); -} -inline const ::milvus::grpc::BooleanQuery& GeneralQuery::boolean_query() const { - // @@protoc_insertion_point(field_get:milvus.grpc.GeneralQuery.boolean_query) - return _internal_boolean_query(); -} -inline ::milvus::grpc::BooleanQuery* GeneralQuery::_internal_mutable_boolean_query() { - if (!_internal_has_boolean_query()) { - clear_query(); - set_has_boolean_query(); - query_.boolean_query_ = CreateMaybeMessage< ::milvus::grpc::BooleanQuery >( - GetArenaNoVirtual()); - } - return query_.boolean_query_; -} -inline ::milvus::grpc::BooleanQuery* GeneralQuery::mutable_boolean_query() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.GeneralQuery.boolean_query) - return _internal_mutable_boolean_query(); -} - -// .milvus.grpc.TermQuery term_query = 2; -inline bool GeneralQuery::_internal_has_term_query() const { - return query_case() == kTermQuery; -} -inline bool GeneralQuery::has_term_query() const { - return _internal_has_term_query(); -} -inline void GeneralQuery::set_has_term_query() { - _oneof_case_[0] = kTermQuery; -} -inline void GeneralQuery::clear_term_query() { - if (_internal_has_term_query()) { - delete query_.term_query_; - clear_has_query(); - } -} -inline ::milvus::grpc::TermQuery* GeneralQuery::release_term_query() { - // @@protoc_insertion_point(field_release:milvus.grpc.GeneralQuery.term_query) - if (_internal_has_term_query()) { - clear_has_query(); - ::milvus::grpc::TermQuery* temp = query_.term_query_; - query_.term_query_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::milvus::grpc::TermQuery& GeneralQuery::_internal_term_query() const { - return _internal_has_term_query() - ? *query_.term_query_ - : *reinterpret_cast< ::milvus::grpc::TermQuery*>(&::milvus::grpc::_TermQuery_default_instance_); -} -inline const ::milvus::grpc::TermQuery& GeneralQuery::term_query() const { - // @@protoc_insertion_point(field_get:milvus.grpc.GeneralQuery.term_query) - return _internal_term_query(); -} -inline ::milvus::grpc::TermQuery* GeneralQuery::_internal_mutable_term_query() { - if (!_internal_has_term_query()) { - clear_query(); - set_has_term_query(); - query_.term_query_ = CreateMaybeMessage< ::milvus::grpc::TermQuery >( - GetArenaNoVirtual()); - } - return query_.term_query_; -} -inline ::milvus::grpc::TermQuery* GeneralQuery::mutable_term_query() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.GeneralQuery.term_query) - return _internal_mutable_term_query(); -} - -// .milvus.grpc.RangeQuery range_query = 3; -inline bool GeneralQuery::_internal_has_range_query() const { - return query_case() == kRangeQuery; -} -inline bool GeneralQuery::has_range_query() const { - return _internal_has_range_query(); -} -inline void GeneralQuery::set_has_range_query() { - _oneof_case_[0] = kRangeQuery; -} -inline void GeneralQuery::clear_range_query() { - if (_internal_has_range_query()) { - delete query_.range_query_; - clear_has_query(); - } -} -inline ::milvus::grpc::RangeQuery* GeneralQuery::release_range_query() { - // @@protoc_insertion_point(field_release:milvus.grpc.GeneralQuery.range_query) - if (_internal_has_range_query()) { - clear_has_query(); - ::milvus::grpc::RangeQuery* temp = query_.range_query_; - query_.range_query_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::milvus::grpc::RangeQuery& GeneralQuery::_internal_range_query() const { - return _internal_has_range_query() - ? *query_.range_query_ - : *reinterpret_cast< ::milvus::grpc::RangeQuery*>(&::milvus::grpc::_RangeQuery_default_instance_); -} -inline const ::milvus::grpc::RangeQuery& GeneralQuery::range_query() const { - // @@protoc_insertion_point(field_get:milvus.grpc.GeneralQuery.range_query) - return _internal_range_query(); -} -inline ::milvus::grpc::RangeQuery* GeneralQuery::_internal_mutable_range_query() { - if (!_internal_has_range_query()) { - clear_query(); - set_has_range_query(); - query_.range_query_ = CreateMaybeMessage< ::milvus::grpc::RangeQuery >( - GetArenaNoVirtual()); - } - return query_.range_query_; -} -inline ::milvus::grpc::RangeQuery* GeneralQuery::mutable_range_query() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.GeneralQuery.range_query) - return _internal_mutable_range_query(); -} - -// .milvus.grpc.VectorQuery vector_query = 4; -inline bool GeneralQuery::_internal_has_vector_query() const { - return query_case() == kVectorQuery; -} -inline bool GeneralQuery::has_vector_query() const { - return _internal_has_vector_query(); -} -inline void GeneralQuery::set_has_vector_query() { - _oneof_case_[0] = kVectorQuery; -} -inline void GeneralQuery::clear_vector_query() { - if (_internal_has_vector_query()) { - delete query_.vector_query_; - clear_has_query(); - } -} -inline ::milvus::grpc::VectorQuery* GeneralQuery::release_vector_query() { - // @@protoc_insertion_point(field_release:milvus.grpc.GeneralQuery.vector_query) - if (_internal_has_vector_query()) { - clear_has_query(); - ::milvus::grpc::VectorQuery* temp = query_.vector_query_; - query_.vector_query_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::milvus::grpc::VectorQuery& GeneralQuery::_internal_vector_query() const { - return _internal_has_vector_query() - ? *query_.vector_query_ - : *reinterpret_cast< ::milvus::grpc::VectorQuery*>(&::milvus::grpc::_VectorQuery_default_instance_); -} -inline const ::milvus::grpc::VectorQuery& GeneralQuery::vector_query() const { - // @@protoc_insertion_point(field_get:milvus.grpc.GeneralQuery.vector_query) - return _internal_vector_query(); -} -inline ::milvus::grpc::VectorQuery* GeneralQuery::_internal_mutable_vector_query() { - if (!_internal_has_vector_query()) { - clear_query(); - set_has_vector_query(); - query_.vector_query_ = CreateMaybeMessage< ::milvus::grpc::VectorQuery >( - GetArenaNoVirtual()); - } - return query_.vector_query_; -} -inline ::milvus::grpc::VectorQuery* GeneralQuery::mutable_vector_query() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.GeneralQuery.vector_query) - return _internal_mutable_vector_query(); -} - -inline bool GeneralQuery::has_query() const { - return query_case() != QUERY_NOT_SET; -} -inline void GeneralQuery::clear_has_query() { - _oneof_case_[0] = QUERY_NOT_SET; -} -inline GeneralQuery::QueryCase GeneralQuery::query_case() const { - return GeneralQuery::QueryCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// SearchParamPB - -// string collection_name = 1; -inline void SearchParamPB::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& SearchParamPB::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParamPB.collection_name) - return _internal_collection_name(); -} -inline void SearchParamPB::set_collection_name(const std::string& value) { - _internal_set_collection_name(value); - // @@protoc_insertion_point(field_set:milvus.grpc.SearchParamPB.collection_name) -} -inline std::string* SearchParamPB::mutable_collection_name() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParamPB.collection_name) - return _internal_mutable_collection_name(); -} -inline const std::string& SearchParamPB::_internal_collection_name() const { - return collection_name_.GetNoArena(); -} -inline void SearchParamPB::_internal_set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void SearchParamPB::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.SearchParamPB.collection_name) -} -inline void SearchParamPB::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchParamPB.collection_name) -} -inline void SearchParamPB::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchParamPB.collection_name) -} -inline std::string* SearchParamPB::_internal_mutable_collection_name() { - - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* SearchParamPB::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.SearchParamPB.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void SearchParamPB::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchParamPB.collection_name) -} - -// repeated string partition_tag_array = 2; -inline int SearchParamPB::_internal_partition_tag_array_size() const { - return partition_tag_array_.size(); -} -inline int SearchParamPB::partition_tag_array_size() const { - return _internal_partition_tag_array_size(); -} -inline void SearchParamPB::clear_partition_tag_array() { - partition_tag_array_.Clear(); -} -inline std::string* SearchParamPB::add_partition_tag_array() { - // @@protoc_insertion_point(field_add_mutable:milvus.grpc.SearchParamPB.partition_tag_array) - return _internal_add_partition_tag_array(); -} -inline const std::string& SearchParamPB::_internal_partition_tag_array(int index) const { - return partition_tag_array_.Get(index); -} -inline const std::string& SearchParamPB::partition_tag_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParamPB.partition_tag_array) - return _internal_partition_tag_array(index); -} -inline std::string* SearchParamPB::mutable_partition_tag_array(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParamPB.partition_tag_array) - return partition_tag_array_.Mutable(index); -} -inline void SearchParamPB::set_partition_tag_array(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.SearchParamPB.partition_tag_array) - partition_tag_array_.Mutable(index)->assign(value); -} -inline void SearchParamPB::set_partition_tag_array(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.SearchParamPB.partition_tag_array) - partition_tag_array_.Mutable(index)->assign(std::move(value)); -} -inline void SearchParamPB::set_partition_tag_array(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - partition_tag_array_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchParamPB.partition_tag_array) -} -inline void SearchParamPB::set_partition_tag_array(int index, const char* value, size_t size) { - partition_tag_array_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchParamPB.partition_tag_array) -} -inline std::string* SearchParamPB::_internal_add_partition_tag_array() { - return partition_tag_array_.Add(); -} -inline void SearchParamPB::add_partition_tag_array(const std::string& value) { - partition_tag_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.grpc.SearchParamPB.partition_tag_array) -} -inline void SearchParamPB::add_partition_tag_array(std::string&& value) { - partition_tag_array_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.grpc.SearchParamPB.partition_tag_array) -} -inline void SearchParamPB::add_partition_tag_array(const char* value) { - GOOGLE_DCHECK(value != nullptr); - partition_tag_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.grpc.SearchParamPB.partition_tag_array) -} -inline void SearchParamPB::add_partition_tag_array(const char* value, size_t size) { - partition_tag_array_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.grpc.SearchParamPB.partition_tag_array) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -SearchParamPB::partition_tag_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchParamPB.partition_tag_array) - return partition_tag_array_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -SearchParamPB::mutable_partition_tag_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchParamPB.partition_tag_array) - return &partition_tag_array_; -} - -// .milvus.grpc.GeneralQuery general_query = 3; -inline bool SearchParamPB::_internal_has_general_query() const { - return this != internal_default_instance() && general_query_ != nullptr; -} -inline bool SearchParamPB::has_general_query() const { - return _internal_has_general_query(); -} -inline void SearchParamPB::clear_general_query() { - if (GetArenaNoVirtual() == nullptr && general_query_ != nullptr) { - delete general_query_; - } - general_query_ = nullptr; -} -inline const ::milvus::grpc::GeneralQuery& SearchParamPB::_internal_general_query() const { - const ::milvus::grpc::GeneralQuery* p = general_query_; - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_GeneralQuery_default_instance_); -} -inline const ::milvus::grpc::GeneralQuery& SearchParamPB::general_query() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParamPB.general_query) - return _internal_general_query(); -} -inline ::milvus::grpc::GeneralQuery* SearchParamPB::release_general_query() { - // @@protoc_insertion_point(field_release:milvus.grpc.SearchParamPB.general_query) - - ::milvus::grpc::GeneralQuery* temp = general_query_; - general_query_ = nullptr; - return temp; -} -inline ::milvus::grpc::GeneralQuery* SearchParamPB::_internal_mutable_general_query() { - - if (general_query_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::GeneralQuery>(GetArenaNoVirtual()); - general_query_ = p; - } - return general_query_; -} -inline ::milvus::grpc::GeneralQuery* SearchParamPB::mutable_general_query() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParamPB.general_query) - return _internal_mutable_general_query(); -} -inline void SearchParamPB::set_allocated_general_query(::milvus::grpc::GeneralQuery* general_query) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete general_query_; - } - if (general_query) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - general_query = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, general_query, submessage_arena); - } - - } else { - - } - general_query_ = general_query; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchParamPB.general_query) -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 4; -inline int SearchParamPB::_internal_extra_params_size() const { - return extra_params_.size(); -} -inline int SearchParamPB::extra_params_size() const { - return _internal_extra_params_size(); -} -inline void SearchParamPB::clear_extra_params() { - extra_params_.Clear(); -} -inline ::milvus::grpc::KeyValuePair* SearchParamPB::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParamPB.extra_params) - return extra_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -SearchParamPB::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchParamPB.extra_params) - return &extra_params_; -} -inline const ::milvus::grpc::KeyValuePair& SearchParamPB::_internal_extra_params(int index) const { - return extra_params_.Get(index); -} -inline const ::milvus::grpc::KeyValuePair& SearchParamPB::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchParamPB.extra_params) - return _internal_extra_params(index); -} -inline ::milvus::grpc::KeyValuePair* SearchParamPB::_internal_add_extra_params() { - return extra_params_.Add(); -} -inline ::milvus::grpc::KeyValuePair* SearchParamPB::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.SearchParamPB.extra_params) - return _internal_add_extra_params(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -SearchParamPB::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchParamPB.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// InsertOrDeleteMsg - -// string collection_name = 1; -inline void InsertOrDeleteMsg::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& InsertOrDeleteMsg::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.collection_name) - return _internal_collection_name(); -} -inline void InsertOrDeleteMsg::set_collection_name(const std::string& value) { - _internal_set_collection_name(value); - // @@protoc_insertion_point(field_set:milvus.grpc.InsertOrDeleteMsg.collection_name) -} -inline std::string* InsertOrDeleteMsg::mutable_collection_name() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertOrDeleteMsg.collection_name) - return _internal_mutable_collection_name(); -} -inline const std::string& InsertOrDeleteMsg::_internal_collection_name() const { - return collection_name_.GetNoArena(); -} -inline void InsertOrDeleteMsg::_internal_set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void InsertOrDeleteMsg::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.InsertOrDeleteMsg.collection_name) -} -inline void InsertOrDeleteMsg::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.InsertOrDeleteMsg.collection_name) -} -inline void InsertOrDeleteMsg::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.InsertOrDeleteMsg.collection_name) -} -inline std::string* InsertOrDeleteMsg::_internal_mutable_collection_name() { - - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* InsertOrDeleteMsg::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.InsertOrDeleteMsg.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void InsertOrDeleteMsg::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.InsertOrDeleteMsg.collection_name) -} - -// .milvus.grpc.RowData rows_data = 2; -inline bool InsertOrDeleteMsg::_internal_has_rows_data() const { - return this != internal_default_instance() && rows_data_ != nullptr; -} -inline bool InsertOrDeleteMsg::has_rows_data() const { - return _internal_has_rows_data(); -} -inline void InsertOrDeleteMsg::clear_rows_data() { - if (GetArenaNoVirtual() == nullptr && rows_data_ != nullptr) { - delete rows_data_; - } - rows_data_ = nullptr; -} -inline const ::milvus::grpc::RowData& InsertOrDeleteMsg::_internal_rows_data() const { - const ::milvus::grpc::RowData* p = rows_data_; - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_RowData_default_instance_); -} -inline const ::milvus::grpc::RowData& InsertOrDeleteMsg::rows_data() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.rows_data) - return _internal_rows_data(); -} -inline ::milvus::grpc::RowData* InsertOrDeleteMsg::release_rows_data() { - // @@protoc_insertion_point(field_release:milvus.grpc.InsertOrDeleteMsg.rows_data) - - ::milvus::grpc::RowData* temp = rows_data_; - rows_data_ = nullptr; - return temp; -} -inline ::milvus::grpc::RowData* InsertOrDeleteMsg::_internal_mutable_rows_data() { - - if (rows_data_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::RowData>(GetArenaNoVirtual()); - rows_data_ = p; - } - return rows_data_; -} -inline ::milvus::grpc::RowData* InsertOrDeleteMsg::mutable_rows_data() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertOrDeleteMsg.rows_data) - return _internal_mutable_rows_data(); -} -inline void InsertOrDeleteMsg::set_allocated_rows_data(::milvus::grpc::RowData* rows_data) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete rows_data_; - } - if (rows_data) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - rows_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, rows_data, submessage_arena); - } - - } else { - - } - rows_data_ = rows_data; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.InsertOrDeleteMsg.rows_data) -} - -// int64 uid = 3; -inline void InsertOrDeleteMsg::clear_uid() { - uid_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 InsertOrDeleteMsg::_internal_uid() const { - return uid_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 InsertOrDeleteMsg::uid() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.uid) - return _internal_uid(); -} -inline void InsertOrDeleteMsg::_internal_set_uid(::PROTOBUF_NAMESPACE_ID::int64 value) { - - uid_ = value; -} -inline void InsertOrDeleteMsg::set_uid(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_uid(value); - // @@protoc_insertion_point(field_set:milvus.grpc.InsertOrDeleteMsg.uid) -} - -// string partition_tag = 4; -inline void InsertOrDeleteMsg::clear_partition_tag() { - partition_tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& InsertOrDeleteMsg::partition_tag() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.partition_tag) - return _internal_partition_tag(); -} -inline void InsertOrDeleteMsg::set_partition_tag(const std::string& value) { - _internal_set_partition_tag(value); - // @@protoc_insertion_point(field_set:milvus.grpc.InsertOrDeleteMsg.partition_tag) -} -inline std::string* InsertOrDeleteMsg::mutable_partition_tag() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertOrDeleteMsg.partition_tag) - return _internal_mutable_partition_tag(); -} -inline const std::string& InsertOrDeleteMsg::_internal_partition_tag() const { - return partition_tag_.GetNoArena(); -} -inline void InsertOrDeleteMsg::_internal_set_partition_tag(const std::string& value) { - - partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void InsertOrDeleteMsg::set_partition_tag(std::string&& value) { - - partition_tag_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.InsertOrDeleteMsg.partition_tag) -} -inline void InsertOrDeleteMsg::set_partition_tag(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.InsertOrDeleteMsg.partition_tag) -} -inline void InsertOrDeleteMsg::set_partition_tag(const char* value, size_t size) { - - partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.InsertOrDeleteMsg.partition_tag) -} -inline std::string* InsertOrDeleteMsg::_internal_mutable_partition_tag() { - - return partition_tag_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* InsertOrDeleteMsg::release_partition_tag() { - // @@protoc_insertion_point(field_release:milvus.grpc.InsertOrDeleteMsg.partition_tag) - - return partition_tag_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void InsertOrDeleteMsg::set_allocated_partition_tag(std::string* partition_tag) { - if (partition_tag != nullptr) { - - } else { - - } - partition_tag_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), partition_tag); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.InsertOrDeleteMsg.partition_tag) -} - -// uint64 timestamp = 5; -inline void InsertOrDeleteMsg::clear_timestamp() { - timestamp_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 InsertOrDeleteMsg::_internal_timestamp() const { - return timestamp_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 InsertOrDeleteMsg::timestamp() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.timestamp) - return _internal_timestamp(); -} -inline void InsertOrDeleteMsg::_internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - timestamp_ = value; -} -inline void InsertOrDeleteMsg::set_timestamp(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_timestamp(value); - // @@protoc_insertion_point(field_set:milvus.grpc.InsertOrDeleteMsg.timestamp) -} - -// int64 segment_id = 6; -inline void InsertOrDeleteMsg::clear_segment_id() { - segment_id_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 InsertOrDeleteMsg::_internal_segment_id() const { - return segment_id_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 InsertOrDeleteMsg::segment_id() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.segment_id) - return _internal_segment_id(); -} -inline void InsertOrDeleteMsg::_internal_set_segment_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - - segment_id_ = value; -} -inline void InsertOrDeleteMsg::set_segment_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_segment_id(value); - // @@protoc_insertion_point(field_set:milvus.grpc.InsertOrDeleteMsg.segment_id) -} - -// int64 channel_id = 7; -inline void InsertOrDeleteMsg::clear_channel_id() { - channel_id_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 InsertOrDeleteMsg::_internal_channel_id() const { - return channel_id_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 InsertOrDeleteMsg::channel_id() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.channel_id) - return _internal_channel_id(); -} -inline void InsertOrDeleteMsg::_internal_set_channel_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - - channel_id_ = value; -} -inline void InsertOrDeleteMsg::set_channel_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_channel_id(value); - // @@protoc_insertion_point(field_set:milvus.grpc.InsertOrDeleteMsg.channel_id) -} - -// .milvus.grpc.OpType op = 8; -inline void InsertOrDeleteMsg::clear_op() { - op_ = 0; -} -inline ::milvus::grpc::OpType InsertOrDeleteMsg::_internal_op() const { - return static_cast< ::milvus::grpc::OpType >(op_); -} -inline ::milvus::grpc::OpType InsertOrDeleteMsg::op() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.op) - return _internal_op(); -} -inline void InsertOrDeleteMsg::_internal_set_op(::milvus::grpc::OpType value) { - - op_ = value; -} -inline void InsertOrDeleteMsg::set_op(::milvus::grpc::OpType value) { - _internal_set_op(value); - // @@protoc_insertion_point(field_set:milvus.grpc.InsertOrDeleteMsg.op) -} - -// int64 client_id = 9; -inline void InsertOrDeleteMsg::clear_client_id() { - client_id_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 InsertOrDeleteMsg::_internal_client_id() const { - return client_id_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 InsertOrDeleteMsg::client_id() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.client_id) - return _internal_client_id(); -} -inline void InsertOrDeleteMsg::_internal_set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - - client_id_ = value; -} -inline void InsertOrDeleteMsg::set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_client_id(value); - // @@protoc_insertion_point(field_set:milvus.grpc.InsertOrDeleteMsg.client_id) -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 10; -inline int InsertOrDeleteMsg::_internal_extra_params_size() const { - return extra_params_.size(); -} -inline int InsertOrDeleteMsg::extra_params_size() const { - return _internal_extra_params_size(); -} -inline void InsertOrDeleteMsg::clear_extra_params() { - extra_params_.Clear(); -} -inline ::milvus::grpc::KeyValuePair* InsertOrDeleteMsg::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertOrDeleteMsg.extra_params) - return extra_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -InsertOrDeleteMsg::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.InsertOrDeleteMsg.extra_params) - return &extra_params_; -} -inline const ::milvus::grpc::KeyValuePair& InsertOrDeleteMsg::_internal_extra_params(int index) const { - return extra_params_.Get(index); -} -inline const ::milvus::grpc::KeyValuePair& InsertOrDeleteMsg::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertOrDeleteMsg.extra_params) - return _internal_extra_params(index); -} -inline ::milvus::grpc::KeyValuePair* InsertOrDeleteMsg::_internal_add_extra_params() { - return extra_params_.Add(); -} -inline ::milvus::grpc::KeyValuePair* InsertOrDeleteMsg::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.InsertOrDeleteMsg.extra_params) - return _internal_add_extra_params(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -InsertOrDeleteMsg::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.InsertOrDeleteMsg.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// SearchMsg - -// string collection_name = 1; -inline void SearchMsg::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& SearchMsg::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchMsg.collection_name) - return _internal_collection_name(); -} -inline void SearchMsg::set_collection_name(const std::string& value) { - _internal_set_collection_name(value); - // @@protoc_insertion_point(field_set:milvus.grpc.SearchMsg.collection_name) -} -inline std::string* SearchMsg::mutable_collection_name() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchMsg.collection_name) - return _internal_mutable_collection_name(); -} -inline const std::string& SearchMsg::_internal_collection_name() const { - return collection_name_.GetNoArena(); -} -inline void SearchMsg::_internal_set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void SearchMsg::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.SearchMsg.collection_name) -} -inline void SearchMsg::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchMsg.collection_name) -} -inline void SearchMsg::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchMsg.collection_name) -} -inline std::string* SearchMsg::_internal_mutable_collection_name() { - - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* SearchMsg::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.SearchMsg.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void SearchMsg::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchMsg.collection_name) -} - -// .milvus.grpc.VectorRowRecord records = 2; -inline bool SearchMsg::_internal_has_records() const { - return this != internal_default_instance() && records_ != nullptr; -} -inline bool SearchMsg::has_records() const { - return _internal_has_records(); -} -inline void SearchMsg::clear_records() { - if (GetArenaNoVirtual() == nullptr && records_ != nullptr) { - delete records_; - } - records_ = nullptr; -} -inline const ::milvus::grpc::VectorRowRecord& SearchMsg::_internal_records() const { - const ::milvus::grpc::VectorRowRecord* p = records_; - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_VectorRowRecord_default_instance_); -} -inline const ::milvus::grpc::VectorRowRecord& SearchMsg::records() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchMsg.records) - return _internal_records(); -} -inline ::milvus::grpc::VectorRowRecord* SearchMsg::release_records() { - // @@protoc_insertion_point(field_release:milvus.grpc.SearchMsg.records) - - ::milvus::grpc::VectorRowRecord* temp = records_; - records_ = nullptr; - return temp; -} -inline ::milvus::grpc::VectorRowRecord* SearchMsg::_internal_mutable_records() { - - if (records_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::VectorRowRecord>(GetArenaNoVirtual()); - records_ = p; - } - return records_; -} -inline ::milvus::grpc::VectorRowRecord* SearchMsg::mutable_records() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchMsg.records) - return _internal_mutable_records(); -} -inline void SearchMsg::set_allocated_records(::milvus::grpc::VectorRowRecord* records) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete records_; - } - if (records) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - records = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, records, submessage_arena); - } - - } else { - - } - records_ = records; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchMsg.records) -} - -// string partition_tag = 3; -inline void SearchMsg::clear_partition_tag() { - partition_tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& SearchMsg::partition_tag() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchMsg.partition_tag) - return _internal_partition_tag(); -} -inline void SearchMsg::set_partition_tag(const std::string& value) { - _internal_set_partition_tag(value); - // @@protoc_insertion_point(field_set:milvus.grpc.SearchMsg.partition_tag) -} -inline std::string* SearchMsg::mutable_partition_tag() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchMsg.partition_tag) - return _internal_mutable_partition_tag(); -} -inline const std::string& SearchMsg::_internal_partition_tag() const { - return partition_tag_.GetNoArena(); -} -inline void SearchMsg::_internal_set_partition_tag(const std::string& value) { - - partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); -} -inline void SearchMsg::set_partition_tag(std::string&& value) { - - partition_tag_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.SearchMsg.partition_tag) -} -inline void SearchMsg::set_partition_tag(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchMsg.partition_tag) -} -inline void SearchMsg::set_partition_tag(const char* value, size_t size) { - - partition_tag_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchMsg.partition_tag) -} -inline std::string* SearchMsg::_internal_mutable_partition_tag() { - - return partition_tag_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* SearchMsg::release_partition_tag() { - // @@protoc_insertion_point(field_release:milvus.grpc.SearchMsg.partition_tag) - - return partition_tag_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void SearchMsg::set_allocated_partition_tag(std::string* partition_tag) { - if (partition_tag != nullptr) { - - } else { - - } - partition_tag_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), partition_tag); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchMsg.partition_tag) -} - -// int64 uid = 4; -inline void SearchMsg::clear_uid() { - uid_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 SearchMsg::_internal_uid() const { - return uid_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 SearchMsg::uid() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchMsg.uid) - return _internal_uid(); -} -inline void SearchMsg::_internal_set_uid(::PROTOBUF_NAMESPACE_ID::int64 value) { - - uid_ = value; -} -inline void SearchMsg::set_uid(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_uid(value); - // @@protoc_insertion_point(field_set:milvus.grpc.SearchMsg.uid) -} - -// uint64 timestamp = 5; -inline void SearchMsg::clear_timestamp() { - timestamp_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 SearchMsg::_internal_timestamp() const { - return timestamp_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 SearchMsg::timestamp() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchMsg.timestamp) - return _internal_timestamp(); -} -inline void SearchMsg::_internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - timestamp_ = value; -} -inline void SearchMsg::set_timestamp(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_timestamp(value); - // @@protoc_insertion_point(field_set:milvus.grpc.SearchMsg.timestamp) -} - -// int64 client_id = 6; -inline void SearchMsg::clear_client_id() { - client_id_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 SearchMsg::_internal_client_id() const { - return client_id_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 SearchMsg::client_id() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchMsg.client_id) - return _internal_client_id(); -} -inline void SearchMsg::_internal_set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - - client_id_ = value; -} -inline void SearchMsg::set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_client_id(value); - // @@protoc_insertion_point(field_set:milvus.grpc.SearchMsg.client_id) -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 7; -inline int SearchMsg::_internal_extra_params_size() const { - return extra_params_.size(); -} -inline int SearchMsg::extra_params_size() const { - return _internal_extra_params_size(); -} -inline void SearchMsg::clear_extra_params() { - extra_params_.Clear(); -} -inline ::milvus::grpc::KeyValuePair* SearchMsg::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchMsg.extra_params) - return extra_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -SearchMsg::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchMsg.extra_params) - return &extra_params_; -} -inline const ::milvus::grpc::KeyValuePair& SearchMsg::_internal_extra_params(int index) const { - return extra_params_.Get(index); -} -inline const ::milvus::grpc::KeyValuePair& SearchMsg::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchMsg.extra_params) - return _internal_extra_params(index); -} -inline ::milvus::grpc::KeyValuePair* SearchMsg::_internal_add_extra_params() { - return extra_params_.Add(); -} -inline ::milvus::grpc::KeyValuePair* SearchMsg::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.SearchMsg.extra_params) - return _internal_add_extra_params(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -SearchMsg::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchMsg.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// TimeSyncMsg - -// int64 peer_Id = 1; -inline void TimeSyncMsg::clear_peer_id() { - peer_id_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 TimeSyncMsg::_internal_peer_id() const { - return peer_id_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 TimeSyncMsg::peer_id() const { - // @@protoc_insertion_point(field_get:milvus.grpc.TimeSyncMsg.peer_Id) - return _internal_peer_id(); -} -inline void TimeSyncMsg::_internal_set_peer_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - - peer_id_ = value; -} -inline void TimeSyncMsg::set_peer_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_peer_id(value); - // @@protoc_insertion_point(field_set:milvus.grpc.TimeSyncMsg.peer_Id) -} - -// uint64 Timestamp = 2; -inline void TimeSyncMsg::clear_timestamp() { - timestamp_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 TimeSyncMsg::_internal_timestamp() const { - return timestamp_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 TimeSyncMsg::timestamp() const { - // @@protoc_insertion_point(field_get:milvus.grpc.TimeSyncMsg.Timestamp) - return _internal_timestamp(); -} -inline void TimeSyncMsg::_internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - timestamp_ = value; -} -inline void TimeSyncMsg::set_timestamp(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_timestamp(value); - // @@protoc_insertion_point(field_set:milvus.grpc.TimeSyncMsg.Timestamp) -} - -// .milvus.grpc.SyncType sync_type = 3; -inline void TimeSyncMsg::clear_sync_type() { - sync_type_ = 0; -} -inline ::milvus::grpc::SyncType TimeSyncMsg::_internal_sync_type() const { - return static_cast< ::milvus::grpc::SyncType >(sync_type_); -} -inline ::milvus::grpc::SyncType TimeSyncMsg::sync_type() const { - // @@protoc_insertion_point(field_get:milvus.grpc.TimeSyncMsg.sync_type) - return _internal_sync_type(); -} -inline void TimeSyncMsg::_internal_set_sync_type(::milvus::grpc::SyncType value) { - - sync_type_ = value; -} -inline void TimeSyncMsg::set_sync_type(::milvus::grpc::SyncType value) { - _internal_set_sync_type(value); - // @@protoc_insertion_point(field_set:milvus.grpc.TimeSyncMsg.sync_type) -} - -// ------------------------------------------------------------------- - -// SegmentRecord - -// int64 uid = 1; -inline void SegmentRecord::clear_uid() { - uid_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 SegmentRecord::_internal_uid() const { - return uid_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 SegmentRecord::uid() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SegmentRecord.uid) - return _internal_uid(); -} -inline void SegmentRecord::_internal_set_uid(::PROTOBUF_NAMESPACE_ID::int64 value) { - - uid_ = value; -} -inline void SegmentRecord::set_uid(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_uid(value); - // @@protoc_insertion_point(field_set:milvus.grpc.SegmentRecord.uid) -} - -// repeated int64 segment_id = 2; -inline int SegmentRecord::_internal_segment_id_size() const { - return segment_id_.size(); -} -inline int SegmentRecord::segment_id_size() const { - return _internal_segment_id_size(); -} -inline void SegmentRecord::clear_segment_id() { - segment_id_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 SegmentRecord::_internal_segment_id(int index) const { - return segment_id_.Get(index); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 SegmentRecord::segment_id(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SegmentRecord.segment_id) - return _internal_segment_id(index); -} -inline void SegmentRecord::set_segment_id(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { - segment_id_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.SegmentRecord.segment_id) -} -inline void SegmentRecord::_internal_add_segment_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - segment_id_.Add(value); -} -inline void SegmentRecord::add_segment_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_add_segment_id(value); - // @@protoc_insertion_point(field_add:milvus.grpc.SegmentRecord.segment_id) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -SegmentRecord::_internal_segment_id() const { - return segment_id_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -SegmentRecord::segment_id() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SegmentRecord.segment_id) - return _internal_segment_id(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -SegmentRecord::_internal_mutable_segment_id() { - return &segment_id_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -SegmentRecord::mutable_segment_id() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SegmentRecord.segment_id) - return _internal_mutable_segment_id(); -} - -// ------------------------------------------------------------------- - -// Key2SegMsg - -// int64 client_id = 1; -inline void Key2SegMsg::clear_client_id() { - client_id_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 Key2SegMsg::_internal_client_id() const { - return client_id_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 Key2SegMsg::client_id() const { - // @@protoc_insertion_point(field_get:milvus.grpc.Key2SegMsg.client_id) - return _internal_client_id(); -} -inline void Key2SegMsg::_internal_set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - - client_id_ = value; -} -inline void Key2SegMsg::set_client_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_client_id(value); - // @@protoc_insertion_point(field_set:milvus.grpc.Key2SegMsg.client_id) -} - -// .milvus.grpc.SegmentRecord records = 2; -inline bool Key2SegMsg::_internal_has_records() const { - return this != internal_default_instance() && records_ != nullptr; -} -inline bool Key2SegMsg::has_records() const { - return _internal_has_records(); -} -inline void Key2SegMsg::clear_records() { - if (GetArenaNoVirtual() == nullptr && records_ != nullptr) { - delete records_; - } - records_ = nullptr; -} -inline const ::milvus::grpc::SegmentRecord& Key2SegMsg::_internal_records() const { - const ::milvus::grpc::SegmentRecord* p = records_; - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_SegmentRecord_default_instance_); -} -inline const ::milvus::grpc::SegmentRecord& Key2SegMsg::records() const { - // @@protoc_insertion_point(field_get:milvus.grpc.Key2SegMsg.records) - return _internal_records(); -} -inline ::milvus::grpc::SegmentRecord* Key2SegMsg::release_records() { - // @@protoc_insertion_point(field_release:milvus.grpc.Key2SegMsg.records) - - ::milvus::grpc::SegmentRecord* temp = records_; - records_ = nullptr; - return temp; -} -inline ::milvus::grpc::SegmentRecord* Key2SegMsg::_internal_mutable_records() { - - if (records_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::SegmentRecord>(GetArenaNoVirtual()); - records_ = p; - } - return records_; -} -inline ::milvus::grpc::SegmentRecord* Key2SegMsg::mutable_records() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.Key2SegMsg.records) - return _internal_mutable_records(); -} -inline void Key2SegMsg::set_allocated_records(::milvus::grpc::SegmentRecord* records) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete records_; - } - if (records) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - records = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, records, submessage_arena); - } - - } else { - - } - records_ = records; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Key2SegMsg.records) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace grpc -} // namespace milvus - -PROTOBUF_NAMESPACE_OPEN - -template <> struct is_proto_enum< ::milvus::grpc::DataType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::milvus::grpc::DataType>() { - return ::milvus::grpc::DataType_descriptor(); -} -template <> struct is_proto_enum< ::milvus::grpc::CompareOperator> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::milvus::grpc::CompareOperator>() { - return ::milvus::grpc::CompareOperator_descriptor(); -} -template <> struct is_proto_enum< ::milvus::grpc::Occur> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::milvus::grpc::Occur>() { - return ::milvus::grpc::Occur_descriptor(); -} -template <> struct is_proto_enum< ::milvus::grpc::OpType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::milvus::grpc::OpType>() { - return ::milvus::grpc::OpType_descriptor(); -} -template <> struct is_proto_enum< ::milvus::grpc::SyncType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::milvus::grpc::SyncType>() { - return ::milvus::grpc::SyncType_descriptor(); -} - -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) - -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_suvlim_2eproto diff --git a/pulsar/client-cpp/src/pb/suvlim.proto b/pulsar/client-cpp/src/pb/suvlim.proto deleted file mode 100644 index cafaf0eb10..0000000000 --- a/pulsar/client-cpp/src/pb/suvlim.proto +++ /dev/null @@ -1,718 +0,0 @@ -syntax = "proto3"; - -import "status.proto"; -package milvus.grpc; - -// -//enum ErrorCode { -// SUCCESS = 0; -// UNEXPECTED_ERROR = 1; -// CONNECT_FAILED = 2; -// PERMISSION_DENIED = 3; -// COLLECTION_NOT_EXISTS = 4; -// ILLEGAL_ARGUMENT = 5; -// ILLEGAL_DIMENSION = 7; -// ILLEGAL_INDEX_TYPE = 8; -// ILLEGAL_COLLECTION_NAME = 9; -// ILLEGAL_TOPK = 10; -// ILLEGAL_ROWRECORD = 11; -// ILLEGAL_VECTOR_ID = 12; -// ILLEGAL_SEARCH_RESULT = 13; -// FILE_NOT_FOUND = 14; -// META_FAILED = 15; -// CACHE_FAILED = 16; -// CANNOT_CREATE_FOLDER = 17; -// CANNOT_CREATE_FILE = 18; -// CANNOT_DELETE_FOLDER = 19; -// CANNOT_DELETE_FILE = 20; -// BUILD_INDEX_ERROR = 21; -// ILLEGAL_NLIST = 22; -// ILLEGAL_METRIC_TYPE = 23; -// OUT_OF_MEMORY = 24; -//} -// -//message Status { -// ErrorCode error_code = 1; -// string reason = 2; -//} - -/** - * @brief Field data type - */ -enum DataType { - NONE = 0; - BOOL = 1; - INT8 = 2; - INT16 = 3; - INT32 = 4; - INT64 = 5; - - FLOAT = 10; - DOUBLE = 11; - - STRING = 20; - - VECTOR_BINARY = 100; - VECTOR_FLOAT = 101; -} - -/** - * @brief General usage - */ -message KeyValuePair { - string key = 1; - string value = 2; -} - -/** - * @brief Collection name - */ -message CollectionName { - string collection_name = 1; -} - -/** - * @brief Collection name list - */ -message CollectionNameList { - Status status = 1; - repeated string collection_names = 2; -} - -/** - * @brief Field name - */ -message FieldName { - string collection_name = 1; - string field_name = 2; -} - -/** - * @brief Collection mapping - * @extra_params: key-value pair for extra parameters of the collection - * typically usage: - * extra_params["params"] = {segment_row_count: 1000000, auto_id: true} - * Note: - * the segment_row_count specify segment row count limit for merging - * the auto_id = true means entity id is auto-generated by milvus - */ -message Mapping { - Status status = 1; - string collection_name = 2; - Schema schema = 3; - repeated KeyValuePair extra_params = 4; -} - -/** - * @brief Collection mapping list - */ -message MappingList { - Status status = 1; - repeated Mapping mapping_list = 2; -} - -/** - * @brief Parameters of partition - */ -message PartitionParam { - string collection_name = 1; - string tag = 2; -} - -/** - * @brief Partition list - */ -message PartitionList { - Status status = 1; - repeated string partition_tag_array = 2; -} - -/** - * @brief Vector row record - */ -message VectorRowRecord { - repeated float float_data = 1; //float vector data - bytes binary_data = 2; //binary vector data -} - -message EntityIds { - Status status = 1; - repeated int64 entity_id_array = 2; -} - -message VectorRecord { - repeated VectorRowRecord records = 1; -} - -message VectorParam { - string json = 1; - VectorRecord row_record = 2; -} - -//////////////////////////row schema and data/////////////////////////////////// -/** - * @brief schema - */ -message FieldMeta { - string field_name = 1; - DataType type = 2; - int64 dim = 3; -} - -message Schema { - repeated FieldMeta field_metas = 1; -} - -message RowData { - bytes blob = 1; -} - -//////////////////////suvlim-proxy/////////////////////////////////// -message InsertParam { - string collection_name = 1; - Schema schema = 2; - repeated RowData rows_data = 3; - repeated int64 entity_id_array = 4; //optional - string partition_tag = 5; - repeated KeyValuePair extra_params = 6; -} - -message SearchParam { - string collection_name = 1; - repeated VectorParam vector_param = 2; - string dsl = 3; //optional - repeated string partition_tag = 4; //why - repeated KeyValuePair extra_params = 5; -} - -message SearchInSegmentParam { - repeated string file_id_array = 1; - SearchParam search_param = 2; -} - -message Entities { - Status status = 1; - repeated int64 ids = 2; - repeated bool valid_row = 3; - repeated RowData rows_data = 4; -} - - -///////////////////////////milvus-server/////////////////////////// -/** - * @brief Query result - */ -message QueryResult { - Status status = 1; - Entities entities = 2; - int64 row_num = 3; - repeated float scores = 4; - repeated float distances = 5; - repeated KeyValuePair extra_params = 6; -} - -/** - * @brief Server string Reply - */ -message StringReply { - Status status = 1; - string string_reply = 2; -} - -/** - * @brief Server bool Reply - */ -message BoolReply { - Status status = 1; - bool bool_reply = 2; -} - -/** - * @brief Return collection row count - */ -message CollectionRowCount { - Status status = 1; - int64 collection_row_count = 2; -} - -/** - * @brief Server command parameters - */ -message Command { - string cmd = 1; -} - -/** - * @brief Index params - * @collection_name: target collection - * @field_name: target field - * @index_name: a name for index provided by user, unique within this field - * @extra_params: index parameters in json format - * for vector field: - * extra_params["index_type"] = one of the values: FLAT, IVF_LAT, IVF_SQ8, NSGMIX, IVFSQ8H, - * PQ, HNSW, HNSW_SQ8NM, ANNOY - * extra_params["metric_type"] = one of the values: L2, IP, HAMMING, JACCARD, TANIMOTO - * SUBSTRUCTURE, SUPERSTRUCTURE - * extra_params["params"] = extra parameters for index, for example ivflat: {nlist: 2048} - * for structured field: - * extra_params["index_type"] = one of the values: SORTED - */ -message IndexParam { - Status status = 1; - string collection_name = 2; - string field_name = 3; - string index_name = 4; - repeated KeyValuePair extra_params = 5; -} - -/** - * @brief Parameters for flush action - */ -message FlushParam { - repeated string collection_name_array = 1; -} - -/** - * @brief Parameters for flush action - */ -message CompactParam { - string collection_name = 1; - double threshold = 2; -} - -/** - * @brief Parameters for deleting entities by id - */ -message DeleteByIDParam { - string collection_name = 1; - repeated int64 id_array = 2; -} - -/** - * @brief Return collection stats - * @json_info: collection stats in json format, typically, the format is like: - * { - * row_count: xxx, - * data_size: xxx, - * partitions: [ - * { - * tag: xxx, - * id: xxx, - * row_count: xxx, - * data_size: xxx, - * segments: [ - * { - * id: xxx, - * row_count: xxx, - * data_size: xxx, - * files: [ - * { - * field: xxx, - * name: xxx, - * index_type: xxx, - * path: xxx, - * data_size: xxx, - * } - * ] - * } - * ] - * } - * ] - * } - */ -message CollectionInfo { - Status status = 1; - string json_info = 2; -} - -/** - * @brief Parameters for returning entities id of a segment - */ -message GetEntityIDsParam { - string collection_name = 1; - int64 segment_id = 2; -} - -/** - * @brief Entities identity - */ -message EntityIdentity { - string collection_name = 1; - repeated int64 id_array = 2; - repeated string field_names = 3; -} - -/********************************************SearchPB interface***************************************************/ -/** - * @brief Vector field parameters - */ -message VectorFieldParam { - int64 dimension = 1; -} - -/** - * @brief Field type - */ -message FieldType { - oneof value { - DataType data_type = 1; - VectorFieldParam vector_param = 2; - } -} - -/** - * @brief Field parameters - */ -message FieldParam { - uint64 id = 1; - string name = 2; - DataType type = 3; - repeated KeyValuePair index_params = 4; - repeated KeyValuePair extra_params = 5; -} - -/** - * @brief Vector field record - */ -message VectorFieldRecord { - repeated VectorRowRecord value = 1; -} - -/////////////////////////////////////////////////////////////////// - -message TermQuery { - string field_name = 1; - repeated int64 int_value = 2; - repeated double double_value = 3; - int64 value_num = 4; - float boost = 5; - repeated KeyValuePair extra_params = 6; -} - -enum CompareOperator { - LT = 0; - LTE = 1; - EQ = 2; - GT = 3; - GTE = 4; - NE = 5; -} - -message CompareExpr { - CompareOperator operator = 1; - string operand = 2; -} - -message RangeQuery { - string field_name = 1; - repeated CompareExpr operand = 2; - float boost = 3; - repeated KeyValuePair extra_params = 4; -} - -message VectorQuery { - string field_name = 1; - float query_boost = 2; - repeated VectorRowRecord records = 3; - int64 topk = 4; - repeated KeyValuePair extra_params = 5; -} - -enum Occur { - INVALID = 0; - MUST = 1; - SHOULD = 2; - MUST_NOT = 3; -} - -message BooleanQuery { - Occur occur = 1; - repeated GeneralQuery general_query = 2; -} - -message GeneralQuery { - oneof query { - BooleanQuery boolean_query = 1; - TermQuery term_query = 2; - RangeQuery range_query = 3; - VectorQuery vector_query = 4; - } -} - -message SearchParamPB { - string collection_name = 1; - repeated string partition_tag_array = 2; - GeneralQuery general_query = 3; - repeated KeyValuePair extra_params = 4; -} - -service MilvusService { - /** - * @brief This method is used to create collection - * - * @param CollectionSchema, use to provide collection information to be created. - * - * @return Status - */ - rpc CreateCollection(Mapping) returns (Status){} - - /** - * @brief This method is used to test collection existence. - * - * @param CollectionName, collection name is going to be tested. - * - * @return BoolReply - */ - rpc HasCollection(CollectionName) returns (BoolReply) {} - - /** - * @brief This method is used to get collection schema. - * - * @param CollectionName, target collection name. - * - * @return CollectionSchema - */ - rpc DescribeCollection(CollectionName) returns (Mapping) {} - - /** - * @brief This method is used to get collection schema. - * - * @param CollectionName, target collection name. - * - * @return CollectionRowCount - */ - rpc CountCollection(CollectionName) returns (CollectionRowCount) {} - - /** - * @brief This method is used to list all collections. - * - * @param Command, dummy parameter. - * - * @return CollectionNameList - */ - rpc ShowCollections(Command) returns (CollectionNameList) {} - - /** - * @brief This method is used to get collection detail information. - * - * @param CollectionName, target collection name. - * - * @return CollectionInfo - */ - rpc ShowCollectionInfo(CollectionName) returns (CollectionInfo) {} - - /** - * @brief This method is used to delete collection. - * - * @param CollectionName, collection name is going to be deleted. - * - * @return Status - */ - rpc DropCollection(CollectionName) returns (Status) {} - - /** - * @brief This method is used to build index by collection in sync mode. - * - * @param IndexParam, index paramters. - * - * @return Status - */ - rpc CreateIndex(IndexParam) returns (Status) {} - - /** - * @brief This method is used to describe index - * - * @param IndexParam, target index. - * - * @return IndexParam - */ - rpc DescribeIndex(IndexParam) returns (IndexParam) {} - - /** - * @brief This method is used to drop index - * - * @param IndexParam, target field. if the IndexParam.field_name is empty, will drop all index of the collection - * - * @return Status - */ - rpc DropIndex(IndexParam) returns (Status) {} - - /** - * @brief This method is used to create partition - * - * @param PartitionParam, partition parameters. - * - * @return Status - */ - rpc CreatePartition(PartitionParam) returns (Status) {} - - /** - * @brief This method is used to test partition existence. - * - * @param PartitionParam, target partition. - * - * @return BoolReply - */ - rpc HasPartition(PartitionParam) returns (BoolReply) {} - - /** - * @brief This method is used to show partition information - * - * @param CollectionName, target collection name. - * - * @return PartitionList - */ - rpc ShowPartitions(CollectionName) returns (PartitionList) {} - - /** - * @brief This method is used to drop partition - * - * @param PartitionParam, target partition. - * - * @return Status - */ - rpc DropPartition(PartitionParam) returns (Status) {} - - /** - * @brief This method is used to add vector array to collection. - * - * @param InsertParam, insert parameters. - * - * @return VectorIds - */ - rpc Insert(InsertParam) returns (EntityIds) {} - - /** - * @brief This method is used to get entities data by id array. - * - * @param EntitiesIdentity, target entity id array. - * - * @return EntitiesData - */ - rpc GetEntityByID(EntityIdentity) returns (Entities) {} - - /** - * @brief This method is used to get vector ids from a segment - * - * @param GetVectorIDsParam, target collection and segment - * - * @return VectorIds - */ - rpc GetEntityIDs(GetEntityIDsParam) returns (EntityIds) {} - - /** - * @brief This method is used to query vector in collection. - * - * @param SearchParam, search parameters. - * - * @return KQueryResult - */ - rpc Search(SearchParam) returns (QueryResult) {} - - /** - * @brief This method is used to query vector in specified files. - * - * @param SearchInSegmentParam, target segments to search. - * - * @return TopKQueryResult - */ - rpc SearchInSegment(SearchInSegmentParam) returns (QueryResult) {} - - /** - * @brief This method is used to give the server status. - * - * @param Command, command string - * - * @return StringReply - */ - rpc Cmd(Command) returns (StringReply) {} - - /** - * @brief This method is used to delete vector by id - * - * @param DeleteByIDParam, delete parameters. - * - * @return status - */ - rpc DeleteByID(DeleteByIDParam) returns (Status) {} - - /** - * @brief This method is used to preload collection - * - * @param CollectionName, target collection name. - * - * @return Status - */ - rpc PreloadCollection(CollectionName) returns (Status) {} - - /** - * @brief This method is used to flush buffer into storage. - * - * @param FlushParam, flush parameters - * - * @return Status - */ - rpc Flush(FlushParam) returns (Status) {} - - /** - * @brief This method is used to compact collection - * - * @param CompactParam, compact parameters - * - * @return Status - */ - rpc Compact(CompactParam) returns (Status) {} - - /********************************New Interface********************************************/ - - rpc SearchPB(SearchParamPB) returns (QueryResult) {} -} - -////////////////////pulsar////////////////////////////////////// -enum OpType { - INSERT = 0; - DELETE = 1; -} - -message InsertOrDeleteMsg { - string collection_name = 1; - RowData rows_data = 2; - int64 uid = 3; //optional - string partition_tag = 4; - uint64 timestamp =5; - int64 segment_id = 6; - int64 channel_id = 7; - OpType op = 8; - int64 client_id = 9; - repeated KeyValuePair extra_params = 10; -} - -message SearchMsg { - string collection_name = 1; - VectorRowRecord records = 2; - string partition_tag = 3; - int64 uid = 4; - uint64 timestamp =5; - int64 client_id = 6; - repeated KeyValuePair extra_params = 7; -} - -enum SyncType { - READ = 0; - WRITE = 1; -} -message TimeSyncMsg{ - int64 peer_Id = 1; - uint64 Timestamp = 2; - SyncType sync_type = 3; -} - -message SegmentRecord { - int64 uid = 1; - repeated int64 segment_id = 2; -} - -message Key2SegMsg { - int64 client_id = 1; - SegmentRecord records = 2; -} diff --git a/pulsar/client-cpp/unittest/CMakeLists.txt b/pulsar/client-cpp/unittest/CMakeLists.txt deleted file mode 100644 index 376c5f6fbc..0000000000 --- a/pulsar/client-cpp/unittest/CMakeLists.txt +++ /dev/null @@ -1,15 +0,0 @@ -include_directories(${CMAKE_SOURCE_DIR}/src) -include_directories(.) -enable_testing() -set(unittest_srcs - unittest_entry.cpp - consumer_test.cpp producer_test.cpp) - -add_executable(test ${unittest_srcs}) - -target_link_libraries(test - client_cpp - pulsar - gtest) - -install(TARGETS test DESTINATION unittest) \ No newline at end of file diff --git a/pulsar/client-cpp/unittest/consumer_test.cpp b/pulsar/client-cpp/unittest/consumer_test.cpp deleted file mode 100644 index 15cb103aa7..0000000000 --- a/pulsar/client-cpp/unittest/consumer_test.cpp +++ /dev/null @@ -1,14 +0,0 @@ -#include -#include "consumer.h" -#include "pb/pulsar.pb.h" - -TEST(CLIENT_CPP, CONSUMER) { - auto client= std::make_shared("pulsar://localhost:6650"); - message_client::MsgConsumer consumer(client, "my_consumer"); - consumer.subscribe("test"); - auto msg = consumer.receive_proto(message_client::TEST); - pb::TestData* data = (pb::TestData*)(msg.get()); - std::cout << "Received: " << msg << " with payload '" << data->name()<< ";" << data->id(); - consumer.close(); - client->close(); -} diff --git a/pulsar/client-cpp/unittest/producer_test.cpp b/pulsar/client-cpp/unittest/producer_test.cpp deleted file mode 100644 index 506dc17e54..0000000000 --- a/pulsar/client-cpp/unittest/producer_test.cpp +++ /dev/null @@ -1,15 +0,0 @@ -#include -#include "producer.h" -#include "pb/pulsar.pb.h" - -TEST(CLIENT_CPP, Producer) { - auto client= std::make_shared("pulsar://localhost:6650"); - message_client::MsgProducer producer(client,"test"); - pb::TestData data; - data.set_id("100"); - data.set_name("pulsar"); - std::string to_string = data.SerializeAsString(); - producer.send(to_string); - producer.close(); - client->close(); -} diff --git a/pulsar/client-cpp/unittest/unittest_entry.cpp b/pulsar/client-cpp/unittest/unittest_entry.cpp deleted file mode 100644 index 697a9d70c0..0000000000 --- a/pulsar/client-cpp/unittest/unittest_entry.cpp +++ /dev/null @@ -1,6 +0,0 @@ -#include - -int main(int argc, char** argv) { - ::testing::InitGoogleTest(&argc, argv); - return RUN_ALL_TESTS(); -} diff --git a/pulsar/client-go/go_client.go b/pulsar/client-go/go_client.go deleted file mode 100644 index 62c0a4861f..0000000000 --- a/pulsar/client-go/go_client.go +++ /dev/null @@ -1,201 +0,0 @@ -package client_go - -import ( - "context" - "github.com/apache/pulsar/pulsar-client-go/pulsar" - "github.com/czs007/suvlim/pulsar/client-go/schema" - "log" -) - -var ( - SyncEofSchema = "{\"type\":\"record\",\"name\":\"suvlim\",\"namespace\":\"pulsar\",\"fields\":[" + - "{\"name\":\"MsgType\",\"type\":\"OpType\"}," + - "]}" -) - -type MessageClient struct { - - //message channel - insertChan chan *schema.InsertMsg - deleteChan chan *schema.DeleteMsg - searchChan chan *schema.SearchMsg - timeSyncChan chan *schema.TimeSyncMsg - key2SegChan chan *schema.Key2SegMsg - - // pulsar - client pulsar.Client - syncInsertProducer pulsar.Producer - syncDeleteProducer pulsar.Producer - key2segProducer pulsar.Producer - consumer pulsar.Consumer - - // batch messages - InsertMsg []*schema.InsertMsg - DeleteMsg []*schema.DeleteMsg - SearchMsg []*schema.SearchMsg - timeMsg []*schema.TimeSyncMsg - key2segMsg []*schema.Key2SegMsg - -} - -func (mc *MessageClient) ReceiveMessage() { - for { - pulsarMessage := schema.PulsarMessage{} - msg, err := mc.consumer.Receive(context.Background()) - err = msg.GetValue(&pulsarMessage) - if err != nil { - log.Fatal(err) - } - - msgType := pulsarMessage.MsgType - switch msgType { - case schema.Insert: - IMsgObj := schema.InsertMsg{} - mc.insertChan <- &IMsgObj - case schema.Delete: - DMsgObj := schema.DeleteMsg{} - mc.deleteChan <- &DMsgObj - case schema.Search: - SMsgObj := schema.SearchMsg{} - mc.searchChan <- &SMsgObj - case schema.TimeSync: - TMsgObj := schema.TimeSyncMsg{} - mc.timeSyncChan <- &TMsgObj - case schema.Key2Seg: - KMsgObj := schema.Key2SegMsg{} - mc.key2SegChan <- &KMsgObj - } - } -} - -func (mc *MessageClient) CreatProducer(schemaDef string, topicName string) pulsar.Producer{ - schema := pulsar.NewProtoSchema(schemaDef, nil) - producer, err := mc.client.CreateProducerWithSchema(pulsar.ProducerOptions{ - Topic: topicName, - }, schema) - defer producer.Close() - if err != nil { - log.Fatal(err) - } - return producer -} - -func (mc *MessageClient) CreateConsumer(schemaDef string, topics []string) pulsar.Consumer { - originMsgSchema := pulsar.NewProtoSchema(schemaDef, nil) - consumer, err := mc.client.SubscribeWithSchema(pulsar.ConsumerOptions{ - Topics: topics, - SubscriptionName: "multi-topic-sub", - }, originMsgSchema) - defer consumer.Close() - if err != nil { - log.Fatal(err) - } - return consumer -} - -func (mc *MessageClient) CreateClient(url string) pulsar.Client { - // create client - client, err := pulsar.NewClient(pulsar.ClientOptions{ - URL: url, - }) - defer client.Close() - if err != nil { - log.Fatal(err) - } - return client -} - -func (mc *MessageClient) InitClient(url string, topics []string, consumerMsgSchema string) { - //create client - mc.client = mc.CreateClient(url) - - //create producer - for topicIndex := range topics { - if topics[topicIndex] == "insert" { - mc.syncInsertProducer = mc.CreatProducer(SyncEofSchema, "insert") - } - if topics[topicIndex] == "delete" { - mc.syncDeleteProducer = mc.CreatProducer(SyncEofSchema, "delete") - } - if topics[topicIndex] == "key2seg" { - mc.syncInsertProducer = mc.CreatProducer(SyncEofSchema, "key2seg") - } - - } - mc.syncInsertProducer = mc.CreatProducer(SyncEofSchema, "insert") - mc.syncDeleteProducer = mc.CreatProducer(SyncEofSchema, "delete") - mc.key2segProducer = mc.CreatProducer(SyncEofSchema, "key2seg") - - //create consumer - mc.consumer = mc.CreateConsumer(consumerMsgSchema, topics) - - // init channel - mc.insertChan = make(chan *schema.InsertMsg, 1000) - mc.deleteChan = make(chan *schema.DeleteMsg, 1000) - mc.searchChan = make(chan *schema.SearchMsg, 1000) - mc.timeSyncChan = make(chan *schema.TimeSyncMsg, 1000) - mc.key2SegChan = make(chan *schema.Key2SegMsg, 1000) -} - -type JobType int -const ( - OpInQueryNode JobType = 0 - OpInWriteNode JobType = 1 -) - -func (mc *MessageClient) PrepareMsg(opType schema.OpType, msgLen int) { - switch opType { - case schema.Insert: - for i := 0; i < msgLen; i++ { - msg := <- mc.insertChan - mc.InsertMsg[i] = msg - } - case schema.Delete: - for i := 0; i < msgLen; i++ { - msg := <- mc.deleteChan - mc.DeleteMsg[i] = msg - } - case schema.Search: - for i := 0; i < msgLen; i++ { - msg := <-mc.searchChan - mc.SearchMsg[i] = msg - } - case schema.TimeSync: - for i := 0; i < msgLen; i++ { - msg := <- mc.timeSyncChan - mc.timeMsg[i] = msg - } - case schema.Key2Seg: - for i := 0; i < msgLen; i++ { - msg := <-mc.key2SegChan - mc.key2segMsg[i] = msg - } - } -} - -func (mc *MessageClient) PrepareBatchMsg(jobType JobType) { - // assume the channel not full - mc.InsertMsg = make([]*schema.InsertMsg, 1000) - mc.DeleteMsg = make([]*schema.DeleteMsg, 1000) - mc.SearchMsg = make([]*schema.SearchMsg, 1000) - mc.timeMsg = make([]*schema.TimeSyncMsg, 1000) - mc.key2segMsg = make([]*schema.Key2SegMsg, 1000) - - // ensure all messages before time in timeSyncTopic have been push into channel - - // get the length of every channel - insertLen := len(mc.insertChan) - deleteLen := len(mc.deleteChan) - searchLen := len(mc.searchChan) - timeLen := len(mc.timeSyncChan) - key2segLen := len(mc.key2SegChan) - - // get message from channel to slice - mc.PrepareMsg(schema.Insert, insertLen) - mc.PrepareMsg(schema.Delete, deleteLen) - mc.PrepareMsg(schema.TimeSync, timeLen) - if jobType == OpInQueryNode { - mc.PrepareMsg(schema.Key2Seg, key2segLen) - mc.PrepareMsg(schema.Search, searchLen) - } -} \ No newline at end of file diff --git a/pulsar/client-go/pb/build.sh b/pulsar/client-go/pb/build.sh deleted file mode 100755 index 8fab1ca6be..0000000000 --- a/pulsar/client-go/pb/build.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -pkg=pb -protoc --go_out=import_path=${pkg}:. suvlim.proto \ No newline at end of file diff --git a/pulsar/client-go/pb/milvus.proto b/pulsar/client-go/pb/milvus.proto deleted file mode 100644 index 6f58ae1fae..0000000000 --- a/pulsar/client-go/pb/milvus.proto +++ /dev/null @@ -1,744 +0,0 @@ -syntax = "proto3"; - -package pb; - -enum ErrorCode { - SUCCESS = 0; - UNEXPECTED_ERROR = 1; - CONNECT_FAILED = 2; - PERMISSION_DENIED = 3; - COLLECTION_NOT_EXISTS = 4; - ILLEGAL_ARGUMENT = 5; - ILLEGAL_DIMENSION = 7; - ILLEGAL_INDEX_TYPE = 8; - ILLEGAL_COLLECTION_NAME = 9; - ILLEGAL_TOPK = 10; - ILLEGAL_ROWRECORD = 11; - ILLEGAL_VECTOR_ID = 12; - ILLEGAL_SEARCH_RESULT = 13; - FILE_NOT_FOUND = 14; - META_FAILED = 15; - CACHE_FAILED = 16; - CANNOT_CREATE_FOLDER = 17; - CANNOT_CREATE_FILE = 18; - CANNOT_DELETE_FOLDER = 19; - CANNOT_DELETE_FILE = 20; - BUILD_INDEX_ERROR = 21; - ILLEGAL_NLIST = 22; - ILLEGAL_METRIC_TYPE = 23; - OUT_OF_MEMORY = 24; -} - -message Status { - ErrorCode error_code = 1; - string reason = 2; -} - -/** - * @brief Field data type - */ -enum DataType { - NONE = 0; - BOOL = 1; - INT8 = 2; - INT16 = 3; - INT32 = 4; - INT64 = 5; - - FLOAT = 10; - DOUBLE = 11; - - STRING = 20; - - VECTOR_BINARY = 100; - VECTOR_FLOAT = 101; -} - -/** - * @brief General usage - */ -message KeyValuePair { - string key = 1; - string value = 2; -} - -/** - * @brief Collection name - */ -message CollectionName { - string collection_name = 1; -} - -/** - * @brief Collection name list - */ -message CollectionNameList { - Status status = 1; - repeated string collection_names = 2; -} - -/** - * @brief Field name - */ -message FieldName { - string collection_name = 1; - string field_name = 2; -} - -/** - * @brief Collection mapping - * @extra_params: key-value pair for extra parameters of the collection - * typically usage: - * extra_params["params"] = {segment_row_count: 1000000, auto_id: true} - * Note: - * the segment_row_count specify segment row count limit for merging - * the auto_id = true means entity id is auto-generated by milvus - */ -message Mapping { - Status status = 1; - string collection_name = 2; - repeated FieldParam fields = 3; - repeated KeyValuePair extra_params = 4; -} - -/** - * @brief Collection mapping list - */ -message MappingList { - Status status = 1; - repeated Mapping mapping_list = 2; -} - -/** - * @brief Parameters of partition - */ -message PartitionParam { - string collection_name = 1; - string tag = 2; -} - -/** - * @brief Partition list - */ -message PartitionList { - Status status = 1; - repeated string partition_tag_array = 2; -} - -/** - * @brief Vector row record - */ -message VectorRowRecord { - repeated float float_data = 1; //float vector data - bytes binary_data = 2; //binary vector data -} - -/** - * @brief Attribute record - */ -message AttrRecord { - repeated int32 int32_value = 1; - repeated int64 int64_value = 2; - repeated float float_value = 3; - repeated double double_value = 4; -} - -/** - * @brief Vector records - */ -message VectorRecord { - repeated VectorRowRecord records = 1; -} - -/** - * @brief Field values - */ -message FieldValue { - string field_name = 1; - DataType type = 2; - AttrRecord attr_record = 3; - VectorRecord vector_record = 4; -} - -/** - * @brief Parameters for insert action - */ -message InsertParam { - string collection_name = 1; - repeated FieldValue fields = 2; - repeated int64 entity_id_array = 3; //optional - string partition_tag = 4; - repeated KeyValuePair extra_params = 5; -} - -/** - * @brief Entity ids - */ -message EntityIds { - Status status = 1; - repeated int64 entity_id_array = 2; -} - -/** - * @brief Search vector parameters - */ -message VectorParam { - string json = 1; - VectorRecord row_record = 2; -} - -/** - * @brief Parameters for search action - * @dsl example: - * { - * "query": { - * "bool": { - * "must": [ - * { - * "must":[ - * { - * "should": [ - * { - * "term": { - * "gender": ["male"] - * } - * }, - * { - * "range": { - * "height": {"gte": "170.0", "lte": "180.0"} - * } - * } - * ] - * }, - * { - * "must_not": [ - * { - * "term": { - * "age": [20, 21, 22, 23, 24, 25] - * } - * }, - * { - * "Range": { - * "weight": {"lte": "100"} - * } - * } - * ] - * } - * ] - * }, - * { - * "must": [ - * { - * "vector": { - * "face_img": { - * "topk": 10, - * "metric_type": "L2", - * "query": [], - * "params": { - * "nprobe": 10 - * } - * } - * } - * } - * ] - * } - * ] - * } - * }, - * "fields": ["age", "face_img"] - * } - */ -message SearchParam { - string collection_name = 1; - repeated string partition_tag_array = 2; - repeated VectorParam vector_param = 3; - string dsl = 4; - repeated KeyValuePair extra_params = 5; -} - -/** - * @brief Parameters for searching in segments - */ -message SearchInSegmentParam { - repeated string file_id_array = 1; - SearchParam search_param = 2; -} - -/** - * @brief Entities - */ -message Entities { - Status status = 1; - repeated int64 ids = 2; - repeated bool valid_row = 3; - repeated FieldValue fields = 4; -} - -/** - * @brief Query result - */ -message QueryResult { - Status status = 1; - Entities entities = 2; - int64 row_num = 3; - repeated float scores = 4; - repeated float distances = 5; - repeated KeyValuePair extra_params = 6; -} - -/** - * @brief Server string Reply - */ -message StringReply { - Status status = 1; - string string_reply = 2; -} - -/** - * @brief Server bool Reply - */ -message BoolReply { - Status status = 1; - bool bool_reply = 2; -} - -/** - * @brief Return collection row count - */ -message CollectionRowCount { - Status status = 1; - int64 collection_row_count = 2; -} - -/** - * @brief Server command parameters - */ -message Command { - string cmd = 1; -} - -/** - * @brief Index params - * @collection_name: target collection - * @field_name: target field - * @index_name: a name for index provided by user, unique within this field - * @extra_params: index parameters in json format - * for vector field: - * extra_params["index_type"] = one of the values: FLAT, IVF_LAT, IVF_SQ8, NSGMIX, IVFSQ8H, - * PQ, HNSW, HNSW_SQ8NM, ANNOY - * extra_params["metric_type"] = one of the values: L2, IP, HAMMING, JACCARD, TANIMOTO - * SUBSTRUCTURE, SUPERSTRUCTURE - * extra_params["params"] = extra parameters for index, for example ivflat: {nlist: 2048} - * for structured field: - * extra_params["index_type"] = one of the values: SORTED - */ -message IndexParam { - Status status = 1; - string collection_name = 2; - string field_name = 3; - string index_name = 4; - repeated KeyValuePair extra_params = 5; -} - -/** - * @brief Parameters for flush action - */ -message FlushParam { - repeated string collection_name_array = 1; -} - -/** - * @brief Parameters for flush action - */ -message CompactParam { - string collection_name = 1; - double threshold = 2; -} - -/** - * @brief Parameters for deleting entities by id - */ -message DeleteByIDParam { - string collection_name = 1; - repeated int64 id_array = 2; -} - -/** - * @brief Return collection stats - * @json_info: collection stats in json format, typically, the format is like: - * { - * row_count: xxx, - * data_size: xxx, - * partitions: [ - * { - * tag: xxx, - * id: xxx, - * row_count: xxx, - * data_size: xxx, - * segments: [ - * { - * id: xxx, - * row_count: xxx, - * data_size: xxx, - * files: [ - * { - * field: xxx, - * name: xxx, - * index_type: xxx, - * path: xxx, - * data_size: xxx, - * } - * ] - * } - * ] - * } - * ] - * } - */ -message CollectionInfo { - Status status = 1; - string json_info = 2; -} - -/** - * @brief Parameters for returning entities id of a segment - */ -message GetEntityIDsParam { - string collection_name = 1; - int64 segment_id = 2; -} - -/** - * @brief Entities identity - */ -message EntityIdentity { - string collection_name = 1; - repeated int64 id_array = 2; - repeated string field_names = 3; -} - -/********************************************SearchPB interface***************************************************/ -/** - * @brief Vector field parameters - */ -message VectorFieldParam { - int64 dimension = 1; -} - -/** - * @brief Field type - */ -message FieldType { - oneof value { - DataType data_type = 1; - VectorFieldParam vector_param = 2; - } -} - -/** - * @brief Field parameters - */ -message FieldParam { - uint64 id = 1; - string name = 2; - DataType type = 3; - repeated KeyValuePair index_params = 4; - repeated KeyValuePair extra_params = 5; -} - -/** - * @brief Vector field record - */ -message VectorFieldRecord { - repeated VectorRowRecord value = 1; -} - -/////////////////////////////////////////////////////////////////// - -message TermQuery { - string field_name = 1; - repeated int64 int_value = 2; - repeated double double_value = 3; - int64 value_num = 4; - float boost = 5; - repeated KeyValuePair extra_params = 6; -} - -enum CompareOperator { - LT = 0; - LTE = 1; - EQ = 2; - GT = 3; - GTE = 4; - NE = 5; -} - -message CompareExpr { - CompareOperator operator = 1; - string operand = 2; -} - -message RangeQuery { - string field_name = 1; - repeated CompareExpr operand = 2; - float boost = 3; - repeated KeyValuePair extra_params = 4; -} - -message VectorQuery { - string field_name = 1; - float query_boost = 2; - repeated VectorRowRecord records = 3; - int64 topk = 4; - repeated KeyValuePair extra_params = 5; -} - -enum Occur { - INVALID = 0; - MUST = 1; - SHOULD = 2; - MUST_NOT = 3; -} - -message BooleanQuery { - Occur occur = 1; - repeated GeneralQuery general_query = 2; -} - -message GeneralQuery { - oneof query { - BooleanQuery boolean_query = 1; - TermQuery term_query = 2; - RangeQuery range_query = 3; - VectorQuery vector_query = 4; - } -} - -message SearchParamPB { - string collection_name = 1; - repeated string partition_tag_array = 2; - GeneralQuery general_query = 3; - repeated KeyValuePair extra_params = 4; -} - -service MilvusService { - /** - * @brief This method is used to create collection - * - * @param CollectionSchema, use to provide collection information to be created. - * - * @return Status - */ - rpc CreateCollection(Mapping) returns (Status){} - - /** - * @brief This method is used to test collection existence. - * - * @param CollectionName, collection name is going to be tested. - * - * @return BoolReply - */ - rpc HasCollection(CollectionName) returns (BoolReply) {} - - /** - * @brief This method is used to get collection schema. - * - * @param CollectionName, target collection name. - * - * @return CollectionSchema - */ - rpc DescribeCollection(CollectionName) returns (Mapping) {} - - /** - * @brief This method is used to get collection schema. - * - * @param CollectionName, target collection name. - * - * @return CollectionRowCount - */ - rpc CountCollection(CollectionName) returns (CollectionRowCount) {} - - /** - * @brief This method is used to list all collections. - * - * @param Command, dummy parameter. - * - * @return CollectionNameList - */ - rpc ShowCollections(Command) returns (CollectionNameList) {} - - /** - * @brief This method is used to get collection detail information. - * - * @param CollectionName, target collection name. - * - * @return CollectionInfo - */ - rpc ShowCollectionInfo(CollectionName) returns (CollectionInfo) {} - - /** - * @brief This method is used to delete collection. - * - * @param CollectionName, collection name is going to be deleted. - * - * @return Status - */ - rpc DropCollection(CollectionName) returns (Status) {} - - /** - * @brief This method is used to build index by collection in sync mode. - * - * @param IndexParam, index paramters. - * - * @return Status - */ - rpc CreateIndex(IndexParam) returns (Status) {} - - /** - * @brief This method is used to describe index - * - * @param IndexParam, target index. - * - * @return IndexParam - */ - rpc DescribeIndex(IndexParam) returns (IndexParam) {} - - /** - * @brief This method is used to drop index - * - * @param IndexParam, target field. if the IndexParam.field_name is empty, will drop all index of the collection - * - * @return Status - */ - rpc DropIndex(IndexParam) returns (Status) {} - - /** - * @brief This method is used to create partition - * - * @param PartitionParam, partition parameters. - * - * @return Status - */ - rpc CreatePartition(PartitionParam) returns (Status) {} - - /** - * @brief This method is used to test partition existence. - * - * @param PartitionParam, target partition. - * - * @return BoolReply - */ - rpc HasPartition(PartitionParam) returns (BoolReply) {} - - /** - * @brief This method is used to show partition information - * - * @param CollectionName, target collection name. - * - * @return PartitionList - */ - rpc ShowPartitions(CollectionName) returns (PartitionList) {} - - /** - * @brief This method is used to drop partition - * - * @param PartitionParam, target partition. - * - * @return Status - */ - rpc DropPartition(PartitionParam) returns (Status) {} - - /** - * @brief This method is used to add vector array to collection. - * - * @param InsertParam, insert parameters. - * - * @return VectorIds - */ - rpc Insert(InsertParam) returns (EntityIds) {} - - /** - * @brief This method is used to get entities data by id array. - * - * @param EntitiesIdentity, target entity id array. - * - * @return EntitiesData - */ - rpc GetEntityByID(EntityIdentity) returns (Entities) {} - - /** - * @brief This method is used to get vector ids from a segment - * - * @param GetVectorIDsParam, target collection and segment - * - * @return VectorIds - */ - rpc GetEntityIDs(GetEntityIDsParam) returns (EntityIds) {} - - /** - * @brief This method is used to query vector in collection. - * - * @param SearchParam, search parameters. - * - * @return KQueryResult - */ - rpc Search(SearchParam) returns (QueryResult) {} - - /** - * @brief This method is used to query vector in specified files. - * - * @param SearchInSegmentParam, target segments to search. - * - * @return TopKQueryResult - */ - rpc SearchInSegment(SearchInSegmentParam) returns (QueryResult) {} - - /** - * @brief This method is used to give the server status. - * - * @param Command, command string - * - * @return StringReply - */ - rpc Cmd(Command) returns (StringReply) {} - - /** - * @brief This method is used to delete vector by id - * - * @param DeleteByIDParam, delete parameters. - * - * @return status - */ - rpc DeleteByID(DeleteByIDParam) returns (Status) {} - - /** - * @brief This method is used to preload collection - * - * @param CollectionName, target collection name. - * - * @return Status - */ - rpc PreloadCollection(CollectionName) returns (Status) {} - - /** - * @brief This method is used to flush buffer into storage. - * - * @param FlushParam, flush parameters - * - * @return Status - */ - rpc Flush(FlushParam) returns (Status) {} - - /** - * @brief This method is used to compact collection - * - * @param CompactParam, compact parameters - * - * @return Status - */ - rpc Compact(CompactParam) returns (Status) {} - - /********************************New Interface********************************************/ - - rpc SearchPB(SearchParamPB) returns (QueryResult) {} -} diff --git a/pulsar/client-go/pb/suvlim.pb.go b/pulsar/client-go/pb/suvlim.pb.go deleted file mode 100644 index 88ee9f7340..0000000000 --- a/pulsar/client-go/pb/suvlim.pb.go +++ /dev/null @@ -1,4891 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc (unknown) -// source: suvlim.proto - -package pb - -import ( - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type ErrorCode int32 - -const ( - ErrorCode_SUCCESS ErrorCode = 0 - ErrorCode_UNEXPECTED_ERROR ErrorCode = 1 - ErrorCode_CONNECT_FAILED ErrorCode = 2 - ErrorCode_PERMISSION_DENIED ErrorCode = 3 - ErrorCode_COLLECTION_NOT_EXISTS ErrorCode = 4 - ErrorCode_ILLEGAL_ARGUMENT ErrorCode = 5 - ErrorCode_ILLEGAL_DIMENSION ErrorCode = 7 - ErrorCode_ILLEGAL_INDEX_TYPE ErrorCode = 8 - ErrorCode_ILLEGAL_COLLECTION_NAME ErrorCode = 9 - ErrorCode_ILLEGAL_TOPK ErrorCode = 10 - ErrorCode_ILLEGAL_ROWRECORD ErrorCode = 11 - ErrorCode_ILLEGAL_VECTOR_ID ErrorCode = 12 - ErrorCode_ILLEGAL_SEARCH_RESULT ErrorCode = 13 - ErrorCode_FILE_NOT_FOUND ErrorCode = 14 - ErrorCode_META_FAILED ErrorCode = 15 - ErrorCode_CACHE_FAILED ErrorCode = 16 - ErrorCode_CANNOT_CREATE_FOLDER ErrorCode = 17 - ErrorCode_CANNOT_CREATE_FILE ErrorCode = 18 - ErrorCode_CANNOT_DELETE_FOLDER ErrorCode = 19 - ErrorCode_CANNOT_DELETE_FILE ErrorCode = 20 - ErrorCode_BUILD_INDEX_ERROR ErrorCode = 21 - ErrorCode_ILLEGAL_NLIST ErrorCode = 22 - ErrorCode_ILLEGAL_METRIC_TYPE ErrorCode = 23 - ErrorCode_OUT_OF_MEMORY ErrorCode = 24 -) - -// Enum value maps for ErrorCode. -var ( - ErrorCode_name = map[int32]string{ - 0: "SUCCESS", - 1: "UNEXPECTED_ERROR", - 2: "CONNECT_FAILED", - 3: "PERMISSION_DENIED", - 4: "COLLECTION_NOT_EXISTS", - 5: "ILLEGAL_ARGUMENT", - 7: "ILLEGAL_DIMENSION", - 8: "ILLEGAL_INDEX_TYPE", - 9: "ILLEGAL_COLLECTION_NAME", - 10: "ILLEGAL_TOPK", - 11: "ILLEGAL_ROWRECORD", - 12: "ILLEGAL_VECTOR_ID", - 13: "ILLEGAL_SEARCH_RESULT", - 14: "FILE_NOT_FOUND", - 15: "META_FAILED", - 16: "CACHE_FAILED", - 17: "CANNOT_CREATE_FOLDER", - 18: "CANNOT_CREATE_FILE", - 19: "CANNOT_DELETE_FOLDER", - 20: "CANNOT_DELETE_FILE", - 21: "BUILD_INDEX_ERROR", - 22: "ILLEGAL_NLIST", - 23: "ILLEGAL_METRIC_TYPE", - 24: "OUT_OF_MEMORY", - } - ErrorCode_value = map[string]int32{ - "SUCCESS": 0, - "UNEXPECTED_ERROR": 1, - "CONNECT_FAILED": 2, - "PERMISSION_DENIED": 3, - "COLLECTION_NOT_EXISTS": 4, - "ILLEGAL_ARGUMENT": 5, - "ILLEGAL_DIMENSION": 7, - "ILLEGAL_INDEX_TYPE": 8, - "ILLEGAL_COLLECTION_NAME": 9, - "ILLEGAL_TOPK": 10, - "ILLEGAL_ROWRECORD": 11, - "ILLEGAL_VECTOR_ID": 12, - "ILLEGAL_SEARCH_RESULT": 13, - "FILE_NOT_FOUND": 14, - "META_FAILED": 15, - "CACHE_FAILED": 16, - "CANNOT_CREATE_FOLDER": 17, - "CANNOT_CREATE_FILE": 18, - "CANNOT_DELETE_FOLDER": 19, - "CANNOT_DELETE_FILE": 20, - "BUILD_INDEX_ERROR": 21, - "ILLEGAL_NLIST": 22, - "ILLEGAL_METRIC_TYPE": 23, - "OUT_OF_MEMORY": 24, - } -) - -func (x ErrorCode) Enum() *ErrorCode { - p := new(ErrorCode) - *p = x - return p -} - -func (x ErrorCode) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ErrorCode) Descriptor() protoreflect.EnumDescriptor { - return file_suvlim_proto_enumTypes[0].Descriptor() -} - -func (ErrorCode) Type() protoreflect.EnumType { - return &file_suvlim_proto_enumTypes[0] -} - -func (x ErrorCode) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ErrorCode.Descriptor instead. -func (ErrorCode) EnumDescriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{0} -} - -//* -// @brief Field data type -type DataType int32 - -const ( - DataType_NONE DataType = 0 - DataType_BOOL DataType = 1 - DataType_INT8 DataType = 2 - DataType_INT16 DataType = 3 - DataType_INT32 DataType = 4 - DataType_INT64 DataType = 5 - DataType_FLOAT DataType = 10 - DataType_DOUBLE DataType = 11 - DataType_STRING DataType = 20 - DataType_VECTOR_BINARY DataType = 100 - DataType_VECTOR_FLOAT DataType = 101 -) - -// Enum value maps for DataType. -var ( - DataType_name = map[int32]string{ - 0: "NONE", - 1: "BOOL", - 2: "INT8", - 3: "INT16", - 4: "INT32", - 5: "INT64", - 10: "FLOAT", - 11: "DOUBLE", - 20: "STRING", - 100: "VECTOR_BINARY", - 101: "VECTOR_FLOAT", - } - DataType_value = map[string]int32{ - "NONE": 0, - "BOOL": 1, - "INT8": 2, - "INT16": 3, - "INT32": 4, - "INT64": 5, - "FLOAT": 10, - "DOUBLE": 11, - "STRING": 20, - "VECTOR_BINARY": 100, - "VECTOR_FLOAT": 101, - } -) - -func (x DataType) Enum() *DataType { - p := new(DataType) - *p = x - return p -} - -func (x DataType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (DataType) Descriptor() protoreflect.EnumDescriptor { - return file_suvlim_proto_enumTypes[1].Descriptor() -} - -func (DataType) Type() protoreflect.EnumType { - return &file_suvlim_proto_enumTypes[1] -} - -func (x DataType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use DataType.Descriptor instead. -func (DataType) EnumDescriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{1} -} - -type CompareOperator int32 - -const ( - CompareOperator_LT CompareOperator = 0 - CompareOperator_LTE CompareOperator = 1 - CompareOperator_EQ CompareOperator = 2 - CompareOperator_GT CompareOperator = 3 - CompareOperator_GTE CompareOperator = 4 - CompareOperator_NE CompareOperator = 5 -) - -// Enum value maps for CompareOperator. -var ( - CompareOperator_name = map[int32]string{ - 0: "LT", - 1: "LTE", - 2: "EQ", - 3: "GT", - 4: "GTE", - 5: "NE", - } - CompareOperator_value = map[string]int32{ - "LT": 0, - "LTE": 1, - "EQ": 2, - "GT": 3, - "GTE": 4, - "NE": 5, - } -) - -func (x CompareOperator) Enum() *CompareOperator { - p := new(CompareOperator) - *p = x - return p -} - -func (x CompareOperator) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (CompareOperator) Descriptor() protoreflect.EnumDescriptor { - return file_suvlim_proto_enumTypes[2].Descriptor() -} - -func (CompareOperator) Type() protoreflect.EnumType { - return &file_suvlim_proto_enumTypes[2] -} - -func (x CompareOperator) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use CompareOperator.Descriptor instead. -func (CompareOperator) EnumDescriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{2} -} - -type Occur int32 - -const ( - Occur_INVALID Occur = 0 - Occur_MUST Occur = 1 - Occur_SHOULD Occur = 2 - Occur_MUST_NOT Occur = 3 -) - -// Enum value maps for Occur. -var ( - Occur_name = map[int32]string{ - 0: "INVALID", - 1: "MUST", - 2: "SHOULD", - 3: "MUST_NOT", - } - Occur_value = map[string]int32{ - "INVALID": 0, - "MUST": 1, - "SHOULD": 2, - "MUST_NOT": 3, - } -) - -func (x Occur) Enum() *Occur { - p := new(Occur) - *p = x - return p -} - -func (x Occur) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Occur) Descriptor() protoreflect.EnumDescriptor { - return file_suvlim_proto_enumTypes[3].Descriptor() -} - -func (Occur) Type() protoreflect.EnumType { - return &file_suvlim_proto_enumTypes[3] -} - -func (x Occur) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Occur.Descriptor instead. -func (Occur) EnumDescriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{3} -} - -////////////////////pulsar////////////////////////////////////// -type OpType int32 - -const ( - OpType_INSERT OpType = 0 - OpType_DELETE OpType = 1 - OpType_SEARCH OpType = 2 - OpType_SEARCH_RESULT OpType = 3 -) - -// Enum value maps for OpType. -var ( - OpType_name = map[int32]string{ - 0: "INSERT", - 1: "DELETE", - 2: "SEARCH", - 3: "SEARCH_RESULT", - } - OpType_value = map[string]int32{ - "INSERT": 0, - "DELETE": 1, - "SEARCH": 2, - "SEARCH_RESULT": 3, - } -) - -func (x OpType) Enum() *OpType { - p := new(OpType) - *p = x - return p -} - -func (x OpType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OpType) Descriptor() protoreflect.EnumDescriptor { - return file_suvlim_proto_enumTypes[4].Descriptor() -} - -func (OpType) Type() protoreflect.EnumType { - return &file_suvlim_proto_enumTypes[4] -} - -func (x OpType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OpType.Descriptor instead. -func (OpType) EnumDescriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{4} -} - -type Status struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ErrorCode ErrorCode `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3,enum=milvus.grpc.ErrorCode" json:"error_code,omitempty"` - Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` -} - -func (x *Status) Reset() { - *x = Status{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Status) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Status) ProtoMessage() {} - -func (x *Status) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Status.ProtoReflect.Descriptor instead. -func (*Status) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{0} -} - -func (x *Status) GetErrorCode() ErrorCode { - if x != nil { - return x.ErrorCode - } - return ErrorCode_SUCCESS -} - -func (x *Status) GetReason() string { - if x != nil { - return x.Reason - } - return "" -} - -//* -// @brief General usage -type KeyValuePair struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *KeyValuePair) Reset() { - *x = KeyValuePair{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *KeyValuePair) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*KeyValuePair) ProtoMessage() {} - -func (x *KeyValuePair) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use KeyValuePair.ProtoReflect.Descriptor instead. -func (*KeyValuePair) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{1} -} - -func (x *KeyValuePair) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *KeyValuePair) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -//* -// @brief Collection name -type CollectionName struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` -} - -func (x *CollectionName) Reset() { - *x = CollectionName{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CollectionName) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CollectionName) ProtoMessage() {} - -func (x *CollectionName) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CollectionName.ProtoReflect.Descriptor instead. -func (*CollectionName) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{2} -} - -func (x *CollectionName) GetCollectionName() string { - if x != nil { - return x.CollectionName - } - return "" -} - -//* -// @brief Collection name list -type CollectionNameList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - CollectionNames []string `protobuf:"bytes,2,rep,name=collection_names,json=collectionNames,proto3" json:"collection_names,omitempty"` -} - -func (x *CollectionNameList) Reset() { - *x = CollectionNameList{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CollectionNameList) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CollectionNameList) ProtoMessage() {} - -func (x *CollectionNameList) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CollectionNameList.ProtoReflect.Descriptor instead. -func (*CollectionNameList) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{3} -} - -func (x *CollectionNameList) GetStatus() *Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *CollectionNameList) GetCollectionNames() []string { - if x != nil { - return x.CollectionNames - } - return nil -} - -//* -// @brief Field name -type FieldName struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - 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"` -} - -func (x *FieldName) Reset() { - *x = FieldName{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FieldName) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FieldName) ProtoMessage() {} - -func (x *FieldName) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FieldName.ProtoReflect.Descriptor instead. -func (*FieldName) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{4} -} - -func (x *FieldName) GetCollectionName() string { - if x != nil { - return x.CollectionName - } - return "" -} - -func (x *FieldName) GetFieldName() string { - if x != nil { - return x.FieldName - } - return "" -} - -//* -// @brief Collection mapping -// @extra_params: key-value pair for extra parameters of the collection -// typically usage: -// extra_params["params"] = {segment_row_count: 1000000, auto_id: true} -// Note: -// the segment_row_count specify segment row count limit for merging -// the auto_id = true means entity id is auto-generated by milvus -type Mapping struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *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"` - Fields []*FieldParam `protobuf:"bytes,3,rep,name=fields,proto3" json:"fields,omitempty"` - ExtraParams []*KeyValuePair `protobuf:"bytes,4,rep,name=extra_params,json=extraParams,proto3" json:"extra_params,omitempty"` -} - -func (x *Mapping) Reset() { - *x = Mapping{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Mapping) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Mapping) ProtoMessage() {} - -func (x *Mapping) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Mapping.ProtoReflect.Descriptor instead. -func (*Mapping) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{5} -} - -func (x *Mapping) GetStatus() *Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *Mapping) GetCollectionName() string { - if x != nil { - return x.CollectionName - } - return "" -} - -func (x *Mapping) GetFields() []*FieldParam { - if x != nil { - return x.Fields - } - return nil -} - -func (x *Mapping) GetExtraParams() []*KeyValuePair { - if x != nil { - return x.ExtraParams - } - return nil -} - -//* -// @brief Collection mapping list -type MappingList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - MappingList []*Mapping `protobuf:"bytes,2,rep,name=mapping_list,json=mappingList,proto3" json:"mapping_list,omitempty"` -} - -func (x *MappingList) Reset() { - *x = MappingList{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MappingList) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MappingList) ProtoMessage() {} - -func (x *MappingList) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MappingList.ProtoReflect.Descriptor instead. -func (*MappingList) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{6} -} - -func (x *MappingList) GetStatus() *Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *MappingList) GetMappingList() []*Mapping { - if x != nil { - return x.MappingList - } - return nil -} - -//* -// @brief Parameters of partition -type PartitionParam struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - 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"` -} - -func (x *PartitionParam) Reset() { - *x = PartitionParam{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PartitionParam) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PartitionParam) ProtoMessage() {} - -func (x *PartitionParam) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PartitionParam.ProtoReflect.Descriptor instead. -func (*PartitionParam) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{7} -} - -func (x *PartitionParam) GetCollectionName() string { - if x != nil { - return x.CollectionName - } - return "" -} - -func (x *PartitionParam) GetTag() string { - if x != nil { - return x.Tag - } - return "" -} - -//* -// @brief Partition list -type PartitionList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - PartitionTagArray []string `protobuf:"bytes,2,rep,name=partition_tag_array,json=partitionTagArray,proto3" json:"partition_tag_array,omitempty"` -} - -func (x *PartitionList) Reset() { - *x = PartitionList{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PartitionList) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PartitionList) ProtoMessage() {} - -func (x *PartitionList) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PartitionList.ProtoReflect.Descriptor instead. -func (*PartitionList) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{8} -} - -func (x *PartitionList) GetStatus() *Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *PartitionList) GetPartitionTagArray() []string { - if x != nil { - return x.PartitionTagArray - } - return nil -} - -//* -// @brief Vector row record -type VectorRowRecord struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - FloatData []float32 `protobuf:"fixed32,1,rep,packed,name=float_data,json=floatData,proto3" json:"float_data,omitempty"` //float vector data - BinaryData []byte `protobuf:"bytes,2,opt,name=binary_data,json=binaryData,proto3" json:"binary_data,omitempty"` //binary vector data -} - -func (x *VectorRowRecord) Reset() { - *x = VectorRowRecord{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VectorRowRecord) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VectorRowRecord) ProtoMessage() {} - -func (x *VectorRowRecord) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VectorRowRecord.ProtoReflect.Descriptor instead. -func (*VectorRowRecord) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{9} -} - -func (x *VectorRowRecord) GetFloatData() []float32 { - if x != nil { - return x.FloatData - } - return nil -} - -func (x *VectorRowRecord) GetBinaryData() []byte { - if x != nil { - return x.BinaryData - } - return nil -} - -type EntityIds struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - EntityIdArray []int64 `protobuf:"varint,2,rep,packed,name=entity_id_array,json=entityIdArray,proto3" json:"entity_id_array,omitempty"` -} - -func (x *EntityIds) Reset() { - *x = EntityIds{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EntityIds) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EntityIds) ProtoMessage() {} - -func (x *EntityIds) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EntityIds.ProtoReflect.Descriptor instead. -func (*EntityIds) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{10} -} - -func (x *EntityIds) GetStatus() *Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *EntityIds) GetEntityIdArray() []int64 { - if x != nil { - return x.EntityIdArray - } - return nil -} - -type VectorRecord struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Records []*VectorRowRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` -} - -func (x *VectorRecord) Reset() { - *x = VectorRecord{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VectorRecord) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VectorRecord) ProtoMessage() {} - -func (x *VectorRecord) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VectorRecord.ProtoReflect.Descriptor instead. -func (*VectorRecord) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{11} -} - -func (x *VectorRecord) GetRecords() []*VectorRowRecord { - if x != nil { - return x.Records - } - return nil -} - -type VectorParam struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Json string `protobuf:"bytes,1,opt,name=json,proto3" json:"json,omitempty"` - RowRecord *VectorRecord `protobuf:"bytes,2,opt,name=row_record,json=rowRecord,proto3" json:"row_record,omitempty"` -} - -func (x *VectorParam) Reset() { - *x = VectorParam{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VectorParam) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VectorParam) ProtoMessage() {} - -func (x *VectorParam) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VectorParam.ProtoReflect.Descriptor instead. -func (*VectorParam) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{12} -} - -func (x *VectorParam) GetJson() string { - if x != nil { - return x.Json - } - return "" -} - -func (x *VectorParam) GetRowRecord() *VectorRecord { - if x != nil { - return x.RowRecord - } - return nil -} - -//* -// @brief schema -type FieldMeta struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` - Type DataType `protobuf:"varint,2,opt,name=type,proto3,enum=milvus.grpc.DataType" json:"type,omitempty"` - Dim int64 `protobuf:"varint,3,opt,name=dim,proto3" json:"dim,omitempty"` -} - -func (x *FieldMeta) Reset() { - *x = FieldMeta{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FieldMeta) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FieldMeta) ProtoMessage() {} - -func (x *FieldMeta) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FieldMeta.ProtoReflect.Descriptor instead. -func (*FieldMeta) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{13} -} - -func (x *FieldMeta) GetFieldName() string { - if x != nil { - return x.FieldName - } - return "" -} - -func (x *FieldMeta) GetType() DataType { - if x != nil { - return x.Type - } - return DataType_NONE -} - -func (x *FieldMeta) GetDim() int64 { - if x != nil { - return x.Dim - } - return 0 -} - -type Schema struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - FieldMetas []*FieldMeta `protobuf:"bytes,1,rep,name=field_metas,json=fieldMetas,proto3" json:"field_metas,omitempty"` -} - -func (x *Schema) Reset() { - *x = Schema{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Schema) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Schema) ProtoMessage() {} - -func (x *Schema) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Schema.ProtoReflect.Descriptor instead. -func (*Schema) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{14} -} - -func (x *Schema) GetFieldMetas() []*FieldMeta { - if x != nil { - return x.FieldMetas - } - return nil -} - -type RowData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Blob []byte `protobuf:"bytes,1,opt,name=blob,proto3" json:"blob,omitempty"` -} - -func (x *RowData) Reset() { - *x = RowData{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RowData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RowData) ProtoMessage() {} - -func (x *RowData) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RowData.ProtoReflect.Descriptor instead. -func (*RowData) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{15} -} - -func (x *RowData) GetBlob() []byte { - if x != nil { - return x.Blob - } - return nil -} - -//////////////////////suvlim-proxy/////////////////////////////////// -type InsertParam struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - Schema *Schema `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"` - RowsData []*RowData `protobuf:"bytes,3,rep,name=rows_data,json=rowsData,proto3" json:"rows_data,omitempty"` - EntityIdArray []int64 `protobuf:"varint,4,rep,packed,name=entity_id_array,json=entityIdArray,proto3" json:"entity_id_array,omitempty"` //optional - PartitionTag string `protobuf:"bytes,5,opt,name=partition_tag,json=partitionTag,proto3" json:"partition_tag,omitempty"` - ExtraParams []*KeyValuePair `protobuf:"bytes,6,rep,name=extra_params,json=extraParams,proto3" json:"extra_params,omitempty"` -} - -func (x *InsertParam) Reset() { - *x = InsertParam{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InsertParam) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InsertParam) ProtoMessage() {} - -func (x *InsertParam) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InsertParam.ProtoReflect.Descriptor instead. -func (*InsertParam) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{16} -} - -func (x *InsertParam) GetCollectionName() string { - if x != nil { - return x.CollectionName - } - return "" -} - -func (x *InsertParam) GetSchema() *Schema { - if x != nil { - return x.Schema - } - return nil -} - -func (x *InsertParam) GetRowsData() []*RowData { - if x != nil { - return x.RowsData - } - return nil -} - -func (x *InsertParam) GetEntityIdArray() []int64 { - if x != nil { - return x.EntityIdArray - } - return nil -} - -func (x *InsertParam) GetPartitionTag() string { - if x != nil { - return x.PartitionTag - } - return "" -} - -func (x *InsertParam) GetExtraParams() []*KeyValuePair { - if x != nil { - return x.ExtraParams - } - return nil -} - -type SearchParam struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - VectorParam []*VectorParam `protobuf:"bytes,2,rep,name=vector_param,json=vectorParam,proto3" json:"vector_param,omitempty"` - Dsl string `protobuf:"bytes,3,opt,name=dsl,proto3" json:"dsl,omitempty"` //optional - PartitionTag []string `protobuf:"bytes,4,rep,name=partition_tag,json=partitionTag,proto3" json:"partition_tag,omitempty"` //why - ExtraParams []*KeyValuePair `protobuf:"bytes,5,rep,name=extra_params,json=extraParams,proto3" json:"extra_params,omitempty"` -} - -func (x *SearchParam) Reset() { - *x = SearchParam{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SearchParam) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SearchParam) ProtoMessage() {} - -func (x *SearchParam) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SearchParam.ProtoReflect.Descriptor instead. -func (*SearchParam) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{17} -} - -func (x *SearchParam) GetCollectionName() string { - if x != nil { - return x.CollectionName - } - return "" -} - -func (x *SearchParam) GetVectorParam() []*VectorParam { - if x != nil { - return x.VectorParam - } - return nil -} - -func (x *SearchParam) GetDsl() string { - if x != nil { - return x.Dsl - } - return "" -} - -func (x *SearchParam) GetPartitionTag() []string { - if x != nil { - return x.PartitionTag - } - return nil -} - -func (x *SearchParam) GetExtraParams() []*KeyValuePair { - if x != nil { - return x.ExtraParams - } - return nil -} - -type SearchInSegmentParam struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - FileIdArray []string `protobuf:"bytes,1,rep,name=file_id_array,json=fileIdArray,proto3" json:"file_id_array,omitempty"` - SearchParam *SearchParam `protobuf:"bytes,2,opt,name=search_param,json=searchParam,proto3" json:"search_param,omitempty"` -} - -func (x *SearchInSegmentParam) Reset() { - *x = SearchInSegmentParam{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SearchInSegmentParam) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SearchInSegmentParam) ProtoMessage() {} - -func (x *SearchInSegmentParam) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SearchInSegmentParam.ProtoReflect.Descriptor instead. -func (*SearchInSegmentParam) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{18} -} - -func (x *SearchInSegmentParam) GetFileIdArray() []string { - if x != nil { - return x.FileIdArray - } - return nil -} - -func (x *SearchInSegmentParam) GetSearchParam() *SearchParam { - if x != nil { - return x.SearchParam - } - return nil -} - -type Entities struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - Ids []int64 `protobuf:"varint,2,rep,packed,name=ids,proto3" json:"ids,omitempty"` - ValidRow []bool `protobuf:"varint,3,rep,packed,name=valid_row,json=validRow,proto3" json:"valid_row,omitempty"` - RowsData []*RowData `protobuf:"bytes,4,rep,name=rows_data,json=rowsData,proto3" json:"rows_data,omitempty"` -} - -func (x *Entities) Reset() { - *x = Entities{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Entities) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Entities) ProtoMessage() {} - -func (x *Entities) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Entities.ProtoReflect.Descriptor instead. -func (*Entities) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{19} -} - -func (x *Entities) GetStatus() *Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *Entities) GetIds() []int64 { - if x != nil { - return x.Ids - } - return nil -} - -func (x *Entities) GetValidRow() []bool { - if x != nil { - return x.ValidRow - } - return nil -} - -func (x *Entities) GetRowsData() []*RowData { - if x != nil { - return x.RowsData - } - return nil -} - -//* -// @brief Query result -type QueryResult struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - Entities *Entities `protobuf:"bytes,2,opt,name=entities,proto3" json:"entities,omitempty"` - RowNum int64 `protobuf:"varint,3,opt,name=row_num,json=rowNum,proto3" json:"row_num,omitempty"` - Scores []float32 `protobuf:"fixed32,4,rep,packed,name=scores,proto3" json:"scores,omitempty"` - Distances []float32 `protobuf:"fixed32,5,rep,packed,name=distances,proto3" json:"distances,omitempty"` - ExtraParams []*KeyValuePair `protobuf:"bytes,6,rep,name=extra_params,json=extraParams,proto3" json:"extra_params,omitempty"` -} - -func (x *QueryResult) Reset() { - *x = QueryResult{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryResult) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryResult) ProtoMessage() {} - -func (x *QueryResult) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use QueryResult.ProtoReflect.Descriptor instead. -func (*QueryResult) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{20} -} - -func (x *QueryResult) GetStatus() *Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *QueryResult) GetEntities() *Entities { - if x != nil { - return x.Entities - } - return nil -} - -func (x *QueryResult) GetRowNum() int64 { - if x != nil { - return x.RowNum - } - return 0 -} - -func (x *QueryResult) GetScores() []float32 { - if x != nil { - return x.Scores - } - return nil -} - -func (x *QueryResult) GetDistances() []float32 { - if x != nil { - return x.Distances - } - return nil -} - -func (x *QueryResult) GetExtraParams() []*KeyValuePair { - if x != nil { - return x.ExtraParams - } - return nil -} - -//* -// @brief Server string Reply -type StringReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - StringReply string `protobuf:"bytes,2,opt,name=string_reply,json=stringReply,proto3" json:"string_reply,omitempty"` -} - -func (x *StringReply) Reset() { - *x = StringReply{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StringReply) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StringReply) ProtoMessage() {} - -func (x *StringReply) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StringReply.ProtoReflect.Descriptor instead. -func (*StringReply) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{21} -} - -func (x *StringReply) GetStatus() *Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *StringReply) GetStringReply() string { - if x != nil { - return x.StringReply - } - return "" -} - -//* -// @brief Server bool Reply -type BoolReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - BoolReply bool `protobuf:"varint,2,opt,name=bool_reply,json=boolReply,proto3" json:"bool_reply,omitempty"` -} - -func (x *BoolReply) Reset() { - *x = BoolReply{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BoolReply) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BoolReply) ProtoMessage() {} - -func (x *BoolReply) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BoolReply.ProtoReflect.Descriptor instead. -func (*BoolReply) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{22} -} - -func (x *BoolReply) GetStatus() *Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *BoolReply) GetBoolReply() bool { - if x != nil { - return x.BoolReply - } - return false -} - -//* -// @brief Return collection row count -type CollectionRowCount struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - CollectionRowCount int64 `protobuf:"varint,2,opt,name=collection_row_count,json=collectionRowCount,proto3" json:"collection_row_count,omitempty"` -} - -func (x *CollectionRowCount) Reset() { - *x = CollectionRowCount{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CollectionRowCount) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CollectionRowCount) ProtoMessage() {} - -func (x *CollectionRowCount) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CollectionRowCount.ProtoReflect.Descriptor instead. -func (*CollectionRowCount) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{23} -} - -func (x *CollectionRowCount) GetStatus() *Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *CollectionRowCount) GetCollectionRowCount() int64 { - if x != nil { - return x.CollectionRowCount - } - return 0 -} - -//* -// @brief Server command parameters -type Command struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Cmd string `protobuf:"bytes,1,opt,name=cmd,proto3" json:"cmd,omitempty"` -} - -func (x *Command) Reset() { - *x = Command{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Command) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Command) ProtoMessage() {} - -func (x *Command) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Command.ProtoReflect.Descriptor instead. -func (*Command) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{24} -} - -func (x *Command) GetCmd() string { - if x != nil { - return x.Cmd - } - return "" -} - -//* -// @brief Index params -// @collection_name: target collection -// @field_name: target field -// @index_name: a name for index provided by user, unique within this field -// @extra_params: index parameters in json format -// for vector field: -// extra_params["index_type"] = one of the values: FLAT, IVF_LAT, IVF_SQ8, NSGMIX, IVFSQ8H, -// PQ, HNSW, HNSW_SQ8NM, ANNOY -// extra_params["metric_type"] = one of the values: L2, IP, HAMMING, JACCARD, TANIMOTO -// SUBSTRUCTURE, SUPERSTRUCTURE -// extra_params["params"] = extra parameters for index, for example ivflat: {nlist: 2048} -// for structured field: -// extra_params["index_type"] = one of the values: SORTED -type IndexParam struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *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"` - IndexName string `protobuf:"bytes,4,opt,name=index_name,json=indexName,proto3" json:"index_name,omitempty"` - ExtraParams []*KeyValuePair `protobuf:"bytes,5,rep,name=extra_params,json=extraParams,proto3" json:"extra_params,omitempty"` -} - -func (x *IndexParam) Reset() { - *x = IndexParam{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IndexParam) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IndexParam) ProtoMessage() {} - -func (x *IndexParam) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IndexParam.ProtoReflect.Descriptor instead. -func (*IndexParam) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{25} -} - -func (x *IndexParam) GetStatus() *Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *IndexParam) GetCollectionName() string { - if x != nil { - return x.CollectionName - } - return "" -} - -func (x *IndexParam) GetFieldName() string { - if x != nil { - return x.FieldName - } - return "" -} - -func (x *IndexParam) GetIndexName() string { - if x != nil { - return x.IndexName - } - return "" -} - -func (x *IndexParam) GetExtraParams() []*KeyValuePair { - if x != nil { - return x.ExtraParams - } - return nil -} - -//* -// @brief Parameters for flush action -type FlushParam struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CollectionNameArray []string `protobuf:"bytes,1,rep,name=collection_name_array,json=collectionNameArray,proto3" json:"collection_name_array,omitempty"` -} - -func (x *FlushParam) Reset() { - *x = FlushParam{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FlushParam) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FlushParam) ProtoMessage() {} - -func (x *FlushParam) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FlushParam.ProtoReflect.Descriptor instead. -func (*FlushParam) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{26} -} - -func (x *FlushParam) GetCollectionNameArray() []string { - if x != nil { - return x.CollectionNameArray - } - return nil -} - -//* -// @brief Parameters for flush action -type CompactParam struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - Threshold float64 `protobuf:"fixed64,2,opt,name=threshold,proto3" json:"threshold,omitempty"` -} - -func (x *CompactParam) Reset() { - *x = CompactParam{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CompactParam) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CompactParam) ProtoMessage() {} - -func (x *CompactParam) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CompactParam.ProtoReflect.Descriptor instead. -func (*CompactParam) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{27} -} - -func (x *CompactParam) GetCollectionName() string { - if x != nil { - return x.CollectionName - } - return "" -} - -func (x *CompactParam) GetThreshold() float64 { - if x != nil { - return x.Threshold - } - return 0 -} - -//* -// @brief Parameters for deleting entities by id -type DeleteByIDParam struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - IdArray []int64 `protobuf:"varint,2,rep,packed,name=id_array,json=idArray,proto3" json:"id_array,omitempty"` -} - -func (x *DeleteByIDParam) Reset() { - *x = DeleteByIDParam{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteByIDParam) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteByIDParam) ProtoMessage() {} - -func (x *DeleteByIDParam) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteByIDParam.ProtoReflect.Descriptor instead. -func (*DeleteByIDParam) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{28} -} - -func (x *DeleteByIDParam) GetCollectionName() string { - if x != nil { - return x.CollectionName - } - return "" -} - -func (x *DeleteByIDParam) GetIdArray() []int64 { - if x != nil { - return x.IdArray - } - return nil -} - -//* -// @brief Return collection stats -// @json_info: collection stats in json format, typically, the format is like: -// { -// row_count: xxx, -// data_size: xxx, -// partitions: [ -// { -// tag: xxx, -// id: xxx, -// row_count: xxx, -// data_size: xxx, -// segments: [ -// { -// id: xxx, -// row_count: xxx, -// data_size: xxx, -// files: [ -// { -// field: xxx, -// name: xxx, -// index_type: xxx, -// path: xxx, -// data_size: xxx, -// } -// ] -// } -// ] -// } -// ] -// } -type CollectionInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - JsonInfo string `protobuf:"bytes,2,opt,name=json_info,json=jsonInfo,proto3" json:"json_info,omitempty"` -} - -func (x *CollectionInfo) Reset() { - *x = CollectionInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CollectionInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CollectionInfo) ProtoMessage() {} - -func (x *CollectionInfo) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CollectionInfo.ProtoReflect.Descriptor instead. -func (*CollectionInfo) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{29} -} - -func (x *CollectionInfo) GetStatus() *Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *CollectionInfo) GetJsonInfo() string { - if x != nil { - return x.JsonInfo - } - return "" -} - -//* -// @brief Parameters for returning entities id of a segment -type GetEntityIDsParam struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - SegmentId int64 `protobuf:"varint,2,opt,name=segment_id,json=segmentId,proto3" json:"segment_id,omitempty"` -} - -func (x *GetEntityIDsParam) Reset() { - *x = GetEntityIDsParam{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetEntityIDsParam) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetEntityIDsParam) ProtoMessage() {} - -func (x *GetEntityIDsParam) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetEntityIDsParam.ProtoReflect.Descriptor instead. -func (*GetEntityIDsParam) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{30} -} - -func (x *GetEntityIDsParam) GetCollectionName() string { - if x != nil { - return x.CollectionName - } - return "" -} - -func (x *GetEntityIDsParam) GetSegmentId() int64 { - if x != nil { - return x.SegmentId - } - return 0 -} - -//* -// @brief Entities identity -type EntityIdentity struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - IdArray []int64 `protobuf:"varint,2,rep,packed,name=id_array,json=idArray,proto3" json:"id_array,omitempty"` - FieldNames []string `protobuf:"bytes,3,rep,name=field_names,json=fieldNames,proto3" json:"field_names,omitempty"` -} - -func (x *EntityIdentity) Reset() { - *x = EntityIdentity{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EntityIdentity) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EntityIdentity) ProtoMessage() {} - -func (x *EntityIdentity) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EntityIdentity.ProtoReflect.Descriptor instead. -func (*EntityIdentity) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{31} -} - -func (x *EntityIdentity) GetCollectionName() string { - if x != nil { - return x.CollectionName - } - return "" -} - -func (x *EntityIdentity) GetIdArray() []int64 { - if x != nil { - return x.IdArray - } - return nil -} - -func (x *EntityIdentity) GetFieldNames() []string { - if x != nil { - return x.FieldNames - } - return nil -} - -//* -// @brief Vector field parameters -type VectorFieldParam struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Dimension int64 `protobuf:"varint,1,opt,name=dimension,proto3" json:"dimension,omitempty"` -} - -func (x *VectorFieldParam) Reset() { - *x = VectorFieldParam{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VectorFieldParam) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VectorFieldParam) ProtoMessage() {} - -func (x *VectorFieldParam) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VectorFieldParam.ProtoReflect.Descriptor instead. -func (*VectorFieldParam) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{32} -} - -func (x *VectorFieldParam) GetDimension() int64 { - if x != nil { - return x.Dimension - } - return 0 -} - -//* -// @brief Field type -type FieldType struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Value: - // *FieldType_DataType - // *FieldType_VectorParam - Value isFieldType_Value `protobuf_oneof:"value"` -} - -func (x *FieldType) Reset() { - *x = FieldType{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FieldType) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FieldType) ProtoMessage() {} - -func (x *FieldType) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FieldType.ProtoReflect.Descriptor instead. -func (*FieldType) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{33} -} - -func (m *FieldType) GetValue() isFieldType_Value { - if m != nil { - return m.Value - } - return nil -} - -func (x *FieldType) GetDataType() DataType { - if x, ok := x.GetValue().(*FieldType_DataType); ok { - return x.DataType - } - return DataType_NONE -} - -func (x *FieldType) GetVectorParam() *VectorFieldParam { - if x, ok := x.GetValue().(*FieldType_VectorParam); ok { - return x.VectorParam - } - return nil -} - -type isFieldType_Value interface { - isFieldType_Value() -} - -type FieldType_DataType struct { - DataType DataType `protobuf:"varint,1,opt,name=data_type,json=dataType,proto3,enum=milvus.grpc.DataType,oneof"` -} - -type FieldType_VectorParam struct { - VectorParam *VectorFieldParam `protobuf:"bytes,2,opt,name=vector_param,json=vectorParam,proto3,oneof"` -} - -func (*FieldType_DataType) isFieldType_Value() {} - -func (*FieldType_VectorParam) isFieldType_Value() {} - -//* -// @brief Field parameters -type FieldParam struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Type DataType `protobuf:"varint,3,opt,name=type,proto3,enum=milvus.grpc.DataType" json:"type,omitempty"` - IndexParams []*KeyValuePair `protobuf:"bytes,4,rep,name=index_params,json=indexParams,proto3" json:"index_params,omitempty"` - ExtraParams []*KeyValuePair `protobuf:"bytes,5,rep,name=extra_params,json=extraParams,proto3" json:"extra_params,omitempty"` -} - -func (x *FieldParam) Reset() { - *x = FieldParam{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FieldParam) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FieldParam) ProtoMessage() {} - -func (x *FieldParam) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FieldParam.ProtoReflect.Descriptor instead. -func (*FieldParam) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{34} -} - -func (x *FieldParam) GetId() uint64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *FieldParam) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *FieldParam) GetType() DataType { - if x != nil { - return x.Type - } - return DataType_NONE -} - -func (x *FieldParam) GetIndexParams() []*KeyValuePair { - if x != nil { - return x.IndexParams - } - return nil -} - -func (x *FieldParam) GetExtraParams() []*KeyValuePair { - if x != nil { - return x.ExtraParams - } - return nil -} - -//* -// @brief Vector field record -type VectorFieldRecord struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Value []*VectorRowRecord `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` -} - -func (x *VectorFieldRecord) Reset() { - *x = VectorFieldRecord{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VectorFieldRecord) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VectorFieldRecord) ProtoMessage() {} - -func (x *VectorFieldRecord) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VectorFieldRecord.ProtoReflect.Descriptor instead. -func (*VectorFieldRecord) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{35} -} - -func (x *VectorFieldRecord) GetValue() []*VectorRowRecord { - if x != nil { - return x.Value - } - return nil -} - -type TermQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` - IntValue []int64 `protobuf:"varint,2,rep,packed,name=int_value,json=intValue,proto3" json:"int_value,omitempty"` - DoubleValue []float64 `protobuf:"fixed64,3,rep,packed,name=double_value,json=doubleValue,proto3" json:"double_value,omitempty"` - ValueNum int64 `protobuf:"varint,4,opt,name=value_num,json=valueNum,proto3" json:"value_num,omitempty"` - Boost float32 `protobuf:"fixed32,5,opt,name=boost,proto3" json:"boost,omitempty"` - ExtraParams []*KeyValuePair `protobuf:"bytes,6,rep,name=extra_params,json=extraParams,proto3" json:"extra_params,omitempty"` -} - -func (x *TermQuery) Reset() { - *x = TermQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TermQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TermQuery) ProtoMessage() {} - -func (x *TermQuery) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TermQuery.ProtoReflect.Descriptor instead. -func (*TermQuery) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{36} -} - -func (x *TermQuery) GetFieldName() string { - if x != nil { - return x.FieldName - } - return "" -} - -func (x *TermQuery) GetIntValue() []int64 { - if x != nil { - return x.IntValue - } - return nil -} - -func (x *TermQuery) GetDoubleValue() []float64 { - if x != nil { - return x.DoubleValue - } - return nil -} - -func (x *TermQuery) GetValueNum() int64 { - if x != nil { - return x.ValueNum - } - return 0 -} - -func (x *TermQuery) GetBoost() float32 { - if x != nil { - return x.Boost - } - return 0 -} - -func (x *TermQuery) GetExtraParams() []*KeyValuePair { - if x != nil { - return x.ExtraParams - } - return nil -} - -type CompareExpr struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Operator CompareOperator `protobuf:"varint,1,opt,name=operator,proto3,enum=milvus.grpc.CompareOperator" json:"operator,omitempty"` - Operand string `protobuf:"bytes,2,opt,name=operand,proto3" json:"operand,omitempty"` -} - -func (x *CompareExpr) Reset() { - *x = CompareExpr{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CompareExpr) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CompareExpr) ProtoMessage() {} - -func (x *CompareExpr) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CompareExpr.ProtoReflect.Descriptor instead. -func (*CompareExpr) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{37} -} - -func (x *CompareExpr) GetOperator() CompareOperator { - if x != nil { - return x.Operator - } - return CompareOperator_LT -} - -func (x *CompareExpr) GetOperand() string { - if x != nil { - return x.Operand - } - return "" -} - -type RangeQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` - Operand []*CompareExpr `protobuf:"bytes,2,rep,name=operand,proto3" json:"operand,omitempty"` - Boost float32 `protobuf:"fixed32,3,opt,name=boost,proto3" json:"boost,omitempty"` - ExtraParams []*KeyValuePair `protobuf:"bytes,4,rep,name=extra_params,json=extraParams,proto3" json:"extra_params,omitempty"` -} - -func (x *RangeQuery) Reset() { - *x = RangeQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RangeQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RangeQuery) ProtoMessage() {} - -func (x *RangeQuery) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[38] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RangeQuery.ProtoReflect.Descriptor instead. -func (*RangeQuery) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{38} -} - -func (x *RangeQuery) GetFieldName() string { - if x != nil { - return x.FieldName - } - return "" -} - -func (x *RangeQuery) GetOperand() []*CompareExpr { - if x != nil { - return x.Operand - } - return nil -} - -func (x *RangeQuery) GetBoost() float32 { - if x != nil { - return x.Boost - } - return 0 -} - -func (x *RangeQuery) GetExtraParams() []*KeyValuePair { - if x != nil { - return x.ExtraParams - } - return nil -} - -type VectorQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` - QueryBoost float32 `protobuf:"fixed32,2,opt,name=query_boost,json=queryBoost,proto3" json:"query_boost,omitempty"` - Records []*VectorRowRecord `protobuf:"bytes,3,rep,name=records,proto3" json:"records,omitempty"` - Topk int64 `protobuf:"varint,4,opt,name=topk,proto3" json:"topk,omitempty"` - ExtraParams []*KeyValuePair `protobuf:"bytes,5,rep,name=extra_params,json=extraParams,proto3" json:"extra_params,omitempty"` -} - -func (x *VectorQuery) Reset() { - *x = VectorQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VectorQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VectorQuery) ProtoMessage() {} - -func (x *VectorQuery) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VectorQuery.ProtoReflect.Descriptor instead. -func (*VectorQuery) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{39} -} - -func (x *VectorQuery) GetFieldName() string { - if x != nil { - return x.FieldName - } - return "" -} - -func (x *VectorQuery) GetQueryBoost() float32 { - if x != nil { - return x.QueryBoost - } - return 0 -} - -func (x *VectorQuery) GetRecords() []*VectorRowRecord { - if x != nil { - return x.Records - } - return nil -} - -func (x *VectorQuery) GetTopk() int64 { - if x != nil { - return x.Topk - } - return 0 -} - -func (x *VectorQuery) GetExtraParams() []*KeyValuePair { - if x != nil { - return x.ExtraParams - } - return nil -} - -type BooleanQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Occur Occur `protobuf:"varint,1,opt,name=occur,proto3,enum=milvus.grpc.Occur" json:"occur,omitempty"` - GeneralQuery []*GeneralQuery `protobuf:"bytes,2,rep,name=general_query,json=generalQuery,proto3" json:"general_query,omitempty"` -} - -func (x *BooleanQuery) Reset() { - *x = BooleanQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BooleanQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BooleanQuery) ProtoMessage() {} - -func (x *BooleanQuery) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BooleanQuery.ProtoReflect.Descriptor instead. -func (*BooleanQuery) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{40} -} - -func (x *BooleanQuery) GetOccur() Occur { - if x != nil { - return x.Occur - } - return Occur_INVALID -} - -func (x *BooleanQuery) GetGeneralQuery() []*GeneralQuery { - if x != nil { - return x.GeneralQuery - } - return nil -} - -type GeneralQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Query: - // *GeneralQuery_BooleanQuery - // *GeneralQuery_TermQuery - // *GeneralQuery_RangeQuery - // *GeneralQuery_VectorQuery - Query isGeneralQuery_Query `protobuf_oneof:"query"` -} - -func (x *GeneralQuery) Reset() { - *x = GeneralQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GeneralQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GeneralQuery) ProtoMessage() {} - -func (x *GeneralQuery) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[41] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GeneralQuery.ProtoReflect.Descriptor instead. -func (*GeneralQuery) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{41} -} - -func (m *GeneralQuery) GetQuery() isGeneralQuery_Query { - if m != nil { - return m.Query - } - return nil -} - -func (x *GeneralQuery) GetBooleanQuery() *BooleanQuery { - if x, ok := x.GetQuery().(*GeneralQuery_BooleanQuery); ok { - return x.BooleanQuery - } - return nil -} - -func (x *GeneralQuery) GetTermQuery() *TermQuery { - if x, ok := x.GetQuery().(*GeneralQuery_TermQuery); ok { - return x.TermQuery - } - return nil -} - -func (x *GeneralQuery) GetRangeQuery() *RangeQuery { - if x, ok := x.GetQuery().(*GeneralQuery_RangeQuery); ok { - return x.RangeQuery - } - return nil -} - -func (x *GeneralQuery) GetVectorQuery() *VectorQuery { - if x, ok := x.GetQuery().(*GeneralQuery_VectorQuery); ok { - return x.VectorQuery - } - return nil -} - -type isGeneralQuery_Query interface { - isGeneralQuery_Query() -} - -type GeneralQuery_BooleanQuery struct { - BooleanQuery *BooleanQuery `protobuf:"bytes,1,opt,name=boolean_query,json=booleanQuery,proto3,oneof"` -} - -type GeneralQuery_TermQuery struct { - TermQuery *TermQuery `protobuf:"bytes,2,opt,name=term_query,json=termQuery,proto3,oneof"` -} - -type GeneralQuery_RangeQuery struct { - RangeQuery *RangeQuery `protobuf:"bytes,3,opt,name=range_query,json=rangeQuery,proto3,oneof"` -} - -type GeneralQuery_VectorQuery struct { - VectorQuery *VectorQuery `protobuf:"bytes,4,opt,name=vector_query,json=vectorQuery,proto3,oneof"` -} - -func (*GeneralQuery_BooleanQuery) isGeneralQuery_Query() {} - -func (*GeneralQuery_TermQuery) isGeneralQuery_Query() {} - -func (*GeneralQuery_RangeQuery) isGeneralQuery_Query() {} - -func (*GeneralQuery_VectorQuery) isGeneralQuery_Query() {} - -type SearchParamPB struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - PartitionTagArray []string `protobuf:"bytes,2,rep,name=partition_tag_array,json=partitionTagArray,proto3" json:"partition_tag_array,omitempty"` - GeneralQuery *GeneralQuery `protobuf:"bytes,3,opt,name=general_query,json=generalQuery,proto3" json:"general_query,omitempty"` - ExtraParams []*KeyValuePair `protobuf:"bytes,4,rep,name=extra_params,json=extraParams,proto3" json:"extra_params,omitempty"` -} - -func (x *SearchParamPB) Reset() { - *x = SearchParamPB{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SearchParamPB) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SearchParamPB) ProtoMessage() {} - -func (x *SearchParamPB) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[42] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SearchParamPB.ProtoReflect.Descriptor instead. -func (*SearchParamPB) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{42} -} - -func (x *SearchParamPB) GetCollectionName() string { - if x != nil { - return x.CollectionName - } - return "" -} - -func (x *SearchParamPB) GetPartitionTagArray() []string { - if x != nil { - return x.PartitionTagArray - } - return nil -} - -func (x *SearchParamPB) GetGeneralQuery() *GeneralQuery { - if x != nil { - return x.GeneralQuery - } - return nil -} - -func (x *SearchParamPB) GetExtraParams() []*KeyValuePair { - if x != nil { - return x.ExtraParams - } - return nil -} - -type InsertOrDeleteMsg struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - RowsData *RowData `protobuf:"bytes,2,opt,name=rows_data,json=rowsData,proto3" json:"rows_data,omitempty"` - Uid int64 `protobuf:"varint,3,opt,name=uid,proto3" json:"uid,omitempty"` //optional - PartitionTag string `protobuf:"bytes,4,opt,name=partition_tag,json=partitionTag,proto3" json:"partition_tag,omitempty"` - Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - SegmentId int64 `protobuf:"varint,6,opt,name=segment_id,json=segmentId,proto3" json:"segment_id,omitempty"` - ChannelId int64 `protobuf:"varint,7,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` - Op OpType `protobuf:"varint,8,opt,name=op,proto3,enum=milvus.grpc.OpType" json:"op,omitempty"` - ClientId int64 `protobuf:"varint,9,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - ExtraParams []*KeyValuePair `protobuf:"bytes,10,rep,name=extra_params,json=extraParams,proto3" json:"extra_params,omitempty"` -} - -func (x *InsertOrDeleteMsg) Reset() { - *x = InsertOrDeleteMsg{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InsertOrDeleteMsg) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InsertOrDeleteMsg) ProtoMessage() {} - -func (x *InsertOrDeleteMsg) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[43] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InsertOrDeleteMsg.ProtoReflect.Descriptor instead. -func (*InsertOrDeleteMsg) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{43} -} - -func (x *InsertOrDeleteMsg) GetCollectionName() string { - if x != nil { - return x.CollectionName - } - return "" -} - -func (x *InsertOrDeleteMsg) GetRowsData() *RowData { - if x != nil { - return x.RowsData - } - return nil -} - -func (x *InsertOrDeleteMsg) GetUid() int64 { - if x != nil { - return x.Uid - } - return 0 -} - -func (x *InsertOrDeleteMsg) GetPartitionTag() string { - if x != nil { - return x.PartitionTag - } - return "" -} - -func (x *InsertOrDeleteMsg) GetTimestamp() int64 { - if x != nil { - return x.Timestamp - } - return 0 -} - -func (x *InsertOrDeleteMsg) GetSegmentId() int64 { - if x != nil { - return x.SegmentId - } - return 0 -} - -func (x *InsertOrDeleteMsg) GetChannelId() int64 { - if x != nil { - return x.ChannelId - } - return 0 -} - -func (x *InsertOrDeleteMsg) GetOp() OpType { - if x != nil { - return x.Op - } - return OpType_INSERT -} - -func (x *InsertOrDeleteMsg) GetClientId() int64 { - if x != nil { - return x.ClientId - } - return 0 -} - -func (x *InsertOrDeleteMsg) GetExtraParams() []*KeyValuePair { - if x != nil { - return x.ExtraParams - } - return nil -} - -type SearchMsg struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - Records *VectorRowRecord `protobuf:"bytes,2,opt,name=records,proto3" json:"records,omitempty"` - PartitionTag string `protobuf:"bytes,3,opt,name=partition_tag,json=partitionTag,proto3" json:"partition_tag,omitempty"` - Uid int64 `protobuf:"varint,4,opt,name=uid,proto3" json:"uid,omitempty"` - Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - ClientId int64 `protobuf:"varint,6,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - ExtraParams []*KeyValuePair `protobuf:"bytes,7,rep,name=extra_params,json=extraParams,proto3" json:"extra_params,omitempty"` -} - -func (x *SearchMsg) Reset() { - *x = SearchMsg{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SearchMsg) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SearchMsg) ProtoMessage() {} - -func (x *SearchMsg) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[44] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SearchMsg.ProtoReflect.Descriptor instead. -func (*SearchMsg) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{44} -} - -func (x *SearchMsg) GetCollectionName() string { - if x != nil { - return x.CollectionName - } - return "" -} - -func (x *SearchMsg) GetRecords() *VectorRowRecord { - if x != nil { - return x.Records - } - return nil -} - -func (x *SearchMsg) GetPartitionTag() string { - if x != nil { - return x.PartitionTag - } - return "" -} - -func (x *SearchMsg) GetUid() int64 { - if x != nil { - return x.Uid - } - return 0 -} - -func (x *SearchMsg) GetTimestamp() int64 { - if x != nil { - return x.Timestamp - } - return 0 -} - -func (x *SearchMsg) GetClientId() int64 { - if x != nil { - return x.ClientId - } - return 0 -} - -func (x *SearchMsg) GetExtraParams() []*KeyValuePair { - if x != nil { - return x.ExtraParams - } - return nil -} - -type TimeSyncMsg struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ClientId int64 `protobuf:"varint,1,opt,name=ClientId,json=clientId,proto3" json:"ClientId,omitempty"` - Timestamp int64 `protobuf:"varint,2,opt,name=Timestamp,json=timestamp,proto3" json:"Timestamp,omitempty"` - MsgType OpType `protobuf:"varint,3,opt,name=MsgType,json=msgType,proto3,enum=milvus.grpc.OpType" json:"MsgType,omitempty"` -} - -func (x *TimeSyncMsg) Reset() { - *x = TimeSyncMsg{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[45] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TimeSyncMsg) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TimeSyncMsg) ProtoMessage() {} - -func (x *TimeSyncMsg) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[45] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TimeSyncMsg.ProtoReflect.Descriptor instead. -func (*TimeSyncMsg) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{45} -} - -func (x *TimeSyncMsg) GetClientId() int64 { - if x != nil { - return x.ClientId - } - return 0 -} - -func (x *TimeSyncMsg) GetTimestamp() int64 { - if x != nil { - return x.Timestamp - } - return 0 -} - -func (x *TimeSyncMsg) GetMsgType() OpType { - if x != nil { - return x.MsgType - } - return OpType_INSERT -} - -type SegmentRecord struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` - SegmentId []int64 `protobuf:"varint,2,rep,packed,name=segment_id,json=segmentId,proto3" json:"segment_id,omitempty"` -} - -func (x *SegmentRecord) Reset() { - *x = SegmentRecord{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SegmentRecord) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SegmentRecord) ProtoMessage() {} - -func (x *SegmentRecord) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[46] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SegmentRecord.ProtoReflect.Descriptor instead. -func (*SegmentRecord) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{46} -} - -func (x *SegmentRecord) GetUid() int64 { - if x != nil { - return x.Uid - } - return 0 -} - -func (x *SegmentRecord) GetSegmentId() []int64 { - if x != nil { - return x.SegmentId - } - return nil -} - -type Key2SegMsg struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ClientId int64 `protobuf:"varint,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - Records *SegmentRecord `protobuf:"bytes,2,opt,name=records,proto3" json:"records,omitempty"` - MsgType OpType `protobuf:"varint,3,opt,name=msg_type,json=msgType,proto3,enum=milvus.grpc.OpType" json:"msg_type,omitempty"` -} - -func (x *Key2SegMsg) Reset() { - *x = Key2SegMsg{} - if protoimpl.UnsafeEnabled { - mi := &file_suvlim_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Key2SegMsg) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Key2SegMsg) ProtoMessage() {} - -func (x *Key2SegMsg) ProtoReflect() protoreflect.Message { - mi := &file_suvlim_proto_msgTypes[47] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Key2SegMsg.ProtoReflect.Descriptor instead. -func (*Key2SegMsg) Descriptor() ([]byte, []int) { - return file_suvlim_proto_rawDescGZIP(), []int{47} -} - -func (x *Key2SegMsg) GetClientId() int64 { - if x != nil { - return x.ClientId - } - return 0 -} - -func (x *Key2SegMsg) GetRecords() *SegmentRecord { - if x != nil { - return x.Records - } - return nil -} - -func (x *Key2SegMsg) GetMsgType() OpType { - if x != nil { - return x.MsgType - } - return OpType_INSERT -} - -var File_suvlim_proto protoreflect.FileDescriptor - -var file_suvlim_proto_rawDesc = []byte{ - 0x0a, 0x0c, 0x73, 0x75, 0x76, 0x6c, 0x69, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, - 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x22, 0x57, 0x0a, 0x06, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x35, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, - 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x6d, 0x69, 0x6c, 0x76, - 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, - 0x65, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, - 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, - 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x36, 0x0a, 0x0c, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x50, 0x61, 0x69, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x39, 0x0a, 0x0e, - 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x27, - 0x0a, 0x0f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x6c, 0x0a, 0x12, 0x43, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2b, 0x0a, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, - 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x6f, - 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x53, 0x0a, 0x09, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, 0x6c, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x66, - 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xce, 0x01, 0x0a, 0x07, 0x4d, - 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, - 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, - 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x06, - 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6d, - 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x3c, 0x0a, - 0x0c, 0x65, 0x78, 0x74, 0x72, 0x61, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, - 0x63, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, 0x52, 0x0b, - 0x65, 0x78, 0x74, 0x72, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x73, 0x0a, 0x0b, 0x4d, - 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6d, 0x69, 0x6c, - 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x6d, 0x61, 0x70, 0x70, 0x69, - 0x6e, 0x67, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, - 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x4d, 0x61, 0x70, 0x70, - 0x69, 0x6e, 0x67, 0x52, 0x0b, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x4c, 0x69, 0x73, 0x74, - 0x22, 0x4b, 0x0a, 0x0e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, 0x6c, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, - 0x61, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x22, 0x6c, 0x0a, - 0x0d, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2b, - 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, - 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x70, - 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x67, 0x5f, 0x61, 0x72, 0x72, - 0x61, 0x79, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x67, 0x41, 0x72, 0x72, 0x61, 0x79, 0x22, 0x51, 0x0a, 0x0f, 0x56, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x6f, 0x77, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x1d, - 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x02, 0x52, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1f, 0x0a, - 0x0b, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x0a, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x22, 0x60, - 0x0a, 0x09, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x73, 0x12, 0x2b, 0x0a, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6d, 0x69, - 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x5f, 0x69, 0x64, 0x5f, 0x61, 0x72, 0x72, 0x61, 0x79, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x03, 0x52, 0x0d, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x41, 0x72, 0x72, 0x61, 0x79, - 0x22, 0x46, 0x0a, 0x0c, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, - 0x12, 0x36, 0x0a, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1c, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, - 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x6f, 0x77, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, - 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x22, 0x5b, 0x0a, 0x0b, 0x56, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x12, 0x38, 0x0a, 0x0a, 0x72, - 0x6f, 0x77, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x56, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x09, 0x72, 0x6f, 0x77, 0x52, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x22, 0x67, 0x0a, 0x09, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x65, - 0x74, 0x61, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x29, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x15, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x61, - 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, - 0x64, 0x69, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x64, 0x69, 0x6d, 0x22, 0x41, - 0x0a, 0x06, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x37, 0x0a, 0x0b, 0x66, 0x69, 0x65, 0x6c, - 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, - 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x46, 0x69, 0x65, 0x6c, - 0x64, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x65, 0x74, 0x61, - 0x73, 0x22, 0x1d, 0x0a, 0x07, 0x52, 0x6f, 0x77, 0x44, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, - 0x62, 0x6c, 0x6f, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x62, 0x6c, 0x6f, 0x62, - 0x22, 0xa1, 0x02, 0x0a, 0x0b, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6d, 0x69, 0x6c, 0x76, - 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x06, - 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x31, 0x0a, 0x09, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x69, 0x6c, 0x76, - 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x6f, 0x77, 0x44, 0x61, 0x74, 0x61, 0x52, - 0x08, 0x72, 0x6f, 0x77, 0x73, 0x44, 0x61, 0x74, 0x61, 0x12, 0x26, 0x0a, 0x0f, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x5f, 0x61, 0x72, 0x72, 0x61, 0x79, 0x18, 0x04, 0x20, 0x03, - 0x28, 0x03, 0x52, 0x0d, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x41, 0x72, 0x72, 0x61, - 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, - 0x61, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x67, 0x12, 0x3c, 0x0a, 0x0c, 0x65, 0x78, 0x74, 0x72, 0x61, 0x5f, - 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, - 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, 0x52, 0x0b, 0x65, 0x78, 0x74, 0x72, 0x61, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x22, 0xe8, 0x01, 0x0a, 0x0b, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, - 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3b, 0x0a, - 0x0c, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, - 0x63, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x52, 0x0b, 0x76, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x73, - 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x73, 0x6c, 0x12, 0x23, 0x0a, 0x0d, - 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, - 0x67, 0x12, 0x3c, 0x0a, 0x0c, 0x65, 0x78, 0x74, 0x72, 0x61, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, - 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x61, - 0x69, 0x72, 0x52, 0x0b, 0x65, 0x78, 0x74, 0x72, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, - 0x77, 0x0a, 0x14, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x49, 0x6e, 0x53, 0x65, 0x67, 0x6d, 0x65, - 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x22, 0x0a, 0x0d, 0x66, 0x69, 0x6c, 0x65, 0x5f, - 0x69, 0x64, 0x5f, 0x61, 0x72, 0x72, 0x61, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, - 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x41, 0x72, 0x72, 0x61, 0x79, 0x12, 0x3b, 0x0a, 0x0c, 0x73, - 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x18, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, - 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x52, 0x0b, 0x73, 0x65, 0x61, - 0x72, 0x63, 0x68, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x22, 0x99, 0x01, 0x0a, 0x08, 0x45, 0x6e, 0x74, - 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, - 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x03, 0x52, - 0x03, 0x69, 0x64, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x5f, 0x72, 0x6f, - 0x77, 0x18, 0x03, 0x20, 0x03, 0x28, 0x08, 0x52, 0x08, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x6f, - 0x77, 0x12, 0x31, 0x0a, 0x09, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, - 0x70, 0x63, 0x2e, 0x52, 0x6f, 0x77, 0x44, 0x61, 0x74, 0x61, 0x52, 0x08, 0x72, 0x6f, 0x77, 0x73, - 0x44, 0x61, 0x74, 0x61, 0x22, 0xfa, 0x01, 0x0a, 0x0b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, - 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x12, 0x31, 0x0a, 0x08, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, - 0x63, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x08, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x69, 0x65, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x6f, 0x77, 0x5f, 0x6e, 0x75, 0x6d, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x72, 0x6f, 0x77, 0x4e, 0x75, 0x6d, 0x12, 0x16, 0x0a, - 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x02, 0x52, 0x06, 0x73, - 0x63, 0x6f, 0x72, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x02, 0x52, 0x09, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x73, 0x12, 0x3c, 0x0a, 0x0c, 0x65, 0x78, 0x74, 0x72, 0x61, 0x5f, 0x70, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x69, 0x6c, 0x76, - 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x50, 0x61, 0x69, 0x72, 0x52, 0x0b, 0x65, 0x78, 0x74, 0x72, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x22, 0x5d, 0x0a, 0x0b, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x79, - 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x13, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x21, 0x0a, - 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x79, - 0x22, 0x57, 0x0a, 0x09, 0x42, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x2b, 0x0a, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, - 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6f, - 0x6f, 0x6c, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, - 0x62, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x73, 0x0a, 0x12, 0x43, 0x6f, 0x6c, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, - 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x13, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x30, 0x0a, 0x14, - 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x6f, 0x77, 0x5f, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x63, 0x6f, 0x6c, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x1b, - 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x6d, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x6d, 0x64, 0x22, 0xde, 0x01, 0x0a, 0x0a, - 0x49, 0x6e, 0x64, 0x65, 0x78, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6d, 0x69, 0x6c, - 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x1d, 0x0a, 0x0a, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3c, - 0x0a, 0x0c, 0x65, 0x78, 0x74, 0x72, 0x61, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x05, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, - 0x70, 0x63, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, 0x52, - 0x0b, 0x65, 0x78, 0x74, 0x72, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x40, 0x0a, 0x0a, - 0x46, 0x6c, 0x75, 0x73, 0x68, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x32, 0x0a, 0x15, 0x63, 0x6f, - 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x61, 0x72, - 0x72, 0x61, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x13, 0x63, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x41, 0x72, 0x72, 0x61, 0x79, 0x22, 0x55, - 0x0a, 0x0c, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x27, - 0x0a, 0x0f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, - 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x09, 0x74, 0x68, 0x72, 0x65, - 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x22, 0x55, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, - 0x79, 0x49, 0x44, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6c, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x64, 0x5f, 0x61, 0x72, 0x72, 0x61, 0x79, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x03, 0x52, 0x07, 0x69, 0x64, 0x41, 0x72, 0x72, 0x61, 0x79, 0x22, 0x5a, 0x0a, 0x0e, - 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2b, - 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, - 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6a, - 0x73, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x6a, 0x73, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x5b, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x45, - 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x44, 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x27, 0x0a, - 0x0f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, - 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x65, 0x67, 0x6d, - 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x75, 0x0a, 0x0e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x19, 0x0a, 0x08, 0x69, 0x64, 0x5f, 0x61, 0x72, 0x72, 0x61, 0x79, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x03, 0x52, 0x07, 0x69, 0x64, 0x41, 0x72, 0x72, 0x61, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x66, - 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x30, 0x0a, 0x10, - 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x09, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x8e, - 0x01, 0x0a, 0x09, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x34, 0x0a, 0x09, - 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x15, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x61, - 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x42, 0x0a, 0x0c, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x70, 0x61, 0x72, - 0x61, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, - 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x48, 0x00, 0x52, 0x0b, 0x76, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, - 0xd7, 0x01, 0x0a, 0x0a, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x15, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x44, - 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x3c, 0x0a, - 0x0c, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, - 0x63, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, 0x52, 0x0b, - 0x69, 0x6e, 0x64, 0x65, 0x78, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x3c, 0x0a, 0x0c, 0x65, - 0x78, 0x74, 0x72, 0x61, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, - 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, 0x52, 0x0b, 0x65, 0x78, - 0x74, 0x72, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x47, 0x0a, 0x11, 0x56, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x32, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, - 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x56, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x52, 0x6f, 0x77, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x22, 0xdb, 0x01, 0x0a, 0x09, 0x54, 0x65, 0x72, 0x6d, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x1b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x03, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0c, - 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x01, 0x52, 0x0b, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, - 0x1b, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x08, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x4e, 0x75, 0x6d, 0x12, 0x14, 0x0a, 0x05, - 0x62, 0x6f, 0x6f, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x62, 0x6f, 0x6f, - 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x0c, 0x65, 0x78, 0x74, 0x72, 0x61, 0x5f, 0x70, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, - 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, - 0x61, 0x69, 0x72, 0x52, 0x0b, 0x65, 0x78, 0x74, 0x72, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x22, 0x61, 0x0a, 0x0b, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, - 0x38, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x1c, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, - 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, - 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x70, 0x65, - 0x72, 0x61, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x70, 0x65, 0x72, - 0x61, 0x6e, 0x64, 0x22, 0xb3, 0x01, 0x0a, 0x0a, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x32, 0x0a, 0x07, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, - 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x65, 0x45, 0x78, 0x70, 0x72, 0x52, 0x07, 0x6f, 0x70, - 0x65, 0x72, 0x61, 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6f, 0x6f, 0x73, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x62, 0x6f, 0x6f, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x0c, 0x65, - 0x78, 0x74, 0x72, 0x61, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, - 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, 0x52, 0x0b, 0x65, 0x78, - 0x74, 0x72, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0xd7, 0x01, 0x0a, 0x0b, 0x56, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, - 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, - 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x71, 0x75, 0x65, 0x72, - 0x79, 0x5f, 0x62, 0x6f, 0x6f, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0a, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x42, 0x6f, 0x6f, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x07, 0x72, 0x65, 0x63, - 0x6f, 0x72, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6d, 0x69, 0x6c, - 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, - 0x6f, 0x77, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, - 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x6f, 0x70, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x04, 0x74, 0x6f, 0x70, 0x6b, 0x12, 0x3c, 0x0a, 0x0c, 0x65, 0x78, 0x74, 0x72, 0x61, 0x5f, 0x70, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x69, - 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, 0x52, 0x0b, 0x65, 0x78, 0x74, 0x72, 0x61, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x22, 0x78, 0x0a, 0x0c, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x12, 0x28, 0x0a, 0x05, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, - 0x2e, 0x4f, 0x63, 0x63, 0x75, 0x72, 0x52, 0x05, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x12, 0x3e, 0x0a, - 0x0d, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, - 0x70, 0x63, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, - 0x0c, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x22, 0x8d, 0x02, - 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x40, - 0x0a, 0x0d, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, - 0x72, 0x70, 0x63, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x48, 0x00, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x12, 0x37, 0x0a, 0x0a, 0x74, 0x65, 0x72, 0x6d, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, - 0x70, 0x63, 0x2e, 0x54, 0x65, 0x72, 0x6d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x00, 0x52, 0x09, - 0x74, 0x65, 0x72, 0x6d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x3a, 0x0a, 0x0b, 0x72, 0x61, 0x6e, - 0x67, 0x65, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x61, 0x6e, - 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x00, 0x52, 0x0a, 0x72, 0x61, 0x6e, 0x67, 0x65, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x3d, 0x0a, 0x0c, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, - 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6d, 0x69, - 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x00, 0x52, 0x0b, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x42, 0x07, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0xe6, 0x01, - 0x0a, 0x0d, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x50, 0x42, 0x12, - 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x70, 0x61, 0x72, 0x74, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x67, 0x5f, 0x61, 0x72, 0x72, 0x61, 0x79, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x54, 0x61, 0x67, 0x41, 0x72, 0x72, 0x61, 0x79, 0x12, 0x3e, 0x0a, 0x0d, 0x67, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x6c, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x0c, 0x67, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x6c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x3c, 0x0a, 0x0c, 0x65, 0x78, 0x74, 0x72, - 0x61, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x4b, 0x65, 0x79, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, 0x52, 0x0b, 0x65, 0x78, 0x74, 0x72, 0x61, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x82, 0x03, 0x0a, 0x11, 0x49, 0x6e, 0x73, 0x65, 0x72, - 0x74, 0x4f, 0x72, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x73, 0x67, 0x12, 0x27, 0x0a, 0x0f, - 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x31, 0x0a, 0x09, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x64, 0x61, - 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, - 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x6f, 0x77, 0x44, 0x61, 0x74, 0x61, 0x52, 0x08, - 0x72, 0x6f, 0x77, 0x73, 0x44, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x61, - 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0c, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x67, 0x12, - 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x1d, 0x0a, - 0x0a, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x09, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, - 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x02, 0x6f, - 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, - 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x4f, 0x70, 0x54, 0x79, 0x70, 0x65, 0x52, 0x02, 0x6f, 0x70, - 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x3c, 0x0a, - 0x0c, 0x65, 0x78, 0x74, 0x72, 0x61, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x0a, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, - 0x63, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, 0x52, 0x0b, - 0x65, 0x78, 0x74, 0x72, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x9c, 0x02, 0x0a, 0x09, - 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4d, 0x73, 0x67, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6c, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, - 0x63, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x6f, 0x77, 0x52, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x61, - 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0c, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x67, 0x12, - 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x75, 0x69, - 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, - 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x0c, - 0x65, 0x78, 0x74, 0x72, 0x61, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x07, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, - 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, 0x52, 0x0b, 0x65, - 0x78, 0x74, 0x72, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x76, 0x0a, 0x0b, 0x54, 0x69, - 0x6d, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x4d, 0x73, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x43, 0x6c, 0x69, - 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x63, 0x6c, 0x69, - 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x12, 0x2d, 0x0a, 0x07, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, - 0x70, 0x63, 0x2e, 0x4f, 0x70, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, - 0x70, 0x65, 0x22, 0x40, 0x0a, 0x0d, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x63, - 0x6f, 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, - 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x73, 0x65, 0x67, 0x6d, 0x65, - 0x6e, 0x74, 0x49, 0x64, 0x22, 0x8f, 0x01, 0x0a, 0x0a, 0x4b, 0x65, 0x79, 0x32, 0x53, 0x65, 0x67, - 0x4d, 0x73, 0x67, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, - 0x12, 0x34, 0x0a, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, - 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x07, 0x72, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x2e, 0x0a, 0x08, 0x6d, 0x73, 0x67, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, - 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x4f, 0x70, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x6d, - 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x2a, 0xa2, 0x04, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, - 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, - 0x00, 0x12, 0x14, 0x0a, 0x10, 0x55, 0x4e, 0x45, 0x58, 0x50, 0x45, 0x43, 0x54, 0x45, 0x44, 0x5f, - 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4f, 0x4e, 0x4e, 0x45, - 0x43, 0x54, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x50, - 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44, - 0x10, 0x03, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x4f, 0x4c, 0x4c, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, - 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x53, 0x10, 0x04, 0x12, 0x14, 0x0a, - 0x10, 0x49, 0x4c, 0x4c, 0x45, 0x47, 0x41, 0x4c, 0x5f, 0x41, 0x52, 0x47, 0x55, 0x4d, 0x45, 0x4e, - 0x54, 0x10, 0x05, 0x12, 0x15, 0x0a, 0x11, 0x49, 0x4c, 0x4c, 0x45, 0x47, 0x41, 0x4c, 0x5f, 0x44, - 0x49, 0x4d, 0x45, 0x4e, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x07, 0x12, 0x16, 0x0a, 0x12, 0x49, 0x4c, - 0x4c, 0x45, 0x47, 0x41, 0x4c, 0x5f, 0x49, 0x4e, 0x44, 0x45, 0x58, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x10, 0x08, 0x12, 0x1b, 0x0a, 0x17, 0x49, 0x4c, 0x4c, 0x45, 0x47, 0x41, 0x4c, 0x5f, 0x43, 0x4f, - 0x4c, 0x4c, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x09, 0x12, - 0x10, 0x0a, 0x0c, 0x49, 0x4c, 0x4c, 0x45, 0x47, 0x41, 0x4c, 0x5f, 0x54, 0x4f, 0x50, 0x4b, 0x10, - 0x0a, 0x12, 0x15, 0x0a, 0x11, 0x49, 0x4c, 0x4c, 0x45, 0x47, 0x41, 0x4c, 0x5f, 0x52, 0x4f, 0x57, - 0x52, 0x45, 0x43, 0x4f, 0x52, 0x44, 0x10, 0x0b, 0x12, 0x15, 0x0a, 0x11, 0x49, 0x4c, 0x4c, 0x45, - 0x47, 0x41, 0x4c, 0x5f, 0x56, 0x45, 0x43, 0x54, 0x4f, 0x52, 0x5f, 0x49, 0x44, 0x10, 0x0c, 0x12, - 0x19, 0x0a, 0x15, 0x49, 0x4c, 0x4c, 0x45, 0x47, 0x41, 0x4c, 0x5f, 0x53, 0x45, 0x41, 0x52, 0x43, - 0x48, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x10, 0x0d, 0x12, 0x12, 0x0a, 0x0e, 0x46, 0x49, - 0x4c, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x0e, 0x12, 0x0f, - 0x0a, 0x0b, 0x4d, 0x45, 0x54, 0x41, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x0f, 0x12, - 0x10, 0x0a, 0x0c, 0x43, 0x41, 0x43, 0x48, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, - 0x10, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x43, 0x52, 0x45, 0x41, - 0x54, 0x45, 0x5f, 0x46, 0x4f, 0x4c, 0x44, 0x45, 0x52, 0x10, 0x11, 0x12, 0x16, 0x0a, 0x12, 0x43, - 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x5f, 0x46, 0x49, 0x4c, - 0x45, 0x10, 0x12, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x44, 0x45, - 0x4c, 0x45, 0x54, 0x45, 0x5f, 0x46, 0x4f, 0x4c, 0x44, 0x45, 0x52, 0x10, 0x13, 0x12, 0x16, 0x0a, - 0x12, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x5f, 0x46, - 0x49, 0x4c, 0x45, 0x10, 0x14, 0x12, 0x15, 0x0a, 0x11, 0x42, 0x55, 0x49, 0x4c, 0x44, 0x5f, 0x49, - 0x4e, 0x44, 0x45, 0x58, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x15, 0x12, 0x11, 0x0a, 0x0d, - 0x49, 0x4c, 0x4c, 0x45, 0x47, 0x41, 0x4c, 0x5f, 0x4e, 0x4c, 0x49, 0x53, 0x54, 0x10, 0x16, 0x12, - 0x17, 0x0a, 0x13, 0x49, 0x4c, 0x4c, 0x45, 0x47, 0x41, 0x4c, 0x5f, 0x4d, 0x45, 0x54, 0x52, 0x49, - 0x43, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x17, 0x12, 0x11, 0x0a, 0x0d, 0x4f, 0x55, 0x54, 0x5f, - 0x4f, 0x46, 0x5f, 0x4d, 0x45, 0x4d, 0x4f, 0x52, 0x59, 0x10, 0x18, 0x2a, 0x91, 0x01, 0x0a, 0x08, - 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, - 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x4f, 0x4f, 0x4c, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, - 0x49, 0x4e, 0x54, 0x38, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10, - 0x03, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, - 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x05, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x4c, 0x4f, 0x41, 0x54, - 0x10, 0x0a, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x4f, 0x55, 0x42, 0x4c, 0x45, 0x10, 0x0b, 0x12, 0x0a, - 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x14, 0x12, 0x11, 0x0a, 0x0d, 0x56, 0x45, - 0x43, 0x54, 0x4f, 0x52, 0x5f, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x64, 0x12, 0x10, 0x0a, - 0x0c, 0x56, 0x45, 0x43, 0x54, 0x4f, 0x52, 0x5f, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x10, 0x65, 0x2a, - 0x43, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x6f, 0x72, 0x12, 0x06, 0x0a, 0x02, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4c, 0x54, - 0x45, 0x10, 0x01, 0x12, 0x06, 0x0a, 0x02, 0x45, 0x51, 0x10, 0x02, 0x12, 0x06, 0x0a, 0x02, 0x47, - 0x54, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x54, 0x45, 0x10, 0x04, 0x12, 0x06, 0x0a, 0x02, - 0x4e, 0x45, 0x10, 0x05, 0x2a, 0x38, 0x0a, 0x05, 0x4f, 0x63, 0x63, 0x75, 0x72, 0x12, 0x0b, 0x0a, - 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4d, 0x55, - 0x53, 0x54, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x48, 0x4f, 0x55, 0x4c, 0x44, 0x10, 0x02, - 0x12, 0x0c, 0x0a, 0x08, 0x4d, 0x55, 0x53, 0x54, 0x5f, 0x4e, 0x4f, 0x54, 0x10, 0x03, 0x2a, 0x3f, - 0x0a, 0x06, 0x4f, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x49, 0x4e, 0x53, 0x45, - 0x52, 0x54, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x01, - 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, - 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x10, 0x03, 0x32, - 0xdb, 0x0d, 0x0a, 0x0d, 0x4d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x12, 0x3f, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, - 0x72, 0x70, 0x63, 0x2e, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x1a, 0x13, 0x2e, 0x6d, 0x69, - 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x22, 0x00, 0x12, 0x46, 0x0a, 0x0d, 0x48, 0x61, 0x73, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, - 0x63, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, - 0x1a, 0x16, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x42, - 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x49, 0x0a, 0x12, 0x44, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x1b, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x43, - 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x14, 0x2e, - 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x4d, 0x61, 0x70, 0x70, - 0x69, 0x6e, 0x67, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0f, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, - 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, - 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x1f, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, - 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, - 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x00, 0x12, 0x4a, 0x0a, 0x0f, 0x53, 0x68, 0x6f, 0x77, - 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x2e, 0x6d, 0x69, - 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, - 0x64, 0x1a, 0x1f, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, - 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x4c, 0x69, - 0x73, 0x74, 0x22, 0x00, 0x12, 0x50, 0x0a, 0x12, 0x53, 0x68, 0x6f, 0x77, 0x43, 0x6f, 0x6c, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1b, 0x2e, 0x6d, 0x69, 0x6c, - 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x1b, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, - 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x00, 0x12, 0x44, 0x0a, 0x0e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, - 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, - 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x13, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, - 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x00, 0x12, 0x3d, 0x0a, 0x0b, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x17, 0x2e, 0x6d, 0x69, - 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x1a, 0x13, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, - 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x0d, 0x44, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x17, 0x2e, 0x6d, - 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x1a, 0x17, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, - 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x22, 0x00, - 0x12, 0x3b, 0x0a, 0x09, 0x44, 0x72, 0x6f, 0x70, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x17, 0x2e, - 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x64, 0x65, - 0x78, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x1a, 0x13, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, - 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x00, 0x12, 0x45, 0x0a, - 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x1b, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x50, - 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x1a, 0x13, 0x2e, - 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x0c, 0x48, 0x61, 0x73, 0x50, 0x61, 0x72, 0x74, 0x69, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, - 0x70, 0x63, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x1a, 0x16, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, - 0x42, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0e, 0x53, - 0x68, 0x6f, 0x77, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1b, 0x2e, - 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x1a, 0x2e, 0x6d, 0x69, 0x6c, - 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x0d, 0x44, 0x72, 0x6f, 0x70, - 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x2e, 0x6d, 0x69, 0x6c, 0x76, - 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x1a, 0x13, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, - 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x00, 0x12, 0x3c, 0x0a, - 0x06, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x12, 0x18, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, - 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x1a, 0x16, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, - 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x73, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x0d, 0x47, - 0x65, 0x74, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x42, 0x79, 0x49, 0x44, 0x12, 0x1b, 0x2e, 0x6d, - 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x1a, 0x15, 0x2e, 0x6d, 0x69, 0x6c, 0x76, - 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, - 0x22, 0x00, 0x12, 0x48, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, - 0x44, 0x73, 0x12, 0x1e, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, - 0x2e, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x44, 0x73, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x1a, 0x16, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, - 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x73, 0x22, 0x00, 0x12, 0x3e, 0x0a, 0x06, - 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x18, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, - 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x1a, 0x18, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x00, 0x12, 0x50, 0x0a, 0x0f, - 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x49, 0x6e, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x12, - 0x21, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, - 0x61, 0x72, 0x63, 0x68, 0x49, 0x6e, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x1a, 0x18, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x00, 0x12, 0x37, - 0x0a, 0x03, 0x43, 0x6d, 0x64, 0x12, 0x14, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, - 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x1a, 0x18, 0x2e, 0x6d, 0x69, - 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x42, 0x79, 0x49, 0x44, 0x12, 0x1c, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, - 0x72, 0x70, 0x63, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x79, 0x49, 0x44, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x1a, 0x13, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, - 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x11, 0x50, 0x72, - 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x1b, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f, - 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x13, 0x2e, 0x6d, - 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x22, 0x00, 0x12, 0x37, 0x0a, 0x05, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x12, 0x17, 0x2e, 0x6d, - 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x46, 0x6c, 0x75, 0x73, 0x68, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x1a, 0x13, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, - 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x07, - 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x12, 0x19, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, - 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x1a, 0x13, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, - 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x08, 0x53, 0x65, 0x61, - 0x72, 0x63, 0x68, 0x50, 0x42, 0x12, 0x1a, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, - 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x50, - 0x42, 0x1a, 0x18, 0x2e, 0x6d, 0x69, 0x6c, 0x76, 0x75, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x00, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_suvlim_proto_rawDescOnce sync.Once - file_suvlim_proto_rawDescData = file_suvlim_proto_rawDesc -) - -func file_suvlim_proto_rawDescGZIP() []byte { - file_suvlim_proto_rawDescOnce.Do(func() { - file_suvlim_proto_rawDescData = protoimpl.X.CompressGZIP(file_suvlim_proto_rawDescData) - }) - return file_suvlim_proto_rawDescData -} - -var file_suvlim_proto_enumTypes = make([]protoimpl.EnumInfo, 5) -var file_suvlim_proto_msgTypes = make([]protoimpl.MessageInfo, 48) -var file_suvlim_proto_goTypes = []interface{}{ - (ErrorCode)(0), // 0: milvus.grpc.ErrorCode - (DataType)(0), // 1: milvus.grpc.DataType - (CompareOperator)(0), // 2: milvus.grpc.CompareOperator - (Occur)(0), // 3: milvus.grpc.Occur - (OpType)(0), // 4: milvus.grpc.OpType - (*Status)(nil), // 5: milvus.grpc.Status - (*KeyValuePair)(nil), // 6: milvus.grpc.KeyValuePair - (*CollectionName)(nil), // 7: milvus.grpc.CollectionName - (*CollectionNameList)(nil), // 8: milvus.grpc.CollectionNameList - (*FieldName)(nil), // 9: milvus.grpc.FieldName - (*Mapping)(nil), // 10: milvus.grpc.Mapping - (*MappingList)(nil), // 11: milvus.grpc.MappingList - (*PartitionParam)(nil), // 12: milvus.grpc.PartitionParam - (*PartitionList)(nil), // 13: milvus.grpc.PartitionList - (*VectorRowRecord)(nil), // 14: milvus.grpc.VectorRowRecord - (*EntityIds)(nil), // 15: milvus.grpc.EntityIds - (*VectorRecord)(nil), // 16: milvus.grpc.VectorRecord - (*VectorParam)(nil), // 17: milvus.grpc.VectorParam - (*FieldMeta)(nil), // 18: milvus.grpc.FieldMeta - (*Schema)(nil), // 19: milvus.grpc.Schema - (*RowData)(nil), // 20: milvus.grpc.RowData - (*InsertParam)(nil), // 21: milvus.grpc.InsertParam - (*SearchParam)(nil), // 22: milvus.grpc.SearchParam - (*SearchInSegmentParam)(nil), // 23: milvus.grpc.SearchInSegmentParam - (*Entities)(nil), // 24: milvus.grpc.Entities - (*QueryResult)(nil), // 25: milvus.grpc.QueryResult - (*StringReply)(nil), // 26: milvus.grpc.StringReply - (*BoolReply)(nil), // 27: milvus.grpc.BoolReply - (*CollectionRowCount)(nil), // 28: milvus.grpc.CollectionRowCount - (*Command)(nil), // 29: milvus.grpc.Command - (*IndexParam)(nil), // 30: milvus.grpc.IndexParam - (*FlushParam)(nil), // 31: milvus.grpc.FlushParam - (*CompactParam)(nil), // 32: milvus.grpc.CompactParam - (*DeleteByIDParam)(nil), // 33: milvus.grpc.DeleteByIDParam - (*CollectionInfo)(nil), // 34: milvus.grpc.CollectionInfo - (*GetEntityIDsParam)(nil), // 35: milvus.grpc.GetEntityIDsParam - (*EntityIdentity)(nil), // 36: milvus.grpc.EntityIdentity - (*VectorFieldParam)(nil), // 37: milvus.grpc.VectorFieldParam - (*FieldType)(nil), // 38: milvus.grpc.FieldType - (*FieldParam)(nil), // 39: milvus.grpc.FieldParam - (*VectorFieldRecord)(nil), // 40: milvus.grpc.VectorFieldRecord - (*TermQuery)(nil), // 41: milvus.grpc.TermQuery - (*CompareExpr)(nil), // 42: milvus.grpc.CompareExpr - (*RangeQuery)(nil), // 43: milvus.grpc.RangeQuery - (*VectorQuery)(nil), // 44: milvus.grpc.VectorQuery - (*BooleanQuery)(nil), // 45: milvus.grpc.BooleanQuery - (*GeneralQuery)(nil), // 46: milvus.grpc.GeneralQuery - (*SearchParamPB)(nil), // 47: milvus.grpc.SearchParamPB - (*InsertOrDeleteMsg)(nil), // 48: milvus.grpc.InsertOrDeleteMsg - (*SearchMsg)(nil), // 49: milvus.grpc.SearchMsg - (*TimeSyncMsg)(nil), // 50: milvus.grpc.TimeSyncMsg - (*SegmentRecord)(nil), // 51: milvus.grpc.SegmentRecord - (*Key2SegMsg)(nil), // 52: milvus.grpc.Key2SegMsg -} -var file_suvlim_proto_depIdxs = []int32{ - 0, // 0: milvus.grpc.Status.error_code:type_name -> milvus.grpc.ErrorCode - 5, // 1: milvus.grpc.CollectionNameList.status:type_name -> milvus.grpc.Status - 5, // 2: milvus.grpc.Mapping.status:type_name -> milvus.grpc.Status - 39, // 3: milvus.grpc.Mapping.fields:type_name -> milvus.grpc.FieldParam - 6, // 4: milvus.grpc.Mapping.extra_params:type_name -> milvus.grpc.KeyValuePair - 5, // 5: milvus.grpc.MappingList.status:type_name -> milvus.grpc.Status - 10, // 6: milvus.grpc.MappingList.mapping_list:type_name -> milvus.grpc.Mapping - 5, // 7: milvus.grpc.PartitionList.status:type_name -> milvus.grpc.Status - 5, // 8: milvus.grpc.EntityIds.status:type_name -> milvus.grpc.Status - 14, // 9: milvus.grpc.VectorRecord.records:type_name -> milvus.grpc.VectorRowRecord - 16, // 10: milvus.grpc.VectorParam.row_record:type_name -> milvus.grpc.VectorRecord - 1, // 11: milvus.grpc.FieldMeta.type:type_name -> milvus.grpc.DataType - 18, // 12: milvus.grpc.Schema.field_metas:type_name -> milvus.grpc.FieldMeta - 19, // 13: milvus.grpc.InsertParam.schema:type_name -> milvus.grpc.Schema - 20, // 14: milvus.grpc.InsertParam.rows_data:type_name -> milvus.grpc.RowData - 6, // 15: milvus.grpc.InsertParam.extra_params:type_name -> milvus.grpc.KeyValuePair - 17, // 16: milvus.grpc.SearchParam.vector_param:type_name -> milvus.grpc.VectorParam - 6, // 17: milvus.grpc.SearchParam.extra_params:type_name -> milvus.grpc.KeyValuePair - 22, // 18: milvus.grpc.SearchInSegmentParam.search_param:type_name -> milvus.grpc.SearchParam - 5, // 19: milvus.grpc.Entities.status:type_name -> milvus.grpc.Status - 20, // 20: milvus.grpc.Entities.rows_data:type_name -> milvus.grpc.RowData - 5, // 21: milvus.grpc.QueryResult.status:type_name -> milvus.grpc.Status - 24, // 22: milvus.grpc.QueryResult.entities:type_name -> milvus.grpc.Entities - 6, // 23: milvus.grpc.QueryResult.extra_params:type_name -> milvus.grpc.KeyValuePair - 5, // 24: milvus.grpc.StringReply.status:type_name -> milvus.grpc.Status - 5, // 25: milvus.grpc.BoolReply.status:type_name -> milvus.grpc.Status - 5, // 26: milvus.grpc.CollectionRowCount.status:type_name -> milvus.grpc.Status - 5, // 27: milvus.grpc.IndexParam.status:type_name -> milvus.grpc.Status - 6, // 28: milvus.grpc.IndexParam.extra_params:type_name -> milvus.grpc.KeyValuePair - 5, // 29: milvus.grpc.CollectionInfo.status:type_name -> milvus.grpc.Status - 1, // 30: milvus.grpc.FieldType.data_type:type_name -> milvus.grpc.DataType - 37, // 31: milvus.grpc.FieldType.vector_param:type_name -> milvus.grpc.VectorFieldParam - 1, // 32: milvus.grpc.FieldParam.type:type_name -> milvus.grpc.DataType - 6, // 33: milvus.grpc.FieldParam.index_params:type_name -> milvus.grpc.KeyValuePair - 6, // 34: milvus.grpc.FieldParam.extra_params:type_name -> milvus.grpc.KeyValuePair - 14, // 35: milvus.grpc.VectorFieldRecord.value:type_name -> milvus.grpc.VectorRowRecord - 6, // 36: milvus.grpc.TermQuery.extra_params:type_name -> milvus.grpc.KeyValuePair - 2, // 37: milvus.grpc.CompareExpr.operator:type_name -> milvus.grpc.CompareOperator - 42, // 38: milvus.grpc.RangeQuery.operand:type_name -> milvus.grpc.CompareExpr - 6, // 39: milvus.grpc.RangeQuery.extra_params:type_name -> milvus.grpc.KeyValuePair - 14, // 40: milvus.grpc.VectorQuery.records:type_name -> milvus.grpc.VectorRowRecord - 6, // 41: milvus.grpc.VectorQuery.extra_params:type_name -> milvus.grpc.KeyValuePair - 3, // 42: milvus.grpc.BooleanQuery.occur:type_name -> milvus.grpc.Occur - 46, // 43: milvus.grpc.BooleanQuery.general_query:type_name -> milvus.grpc.GeneralQuery - 45, // 44: milvus.grpc.GeneralQuery.boolean_query:type_name -> milvus.grpc.BooleanQuery - 41, // 45: milvus.grpc.GeneralQuery.term_query:type_name -> milvus.grpc.TermQuery - 43, // 46: milvus.grpc.GeneralQuery.range_query:type_name -> milvus.grpc.RangeQuery - 44, // 47: milvus.grpc.GeneralQuery.vector_query:type_name -> milvus.grpc.VectorQuery - 46, // 48: milvus.grpc.SearchParamPB.general_query:type_name -> milvus.grpc.GeneralQuery - 6, // 49: milvus.grpc.SearchParamPB.extra_params:type_name -> milvus.grpc.KeyValuePair - 20, // 50: milvus.grpc.InsertOrDeleteMsg.rows_data:type_name -> milvus.grpc.RowData - 4, // 51: milvus.grpc.InsertOrDeleteMsg.op:type_name -> milvus.grpc.OpType - 6, // 52: milvus.grpc.InsertOrDeleteMsg.extra_params:type_name -> milvus.grpc.KeyValuePair - 14, // 53: milvus.grpc.SearchMsg.records:type_name -> milvus.grpc.VectorRowRecord - 6, // 54: milvus.grpc.SearchMsg.extra_params:type_name -> milvus.grpc.KeyValuePair - 4, // 55: milvus.grpc.TimeSyncMsg.MsgType:type_name -> milvus.grpc.OpType - 51, // 56: milvus.grpc.Key2SegMsg.records:type_name -> milvus.grpc.SegmentRecord - 4, // 57: milvus.grpc.Key2SegMsg.msg_type:type_name -> milvus.grpc.OpType - 10, // 58: milvus.grpc.MilvusService.CreateCollection:input_type -> milvus.grpc.Mapping - 7, // 59: milvus.grpc.MilvusService.HasCollection:input_type -> milvus.grpc.CollectionName - 7, // 60: milvus.grpc.MilvusService.DescribeCollection:input_type -> milvus.grpc.CollectionName - 7, // 61: milvus.grpc.MilvusService.CountCollection:input_type -> milvus.grpc.CollectionName - 29, // 62: milvus.grpc.MilvusService.ShowCollections:input_type -> milvus.grpc.Command - 7, // 63: milvus.grpc.MilvusService.ShowCollectionInfo:input_type -> milvus.grpc.CollectionName - 7, // 64: milvus.grpc.MilvusService.DropCollection:input_type -> milvus.grpc.CollectionName - 30, // 65: milvus.grpc.MilvusService.CreateIndex:input_type -> milvus.grpc.IndexParam - 30, // 66: milvus.grpc.MilvusService.DescribeIndex:input_type -> milvus.grpc.IndexParam - 30, // 67: milvus.grpc.MilvusService.DropIndex:input_type -> milvus.grpc.IndexParam - 12, // 68: milvus.grpc.MilvusService.CreatePartition:input_type -> milvus.grpc.PartitionParam - 12, // 69: milvus.grpc.MilvusService.HasPartition:input_type -> milvus.grpc.PartitionParam - 7, // 70: milvus.grpc.MilvusService.ShowPartitions:input_type -> milvus.grpc.CollectionName - 12, // 71: milvus.grpc.MilvusService.DropPartition:input_type -> milvus.grpc.PartitionParam - 21, // 72: milvus.grpc.MilvusService.Insert:input_type -> milvus.grpc.InsertParam - 36, // 73: milvus.grpc.MilvusService.GetEntityByID:input_type -> milvus.grpc.EntityIdentity - 35, // 74: milvus.grpc.MilvusService.GetEntityIDs:input_type -> milvus.grpc.GetEntityIDsParam - 22, // 75: milvus.grpc.MilvusService.Search:input_type -> milvus.grpc.SearchParam - 23, // 76: milvus.grpc.MilvusService.SearchInSegment:input_type -> milvus.grpc.SearchInSegmentParam - 29, // 77: milvus.grpc.MilvusService.Cmd:input_type -> milvus.grpc.Command - 33, // 78: milvus.grpc.MilvusService.DeleteByID:input_type -> milvus.grpc.DeleteByIDParam - 7, // 79: milvus.grpc.MilvusService.PreloadCollection:input_type -> milvus.grpc.CollectionName - 31, // 80: milvus.grpc.MilvusService.Flush:input_type -> milvus.grpc.FlushParam - 32, // 81: milvus.grpc.MilvusService.Compact:input_type -> milvus.grpc.CompactParam - 47, // 82: milvus.grpc.MilvusService.SearchPB:input_type -> milvus.grpc.SearchParamPB - 5, // 83: milvus.grpc.MilvusService.CreateCollection:output_type -> milvus.grpc.Status - 27, // 84: milvus.grpc.MilvusService.HasCollection:output_type -> milvus.grpc.BoolReply - 10, // 85: milvus.grpc.MilvusService.DescribeCollection:output_type -> milvus.grpc.Mapping - 28, // 86: milvus.grpc.MilvusService.CountCollection:output_type -> milvus.grpc.CollectionRowCount - 8, // 87: milvus.grpc.MilvusService.ShowCollections:output_type -> milvus.grpc.CollectionNameList - 34, // 88: milvus.grpc.MilvusService.ShowCollectionInfo:output_type -> milvus.grpc.CollectionInfo - 5, // 89: milvus.grpc.MilvusService.DropCollection:output_type -> milvus.grpc.Status - 5, // 90: milvus.grpc.MilvusService.CreateIndex:output_type -> milvus.grpc.Status - 30, // 91: milvus.grpc.MilvusService.DescribeIndex:output_type -> milvus.grpc.IndexParam - 5, // 92: milvus.grpc.MilvusService.DropIndex:output_type -> milvus.grpc.Status - 5, // 93: milvus.grpc.MilvusService.CreatePartition:output_type -> milvus.grpc.Status - 27, // 94: milvus.grpc.MilvusService.HasPartition:output_type -> milvus.grpc.BoolReply - 13, // 95: milvus.grpc.MilvusService.ShowPartitions:output_type -> milvus.grpc.PartitionList - 5, // 96: milvus.grpc.MilvusService.DropPartition:output_type -> milvus.grpc.Status - 15, // 97: milvus.grpc.MilvusService.Insert:output_type -> milvus.grpc.EntityIds - 24, // 98: milvus.grpc.MilvusService.GetEntityByID:output_type -> milvus.grpc.Entities - 15, // 99: milvus.grpc.MilvusService.GetEntityIDs:output_type -> milvus.grpc.EntityIds - 25, // 100: milvus.grpc.MilvusService.Search:output_type -> milvus.grpc.QueryResult - 25, // 101: milvus.grpc.MilvusService.SearchInSegment:output_type -> milvus.grpc.QueryResult - 26, // 102: milvus.grpc.MilvusService.Cmd:output_type -> milvus.grpc.StringReply - 5, // 103: milvus.grpc.MilvusService.DeleteByID:output_type -> milvus.grpc.Status - 5, // 104: milvus.grpc.MilvusService.PreloadCollection:output_type -> milvus.grpc.Status - 5, // 105: milvus.grpc.MilvusService.Flush:output_type -> milvus.grpc.Status - 5, // 106: milvus.grpc.MilvusService.Compact:output_type -> milvus.grpc.Status - 25, // 107: milvus.grpc.MilvusService.SearchPB:output_type -> milvus.grpc.QueryResult - 83, // [83:108] is the sub-list for method output_type - 58, // [58:83] is the sub-list for method input_type - 58, // [58:58] is the sub-list for extension type_name - 58, // [58:58] is the sub-list for extension extendee - 0, // [0:58] is the sub-list for field type_name -} - -func init() { file_suvlim_proto_init() } -func file_suvlim_proto_init() { - if File_suvlim_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_suvlim_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Status); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*KeyValuePair); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CollectionName); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CollectionNameList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FieldName); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Mapping); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MappingList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PartitionParam); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PartitionList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VectorRowRecord); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EntityIds); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VectorRecord); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VectorParam); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FieldMeta); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Schema); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RowData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InsertParam); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchParam); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchInSegmentParam); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Entities); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StringReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BoolReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CollectionRowCount); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Command); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IndexParam); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FlushParam); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CompactParam); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteByIDParam); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CollectionInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetEntityIDsParam); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EntityIdentity); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VectorFieldParam); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FieldType); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FieldParam); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VectorFieldRecord); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TermQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CompareExpr); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RangeQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VectorQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BooleanQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GeneralQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchParamPB); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InsertOrDeleteMsg); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchMsg); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TimeSyncMsg); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SegmentRecord); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_suvlim_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Key2SegMsg); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_suvlim_proto_msgTypes[33].OneofWrappers = []interface{}{ - (*FieldType_DataType)(nil), - (*FieldType_VectorParam)(nil), - } - file_suvlim_proto_msgTypes[41].OneofWrappers = []interface{}{ - (*GeneralQuery_BooleanQuery)(nil), - (*GeneralQuery_TermQuery)(nil), - (*GeneralQuery_RangeQuery)(nil), - (*GeneralQuery_VectorQuery)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_suvlim_proto_rawDesc, - NumEnums: 5, - NumMessages: 48, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_suvlim_proto_goTypes, - DependencyIndexes: file_suvlim_proto_depIdxs, - EnumInfos: file_suvlim_proto_enumTypes, - MessageInfos: file_suvlim_proto_msgTypes, - }.Build() - File_suvlim_proto = out.File - file_suvlim_proto_rawDesc = nil - file_suvlim_proto_goTypes = nil - file_suvlim_proto_depIdxs = nil -} diff --git a/pulsar/client-go/pb/suvlim.proto b/pulsar/client-go/pb/suvlim.proto deleted file mode 100644 index d17e511693..0000000000 --- a/pulsar/client-go/pb/suvlim.proto +++ /dev/null @@ -1,716 +0,0 @@ -syntax = "proto3"; - -package suvlim.grpc; - -enum ErrorCode { - SUCCESS = 0; - UNEXPECTED_ERROR = 1; - CONNECT_FAILED = 2; - PERMISSION_DENIED = 3; - COLLECTION_NOT_EXISTS = 4; - ILLEGAL_ARGUMENT = 5; - ILLEGAL_DIMENSION = 7; - ILLEGAL_INDEX_TYPE = 8; - ILLEGAL_COLLECTION_NAME = 9; - ILLEGAL_TOPK = 10; - ILLEGAL_ROWRECORD = 11; - ILLEGAL_VECTOR_ID = 12; - ILLEGAL_SEARCH_RESULT = 13; - FILE_NOT_FOUND = 14; - META_FAILED = 15; - CACHE_FAILED = 16; - CANNOT_CREATE_FOLDER = 17; - CANNOT_CREATE_FILE = 18; - CANNOT_DELETE_FOLDER = 19; - CANNOT_DELETE_FILE = 20; - BUILD_INDEX_ERROR = 21; - ILLEGAL_NLIST = 22; - ILLEGAL_METRIC_TYPE = 23; - OUT_OF_MEMORY = 24; -} - -message Status { - ErrorCode error_code = 1; - string reason = 2; -} - -/** - * @brief Field data type - */ -enum DataType { - NONE = 0; - BOOL = 1; - INT8 = 2; - INT16 = 3; - INT32 = 4; - INT64 = 5; - - FLOAT = 10; - DOUBLE = 11; - - STRING = 20; - - VECTOR_BINARY = 100; - VECTOR_FLOAT = 101; -} - -/** - * @brief General usage - */ -message KeyValuePair { - string key = 1; - string value = 2; -} - -/** - * @brief Collection name - */ -message CollectionName { - string collection_name = 1; -} - -/** - * @brief Collection name list - */ -message CollectionNameList { - Status status = 1; - repeated string collection_names = 2; -} - -/** - * @brief Field name - */ -message FieldName { - string collection_name = 1; - string field_name = 2; -} - -/** - * @brief Collection mapping - * @extra_params: key-value pair for extra parameters of the collection - * typically usage: - * extra_params["params"] = {segment_row_count: 1000000, auto_id: true} - * Note: - * the segment_row_count specify segment row count limit for merging - * the auto_id = true means entity id is auto-generated by milvus - */ -message Mapping { - Status status = 1; - string collection_name = 2; - repeated FieldParam fields = 3; - repeated KeyValuePair extra_params = 4; -} - -/** - * @brief Collection mapping list - */ -message MappingList { - Status status = 1; - repeated Mapping mapping_list = 2; -} - -/** - * @brief Parameters of partition - */ -message PartitionParam { - string collection_name = 1; - string tag = 2; -} - -/** - * @brief Partition list - */ -message PartitionList { - Status status = 1; - repeated string partition_tag_array = 2; -} - -/** - * @brief Vector row record - */ -message VectorRowRecord { - repeated float float_data = 1; //float vector data - bytes binary_data = 2; //binary vector data -} - -message EntityIds { - Status status = 1; - repeated int64 entity_id_array = 2; -} - -message VectorRecord { - repeated VectorRowRecord records = 1; -} - -message VectorParam { - string json = 1; - VectorRecord row_record = 2; -} - -//////////////////////////row schema and data/////////////////////////////////// -/** - * @brief schema - */ -message FieldMeta { - string field_name = 1; - DataType type = 2; - int64 dim = 3; -} - -message Schema { - repeated FieldMeta field_metas = 1; -} - -message RowData { - bytes blob = 1; -} - -//////////////////////suvlim-proxy/////////////////////////////////// -message InsertParam { - string collection_name = 1; - Schema schema = 2; - repeated RowData rows_data = 3; - repeated int64 entity_id_array = 4; //optional - string partition_tag = 5; - repeated KeyValuePair extra_params = 6; -} - -message SearchParam { - string collection_name = 1; - repeated VectorParam vector_param = 2; - string dsl = 3; //optional - repeated string partition_tag = 4; //why - repeated KeyValuePair extra_params = 5; -} - -message SearchInSegmentParam { - repeated string file_id_array = 1; - SearchParam search_param = 2; -} - -message Entities { - Status status = 1; - repeated int64 ids = 2; - repeated bool valid_row = 3; - repeated RowData rows_data = 4; -} - - -///////////////////////////milvus-server/////////////////////////// -/** - * @brief Query result - */ -message QueryResult { - Status status = 1; - Entities entities = 2; - int64 row_num = 3; - repeated float scores = 4; - repeated float distances = 5; - repeated KeyValuePair extra_params = 6; -} - -/** - * @brief Server string Reply - */ -message StringReply { - Status status = 1; - string string_reply = 2; -} - -/** - * @brief Server bool Reply - */ -message BoolReply { - Status status = 1; - bool bool_reply = 2; -} - -/** - * @brief Return collection row count - */ -message CollectionRowCount { - Status status = 1; - int64 collection_row_count = 2; -} - -/** - * @brief Server command parameters - */ -message Command { - string cmd = 1; -} - -/** - * @brief Index params - * @collection_name: target collection - * @field_name: target field - * @index_name: a name for index provided by user, unique within this field - * @extra_params: index parameters in json format - * for vector field: - * extra_params["index_type"] = one of the values: FLAT, IVF_LAT, IVF_SQ8, NSGMIX, IVFSQ8H, - * PQ, HNSW, HNSW_SQ8NM, ANNOY - * extra_params["metric_type"] = one of the values: L2, IP, HAMMING, JACCARD, TANIMOTO - * SUBSTRUCTURE, SUPERSTRUCTURE - * extra_params["params"] = extra parameters for index, for example ivflat: {nlist: 2048} - * for structured field: - * extra_params["index_type"] = one of the values: SORTED - */ -message IndexParam { - Status status = 1; - string collection_name = 2; - string field_name = 3; - string index_name = 4; - repeated KeyValuePair extra_params = 5; -} - -/** - * @brief Parameters for flush action - */ -message FlushParam { - repeated string collection_name_array = 1; -} - -/** - * @brief Parameters for flush action - */ -message CompactParam { - string collection_name = 1; - double threshold = 2; -} - -/** - * @brief Parameters for deleting entities by id - */ -message DeleteByIDParam { - string collection_name = 1; - repeated int64 id_array = 2; -} - -/** - * @brief Return collection stats - * @json_info: collection stats in json format, typically, the format is like: - * { - * row_count: xxx, - * data_size: xxx, - * partitions: [ - * { - * tag: xxx, - * id: xxx, - * row_count: xxx, - * data_size: xxx, - * segments: [ - * { - * id: xxx, - * row_count: xxx, - * data_size: xxx, - * files: [ - * { - * field: xxx, - * name: xxx, - * index_type: xxx, - * path: xxx, - * data_size: xxx, - * } - * ] - * } - * ] - * } - * ] - * } - */ -message CollectionInfo { - Status status = 1; - string json_info = 2; -} - -/** - * @brief Parameters for returning entities id of a segment - */ -message GetEntityIDsParam { - string collection_name = 1; - int64 segment_id = 2; -} - -/** - * @brief Entities identity - */ -message EntityIdentity { - string collection_name = 1; - repeated int64 id_array = 2; - repeated string field_names = 3; -} - -/********************************************SearchPB interface***************************************************/ -/** - * @brief Vector field parameters - */ -message VectorFieldParam { - int64 dimension = 1; -} - -/** - * @brief Field type - */ -message FieldType { - oneof value { - DataType data_type = 1; - VectorFieldParam vector_param = 2; - } -} - -/** - * @brief Field parameters - */ -message FieldParam { - uint64 id = 1; - string name = 2; - DataType type = 3; - repeated KeyValuePair index_params = 4; - repeated KeyValuePair extra_params = 5; -} - -/** - * @brief Vector field record - */ -message VectorFieldRecord { - repeated VectorRowRecord value = 1; -} - -/////////////////////////////////////////////////////////////////// - -message TermQuery { - string field_name = 1; - repeated int64 int_value = 2; - repeated double double_value = 3; - int64 value_num = 4; - float boost = 5; - repeated KeyValuePair extra_params = 6; -} - -enum CompareOperator { - LT = 0; - LTE = 1; - EQ = 2; - GT = 3; - GTE = 4; - NE = 5; -} - -message CompareExpr { - CompareOperator operator = 1; - string operand = 2; -} - -message RangeQuery { - string field_name = 1; - repeated CompareExpr operand = 2; - float boost = 3; - repeated KeyValuePair extra_params = 4; -} - -message VectorQuery { - string field_name = 1; - float query_boost = 2; - repeated VectorRowRecord records = 3; - int64 topk = 4; - repeated KeyValuePair extra_params = 5; -} - -enum Occur { - INVALID = 0; - MUST = 1; - SHOULD = 2; - MUST_NOT = 3; -} - -message BooleanQuery { - Occur occur = 1; - repeated GeneralQuery general_query = 2; -} - -message GeneralQuery { - oneof query { - BooleanQuery boolean_query = 1; - TermQuery term_query = 2; - RangeQuery range_query = 3; - VectorQuery vector_query = 4; - } -} - -message SearchParamPB { - string collection_name = 1; - repeated string partition_tag_array = 2; - GeneralQuery general_query = 3; - repeated KeyValuePair extra_params = 4; -} - -service MilvusService { - /** - * @brief This method is used to create collection - * - * @param CollectionSchema, use to provide collection information to be created. - * - * @return Status - */ - rpc CreateCollection(Mapping) returns (Status){} - - /** - * @brief This method is used to test collection existence. - * - * @param CollectionName, collection name is going to be tested. - * - * @return BoolReply - */ - rpc HasCollection(CollectionName) returns (BoolReply) {} - - /** - * @brief This method is used to get collection schema. - * - * @param CollectionName, target collection name. - * - * @return CollectionSchema - */ - rpc DescribeCollection(CollectionName) returns (Mapping) {} - - /** - * @brief This method is used to get collection schema. - * - * @param CollectionName, target collection name. - * - * @return CollectionRowCount - */ - rpc CountCollection(CollectionName) returns (CollectionRowCount) {} - - /** - * @brief This method is used to list all collections. - * - * @param Command, dummy parameter. - * - * @return CollectionNameList - */ - rpc ShowCollections(Command) returns (CollectionNameList) {} - - /** - * @brief This method is used to get collection detail information. - * - * @param CollectionName, target collection name. - * - * @return CollectionInfo - */ - rpc ShowCollectionInfo(CollectionName) returns (CollectionInfo) {} - - /** - * @brief This method is used to delete collection. - * - * @param CollectionName, collection name is going to be deleted. - * - * @return Status - */ - rpc DropCollection(CollectionName) returns (Status) {} - - /** - * @brief This method is used to build index by collection in sync mode. - * - * @param IndexParam, index paramters. - * - * @return Status - */ - rpc CreateIndex(IndexParam) returns (Status) {} - - /** - * @brief This method is used to describe index - * - * @param IndexParam, target index. - * - * @return IndexParam - */ - rpc DescribeIndex(IndexParam) returns (IndexParam) {} - - /** - * @brief This method is used to drop index - * - * @param IndexParam, target field. if the IndexParam.field_name is empty, will drop all index of the collection - * - * @return Status - */ - rpc DropIndex(IndexParam) returns (Status) {} - - /** - * @brief This method is used to create partition - * - * @param PartitionParam, partition parameters. - * - * @return Status - */ - rpc CreatePartition(PartitionParam) returns (Status) {} - - /** - * @brief This method is used to test partition existence. - * - * @param PartitionParam, target partition. - * - * @return BoolReply - */ - rpc HasPartition(PartitionParam) returns (BoolReply) {} - - /** - * @brief This method is used to show partition information - * - * @param CollectionName, target collection name. - * - * @return PartitionList - */ - rpc ShowPartitions(CollectionName) returns (PartitionList) {} - - /** - * @brief This method is used to drop partition - * - * @param PartitionParam, target partition. - * - * @return Status - */ - rpc DropPartition(PartitionParam) returns (Status) {} - - /** - * @brief This method is used to add vector array to collection. - * - * @param InsertParam, insert parameters. - * - * @return VectorIds - */ - rpc Insert(InsertParam) returns (EntityIds) {} - - /** - * @brief This method is used to get entities data by id array. - * - * @param EntitiesIdentity, target entity id array. - * - * @return EntitiesData - */ - rpc GetEntityByID(EntityIdentity) returns (Entities) {} - - /** - * @brief This method is used to get vector ids from a segment - * - * @param GetVectorIDsParam, target collection and segment - * - * @return VectorIds - */ - rpc GetEntityIDs(GetEntityIDsParam) returns (EntityIds) {} - - /** - * @brief This method is used to query vector in collection. - * - * @param SearchParam, search parameters. - * - * @return KQueryResult - */ - rpc Search(SearchParam) returns (QueryResult) {} - - /** - * @brief This method is used to query vector in specified files. - * - * @param SearchInSegmentParam, target segments to search. - * - * @return TopKQueryResult - */ - rpc SearchInSegment(SearchInSegmentParam) returns (QueryResult) {} - - /** - * @brief This method is used to give the server status. - * - * @param Command, command string - * - * @return StringReply - */ - rpc Cmd(Command) returns (StringReply) {} - - /** - * @brief This method is used to delete vector by id - * - * @param DeleteByIDParam, delete parameters. - * - * @return status - */ - rpc DeleteByID(DeleteByIDParam) returns (Status) {} - - /** - * @brief This method is used to preload collection - * - * @param CollectionName, target collection name. - * - * @return Status - */ - rpc PreloadCollection(CollectionName) returns (Status) {} - - /** - * @brief This method is used to flush buffer into storage. - * - * @param FlushParam, flush parameters - * - * @return Status - */ - rpc Flush(FlushParam) returns (Status) {} - - /** - * @brief This method is used to compact collection - * - * @param CompactParam, compact parameters - * - * @return Status - */ - rpc Compact(CompactParam) returns (Status) {} - - /********************************New Interface********************************************/ - - rpc SearchPB(SearchParamPB) returns (QueryResult) {} -} - -////////////////////pulsar////////////////////////////////////// -enum OpType { - INSERT = 0; - DELETE = 1; -} - -message InsertOrDeleteMsg { - string collection_name = 1; - RowData rows_data = 2; - int64 uid = 3; //optional - string partition_tag = 4; - int64 timestamp =5; - int64 segment_id = 6; - int64 channel_id = 7; - OpType op = 8; - int64 client_id = 9; - repeated KeyValuePair extra_params = 10; -} - -message SearchMsg { - string collection_name = 1; - VectorRowRecord records = 2; - string partition_tag = 3; - int64 uid = 4; - int64 timestamp =5; - int64 client_id = 6; - repeated KeyValuePair extra_params = 7; -} - -enum SyncType { - READ = 0; - WRITE = 1; -} -message TimeSyncMsg{ - int64 peer_Id = 1; - int64 Timestamp = 2; - SyncType sync_type = 3; -} - -message SegmentRecord { - int64 uid = 1; - repeated int64 segment_id = 2; -} - -message Key2SegMsg { - int64 client_id = 1; - SegmentRecord records = 2; -} diff --git a/pulsar/client-go/query_node.go b/pulsar/client-go/query_node.go deleted file mode 100644 index 39f781f5bd..0000000000 --- a/pulsar/client-go/query_node.go +++ /dev/null @@ -1,71 +0,0 @@ -package client_go - -import ( - "fmt" - "github.com/czs007/suvlim/pulsar/client-go/schema" - "sync" - "time" -) - -var ( - consumerQSchema = "{\"type\":\"record\",\"name\":\"suvlim\",\"namespace\":\"pulsar\",\"fields\":[" + - "{\"name\":\"MsgType\",\"type\":\"OpType\"}," + - "]}" -) - -type QueryNode struct { - mc MessageClient -} - -func (qn *QueryNode)doQueryNode(wg sync.WaitGroup) { - wg.Add(3) - go qn.insert_query(qn.mc.InsertMsg, wg) - go qn.delete_query(qn.mc.DeleteMsg, wg) - go qn.search_query(qn.mc.SearchMsg, wg) - wg.Wait() -} - - -func (qn *QueryNode) PrepareBatchMsg() { - qn.mc.PrepareBatchMsg(JobType(0)) -} - -func (qn *QueryNode)ReceiveMessage() { - qn.mc.ReceiveMessage() -} - -func queryNodeMain() { - - mc := MessageClient{} - topics := []string{"insert", "delete"} - mc.InitClient("pulsar://localhost:6650", topics, consumerQSchema) - - qn := QueryNode{mc} - wg := sync.WaitGroup{} - go qn.ReceiveMessage() - - for { - time.Sleep(200 * time.Millisecond) - qn.PrepareBatchMsg() - qn.doQueryNode(wg) - fmt.Println("do a batch in 200ms") - } -} - -func (qn *QueryNode) insert_query(data []*schema.InsertMsg, wg sync.WaitGroup) schema.Status { - wg.Done() - return schema.Status{schema.ErrorCode_SUCCESS, ""} -} - -func (qn *QueryNode) delete_query(data []*schema.DeleteMsg, wg sync.WaitGroup) schema.Status { - wg.Done() - return schema.Status{schema.ErrorCode_SUCCESS, ""} -} - -func (qn *QueryNode) search_query(data []*schema.SearchMsg, wg sync.WaitGroup) schema.Status { - wg.Done() - return schema.Status{schema.ErrorCode_SUCCESS, ""} -} - - - diff --git a/pulsar/client-go/schema/message.go b/pulsar/client-go/schema/message.go deleted file mode 100644 index 0dbe7e97f3..0000000000 --- a/pulsar/client-go/schema/message.go +++ /dev/null @@ -1,198 +0,0 @@ -package schema - -import ( - "encoding/json" - "fmt" -) - -type ErrorCode int32 - -const ( - ErrorCode_SUCCESS ErrorCode = 0 - ErrorCode_UNEXPECTED_ERROR ErrorCode = 1 - ErrorCode_CONNECT_FAILED ErrorCode = 2 - ErrorCode_PERMISSION_DENIED ErrorCode = 3 - ErrorCode_COLLECTION_NOT_EXISTS ErrorCode = 4 - ErrorCode_ILLEGAL_ARGUMENT ErrorCode = 5 - ErrorCode_ILLEGAL_DIMENSION ErrorCode = 7 - ErrorCode_ILLEGAL_INDEX_TYPE ErrorCode = 8 - ErrorCode_ILLEGAL_COLLECTION_NAME ErrorCode = 9 - ErrorCode_ILLEGAL_TOPK ErrorCode = 10 - ErrorCode_ILLEGAL_ROWRECORD ErrorCode = 11 - ErrorCode_ILLEGAL_VECTOR_ID ErrorCode = 12 - ErrorCode_ILLEGAL_SEARCH_RESULT ErrorCode = 13 - ErrorCode_FILE_NOT_FOUND ErrorCode = 14 - ErrorCode_META_FAILED ErrorCode = 15 - ErrorCode_CACHE_FAILED ErrorCode = 16 - ErrorCode_CANNOT_CREATE_FOLDER ErrorCode = 17 - ErrorCode_CANNOT_CREATE_FILE ErrorCode = 18 - ErrorCode_CANNOT_DELETE_FOLDER ErrorCode = 19 - ErrorCode_CANNOT_DELETE_FILE ErrorCode = 20 - ErrorCode_BUILD_INDEX_ERROR ErrorCode = 21 - ErrorCode_ILLEGAL_NLIST ErrorCode = 22 - ErrorCode_ILLEGAL_METRIC_TYPE ErrorCode = 23 - ErrorCode_OUT_OF_MEMORY ErrorCode = 24 -) - -type Status struct { - Error_code ErrorCode - Reason string -} - -type DataType int32 - -const ( - NONE DataType = 0 - BOOL DataType = 1 - INT8 DataType = 2 - INT16 DataType = 3 - INT32 DataType = 4 - INT64 DataType = 5 - FLOAT DataType = 10 - DOUBLE DataType = 11 - STRING DataType = 20 - VectorBinary DataType = 100 - VectorFloat DataType = 101 -) - -type AttrRecord struct { - Int32Value int32 - Int64Value int64 - FloatValue float32 - DoubleValue float64 -} - -type VectorRowRecord struct { - FloatData []float32 - BinaryData []byte -} - -type VectorRecord struct { - Records *VectorRowRecord -} - -type FieldValue struct { - FieldName string - Type DataType - AttrRecord *AttrRecord //what's the diff with VectorRecord - VectorRecord *VectorRecord -} - -type VectorParam struct { - Json string - RowRecord *VectorRecord -} - -type SegmentRecord struct { - segInfo []string -} - -type OpType int - -const ( - Insert OpType = 0 - Delete OpType = 1 - Search OpType = 2 - TimeSync OpType = 3 - Key2Seg OpType = 4 - Statistics OpType = 5 - EOF OpType = 6 -) - -type PulsarMessage struct { - CollectionName string - Fields []*FieldValue - EntityId int64 - PartitionTag string - VectorParam *VectorParam - Segments []*SegmentRecord - Timestamp int64 - ClientId int64 - MsgType OpType - TopicName string - PartitionId int64 - -} - -type Message interface { - GetType() OpType - Serialization() []byte - Deserialization(serializationData []byte) -} - -type InsertMsg struct { - CollectionName string - Fields []*FieldValue - EntityId uint64 - PartitionTag string - SegmentId uint64 - Timestamp uint64 - ClientId int64 - MsgType OpType -} - -type DeleteMsg struct { - CollectionName string - EntityId uint64 - Timestamp uint64 - ClientId int64 - MsgType OpType -} - -type SearchMsg struct { - CollectionName string - PartitionTag string - VectorParam *VectorParam - Timestamp uint64 - ClientId int64 - MsgType OpType -} - -type TimeSyncMsg struct { - ClientId int64 - Timestamp int64 - MsgType OpType -} - -type Key2SegMsg struct { - EntityId int64 - Segments []*SegmentRecord - MsgType OpType -} - -func (ims *InsertMsg) GetType() OpType { - return ims.MsgType -} - -func (ims *InsertMsg) Serialization() []byte { - data, err := json.Marshal(ims) - if err != nil { - fmt.Println("Can't serialization") - } - return data -} - -func (ims *InsertMsg) Deserialization(serializationData []byte) { - -} - -func (dms *DeleteMsg) GetType() OpType { - return dms.MsgType -} - -func (sms *SearchMsg) GetType() OpType { - return sms.MsgType -} - -func (tms *TimeSyncMsg) GetType() OpType { - return tms.MsgType -} - -func (kms *Key2SegMsg) GetType() OpType { - return kms.MsgType -} - -type SyncEofMsg struct { - MsgType OpType -} - diff --git a/pulsar/client-go/storage_node.go b/pulsar/client-go/storage_node.go deleted file mode 100644 index 4c7c589254..0000000000 --- a/pulsar/client-go/storage_node.go +++ /dev/null @@ -1,56 +0,0 @@ -package client_go - -import ( - "fmt" - "github.com/czs007/suvlim/pulsar/client-go/schema" - "sync" - "time" -) - -var ( - consumerWSchema = "{\"type\":\"record\",\"name\":\"suvlim\",\"namespace\":\"pulsar\",\"fields\":[" + - "{\"name\":\"MsgType\",\"type\":\"OpType\"}," + - "]}" -) - -type WriteNode struct { - mc MessageClient -} - -func (wn *WriteNode) doWriteNode(wg sync.WaitGroup) { - wg.Add(2) - go wn.insert_write(wn.mc.InsertMsg, wg) - go wn.delete_write(wn.mc.DeleteMsg, wg) - wg.Wait() -} - -func (wn *WriteNode) PrepareBatchMsg() { - wn.mc.PrepareBatchMsg(JobType(1)) -} -func storageNodeMain() { - - mc := MessageClient{} - topics := []string{"insert", "delete"} - mc.InitClient("pulsar://localhost:6650", topics, consumerWSchema) - - go mc.ReceiveMessage() - wg := sync.WaitGroup{} - wn := WriteNode{mc} - - for { - time.Sleep(200 * time.Millisecond) - wn.PrepareBatchMsg() - wn.doWriteNode(wg) - fmt.Println("do a batch in 200ms") - } -} - -func (wn *WriteNode) insert_write(data []*schema.InsertMsg, wg sync.WaitGroup) schema.Status { - wg.Done() - return schema.Status{schema.ErrorCode_SUCCESS, ""} -} - -func (wn *WriteNode) delete_write(data []*schema.DeleteMsg, wg sync.WaitGroup) schema.Status { - wg.Done() - return schema.Status{schema.ErrorCode_SUCCESS, ""} -} diff --git a/pulsar/client-go/test/client_test.go b/pulsar/client-go/test/client_test.go deleted file mode 100644 index f13a91cb2c..0000000000 --- a/pulsar/client-go/test/client_test.go +++ /dev/null @@ -1,19 +0,0 @@ -package test - -import "sync" - -var ( - wg sync.WaitGroup - - OriginMsgSchema = "{\"type\":\"record\",\"name\":\"suvlim\",\"namespace\":\"pulsar\",\"fields\":[" + - "{\"name\":\"CollectionName\",\"type\":\"string\"}," + - "{\"name\":\"Fields\",\"type\":\"[]*FieldValue\"}" + - "{\"name\":\"EntityId\",\"type\":\"int64\"}" + - "{\"name\":\"PartitionTag\",\"type\":\"string\"}" + - "{\"name\":\"VectorParam\",\"type\":\"*VectorParam\"}" + - "{\"name\":\"Segments\",\"type\":\"[]string\"}" + - "{\"name\":\"Timestamp\",\"type\":\"int64\"}" + - "{\"name\":\"ClientId\",\"type\":\"int64\"}" + - "{\"name\":\"MsgType\",\"type\":\"OpType\"}" + - "]}" -) \ No newline at end of file diff --git a/writer/main.go b/writer/main.go index 857d44d8b0..ac79bfc332 100644 --- a/writer/main.go +++ b/writer/main.go @@ -22,8 +22,8 @@ func main() { go mc.ReceiveMessage() wg := sync.WaitGroup{} - - kv, err := storage.NewStore(context.Background(), types.MinIODriver) + ctx := context.Background() + kv, err := storage.NewStore(ctx, types.MinIODriver) if err != nil { log.Fatal(err) } @@ -34,7 +34,6 @@ func main() { TimeSync: 100, } - ctx := context.Background() for { time.Sleep(200 * time.Millisecond) msgLength := wn.MessageClient.PrepareBatchMsg() diff --git a/writer/message_client/message_client.go b/writer/message_client/message_client.go index bf7205f999..5b773d4ae8 100644 --- a/writer/message_client/message_client.go +++ b/writer/message_client/message_client.go @@ -18,7 +18,6 @@ type MessageClient struct { // pulsar client pulsar.Client key2segProducer pulsar.Producer - writeSyncProducer pulsar.Producer insertOrDeleteConsumer pulsar.Consumer searchByIdConsumer pulsar.Consumer timeSyncConsumer pulsar.Consumer @@ -27,7 +26,15 @@ type MessageClient struct { InsertMsg []*pb.InsertOrDeleteMsg DeleteMsg []*pb.InsertOrDeleteMsg SearchByIdMsg []*pb.EntityIdentity - timeSyncMsg []*pb.TimeSyncMsg + TimeSyncMsg []*pb.TimeSyncMsg +} + +func (mc *MessageClient) Send(ctx context.Context, msg pb.Key2SegMsg) { + if err := mc.key2segProducer.Send(ctx, pulsar.ProducerMessage{ + Payload: []byte(msg.String()), + }); err != nil { + log.Fatal(err) + } } func (mc *MessageClient) ReceiveInsertOrDeleteMsg() { @@ -116,7 +123,6 @@ func (mc *MessageClient) InitClient(url string) { //create producer mc.key2segProducer = mc.CreatProducer("Key2Seg") - mc.writeSyncProducer = mc.CreatProducer("TimeSync") //create consumer mc.insertOrDeleteConsumer = mc.CreateConsumer("InsertOrDelete") @@ -131,13 +137,12 @@ func (mc *MessageClient) InitClient(url string) { mc.InsertMsg = make([]*pb.InsertOrDeleteMsg, 1000) mc.DeleteMsg = make([]*pb.InsertOrDeleteMsg, 1000) mc.SearchByIdMsg = make([]*pb.EntityIdentity, 1000) - mc.timeSyncMsg = make([]*pb.TimeSyncMsg, 1000) + mc.TimeSyncMsg = make([]*pb.TimeSyncMsg, 1000) } func (mc *MessageClient) Close() { defer mc.client.Close() defer mc.key2segProducer.Close() - defer mc.writeSyncProducer.Close() defer mc.insertOrDeleteConsumer.Close() defer mc.searchByIdConsumer.Close() defer mc.timeSyncConsumer.Close() @@ -180,7 +185,7 @@ func (mc *MessageClient) PrepareMsg(messageType MessageType, msgLen int) { case TimeSync: for i := 0; i < msgLen; i++ { msg := <-mc.timeSyncChan - mc.timeSyncMsg = append(mc.timeSyncMsg, msg) + mc.TimeSyncMsg = append(mc.TimeSyncMsg, msg) } } } @@ -190,7 +195,7 @@ func (mc *MessageClient) PrepareBatchMsg() []int { mc.InsertMsg = mc.InsertMsg[:0] mc.DeleteMsg = mc.DeleteMsg[:0] mc.SearchByIdMsg = mc.SearchByIdMsg[:0] - mc.timeSyncMsg = mc.timeSyncMsg[:0] + mc.TimeSyncMsg = mc.TimeSyncMsg[:0] // get the length of every channel insertOrDeleteLen := len(mc.insertOrDeleteChan) diff --git a/writer/pb/suvlim.pb.go b/writer/pb/suvlim.pb.go index 6981008f98..69e9e6e6fc 100644 --- a/writer/pb/suvlim.pb.go +++ b/writer/pb/suvlim.pb.go @@ -1,67 +1,13 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // source: suvlim.proto -/* -Package pb is a generated protocol buffer package. - -It is generated from these files: - suvlim.proto - -It has these top-level messages: - Status - KeyValuePair - CollectionName - CollectionNameList - FieldName - Mapping - MappingList - PartitionParam - PartitionList - VectorRowRecord - EntityIds - VectorRecord - VectorParam - FieldMeta - Schema - RowData - InsertParam - SearchParam - SearchInSegmentParam - Entities - QueryResult - StringReply - BoolReply - CollectionRowCount - Command - IndexParam - FlushParam - CompactParam - DeleteByIDParam - CollectionInfo - GetEntityIDsParam - EntityIdentity - VectorFieldParam - FieldType - FieldParam - VectorFieldRecord - TermQuery - CompareExpr - RangeQuery - VectorQuery - BooleanQuery - GeneralQuery - SearchParamPB - InsertOrDeleteMsg - SearchMsg - TimeSyncMsg - SegmentRecord - Key2SegMsg -*/ package pb -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -72,7 +18,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type ErrorCode int32 @@ -129,6 +75,7 @@ var ErrorCode_name = map[int32]string{ 23: "ILLEGAL_METRIC_TYPE", 24: "OUT_OF_MEMORY", } + var ErrorCode_value = map[string]int32{ "SUCCESS": 0, "UNEXPECTED_ERROR": 1, @@ -159,9 +106,12 @@ var ErrorCode_value = map[string]int32{ func (x ErrorCode) String() string { return proto.EnumName(ErrorCode_name, int32(x)) } -func (ErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } -// * +func (ErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{0} +} + +//* // @brief Field data type type DataType int32 @@ -192,6 +142,7 @@ var DataType_name = map[int32]string{ 100: "VECTOR_BINARY", 101: "VECTOR_FLOAT", } + var DataType_value = map[string]int32{ "NONE": 0, "BOOL": 1, @@ -209,7 +160,10 @@ var DataType_value = map[string]int32{ func (x DataType) String() string { return proto.EnumName(DataType_name, int32(x)) } -func (DataType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +func (DataType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{1} +} type CompareOperator int32 @@ -230,6 +184,7 @@ var CompareOperator_name = map[int32]string{ 4: "GTE", 5: "NE", } + var CompareOperator_value = map[string]int32{ "LT": 0, "LTE": 1, @@ -242,7 +197,10 @@ var CompareOperator_value = map[string]int32{ func (x CompareOperator) String() string { return proto.EnumName(CompareOperator_name, int32(x)) } -func (CompareOperator) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } + +func (CompareOperator) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{2} +} type Occur int32 @@ -259,6 +217,7 @@ var Occur_name = map[int32]string{ 2: "SHOULD", 3: "MUST_NOT", } + var Occur_value = map[string]int32{ "INVALID": 0, "MUST": 1, @@ -269,51 +228,94 @@ var Occur_value = map[string]int32{ func (x Occur) String() string { return proto.EnumName(Occur_name, int32(x)) } -func (Occur) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } -// //////////////////pulsar////////////////////////////////////// +func (Occur) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{3} +} + +////////////////////pulsar////////////////////////////////////// type OpType int32 const ( - OpType_INSERT OpType = 0 - OpType_DELETE OpType = 1 - OpType_SEARCH OpType = 2 - OpType_SEARCH_RESULT OpType = 3 - OpType_KEY2SEG OpType = 4 - OpType_TIMESYNC OpType = 5 + OpType_INSERT OpType = 0 + OpType_DELETE OpType = 1 ) var OpType_name = map[int32]string{ 0: "INSERT", 1: "DELETE", - 2: "SEARCH", - 3: "SEARCH_RESULT", - 4: "KEY2SEG", - 5: "TIMESYNC", } + var OpType_value = map[string]int32{ - "INSERT": 0, - "DELETE": 1, - "SEARCH": 2, - "SEARCH_RESULT": 3, - "KEY2SEG": 4, - "TIMESYNC": 5, + "INSERT": 0, + "DELETE": 1, } func (x OpType) String() string { return proto.EnumName(OpType_name, int32(x)) } -func (OpType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } -type Status struct { - ErrorCode ErrorCode `protobuf:"varint,1,opt,name=error_code,json=errorCode,enum=suvlim.grpc.ErrorCode" json:"error_code,omitempty"` - Reason string `protobuf:"bytes,2,opt,name=reason" json:"reason,omitempty"` +func (OpType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{4} } -func (m *Status) Reset() { *m = Status{} } -func (m *Status) String() string { return proto.CompactTextString(m) } -func (*Status) ProtoMessage() {} -func (*Status) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +type SyncType int32 + +const ( + SyncType_READ SyncType = 0 + SyncType_WRITE SyncType = 1 +) + +var SyncType_name = map[int32]string{ + 0: "READ", + 1: "WRITE", +} + +var SyncType_value = map[string]int32{ + "READ": 0, + "WRITE": 1, +} + +func (x SyncType) String() string { + return proto.EnumName(SyncType_name, int32(x)) +} + +func (SyncType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{5} +} + +type Status struct { + ErrorCode ErrorCode `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3,enum=suvlim.grpc.ErrorCode" json:"error_code,omitempty"` + Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Status) Reset() { *m = Status{} } +func (m *Status) String() string { return proto.CompactTextString(m) } +func (*Status) ProtoMessage() {} +func (*Status) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{0} +} + +func (m *Status) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Status.Unmarshal(m, b) +} +func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Status.Marshal(b, m, deterministic) +} +func (m *Status) XXX_Merge(src proto.Message) { + xxx_messageInfo_Status.Merge(m, src) +} +func (m *Status) XXX_Size() int { + return xxx_messageInfo_Status.Size(m) +} +func (m *Status) XXX_DiscardUnknown() { + xxx_messageInfo_Status.DiscardUnknown(m) +} + +var xxx_messageInfo_Status proto.InternalMessageInfo func (m *Status) GetErrorCode() ErrorCode { if m != nil { @@ -329,17 +331,40 @@ func (m *Status) GetReason() string { return "" } -// * +//* // @brief General usage type KeyValuePair struct { - Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,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 *KeyValuePair) Reset() { *m = KeyValuePair{} } -func (m *KeyValuePair) String() string { return proto.CompactTextString(m) } -func (*KeyValuePair) ProtoMessage() {} -func (*KeyValuePair) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } +func (m *KeyValuePair) Reset() { *m = KeyValuePair{} } +func (m *KeyValuePair) String() string { return proto.CompactTextString(m) } +func (*KeyValuePair) ProtoMessage() {} +func (*KeyValuePair) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{1} +} + +func (m *KeyValuePair) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_KeyValuePair.Unmarshal(m, b) +} +func (m *KeyValuePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_KeyValuePair.Marshal(b, m, deterministic) +} +func (m *KeyValuePair) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyValuePair.Merge(m, src) +} +func (m *KeyValuePair) XXX_Size() int { + return xxx_messageInfo_KeyValuePair.Size(m) +} +func (m *KeyValuePair) XXX_DiscardUnknown() { + xxx_messageInfo_KeyValuePair.DiscardUnknown(m) +} + +var xxx_messageInfo_KeyValuePair proto.InternalMessageInfo func (m *KeyValuePair) GetKey() string { if m != nil { @@ -355,16 +380,39 @@ func (m *KeyValuePair) GetValue() string { return "" } -// * +//* // @brief Collection name type CollectionName struct { - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` + 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 fileDescriptor0, []int{2} } +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_411e9188eb859c95, []int{2} +} + +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 { @@ -373,17 +421,40 @@ func (m *CollectionName) GetCollectionName() string { return "" } -// * +//* // @brief Collection name list type CollectionNameList struct { - Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` - CollectionNames []string `protobuf:"bytes,2,rep,name=collection_names,json=collectionNames" json:"collection_names,omitempty"` + Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + CollectionNames []string `protobuf:"bytes,2,rep,name=collection_names,json=collectionNames,proto3" json:"collection_names,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CollectionNameList) Reset() { *m = CollectionNameList{} } -func (m *CollectionNameList) String() string { return proto.CompactTextString(m) } -func (*CollectionNameList) ProtoMessage() {} -func (*CollectionNameList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } +func (m *CollectionNameList) Reset() { *m = CollectionNameList{} } +func (m *CollectionNameList) String() string { return proto.CompactTextString(m) } +func (*CollectionNameList) ProtoMessage() {} +func (*CollectionNameList) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{3} +} + +func (m *CollectionNameList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CollectionNameList.Unmarshal(m, b) +} +func (m *CollectionNameList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CollectionNameList.Marshal(b, m, deterministic) +} +func (m *CollectionNameList) XXX_Merge(src proto.Message) { + xxx_messageInfo_CollectionNameList.Merge(m, src) +} +func (m *CollectionNameList) XXX_Size() int { + return xxx_messageInfo_CollectionNameList.Size(m) +} +func (m *CollectionNameList) XXX_DiscardUnknown() { + xxx_messageInfo_CollectionNameList.DiscardUnknown(m) +} + +var xxx_messageInfo_CollectionNameList proto.InternalMessageInfo func (m *CollectionNameList) GetStatus() *Status { if m != nil { @@ -399,17 +470,40 @@ func (m *CollectionNameList) GetCollectionNames() []string { return nil } -// * +//* // @brief Field name type FieldName struct { - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` - FieldName string `protobuf:"bytes,2,opt,name=field_name,json=fieldName" json:"field_name,omitempty"` + 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 *FieldName) Reset() { *m = FieldName{} } -func (m *FieldName) String() string { return proto.CompactTextString(m) } -func (*FieldName) ProtoMessage() {} -func (*FieldName) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } +func (m *FieldName) Reset() { *m = FieldName{} } +func (m *FieldName) String() string { return proto.CompactTextString(m) } +func (*FieldName) ProtoMessage() {} +func (*FieldName) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{4} +} + +func (m *FieldName) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FieldName.Unmarshal(m, b) +} +func (m *FieldName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FieldName.Marshal(b, m, deterministic) +} +func (m *FieldName) XXX_Merge(src proto.Message) { + xxx_messageInfo_FieldName.Merge(m, src) +} +func (m *FieldName) XXX_Size() int { + return xxx_messageInfo_FieldName.Size(m) +} +func (m *FieldName) XXX_DiscardUnknown() { + xxx_messageInfo_FieldName.DiscardUnknown(m) +} + +var xxx_messageInfo_FieldName proto.InternalMessageInfo func (m *FieldName) GetCollectionName() string { if m != nil { @@ -425,7 +519,7 @@ func (m *FieldName) GetFieldName() string { return "" } -// * +//* // @brief Collection mapping // @extra_params: key-value pair for extra parameters of the collection // typically usage: @@ -434,16 +528,39 @@ func (m *FieldName) GetFieldName() string { // the segment_row_count specify segment row count limit for merging // the auto_id = true means entity id is auto-generated by milvus type Mapping struct { - Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` - CollectionName string `protobuf:"bytes,2,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` - Fields []*FieldParam `protobuf:"bytes,3,rep,name=fields" json:"fields,omitempty"` - ExtraParams []*KeyValuePair `protobuf:"bytes,4,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` + Status *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"` + Schema *Schema `protobuf:"bytes,3,opt,name=schema,proto3" json:"schema,omitempty"` + ExtraParams []*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 *Mapping) Reset() { *m = Mapping{} } -func (m *Mapping) String() string { return proto.CompactTextString(m) } -func (*Mapping) ProtoMessage() {} -func (*Mapping) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } +func (m *Mapping) Reset() { *m = Mapping{} } +func (m *Mapping) String() string { return proto.CompactTextString(m) } +func (*Mapping) ProtoMessage() {} +func (*Mapping) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{5} +} + +func (m *Mapping) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Mapping.Unmarshal(m, b) +} +func (m *Mapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Mapping.Marshal(b, m, deterministic) +} +func (m *Mapping) XXX_Merge(src proto.Message) { + xxx_messageInfo_Mapping.Merge(m, src) +} +func (m *Mapping) XXX_Size() int { + return xxx_messageInfo_Mapping.Size(m) +} +func (m *Mapping) XXX_DiscardUnknown() { + xxx_messageInfo_Mapping.DiscardUnknown(m) +} + +var xxx_messageInfo_Mapping proto.InternalMessageInfo func (m *Mapping) GetStatus() *Status { if m != nil { @@ -459,9 +576,9 @@ func (m *Mapping) GetCollectionName() string { return "" } -func (m *Mapping) GetFields() []*FieldParam { +func (m *Mapping) GetSchema() *Schema { if m != nil { - return m.Fields + return m.Schema } return nil } @@ -473,17 +590,40 @@ func (m *Mapping) GetExtraParams() []*KeyValuePair { return nil } -// * +//* // @brief Collection mapping list type MappingList struct { - Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` - MappingList []*Mapping `protobuf:"bytes,2,rep,name=mapping_list,json=mappingList" json:"mapping_list,omitempty"` + Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + MappingList []*Mapping `protobuf:"bytes,2,rep,name=mapping_list,json=mappingList,proto3" json:"mapping_list,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MappingList) Reset() { *m = MappingList{} } -func (m *MappingList) String() string { return proto.CompactTextString(m) } -func (*MappingList) ProtoMessage() {} -func (*MappingList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } +func (m *MappingList) Reset() { *m = MappingList{} } +func (m *MappingList) String() string { return proto.CompactTextString(m) } +func (*MappingList) ProtoMessage() {} +func (*MappingList) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{6} +} + +func (m *MappingList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MappingList.Unmarshal(m, b) +} +func (m *MappingList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MappingList.Marshal(b, m, deterministic) +} +func (m *MappingList) XXX_Merge(src proto.Message) { + xxx_messageInfo_MappingList.Merge(m, src) +} +func (m *MappingList) XXX_Size() int { + return xxx_messageInfo_MappingList.Size(m) +} +func (m *MappingList) XXX_DiscardUnknown() { + xxx_messageInfo_MappingList.DiscardUnknown(m) +} + +var xxx_messageInfo_MappingList proto.InternalMessageInfo func (m *MappingList) GetStatus() *Status { if m != nil { @@ -499,17 +639,40 @@ func (m *MappingList) GetMappingList() []*Mapping { return nil } -// * +//* // @brief Parameters of partition type PartitionParam struct { - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` - Tag string `protobuf:"bytes,2,opt,name=tag" json:"tag,omitempty"` + 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 *PartitionParam) Reset() { *m = PartitionParam{} } -func (m *PartitionParam) String() string { return proto.CompactTextString(m) } -func (*PartitionParam) ProtoMessage() {} -func (*PartitionParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } +func (m *PartitionParam) Reset() { *m = PartitionParam{} } +func (m *PartitionParam) String() string { return proto.CompactTextString(m) } +func (*PartitionParam) ProtoMessage() {} +func (*PartitionParam) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{7} +} + +func (m *PartitionParam) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PartitionParam.Unmarshal(m, b) +} +func (m *PartitionParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PartitionParam.Marshal(b, m, deterministic) +} +func (m *PartitionParam) XXX_Merge(src proto.Message) { + xxx_messageInfo_PartitionParam.Merge(m, src) +} +func (m *PartitionParam) XXX_Size() int { + return xxx_messageInfo_PartitionParam.Size(m) +} +func (m *PartitionParam) XXX_DiscardUnknown() { + xxx_messageInfo_PartitionParam.DiscardUnknown(m) +} + +var xxx_messageInfo_PartitionParam proto.InternalMessageInfo func (m *PartitionParam) GetCollectionName() string { if m != nil { @@ -525,17 +688,40 @@ func (m *PartitionParam) GetTag() string { return "" } -// * +//* // @brief Partition list type PartitionList struct { - Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` - PartitionTagArray []string `protobuf:"bytes,2,rep,name=partition_tag_array,json=partitionTagArray" json:"partition_tag_array,omitempty"` + Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + PartitionTagArray []string `protobuf:"bytes,2,rep,name=partition_tag_array,json=partitionTagArray,proto3" json:"partition_tag_array,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PartitionList) Reset() { *m = PartitionList{} } -func (m *PartitionList) String() string { return proto.CompactTextString(m) } -func (*PartitionList) ProtoMessage() {} -func (*PartitionList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } +func (m *PartitionList) Reset() { *m = PartitionList{} } +func (m *PartitionList) String() string { return proto.CompactTextString(m) } +func (*PartitionList) ProtoMessage() {} +func (*PartitionList) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{8} +} + +func (m *PartitionList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PartitionList.Unmarshal(m, b) +} +func (m *PartitionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PartitionList.Marshal(b, m, deterministic) +} +func (m *PartitionList) XXX_Merge(src proto.Message) { + xxx_messageInfo_PartitionList.Merge(m, src) +} +func (m *PartitionList) XXX_Size() int { + return xxx_messageInfo_PartitionList.Size(m) +} +func (m *PartitionList) XXX_DiscardUnknown() { + xxx_messageInfo_PartitionList.DiscardUnknown(m) +} + +var xxx_messageInfo_PartitionList proto.InternalMessageInfo func (m *PartitionList) GetStatus() *Status { if m != nil { @@ -551,17 +737,40 @@ func (m *PartitionList) GetPartitionTagArray() []string { return nil } -// * +//* // @brief Vector row record type VectorRowRecord struct { - FloatData []float32 `protobuf:"fixed32,1,rep,packed,name=float_data,json=floatData" json:"float_data,omitempty"` - BinaryData []byte `protobuf:"bytes,2,opt,name=binary_data,json=binaryData,proto3" json:"binary_data,omitempty"` + FloatData []float32 `protobuf:"fixed32,1,rep,packed,name=float_data,json=floatData,proto3" json:"float_data,omitempty"` + BinaryData []byte `protobuf:"bytes,2,opt,name=binary_data,json=binaryData,proto3" json:"binary_data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *VectorRowRecord) Reset() { *m = VectorRowRecord{} } -func (m *VectorRowRecord) String() string { return proto.CompactTextString(m) } -func (*VectorRowRecord) ProtoMessage() {} -func (*VectorRowRecord) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } +func (m *VectorRowRecord) Reset() { *m = VectorRowRecord{} } +func (m *VectorRowRecord) String() string { return proto.CompactTextString(m) } +func (*VectorRowRecord) ProtoMessage() {} +func (*VectorRowRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{9} +} + +func (m *VectorRowRecord) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VectorRowRecord.Unmarshal(m, b) +} +func (m *VectorRowRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VectorRowRecord.Marshal(b, m, deterministic) +} +func (m *VectorRowRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_VectorRowRecord.Merge(m, src) +} +func (m *VectorRowRecord) XXX_Size() int { + return xxx_messageInfo_VectorRowRecord.Size(m) +} +func (m *VectorRowRecord) XXX_DiscardUnknown() { + xxx_messageInfo_VectorRowRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_VectorRowRecord proto.InternalMessageInfo func (m *VectorRowRecord) GetFloatData() []float32 { if m != nil { @@ -578,14 +787,37 @@ func (m *VectorRowRecord) GetBinaryData() []byte { } type EntityIds struct { - Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` - EntityIdArray []int64 `protobuf:"varint,2,rep,packed,name=entity_id_array,json=entityIdArray" json:"entity_id_array,omitempty"` + Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + EntityIdArray []int64 `protobuf:"varint,2,rep,packed,name=entity_id_array,json=entityIdArray,proto3" json:"entity_id_array,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *EntityIds) Reset() { *m = EntityIds{} } -func (m *EntityIds) String() string { return proto.CompactTextString(m) } -func (*EntityIds) ProtoMessage() {} -func (*EntityIds) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } +func (m *EntityIds) Reset() { *m = EntityIds{} } +func (m *EntityIds) String() string { return proto.CompactTextString(m) } +func (*EntityIds) ProtoMessage() {} +func (*EntityIds) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{10} +} + +func (m *EntityIds) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EntityIds.Unmarshal(m, b) +} +func (m *EntityIds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EntityIds.Marshal(b, m, deterministic) +} +func (m *EntityIds) XXX_Merge(src proto.Message) { + xxx_messageInfo_EntityIds.Merge(m, src) +} +func (m *EntityIds) XXX_Size() int { + return xxx_messageInfo_EntityIds.Size(m) +} +func (m *EntityIds) XXX_DiscardUnknown() { + xxx_messageInfo_EntityIds.DiscardUnknown(m) +} + +var xxx_messageInfo_EntityIds proto.InternalMessageInfo func (m *EntityIds) GetStatus() *Status { if m != nil { @@ -602,13 +834,36 @@ func (m *EntityIds) GetEntityIdArray() []int64 { } type VectorRecord struct { - Records []*VectorRowRecord `protobuf:"bytes,1,rep,name=records" json:"records,omitempty"` + Records []*VectorRowRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *VectorRecord) Reset() { *m = VectorRecord{} } -func (m *VectorRecord) String() string { return proto.CompactTextString(m) } -func (*VectorRecord) ProtoMessage() {} -func (*VectorRecord) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } +func (m *VectorRecord) Reset() { *m = VectorRecord{} } +func (m *VectorRecord) String() string { return proto.CompactTextString(m) } +func (*VectorRecord) ProtoMessage() {} +func (*VectorRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{11} +} + +func (m *VectorRecord) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VectorRecord.Unmarshal(m, b) +} +func (m *VectorRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VectorRecord.Marshal(b, m, deterministic) +} +func (m *VectorRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_VectorRecord.Merge(m, src) +} +func (m *VectorRecord) XXX_Size() int { + return xxx_messageInfo_VectorRecord.Size(m) +} +func (m *VectorRecord) XXX_DiscardUnknown() { + xxx_messageInfo_VectorRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_VectorRecord proto.InternalMessageInfo func (m *VectorRecord) GetRecords() []*VectorRowRecord { if m != nil { @@ -618,14 +873,37 @@ func (m *VectorRecord) GetRecords() []*VectorRowRecord { } type VectorParam struct { - Json string `protobuf:"bytes,1,opt,name=json" json:"json,omitempty"` - RowRecord *VectorRecord `protobuf:"bytes,2,opt,name=row_record,json=rowRecord" json:"row_record,omitempty"` + Json string `protobuf:"bytes,1,opt,name=json,proto3" json:"json,omitempty"` + RowRecord *VectorRecord `protobuf:"bytes,2,opt,name=row_record,json=rowRecord,proto3" json:"row_record,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *VectorParam) Reset() { *m = VectorParam{} } -func (m *VectorParam) String() string { return proto.CompactTextString(m) } -func (*VectorParam) ProtoMessage() {} -func (*VectorParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } +func (m *VectorParam) Reset() { *m = VectorParam{} } +func (m *VectorParam) String() string { return proto.CompactTextString(m) } +func (*VectorParam) ProtoMessage() {} +func (*VectorParam) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{12} +} + +func (m *VectorParam) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VectorParam.Unmarshal(m, b) +} +func (m *VectorParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VectorParam.Marshal(b, m, deterministic) +} +func (m *VectorParam) XXX_Merge(src proto.Message) { + xxx_messageInfo_VectorParam.Merge(m, src) +} +func (m *VectorParam) XXX_Size() int { + return xxx_messageInfo_VectorParam.Size(m) +} +func (m *VectorParam) XXX_DiscardUnknown() { + xxx_messageInfo_VectorParam.DiscardUnknown(m) +} + +var xxx_messageInfo_VectorParam proto.InternalMessageInfo func (m *VectorParam) GetJson() string { if m != nil { @@ -641,18 +919,41 @@ func (m *VectorParam) GetRowRecord() *VectorRecord { return nil } -// * +//* // @brief schema type FieldMeta struct { - FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName" json:"field_name,omitempty"` - Type DataType `protobuf:"varint,2,opt,name=type,enum=suvlim.grpc.DataType" json:"type,omitempty"` - Dim int64 `protobuf:"varint,3,opt,name=dim" json:"dim,omitempty"` + FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` + Type DataType `protobuf:"varint,2,opt,name=type,proto3,enum=suvlim.grpc.DataType" json:"type,omitempty"` + Dim int64 `protobuf:"varint,3,opt,name=dim,proto3" json:"dim,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *FieldMeta) Reset() { *m = FieldMeta{} } -func (m *FieldMeta) String() string { return proto.CompactTextString(m) } -func (*FieldMeta) ProtoMessage() {} -func (*FieldMeta) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } +func (m *FieldMeta) Reset() { *m = FieldMeta{} } +func (m *FieldMeta) String() string { return proto.CompactTextString(m) } +func (*FieldMeta) ProtoMessage() {} +func (*FieldMeta) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{13} +} + +func (m *FieldMeta) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FieldMeta.Unmarshal(m, b) +} +func (m *FieldMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FieldMeta.Marshal(b, m, deterministic) +} +func (m *FieldMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_FieldMeta.Merge(m, src) +} +func (m *FieldMeta) XXX_Size() int { + return xxx_messageInfo_FieldMeta.Size(m) +} +func (m *FieldMeta) XXX_DiscardUnknown() { + xxx_messageInfo_FieldMeta.DiscardUnknown(m) +} + +var xxx_messageInfo_FieldMeta proto.InternalMessageInfo func (m *FieldMeta) GetFieldName() string { if m != nil { @@ -676,13 +977,36 @@ func (m *FieldMeta) GetDim() int64 { } type Schema struct { - FieldMetas []*FieldMeta `protobuf:"bytes,1,rep,name=field_metas,json=fieldMetas" json:"field_metas,omitempty"` + FieldMetas []*FieldMeta `protobuf:"bytes,1,rep,name=field_metas,json=fieldMetas,proto3" json:"field_metas,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Schema) Reset() { *m = Schema{} } -func (m *Schema) String() string { return proto.CompactTextString(m) } -func (*Schema) ProtoMessage() {} -func (*Schema) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } +func (m *Schema) Reset() { *m = Schema{} } +func (m *Schema) String() string { return proto.CompactTextString(m) } +func (*Schema) ProtoMessage() {} +func (*Schema) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{14} +} + +func (m *Schema) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Schema.Unmarshal(m, b) +} +func (m *Schema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Schema.Marshal(b, m, deterministic) +} +func (m *Schema) XXX_Merge(src proto.Message) { + xxx_messageInfo_Schema.Merge(m, src) +} +func (m *Schema) XXX_Size() int { + return xxx_messageInfo_Schema.Size(m) +} +func (m *Schema) XXX_DiscardUnknown() { + xxx_messageInfo_Schema.DiscardUnknown(m) +} + +var xxx_messageInfo_Schema proto.InternalMessageInfo func (m *Schema) GetFieldMetas() []*FieldMeta { if m != nil { @@ -692,13 +1016,36 @@ func (m *Schema) GetFieldMetas() []*FieldMeta { } type RowData struct { - Blob []byte `protobuf:"bytes,1,opt,name=blob,proto3" json:"blob,omitempty"` + Blob []byte `protobuf:"bytes,1,opt,name=blob,proto3" json:"blob,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *RowData) Reset() { *m = RowData{} } -func (m *RowData) String() string { return proto.CompactTextString(m) } -func (*RowData) ProtoMessage() {} -func (*RowData) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } +func (m *RowData) Reset() { *m = RowData{} } +func (m *RowData) String() string { return proto.CompactTextString(m) } +func (*RowData) ProtoMessage() {} +func (*RowData) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{15} +} + +func (m *RowData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RowData.Unmarshal(m, b) +} +func (m *RowData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RowData.Marshal(b, m, deterministic) +} +func (m *RowData) XXX_Merge(src proto.Message) { + xxx_messageInfo_RowData.Merge(m, src) +} +func (m *RowData) XXX_Size() int { + return xxx_messageInfo_RowData.Size(m) +} +func (m *RowData) XXX_DiscardUnknown() { + xxx_messageInfo_RowData.DiscardUnknown(m) +} + +var xxx_messageInfo_RowData proto.InternalMessageInfo func (m *RowData) GetBlob() []byte { if m != nil { @@ -707,20 +1054,43 @@ func (m *RowData) GetBlob() []byte { return nil } -// ////////////////////suvlim-proxy/////////////////////////////////// +//////////////////////suvlim-proxy/////////////////////////////////// type InsertParam struct { - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` - Schema *Schema `protobuf:"bytes,2,opt,name=schema" json:"schema,omitempty"` - RowsData []*RowData `protobuf:"bytes,3,rep,name=rows_data,json=rowsData" json:"rows_data,omitempty"` - EntityIdArray []int64 `protobuf:"varint,4,rep,packed,name=entity_id_array,json=entityIdArray" json:"entity_id_array,omitempty"` - PartitionTag string `protobuf:"bytes,5,opt,name=partition_tag,json=partitionTag" json:"partition_tag,omitempty"` - ExtraParams []*KeyValuePair `protobuf:"bytes,6,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` + Schema *Schema `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"` + RowsData []*RowData `protobuf:"bytes,3,rep,name=rows_data,json=rowsData,proto3" json:"rows_data,omitempty"` + EntityIdArray []int64 `protobuf:"varint,4,rep,packed,name=entity_id_array,json=entityIdArray,proto3" json:"entity_id_array,omitempty"` + PartitionTag string `protobuf:"bytes,5,opt,name=partition_tag,json=partitionTag,proto3" json:"partition_tag,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,6,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 *InsertParam) Reset() { *m = InsertParam{} } -func (m *InsertParam) String() string { return proto.CompactTextString(m) } -func (*InsertParam) ProtoMessage() {} -func (*InsertParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} } +func (m *InsertParam) Reset() { *m = InsertParam{} } +func (m *InsertParam) String() string { return proto.CompactTextString(m) } +func (*InsertParam) ProtoMessage() {} +func (*InsertParam) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{16} +} + +func (m *InsertParam) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InsertParam.Unmarshal(m, b) +} +func (m *InsertParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InsertParam.Marshal(b, m, deterministic) +} +func (m *InsertParam) XXX_Merge(src proto.Message) { + xxx_messageInfo_InsertParam.Merge(m, src) +} +func (m *InsertParam) XXX_Size() int { + return xxx_messageInfo_InsertParam.Size(m) +} +func (m *InsertParam) XXX_DiscardUnknown() { + xxx_messageInfo_InsertParam.DiscardUnknown(m) +} + +var xxx_messageInfo_InsertParam proto.InternalMessageInfo func (m *InsertParam) GetCollectionName() string { if m != nil { @@ -765,17 +1135,40 @@ func (m *InsertParam) GetExtraParams() []*KeyValuePair { } type SearchParam struct { - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` - VectorParam []*VectorParam `protobuf:"bytes,2,rep,name=vector_param,json=vectorParam" json:"vector_param,omitempty"` - Dsl string `protobuf:"bytes,3,opt,name=dsl" json:"dsl,omitempty"` - PartitionTag []string `protobuf:"bytes,4,rep,name=partition_tag,json=partitionTag" json:"partition_tag,omitempty"` - ExtraParams []*KeyValuePair `protobuf:"bytes,5,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` + VectorParam []*VectorParam `protobuf:"bytes,2,rep,name=vector_param,json=vectorParam,proto3" json:"vector_param,omitempty"` + Dsl string `protobuf:"bytes,3,opt,name=dsl,proto3" json:"dsl,omitempty"` + PartitionTag []string `protobuf:"bytes,4,rep,name=partition_tag,json=partitionTag,proto3" json:"partition_tag,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,5,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 *SearchParam) Reset() { *m = SearchParam{} } -func (m *SearchParam) String() string { return proto.CompactTextString(m) } -func (*SearchParam) ProtoMessage() {} -func (*SearchParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} } +func (m *SearchParam) Reset() { *m = SearchParam{} } +func (m *SearchParam) String() string { return proto.CompactTextString(m) } +func (*SearchParam) ProtoMessage() {} +func (*SearchParam) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{17} +} + +func (m *SearchParam) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SearchParam.Unmarshal(m, b) +} +func (m *SearchParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SearchParam.Marshal(b, m, deterministic) +} +func (m *SearchParam) XXX_Merge(src proto.Message) { + xxx_messageInfo_SearchParam.Merge(m, src) +} +func (m *SearchParam) XXX_Size() int { + return xxx_messageInfo_SearchParam.Size(m) +} +func (m *SearchParam) XXX_DiscardUnknown() { + xxx_messageInfo_SearchParam.DiscardUnknown(m) +} + +var xxx_messageInfo_SearchParam proto.InternalMessageInfo func (m *SearchParam) GetCollectionName() string { if m != nil { @@ -813,14 +1206,37 @@ func (m *SearchParam) GetExtraParams() []*KeyValuePair { } type SearchInSegmentParam struct { - FileIdArray []string `protobuf:"bytes,1,rep,name=file_id_array,json=fileIdArray" json:"file_id_array,omitempty"` - SearchParam *SearchParam `protobuf:"bytes,2,opt,name=search_param,json=searchParam" json:"search_param,omitempty"` + FileIdArray []string `protobuf:"bytes,1,rep,name=file_id_array,json=fileIdArray,proto3" json:"file_id_array,omitempty"` + SearchParam *SearchParam `protobuf:"bytes,2,opt,name=search_param,json=searchParam,proto3" json:"search_param,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SearchInSegmentParam) Reset() { *m = SearchInSegmentParam{} } -func (m *SearchInSegmentParam) String() string { return proto.CompactTextString(m) } -func (*SearchInSegmentParam) ProtoMessage() {} -func (*SearchInSegmentParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} } +func (m *SearchInSegmentParam) Reset() { *m = SearchInSegmentParam{} } +func (m *SearchInSegmentParam) String() string { return proto.CompactTextString(m) } +func (*SearchInSegmentParam) ProtoMessage() {} +func (*SearchInSegmentParam) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{18} +} + +func (m *SearchInSegmentParam) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SearchInSegmentParam.Unmarshal(m, b) +} +func (m *SearchInSegmentParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SearchInSegmentParam.Marshal(b, m, deterministic) +} +func (m *SearchInSegmentParam) XXX_Merge(src proto.Message) { + xxx_messageInfo_SearchInSegmentParam.Merge(m, src) +} +func (m *SearchInSegmentParam) XXX_Size() int { + return xxx_messageInfo_SearchInSegmentParam.Size(m) +} +func (m *SearchInSegmentParam) XXX_DiscardUnknown() { + xxx_messageInfo_SearchInSegmentParam.DiscardUnknown(m) +} + +var xxx_messageInfo_SearchInSegmentParam proto.InternalMessageInfo func (m *SearchInSegmentParam) GetFileIdArray() []string { if m != nil { @@ -837,16 +1253,39 @@ func (m *SearchInSegmentParam) GetSearchParam() *SearchParam { } type Entities struct { - Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` - Ids []int64 `protobuf:"varint,2,rep,packed,name=ids" json:"ids,omitempty"` - ValidRow []bool `protobuf:"varint,3,rep,packed,name=valid_row,json=validRow" json:"valid_row,omitempty"` - RowsData []*RowData `protobuf:"bytes,4,rep,name=rows_data,json=rowsData" json:"rows_data,omitempty"` + Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + Ids []int64 `protobuf:"varint,2,rep,packed,name=ids,proto3" json:"ids,omitempty"` + ValidRow []bool `protobuf:"varint,3,rep,packed,name=valid_row,json=validRow,proto3" json:"valid_row,omitempty"` + RowsData []*RowData `protobuf:"bytes,4,rep,name=rows_data,json=rowsData,proto3" json:"rows_data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Entities) Reset() { *m = Entities{} } -func (m *Entities) String() string { return proto.CompactTextString(m) } -func (*Entities) ProtoMessage() {} -func (*Entities) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} } +func (m *Entities) Reset() { *m = Entities{} } +func (m *Entities) String() string { return proto.CompactTextString(m) } +func (*Entities) ProtoMessage() {} +func (*Entities) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{19} +} + +func (m *Entities) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Entities.Unmarshal(m, b) +} +func (m *Entities) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Entities.Marshal(b, m, deterministic) +} +func (m *Entities) XXX_Merge(src proto.Message) { + xxx_messageInfo_Entities.Merge(m, src) +} +func (m *Entities) XXX_Size() int { + return xxx_messageInfo_Entities.Size(m) +} +func (m *Entities) XXX_DiscardUnknown() { + xxx_messageInfo_Entities.DiscardUnknown(m) +} + +var xxx_messageInfo_Entities proto.InternalMessageInfo func (m *Entities) GetStatus() *Status { if m != nil { @@ -876,21 +1315,44 @@ func (m *Entities) GetRowsData() []*RowData { return nil } -// * +//* // @brief Query result type QueryResult struct { - Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` - Entities *Entities `protobuf:"bytes,2,opt,name=entities" json:"entities,omitempty"` - RowNum int64 `protobuf:"varint,3,opt,name=row_num,json=rowNum" json:"row_num,omitempty"` - Scores []float32 `protobuf:"fixed32,4,rep,packed,name=scores" json:"scores,omitempty"` - Distances []float32 `protobuf:"fixed32,5,rep,packed,name=distances" json:"distances,omitempty"` - ExtraParams []*KeyValuePair `protobuf:"bytes,6,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` + Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + Entities *Entities `protobuf:"bytes,2,opt,name=entities,proto3" json:"entities,omitempty"` + RowNum int64 `protobuf:"varint,3,opt,name=row_num,json=rowNum,proto3" json:"row_num,omitempty"` + Scores []float32 `protobuf:"fixed32,4,rep,packed,name=scores,proto3" json:"scores,omitempty"` + Distances []float32 `protobuf:"fixed32,5,rep,packed,name=distances,proto3" json:"distances,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,6,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 *QueryResult) Reset() { *m = QueryResult{} } -func (m *QueryResult) String() string { return proto.CompactTextString(m) } -func (*QueryResult) ProtoMessage() {} -func (*QueryResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} } +func (m *QueryResult) Reset() { *m = QueryResult{} } +func (m *QueryResult) String() string { return proto.CompactTextString(m) } +func (*QueryResult) ProtoMessage() {} +func (*QueryResult) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{20} +} + +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() *Status { if m != nil { @@ -934,17 +1396,40 @@ func (m *QueryResult) GetExtraParams() []*KeyValuePair { return nil } -// * +//* // @brief Server string Reply type StringReply struct { - Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` - StringReply string `protobuf:"bytes,2,opt,name=string_reply,json=stringReply" json:"string_reply,omitempty"` + Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + StringReply string `protobuf:"bytes,2,opt,name=string_reply,json=stringReply,proto3" json:"string_reply,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *StringReply) Reset() { *m = StringReply{} } -func (m *StringReply) String() string { return proto.CompactTextString(m) } -func (*StringReply) ProtoMessage() {} -func (*StringReply) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} } +func (m *StringReply) Reset() { *m = StringReply{} } +func (m *StringReply) String() string { return proto.CompactTextString(m) } +func (*StringReply) ProtoMessage() {} +func (*StringReply) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{21} +} + +func (m *StringReply) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StringReply.Unmarshal(m, b) +} +func (m *StringReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StringReply.Marshal(b, m, deterministic) +} +func (m *StringReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_StringReply.Merge(m, src) +} +func (m *StringReply) XXX_Size() int { + return xxx_messageInfo_StringReply.Size(m) +} +func (m *StringReply) XXX_DiscardUnknown() { + xxx_messageInfo_StringReply.DiscardUnknown(m) +} + +var xxx_messageInfo_StringReply proto.InternalMessageInfo func (m *StringReply) GetStatus() *Status { if m != nil { @@ -960,17 +1445,40 @@ func (m *StringReply) GetStringReply() string { return "" } -// * +//* // @brief Server bool Reply type BoolReply struct { - Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` - BoolReply bool `protobuf:"varint,2,opt,name=bool_reply,json=boolReply" json:"bool_reply,omitempty"` + Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + BoolReply bool `protobuf:"varint,2,opt,name=bool_reply,json=boolReply,proto3" json:"bool_reply,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *BoolReply) Reset() { *m = BoolReply{} } -func (m *BoolReply) String() string { return proto.CompactTextString(m) } -func (*BoolReply) ProtoMessage() {} -func (*BoolReply) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} } +func (m *BoolReply) Reset() { *m = BoolReply{} } +func (m *BoolReply) String() string { return proto.CompactTextString(m) } +func (*BoolReply) ProtoMessage() {} +func (*BoolReply) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{22} +} + +func (m *BoolReply) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BoolReply.Unmarshal(m, b) +} +func (m *BoolReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BoolReply.Marshal(b, m, deterministic) +} +func (m *BoolReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_BoolReply.Merge(m, src) +} +func (m *BoolReply) XXX_Size() int { + return xxx_messageInfo_BoolReply.Size(m) +} +func (m *BoolReply) XXX_DiscardUnknown() { + xxx_messageInfo_BoolReply.DiscardUnknown(m) +} + +var xxx_messageInfo_BoolReply proto.InternalMessageInfo func (m *BoolReply) GetStatus() *Status { if m != nil { @@ -986,17 +1494,40 @@ func (m *BoolReply) GetBoolReply() bool { return false } -// * +//* // @brief Return collection row count type CollectionRowCount struct { - Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` - CollectionRowCount int64 `protobuf:"varint,2,opt,name=collection_row_count,json=collectionRowCount" json:"collection_row_count,omitempty"` + Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + CollectionRowCount int64 `protobuf:"varint,2,opt,name=collection_row_count,json=collectionRowCount,proto3" json:"collection_row_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CollectionRowCount) Reset() { *m = CollectionRowCount{} } -func (m *CollectionRowCount) String() string { return proto.CompactTextString(m) } -func (*CollectionRowCount) ProtoMessage() {} -func (*CollectionRowCount) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{23} } +func (m *CollectionRowCount) Reset() { *m = CollectionRowCount{} } +func (m *CollectionRowCount) String() string { return proto.CompactTextString(m) } +func (*CollectionRowCount) ProtoMessage() {} +func (*CollectionRowCount) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{23} +} + +func (m *CollectionRowCount) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CollectionRowCount.Unmarshal(m, b) +} +func (m *CollectionRowCount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CollectionRowCount.Marshal(b, m, deterministic) +} +func (m *CollectionRowCount) XXX_Merge(src proto.Message) { + xxx_messageInfo_CollectionRowCount.Merge(m, src) +} +func (m *CollectionRowCount) XXX_Size() int { + return xxx_messageInfo_CollectionRowCount.Size(m) +} +func (m *CollectionRowCount) XXX_DiscardUnknown() { + xxx_messageInfo_CollectionRowCount.DiscardUnknown(m) +} + +var xxx_messageInfo_CollectionRowCount proto.InternalMessageInfo func (m *CollectionRowCount) GetStatus() *Status { if m != nil { @@ -1012,16 +1543,39 @@ func (m *CollectionRowCount) GetCollectionRowCount() int64 { return 0 } -// * +//* // @brief Server command parameters type Command struct { - Cmd string `protobuf:"bytes,1,opt,name=cmd" json:"cmd,omitempty"` + Cmd string `protobuf:"bytes,1,opt,name=cmd,proto3" json:"cmd,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Command) Reset() { *m = Command{} } -func (m *Command) String() string { return proto.CompactTextString(m) } -func (*Command) ProtoMessage() {} -func (*Command) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{24} } +func (m *Command) Reset() { *m = Command{} } +func (m *Command) String() string { return proto.CompactTextString(m) } +func (*Command) ProtoMessage() {} +func (*Command) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{24} +} + +func (m *Command) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Command.Unmarshal(m, b) +} +func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Command.Marshal(b, m, deterministic) +} +func (m *Command) XXX_Merge(src proto.Message) { + xxx_messageInfo_Command.Merge(m, src) +} +func (m *Command) XXX_Size() int { + return xxx_messageInfo_Command.Size(m) +} +func (m *Command) XXX_DiscardUnknown() { + xxx_messageInfo_Command.DiscardUnknown(m) +} + +var xxx_messageInfo_Command proto.InternalMessageInfo func (m *Command) GetCmd() string { if m != nil { @@ -1030,7 +1584,7 @@ func (m *Command) GetCmd() string { return "" } -// * +//* // @brief Index params // @collection_name: target collection // @field_name: target field @@ -1045,17 +1599,40 @@ func (m *Command) GetCmd() string { // for structured field: // extra_params["index_type"] = one of the values: SORTED type IndexParam struct { - Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` - CollectionName string `protobuf:"bytes,2,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` - FieldName string `protobuf:"bytes,3,opt,name=field_name,json=fieldName" json:"field_name,omitempty"` - IndexName string `protobuf:"bytes,4,opt,name=index_name,json=indexName" json:"index_name,omitempty"` - ExtraParams []*KeyValuePair `protobuf:"bytes,5,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` + Status *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"` + IndexName string `protobuf:"bytes,4,opt,name=index_name,json=indexName,proto3" json:"index_name,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,5,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 fileDescriptor0, []int{25} } +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_411e9188eb859c95, []int{25} +} + +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) GetStatus() *Status { if m != nil { @@ -1092,16 +1669,39 @@ func (m *IndexParam) GetExtraParams() []*KeyValuePair { return nil } -// * +//* // @brief Parameters for flush action type FlushParam struct { - CollectionNameArray []string `protobuf:"bytes,1,rep,name=collection_name_array,json=collectionNameArray" json:"collection_name_array,omitempty"` + CollectionNameArray []string `protobuf:"bytes,1,rep,name=collection_name_array,json=collectionNameArray,proto3" json:"collection_name_array,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *FlushParam) Reset() { *m = FlushParam{} } -func (m *FlushParam) String() string { return proto.CompactTextString(m) } -func (*FlushParam) ProtoMessage() {} -func (*FlushParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{26} } +func (m *FlushParam) Reset() { *m = FlushParam{} } +func (m *FlushParam) String() string { return proto.CompactTextString(m) } +func (*FlushParam) ProtoMessage() {} +func (*FlushParam) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{26} +} + +func (m *FlushParam) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FlushParam.Unmarshal(m, b) +} +func (m *FlushParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FlushParam.Marshal(b, m, deterministic) +} +func (m *FlushParam) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlushParam.Merge(m, src) +} +func (m *FlushParam) XXX_Size() int { + return xxx_messageInfo_FlushParam.Size(m) +} +func (m *FlushParam) XXX_DiscardUnknown() { + xxx_messageInfo_FlushParam.DiscardUnknown(m) +} + +var xxx_messageInfo_FlushParam proto.InternalMessageInfo func (m *FlushParam) GetCollectionNameArray() []string { if m != nil { @@ -1110,17 +1710,40 @@ func (m *FlushParam) GetCollectionNameArray() []string { return nil } -// * +//* // @brief Parameters for flush action type CompactParam struct { - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` - Threshold float64 `protobuf:"fixed64,2,opt,name=threshold" json:"threshold,omitempty"` + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` + Threshold float64 `protobuf:"fixed64,2,opt,name=threshold,proto3" json:"threshold,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CompactParam) Reset() { *m = CompactParam{} } -func (m *CompactParam) String() string { return proto.CompactTextString(m) } -func (*CompactParam) ProtoMessage() {} -func (*CompactParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{27} } +func (m *CompactParam) Reset() { *m = CompactParam{} } +func (m *CompactParam) String() string { return proto.CompactTextString(m) } +func (*CompactParam) ProtoMessage() {} +func (*CompactParam) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{27} +} + +func (m *CompactParam) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CompactParam.Unmarshal(m, b) +} +func (m *CompactParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CompactParam.Marshal(b, m, deterministic) +} +func (m *CompactParam) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactParam.Merge(m, src) +} +func (m *CompactParam) XXX_Size() int { + return xxx_messageInfo_CompactParam.Size(m) +} +func (m *CompactParam) XXX_DiscardUnknown() { + xxx_messageInfo_CompactParam.DiscardUnknown(m) +} + +var xxx_messageInfo_CompactParam proto.InternalMessageInfo func (m *CompactParam) GetCollectionName() string { if m != nil { @@ -1136,17 +1759,40 @@ func (m *CompactParam) GetThreshold() float64 { return 0 } -// * +//* // @brief Parameters for deleting entities by id type DeleteByIDParam struct { - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` - IdArray []int64 `protobuf:"varint,2,rep,packed,name=id_array,json=idArray" json:"id_array,omitempty"` + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` + IdArray []int64 `protobuf:"varint,2,rep,packed,name=id_array,json=idArray,proto3" json:"id_array,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DeleteByIDParam) Reset() { *m = DeleteByIDParam{} } -func (m *DeleteByIDParam) String() string { return proto.CompactTextString(m) } -func (*DeleteByIDParam) ProtoMessage() {} -func (*DeleteByIDParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{28} } +func (m *DeleteByIDParam) Reset() { *m = DeleteByIDParam{} } +func (m *DeleteByIDParam) String() string { return proto.CompactTextString(m) } +func (*DeleteByIDParam) ProtoMessage() {} +func (*DeleteByIDParam) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{28} +} + +func (m *DeleteByIDParam) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteByIDParam.Unmarshal(m, b) +} +func (m *DeleteByIDParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteByIDParam.Marshal(b, m, deterministic) +} +func (m *DeleteByIDParam) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteByIDParam.Merge(m, src) +} +func (m *DeleteByIDParam) XXX_Size() int { + return xxx_messageInfo_DeleteByIDParam.Size(m) +} +func (m *DeleteByIDParam) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteByIDParam.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteByIDParam proto.InternalMessageInfo func (m *DeleteByIDParam) GetCollectionName() string { if m != nil { @@ -1162,7 +1808,7 @@ func (m *DeleteByIDParam) GetIdArray() []int64 { return nil } -// * +//* // @brief Return collection stats // @json_info: collection stats in json format, typically, the format is like: // { @@ -1194,14 +1840,37 @@ func (m *DeleteByIDParam) GetIdArray() []int64 { // ] // } type CollectionInfo struct { - Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` - JsonInfo string `protobuf:"bytes,2,opt,name=json_info,json=jsonInfo" json:"json_info,omitempty"` + Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + JsonInfo string `protobuf:"bytes,2,opt,name=json_info,json=jsonInfo,proto3" json:"json_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CollectionInfo) Reset() { *m = CollectionInfo{} } -func (m *CollectionInfo) String() string { return proto.CompactTextString(m) } -func (*CollectionInfo) ProtoMessage() {} -func (*CollectionInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{29} } +func (m *CollectionInfo) Reset() { *m = CollectionInfo{} } +func (m *CollectionInfo) String() string { return proto.CompactTextString(m) } +func (*CollectionInfo) ProtoMessage() {} +func (*CollectionInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{29} +} + +func (m *CollectionInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CollectionInfo.Unmarshal(m, b) +} +func (m *CollectionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CollectionInfo.Marshal(b, m, deterministic) +} +func (m *CollectionInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_CollectionInfo.Merge(m, src) +} +func (m *CollectionInfo) XXX_Size() int { + return xxx_messageInfo_CollectionInfo.Size(m) +} +func (m *CollectionInfo) XXX_DiscardUnknown() { + xxx_messageInfo_CollectionInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_CollectionInfo proto.InternalMessageInfo func (m *CollectionInfo) GetStatus() *Status { if m != nil { @@ -1217,17 +1886,40 @@ func (m *CollectionInfo) GetJsonInfo() string { return "" } -// * +//* // @brief Parameters for returning entities id of a segment type GetEntityIDsParam struct { - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` - SegmentId int64 `protobuf:"varint,2,opt,name=segment_id,json=segmentId" json:"segment_id,omitempty"` + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` + SegmentId int64 `protobuf:"varint,2,opt,name=segment_id,json=segmentId,proto3" json:"segment_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *GetEntityIDsParam) Reset() { *m = GetEntityIDsParam{} } -func (m *GetEntityIDsParam) String() string { return proto.CompactTextString(m) } -func (*GetEntityIDsParam) ProtoMessage() {} -func (*GetEntityIDsParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{30} } +func (m *GetEntityIDsParam) Reset() { *m = GetEntityIDsParam{} } +func (m *GetEntityIDsParam) String() string { return proto.CompactTextString(m) } +func (*GetEntityIDsParam) ProtoMessage() {} +func (*GetEntityIDsParam) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{30} +} + +func (m *GetEntityIDsParam) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetEntityIDsParam.Unmarshal(m, b) +} +func (m *GetEntityIDsParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetEntityIDsParam.Marshal(b, m, deterministic) +} +func (m *GetEntityIDsParam) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetEntityIDsParam.Merge(m, src) +} +func (m *GetEntityIDsParam) XXX_Size() int { + return xxx_messageInfo_GetEntityIDsParam.Size(m) +} +func (m *GetEntityIDsParam) XXX_DiscardUnknown() { + xxx_messageInfo_GetEntityIDsParam.DiscardUnknown(m) +} + +var xxx_messageInfo_GetEntityIDsParam proto.InternalMessageInfo func (m *GetEntityIDsParam) GetCollectionName() string { if m != nil { @@ -1243,18 +1935,41 @@ func (m *GetEntityIDsParam) GetSegmentId() int64 { return 0 } -// * +//* // @brief Entities identity type EntityIdentity struct { - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` - IdArray []int64 `protobuf:"varint,2,rep,packed,name=id_array,json=idArray" json:"id_array,omitempty"` - FieldNames []string `protobuf:"bytes,3,rep,name=field_names,json=fieldNames" json:"field_names,omitempty"` + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` + IdArray []int64 `protobuf:"varint,2,rep,packed,name=id_array,json=idArray,proto3" json:"id_array,omitempty"` + FieldNames []string `protobuf:"bytes,3,rep,name=field_names,json=fieldNames,proto3" json:"field_names,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *EntityIdentity) Reset() { *m = EntityIdentity{} } -func (m *EntityIdentity) String() string { return proto.CompactTextString(m) } -func (*EntityIdentity) ProtoMessage() {} -func (*EntityIdentity) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{31} } +func (m *EntityIdentity) Reset() { *m = EntityIdentity{} } +func (m *EntityIdentity) String() string { return proto.CompactTextString(m) } +func (*EntityIdentity) ProtoMessage() {} +func (*EntityIdentity) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{31} +} + +func (m *EntityIdentity) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EntityIdentity.Unmarshal(m, b) +} +func (m *EntityIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EntityIdentity.Marshal(b, m, deterministic) +} +func (m *EntityIdentity) XXX_Merge(src proto.Message) { + xxx_messageInfo_EntityIdentity.Merge(m, src) +} +func (m *EntityIdentity) XXX_Size() int { + return xxx_messageInfo_EntityIdentity.Size(m) +} +func (m *EntityIdentity) XXX_DiscardUnknown() { + xxx_messageInfo_EntityIdentity.DiscardUnknown(m) +} + +var xxx_messageInfo_EntityIdentity proto.InternalMessageInfo func (m *EntityIdentity) GetCollectionName() string { if m != nil { @@ -1277,16 +1992,39 @@ func (m *EntityIdentity) GetFieldNames() []string { return nil } -// * +//* // @brief Vector field parameters type VectorFieldParam struct { - Dimension int64 `protobuf:"varint,1,opt,name=dimension" json:"dimension,omitempty"` + Dimension int64 `protobuf:"varint,1,opt,name=dimension,proto3" json:"dimension,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *VectorFieldParam) Reset() { *m = VectorFieldParam{} } -func (m *VectorFieldParam) String() string { return proto.CompactTextString(m) } -func (*VectorFieldParam) ProtoMessage() {} -func (*VectorFieldParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{32} } +func (m *VectorFieldParam) Reset() { *m = VectorFieldParam{} } +func (m *VectorFieldParam) String() string { return proto.CompactTextString(m) } +func (*VectorFieldParam) ProtoMessage() {} +func (*VectorFieldParam) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{32} +} + +func (m *VectorFieldParam) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VectorFieldParam.Unmarshal(m, b) +} +func (m *VectorFieldParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VectorFieldParam.Marshal(b, m, deterministic) +} +func (m *VectorFieldParam) XXX_Merge(src proto.Message) { + xxx_messageInfo_VectorFieldParam.Merge(m, src) +} +func (m *VectorFieldParam) XXX_Size() int { + return xxx_messageInfo_VectorFieldParam.Size(m) +} +func (m *VectorFieldParam) XXX_DiscardUnknown() { + xxx_messageInfo_VectorFieldParam.DiscardUnknown(m) +} + +var xxx_messageInfo_VectorFieldParam proto.InternalMessageInfo func (m *VectorFieldParam) GetDimension() int64 { if m != nil { @@ -1295,30 +2033,57 @@ func (m *VectorFieldParam) GetDimension() int64 { return 0 } -// * +//* // @brief Field type type FieldType struct { // Types that are valid to be assigned to Value: // *FieldType_DataType // *FieldType_VectorParam - Value isFieldType_Value `protobuf_oneof:"value"` + Value isFieldType_Value `protobuf_oneof:"value"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *FieldType) Reset() { *m = FieldType{} } -func (m *FieldType) String() string { return proto.CompactTextString(m) } -func (*FieldType) ProtoMessage() {} -func (*FieldType) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{33} } +func (m *FieldType) Reset() { *m = FieldType{} } +func (m *FieldType) String() string { return proto.CompactTextString(m) } +func (*FieldType) ProtoMessage() {} +func (*FieldType) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{33} +} -type isFieldType_Value interface{ isFieldType_Value() } +func (m *FieldType) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FieldType.Unmarshal(m, b) +} +func (m *FieldType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FieldType.Marshal(b, m, deterministic) +} +func (m *FieldType) XXX_Merge(src proto.Message) { + xxx_messageInfo_FieldType.Merge(m, src) +} +func (m *FieldType) XXX_Size() int { + return xxx_messageInfo_FieldType.Size(m) +} +func (m *FieldType) XXX_DiscardUnknown() { + xxx_messageInfo_FieldType.DiscardUnknown(m) +} + +var xxx_messageInfo_FieldType proto.InternalMessageInfo + +type isFieldType_Value interface { + isFieldType_Value() +} type FieldType_DataType struct { - DataType DataType `protobuf:"varint,1,opt,name=data_type,json=dataType,enum=suvlim.grpc.DataType,oneof"` -} -type FieldType_VectorParam struct { - VectorParam *VectorFieldParam `protobuf:"bytes,2,opt,name=vector_param,json=vectorParam,oneof"` + DataType DataType `protobuf:"varint,1,opt,name=data_type,json=dataType,proto3,enum=suvlim.grpc.DataType,oneof"` } -func (*FieldType_DataType) isFieldType_Value() {} +type FieldType_VectorParam struct { + VectorParam *VectorFieldParam `protobuf:"bytes,2,opt,name=vector_param,json=vectorParam,proto3,oneof"` +} + +func (*FieldType_DataType) isFieldType_Value() {} + func (*FieldType_VectorParam) isFieldType_Value() {} func (m *FieldType) GetValue() isFieldType_Value { @@ -1342,89 +2107,51 @@ func (m *FieldType) GetVectorParam() *VectorFieldParam { return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*FieldType) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _FieldType_OneofMarshaler, _FieldType_OneofUnmarshaler, _FieldType_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*FieldType) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*FieldType_DataType)(nil), (*FieldType_VectorParam)(nil), } } -func _FieldType_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*FieldType) - // value - switch x := m.Value.(type) { - case *FieldType_DataType: - b.EncodeVarint(1<<3 | proto.WireVarint) - b.EncodeVarint(uint64(x.DataType)) - case *FieldType_VectorParam: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.VectorParam); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("FieldType.Value has unexpected type %T", x) - } - return nil -} - -func _FieldType_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*FieldType) - switch tag { - case 1: // value.data_type - if wire != proto.WireVarint { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeVarint() - m.Value = &FieldType_DataType{DataType(x)} - return true, err - case 2: // value.vector_param - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(VectorFieldParam) - err := b.DecodeMessage(msg) - m.Value = &FieldType_VectorParam{msg} - return true, err - default: - return false, nil - } -} - -func _FieldType_OneofSizer(msg proto.Message) (n int) { - m := msg.(*FieldType) - // value - switch x := m.Value.(type) { - case *FieldType_DataType: - n += proto.SizeVarint(1<<3 | proto.WireVarint) - n += proto.SizeVarint(uint64(x.DataType)) - case *FieldType_VectorParam: - s := proto.Size(x.VectorParam) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - -// * +//* // @brief Field parameters type FieldParam struct { - Id uint64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` - Type DataType `protobuf:"varint,3,opt,name=type,enum=suvlim.grpc.DataType" json:"type,omitempty"` - IndexParams []*KeyValuePair `protobuf:"bytes,4,rep,name=index_params,json=indexParams" json:"index_params,omitempty"` - ExtraParams []*KeyValuePair `protobuf:"bytes,5,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Type DataType `protobuf:"varint,3,opt,name=type,proto3,enum=suvlim.grpc.DataType" json:"type,omitempty"` + IndexParams []*KeyValuePair `protobuf:"bytes,4,rep,name=index_params,json=indexParams,proto3" json:"index_params,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,5,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 *FieldParam) Reset() { *m = FieldParam{} } -func (m *FieldParam) String() string { return proto.CompactTextString(m) } -func (*FieldParam) ProtoMessage() {} -func (*FieldParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{34} } +func (m *FieldParam) Reset() { *m = FieldParam{} } +func (m *FieldParam) String() string { return proto.CompactTextString(m) } +func (*FieldParam) ProtoMessage() {} +func (*FieldParam) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{34} +} + +func (m *FieldParam) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FieldParam.Unmarshal(m, b) +} +func (m *FieldParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FieldParam.Marshal(b, m, deterministic) +} +func (m *FieldParam) XXX_Merge(src proto.Message) { + xxx_messageInfo_FieldParam.Merge(m, src) +} +func (m *FieldParam) XXX_Size() int { + return xxx_messageInfo_FieldParam.Size(m) +} +func (m *FieldParam) XXX_DiscardUnknown() { + xxx_messageInfo_FieldParam.DiscardUnknown(m) +} + +var xxx_messageInfo_FieldParam proto.InternalMessageInfo func (m *FieldParam) GetId() uint64 { if m != nil { @@ -1461,16 +2188,39 @@ func (m *FieldParam) GetExtraParams() []*KeyValuePair { return nil } -// * +//* // @brief Vector field record type VectorFieldRecord struct { - Value []*VectorRowRecord `protobuf:"bytes,1,rep,name=value" json:"value,omitempty"` + Value []*VectorRowRecord `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *VectorFieldRecord) Reset() { *m = VectorFieldRecord{} } -func (m *VectorFieldRecord) String() string { return proto.CompactTextString(m) } -func (*VectorFieldRecord) ProtoMessage() {} -func (*VectorFieldRecord) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{35} } +func (m *VectorFieldRecord) Reset() { *m = VectorFieldRecord{} } +func (m *VectorFieldRecord) String() string { return proto.CompactTextString(m) } +func (*VectorFieldRecord) ProtoMessage() {} +func (*VectorFieldRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{35} +} + +func (m *VectorFieldRecord) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VectorFieldRecord.Unmarshal(m, b) +} +func (m *VectorFieldRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VectorFieldRecord.Marshal(b, m, deterministic) +} +func (m *VectorFieldRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_VectorFieldRecord.Merge(m, src) +} +func (m *VectorFieldRecord) XXX_Size() int { + return xxx_messageInfo_VectorFieldRecord.Size(m) +} +func (m *VectorFieldRecord) XXX_DiscardUnknown() { + xxx_messageInfo_VectorFieldRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_VectorFieldRecord proto.InternalMessageInfo func (m *VectorFieldRecord) GetValue() []*VectorRowRecord { if m != nil { @@ -1480,18 +2230,41 @@ func (m *VectorFieldRecord) GetValue() []*VectorRowRecord { } type TermQuery struct { - FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName" json:"field_name,omitempty"` - IntValue []int64 `protobuf:"varint,2,rep,packed,name=int_value,json=intValue" json:"int_value,omitempty"` - DoubleValue []float64 `protobuf:"fixed64,3,rep,packed,name=double_value,json=doubleValue" json:"double_value,omitempty"` - ValueNum int64 `protobuf:"varint,4,opt,name=value_num,json=valueNum" json:"value_num,omitempty"` - Boost float32 `protobuf:"fixed32,5,opt,name=boost" json:"boost,omitempty"` - ExtraParams []*KeyValuePair `protobuf:"bytes,6,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` + FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` + IntValue []int64 `protobuf:"varint,2,rep,packed,name=int_value,json=intValue,proto3" json:"int_value,omitempty"` + DoubleValue []float64 `protobuf:"fixed64,3,rep,packed,name=double_value,json=doubleValue,proto3" json:"double_value,omitempty"` + ValueNum int64 `protobuf:"varint,4,opt,name=value_num,json=valueNum,proto3" json:"value_num,omitempty"` + Boost float32 `protobuf:"fixed32,5,opt,name=boost,proto3" json:"boost,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,6,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 *TermQuery) Reset() { *m = TermQuery{} } -func (m *TermQuery) String() string { return proto.CompactTextString(m) } -func (*TermQuery) ProtoMessage() {} -func (*TermQuery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{36} } +func (m *TermQuery) Reset() { *m = TermQuery{} } +func (m *TermQuery) String() string { return proto.CompactTextString(m) } +func (*TermQuery) ProtoMessage() {} +func (*TermQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{36} +} + +func (m *TermQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TermQuery.Unmarshal(m, b) +} +func (m *TermQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TermQuery.Marshal(b, m, deterministic) +} +func (m *TermQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_TermQuery.Merge(m, src) +} +func (m *TermQuery) XXX_Size() int { + return xxx_messageInfo_TermQuery.Size(m) +} +func (m *TermQuery) XXX_DiscardUnknown() { + xxx_messageInfo_TermQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_TermQuery proto.InternalMessageInfo func (m *TermQuery) GetFieldName() string { if m != nil { @@ -1536,14 +2309,37 @@ func (m *TermQuery) GetExtraParams() []*KeyValuePair { } type CompareExpr struct { - Operator CompareOperator `protobuf:"varint,1,opt,name=operator,enum=suvlim.grpc.CompareOperator" json:"operator,omitempty"` - Operand string `protobuf:"bytes,2,opt,name=operand" json:"operand,omitempty"` + Operator CompareOperator `protobuf:"varint,1,opt,name=operator,proto3,enum=suvlim.grpc.CompareOperator" json:"operator,omitempty"` + Operand string `protobuf:"bytes,2,opt,name=operand,proto3" json:"operand,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CompareExpr) Reset() { *m = CompareExpr{} } -func (m *CompareExpr) String() string { return proto.CompactTextString(m) } -func (*CompareExpr) ProtoMessage() {} -func (*CompareExpr) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{37} } +func (m *CompareExpr) Reset() { *m = CompareExpr{} } +func (m *CompareExpr) String() string { return proto.CompactTextString(m) } +func (*CompareExpr) ProtoMessage() {} +func (*CompareExpr) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{37} +} + +func (m *CompareExpr) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CompareExpr.Unmarshal(m, b) +} +func (m *CompareExpr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CompareExpr.Marshal(b, m, deterministic) +} +func (m *CompareExpr) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompareExpr.Merge(m, src) +} +func (m *CompareExpr) XXX_Size() int { + return xxx_messageInfo_CompareExpr.Size(m) +} +func (m *CompareExpr) XXX_DiscardUnknown() { + xxx_messageInfo_CompareExpr.DiscardUnknown(m) +} + +var xxx_messageInfo_CompareExpr proto.InternalMessageInfo func (m *CompareExpr) GetOperator() CompareOperator { if m != nil { @@ -1560,16 +2356,39 @@ func (m *CompareExpr) GetOperand() string { } type RangeQuery struct { - FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName" json:"field_name,omitempty"` - Operand []*CompareExpr `protobuf:"bytes,2,rep,name=operand" json:"operand,omitempty"` - Boost float32 `protobuf:"fixed32,3,opt,name=boost" json:"boost,omitempty"` - ExtraParams []*KeyValuePair `protobuf:"bytes,4,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` + FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` + Operand []*CompareExpr `protobuf:"bytes,2,rep,name=operand,proto3" json:"operand,omitempty"` + Boost float32 `protobuf:"fixed32,3,opt,name=boost,proto3" json:"boost,omitempty"` + ExtraParams []*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 *RangeQuery) Reset() { *m = RangeQuery{} } -func (m *RangeQuery) String() string { return proto.CompactTextString(m) } -func (*RangeQuery) ProtoMessage() {} -func (*RangeQuery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{38} } +func (m *RangeQuery) Reset() { *m = RangeQuery{} } +func (m *RangeQuery) String() string { return proto.CompactTextString(m) } +func (*RangeQuery) ProtoMessage() {} +func (*RangeQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{38} +} + +func (m *RangeQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RangeQuery.Unmarshal(m, b) +} +func (m *RangeQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RangeQuery.Marshal(b, m, deterministic) +} +func (m *RangeQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_RangeQuery.Merge(m, src) +} +func (m *RangeQuery) XXX_Size() int { + return xxx_messageInfo_RangeQuery.Size(m) +} +func (m *RangeQuery) XXX_DiscardUnknown() { + xxx_messageInfo_RangeQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_RangeQuery proto.InternalMessageInfo func (m *RangeQuery) GetFieldName() string { if m != nil { @@ -1600,17 +2419,40 @@ func (m *RangeQuery) GetExtraParams() []*KeyValuePair { } type VectorQuery struct { - FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName" json:"field_name,omitempty"` - QueryBoost float32 `protobuf:"fixed32,2,opt,name=query_boost,json=queryBoost" json:"query_boost,omitempty"` - Records []*VectorRowRecord `protobuf:"bytes,3,rep,name=records" json:"records,omitempty"` - Topk int64 `protobuf:"varint,4,opt,name=topk" json:"topk,omitempty"` - ExtraParams []*KeyValuePair `protobuf:"bytes,5,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` + FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` + QueryBoost float32 `protobuf:"fixed32,2,opt,name=query_boost,json=queryBoost,proto3" json:"query_boost,omitempty"` + Records []*VectorRowRecord `protobuf:"bytes,3,rep,name=records,proto3" json:"records,omitempty"` + Topk int64 `protobuf:"varint,4,opt,name=topk,proto3" json:"topk,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,5,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 *VectorQuery) Reset() { *m = VectorQuery{} } -func (m *VectorQuery) String() string { return proto.CompactTextString(m) } -func (*VectorQuery) ProtoMessage() {} -func (*VectorQuery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{39} } +func (m *VectorQuery) Reset() { *m = VectorQuery{} } +func (m *VectorQuery) String() string { return proto.CompactTextString(m) } +func (*VectorQuery) ProtoMessage() {} +func (*VectorQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{39} +} + +func (m *VectorQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VectorQuery.Unmarshal(m, b) +} +func (m *VectorQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VectorQuery.Marshal(b, m, deterministic) +} +func (m *VectorQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_VectorQuery.Merge(m, src) +} +func (m *VectorQuery) XXX_Size() int { + return xxx_messageInfo_VectorQuery.Size(m) +} +func (m *VectorQuery) XXX_DiscardUnknown() { + xxx_messageInfo_VectorQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_VectorQuery proto.InternalMessageInfo func (m *VectorQuery) GetFieldName() string { if m != nil { @@ -1648,14 +2490,37 @@ func (m *VectorQuery) GetExtraParams() []*KeyValuePair { } type BooleanQuery struct { - Occur Occur `protobuf:"varint,1,opt,name=occur,enum=suvlim.grpc.Occur" json:"occur,omitempty"` - GeneralQuery []*GeneralQuery `protobuf:"bytes,2,rep,name=general_query,json=generalQuery" json:"general_query,omitempty"` + Occur Occur `protobuf:"varint,1,opt,name=occur,proto3,enum=suvlim.grpc.Occur" json:"occur,omitempty"` + GeneralQuery []*GeneralQuery `protobuf:"bytes,2,rep,name=general_query,json=generalQuery,proto3" json:"general_query,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *BooleanQuery) Reset() { *m = BooleanQuery{} } -func (m *BooleanQuery) String() string { return proto.CompactTextString(m) } -func (*BooleanQuery) ProtoMessage() {} -func (*BooleanQuery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{40} } +func (m *BooleanQuery) Reset() { *m = BooleanQuery{} } +func (m *BooleanQuery) String() string { return proto.CompactTextString(m) } +func (*BooleanQuery) ProtoMessage() {} +func (*BooleanQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{40} +} + +func (m *BooleanQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BooleanQuery.Unmarshal(m, b) +} +func (m *BooleanQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BooleanQuery.Marshal(b, m, deterministic) +} +func (m *BooleanQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_BooleanQuery.Merge(m, src) +} +func (m *BooleanQuery) XXX_Size() int { + return xxx_messageInfo_BooleanQuery.Size(m) +} +func (m *BooleanQuery) XXX_DiscardUnknown() { + xxx_messageInfo_BooleanQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_BooleanQuery proto.InternalMessageInfo func (m *BooleanQuery) GetOccur() Occur { if m != nil { @@ -1677,33 +2542,64 @@ type GeneralQuery struct { // *GeneralQuery_TermQuery // *GeneralQuery_RangeQuery // *GeneralQuery_VectorQuery - Query isGeneralQuery_Query `protobuf_oneof:"query"` + Query isGeneralQuery_Query `protobuf_oneof:"query"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *GeneralQuery) Reset() { *m = GeneralQuery{} } -func (m *GeneralQuery) String() string { return proto.CompactTextString(m) } -func (*GeneralQuery) ProtoMessage() {} -func (*GeneralQuery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{41} } +func (m *GeneralQuery) Reset() { *m = GeneralQuery{} } +func (m *GeneralQuery) String() string { return proto.CompactTextString(m) } +func (*GeneralQuery) ProtoMessage() {} +func (*GeneralQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{41} +} -type isGeneralQuery_Query interface{ isGeneralQuery_Query() } +func (m *GeneralQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GeneralQuery.Unmarshal(m, b) +} +func (m *GeneralQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GeneralQuery.Marshal(b, m, deterministic) +} +func (m *GeneralQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_GeneralQuery.Merge(m, src) +} +func (m *GeneralQuery) XXX_Size() int { + return xxx_messageInfo_GeneralQuery.Size(m) +} +func (m *GeneralQuery) XXX_DiscardUnknown() { + xxx_messageInfo_GeneralQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_GeneralQuery proto.InternalMessageInfo + +type isGeneralQuery_Query interface { + isGeneralQuery_Query() +} type GeneralQuery_BooleanQuery struct { - BooleanQuery *BooleanQuery `protobuf:"bytes,1,opt,name=boolean_query,json=booleanQuery,oneof"` + BooleanQuery *BooleanQuery `protobuf:"bytes,1,opt,name=boolean_query,json=booleanQuery,proto3,oneof"` } + type GeneralQuery_TermQuery struct { - TermQuery *TermQuery `protobuf:"bytes,2,opt,name=term_query,json=termQuery,oneof"` + TermQuery *TermQuery `protobuf:"bytes,2,opt,name=term_query,json=termQuery,proto3,oneof"` } + type GeneralQuery_RangeQuery struct { - RangeQuery *RangeQuery `protobuf:"bytes,3,opt,name=range_query,json=rangeQuery,oneof"` + RangeQuery *RangeQuery `protobuf:"bytes,3,opt,name=range_query,json=rangeQuery,proto3,oneof"` } + type GeneralQuery_VectorQuery struct { - VectorQuery *VectorQuery `protobuf:"bytes,4,opt,name=vector_query,json=vectorQuery,oneof"` + VectorQuery *VectorQuery `protobuf:"bytes,4,opt,name=vector_query,json=vectorQuery,proto3,oneof"` } func (*GeneralQuery_BooleanQuery) isGeneralQuery_Query() {} -func (*GeneralQuery_TermQuery) isGeneralQuery_Query() {} -func (*GeneralQuery_RangeQuery) isGeneralQuery_Query() {} -func (*GeneralQuery_VectorQuery) isGeneralQuery_Query() {} + +func (*GeneralQuery_TermQuery) isGeneralQuery_Query() {} + +func (*GeneralQuery_RangeQuery) isGeneralQuery_Query() {} + +func (*GeneralQuery_VectorQuery) isGeneralQuery_Query() {} func (m *GeneralQuery) GetQuery() isGeneralQuery_Query { if m != nil { @@ -1740,9 +2636,9 @@ func (m *GeneralQuery) GetVectorQuery() *VectorQuery { return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*GeneralQuery) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _GeneralQuery_OneofMarshaler, _GeneralQuery_OneofUnmarshaler, _GeneralQuery_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*GeneralQuery) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*GeneralQuery_BooleanQuery)(nil), (*GeneralQuery_TermQuery)(nil), (*GeneralQuery_RangeQuery)(nil), @@ -1750,119 +2646,40 @@ func (*GeneralQuery) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) } } -func _GeneralQuery_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*GeneralQuery) - // query - switch x := m.Query.(type) { - case *GeneralQuery_BooleanQuery: - b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.BooleanQuery); err != nil { - return err - } - case *GeneralQuery_TermQuery: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.TermQuery); err != nil { - return err - } - case *GeneralQuery_RangeQuery: - b.EncodeVarint(3<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RangeQuery); err != nil { - return err - } - case *GeneralQuery_VectorQuery: - b.EncodeVarint(4<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.VectorQuery); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("GeneralQuery.Query has unexpected type %T", x) - } - return nil -} - -func _GeneralQuery_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*GeneralQuery) - switch tag { - case 1: // query.boolean_query - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(BooleanQuery) - err := b.DecodeMessage(msg) - m.Query = &GeneralQuery_BooleanQuery{msg} - return true, err - case 2: // query.term_query - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(TermQuery) - err := b.DecodeMessage(msg) - m.Query = &GeneralQuery_TermQuery{msg} - return true, err - case 3: // query.range_query - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(RangeQuery) - err := b.DecodeMessage(msg) - m.Query = &GeneralQuery_RangeQuery{msg} - return true, err - case 4: // query.vector_query - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(VectorQuery) - err := b.DecodeMessage(msg) - m.Query = &GeneralQuery_VectorQuery{msg} - return true, err - default: - return false, nil - } -} - -func _GeneralQuery_OneofSizer(msg proto.Message) (n int) { - m := msg.(*GeneralQuery) - // query - switch x := m.Query.(type) { - case *GeneralQuery_BooleanQuery: - s := proto.Size(x.BooleanQuery) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *GeneralQuery_TermQuery: - s := proto.Size(x.TermQuery) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *GeneralQuery_RangeQuery: - s := proto.Size(x.RangeQuery) - n += proto.SizeVarint(3<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *GeneralQuery_VectorQuery: - s := proto.Size(x.VectorQuery) - n += proto.SizeVarint(4<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - type SearchParamPB struct { - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` - PartitionTagArray []string `protobuf:"bytes,2,rep,name=partition_tag_array,json=partitionTagArray" json:"partition_tag_array,omitempty"` - GeneralQuery *GeneralQuery `protobuf:"bytes,3,opt,name=general_query,json=generalQuery" json:"general_query,omitempty"` - ExtraParams []*KeyValuePair `protobuf:"bytes,4,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` + PartitionTagArray []string `protobuf:"bytes,2,rep,name=partition_tag_array,json=partitionTagArray,proto3" json:"partition_tag_array,omitempty"` + GeneralQuery *GeneralQuery `protobuf:"bytes,3,opt,name=general_query,json=generalQuery,proto3" json:"general_query,omitempty"` + ExtraParams []*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 *SearchParamPB) Reset() { *m = SearchParamPB{} } -func (m *SearchParamPB) String() string { return proto.CompactTextString(m) } -func (*SearchParamPB) ProtoMessage() {} -func (*SearchParamPB) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{42} } +func (m *SearchParamPB) Reset() { *m = SearchParamPB{} } +func (m *SearchParamPB) String() string { return proto.CompactTextString(m) } +func (*SearchParamPB) ProtoMessage() {} +func (*SearchParamPB) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{42} +} + +func (m *SearchParamPB) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SearchParamPB.Unmarshal(m, b) +} +func (m *SearchParamPB) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SearchParamPB.Marshal(b, m, deterministic) +} +func (m *SearchParamPB) XXX_Merge(src proto.Message) { + xxx_messageInfo_SearchParamPB.Merge(m, src) +} +func (m *SearchParamPB) XXX_Size() int { + return xxx_messageInfo_SearchParamPB.Size(m) +} +func (m *SearchParamPB) XXX_DiscardUnknown() { + xxx_messageInfo_SearchParamPB.DiscardUnknown(m) +} + +var xxx_messageInfo_SearchParamPB proto.InternalMessageInfo func (m *SearchParamPB) GetCollectionName() string { if m != nil { @@ -1893,22 +2710,45 @@ func (m *SearchParamPB) GetExtraParams() []*KeyValuePair { } type InsertOrDeleteMsg struct { - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` - RowsData *RowData `protobuf:"bytes,2,opt,name=rows_data,json=rowsData" json:"rows_data,omitempty"` - Uid int64 `protobuf:"varint,3,opt,name=uid" json:"uid,omitempty"` - PartitionTag string `protobuf:"bytes,4,opt,name=partition_tag,json=partitionTag" json:"partition_tag,omitempty"` - Timestamp int64 `protobuf:"varint,5,opt,name=timestamp" json:"timestamp,omitempty"` - SegmentId int64 `protobuf:"varint,6,opt,name=segment_id,json=segmentId" json:"segment_id,omitempty"` - ChannelId int64 `protobuf:"varint,7,opt,name=channel_id,json=channelId" json:"channel_id,omitempty"` - Op OpType `protobuf:"varint,8,opt,name=op,enum=suvlim.grpc.OpType" json:"op,omitempty"` - ClientId int64 `protobuf:"varint,9,opt,name=client_id,json=clientId" json:"client_id,omitempty"` - ExtraParams []*KeyValuePair `protobuf:"bytes,10,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` + RowsData *RowData `protobuf:"bytes,2,opt,name=rows_data,json=rowsData,proto3" json:"rows_data,omitempty"` + Uid int64 `protobuf:"varint,3,opt,name=uid,proto3" json:"uid,omitempty"` + PartitionTag string `protobuf:"bytes,4,opt,name=partition_tag,json=partitionTag,proto3" json:"partition_tag,omitempty"` + Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + SegmentId int64 `protobuf:"varint,6,opt,name=segment_id,json=segmentId,proto3" json:"segment_id,omitempty"` + ChannelId int64 `protobuf:"varint,7,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + Op OpType `protobuf:"varint,8,opt,name=op,proto3,enum=suvlim.grpc.OpType" json:"op,omitempty"` + ClientId int64 `protobuf:"varint,9,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,10,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 *InsertOrDeleteMsg) Reset() { *m = InsertOrDeleteMsg{} } -func (m *InsertOrDeleteMsg) String() string { return proto.CompactTextString(m) } -func (*InsertOrDeleteMsg) ProtoMessage() {} -func (*InsertOrDeleteMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{43} } +func (m *InsertOrDeleteMsg) Reset() { *m = InsertOrDeleteMsg{} } +func (m *InsertOrDeleteMsg) String() string { return proto.CompactTextString(m) } +func (*InsertOrDeleteMsg) ProtoMessage() {} +func (*InsertOrDeleteMsg) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{43} +} + +func (m *InsertOrDeleteMsg) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InsertOrDeleteMsg.Unmarshal(m, b) +} +func (m *InsertOrDeleteMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InsertOrDeleteMsg.Marshal(b, m, deterministic) +} +func (m *InsertOrDeleteMsg) XXX_Merge(src proto.Message) { + xxx_messageInfo_InsertOrDeleteMsg.Merge(m, src) +} +func (m *InsertOrDeleteMsg) XXX_Size() int { + return xxx_messageInfo_InsertOrDeleteMsg.Size(m) +} +func (m *InsertOrDeleteMsg) XXX_DiscardUnknown() { + xxx_messageInfo_InsertOrDeleteMsg.DiscardUnknown(m) +} + +var xxx_messageInfo_InsertOrDeleteMsg proto.InternalMessageInfo func (m *InsertOrDeleteMsg) GetCollectionName() string { if m != nil { @@ -1981,19 +2821,42 @@ func (m *InsertOrDeleteMsg) GetExtraParams() []*KeyValuePair { } type SearchMsg struct { - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"` - Records *VectorRowRecord `protobuf:"bytes,2,opt,name=records" json:"records,omitempty"` - PartitionTag string `protobuf:"bytes,3,opt,name=partition_tag,json=partitionTag" json:"partition_tag,omitempty"` - Uid int64 `protobuf:"varint,4,opt,name=uid" json:"uid,omitempty"` - Timestamp int64 `protobuf:"varint,5,opt,name=timestamp" json:"timestamp,omitempty"` - ClientId int64 `protobuf:"varint,6,opt,name=client_id,json=clientId" json:"client_id,omitempty"` - ExtraParams []*KeyValuePair `protobuf:"bytes,7,rep,name=extra_params,json=extraParams" json:"extra_params,omitempty"` + CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` + Records *VectorRowRecord `protobuf:"bytes,2,opt,name=records,proto3" json:"records,omitempty"` + PartitionTag string `protobuf:"bytes,3,opt,name=partition_tag,json=partitionTag,proto3" json:"partition_tag,omitempty"` + Uid int64 `protobuf:"varint,4,opt,name=uid,proto3" json:"uid,omitempty"` + Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + ClientId int64 `protobuf:"varint,6,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + ExtraParams []*KeyValuePair `protobuf:"bytes,7,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 *SearchMsg) Reset() { *m = SearchMsg{} } -func (m *SearchMsg) String() string { return proto.CompactTextString(m) } -func (*SearchMsg) ProtoMessage() {} -func (*SearchMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{44} } +func (m *SearchMsg) Reset() { *m = SearchMsg{} } +func (m *SearchMsg) String() string { return proto.CompactTextString(m) } +func (*SearchMsg) ProtoMessage() {} +func (*SearchMsg) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{44} +} + +func (m *SearchMsg) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SearchMsg.Unmarshal(m, b) +} +func (m *SearchMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SearchMsg.Marshal(b, m, deterministic) +} +func (m *SearchMsg) XXX_Merge(src proto.Message) { + xxx_messageInfo_SearchMsg.Merge(m, src) +} +func (m *SearchMsg) XXX_Size() int { + return xxx_messageInfo_SearchMsg.Size(m) +} +func (m *SearchMsg) XXX_DiscardUnknown() { + xxx_messageInfo_SearchMsg.DiscardUnknown(m) +} + +var xxx_messageInfo_SearchMsg proto.InternalMessageInfo func (m *SearchMsg) GetCollectionName() string { if m != nil { @@ -2045,19 +2908,42 @@ func (m *SearchMsg) GetExtraParams() []*KeyValuePair { } type TimeSyncMsg struct { - ClientId int64 `protobuf:"varint,1,opt,name=ClientId,json=clientId" json:"ClientId,omitempty"` - Timestamp int64 `protobuf:"varint,2,opt,name=Timestamp,json=timestamp" json:"Timestamp,omitempty"` - MsgType OpType `protobuf:"varint,3,opt,name=MsgType,json=msgType,enum=suvlim.grpc.OpType" json:"MsgType,omitempty"` + Peer_Id int64 `protobuf:"varint,1,opt,name=peer_Id,json=peerId,proto3" json:"peer_Id,omitempty"` + Timestamp int64 `protobuf:"varint,2,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` + SyncType SyncType `protobuf:"varint,3,opt,name=sync_type,json=syncType,proto3,enum=suvlim.grpc.SyncType" json:"sync_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TimeSyncMsg) Reset() { *m = TimeSyncMsg{} } -func (m *TimeSyncMsg) String() string { return proto.CompactTextString(m) } -func (*TimeSyncMsg) ProtoMessage() {} -func (*TimeSyncMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{45} } +func (m *TimeSyncMsg) Reset() { *m = TimeSyncMsg{} } +func (m *TimeSyncMsg) String() string { return proto.CompactTextString(m) } +func (*TimeSyncMsg) ProtoMessage() {} +func (*TimeSyncMsg) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{45} +} -func (m *TimeSyncMsg) GetClientId() int64 { +func (m *TimeSyncMsg) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TimeSyncMsg.Unmarshal(m, b) +} +func (m *TimeSyncMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TimeSyncMsg.Marshal(b, m, deterministic) +} +func (m *TimeSyncMsg) XXX_Merge(src proto.Message) { + xxx_messageInfo_TimeSyncMsg.Merge(m, src) +} +func (m *TimeSyncMsg) XXX_Size() int { + return xxx_messageInfo_TimeSyncMsg.Size(m) +} +func (m *TimeSyncMsg) XXX_DiscardUnknown() { + xxx_messageInfo_TimeSyncMsg.DiscardUnknown(m) +} + +var xxx_messageInfo_TimeSyncMsg proto.InternalMessageInfo + +func (m *TimeSyncMsg) GetPeer_Id() int64 { if m != nil { - return m.ClientId + return m.Peer_Id } return 0 } @@ -2069,70 +2955,67 @@ func (m *TimeSyncMsg) GetTimestamp() int64 { return 0 } -func (m *TimeSyncMsg) GetMsgType() OpType { +func (m *TimeSyncMsg) GetSyncType() SyncType { if m != nil { - return m.MsgType + return m.SyncType } - return OpType_INSERT + return SyncType_READ } -type SegmentRecord struct { - Uid int64 `protobuf:"varint,1,opt,name=uid" json:"uid,omitempty"` - SegmentId []int64 `protobuf:"varint,2,rep,packed,name=segment_id,json=segmentId" json:"segment_id,omitempty"` +type Key2SegMsg struct { + Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` + SegmentId []int64 `protobuf:"varint,2,rep,packed,name=segment_id,json=segmentId,proto3" json:"segment_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SegmentRecord) Reset() { *m = SegmentRecord{} } -func (m *SegmentRecord) String() string { return proto.CompactTextString(m) } -func (*SegmentRecord) ProtoMessage() {} -func (*SegmentRecord) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{46} } +func (m *Key2SegMsg) Reset() { *m = Key2SegMsg{} } +func (m *Key2SegMsg) String() string { return proto.CompactTextString(m) } +func (*Key2SegMsg) ProtoMessage() {} +func (*Key2SegMsg) Descriptor() ([]byte, []int) { + return fileDescriptor_411e9188eb859c95, []int{46} +} -func (m *SegmentRecord) GetUid() int64 { +func (m *Key2SegMsg) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Key2SegMsg.Unmarshal(m, b) +} +func (m *Key2SegMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Key2SegMsg.Marshal(b, m, deterministic) +} +func (m *Key2SegMsg) XXX_Merge(src proto.Message) { + xxx_messageInfo_Key2SegMsg.Merge(m, src) +} +func (m *Key2SegMsg) XXX_Size() int { + return xxx_messageInfo_Key2SegMsg.Size(m) +} +func (m *Key2SegMsg) XXX_DiscardUnknown() { + xxx_messageInfo_Key2SegMsg.DiscardUnknown(m) +} + +var xxx_messageInfo_Key2SegMsg proto.InternalMessageInfo + +func (m *Key2SegMsg) GetUid() int64 { if m != nil { return m.Uid } return 0 } -func (m *SegmentRecord) GetSegmentId() []int64 { +func (m *Key2SegMsg) GetSegmentId() []int64 { if m != nil { return m.SegmentId } return nil } -type Key2SegMsg struct { - ClientId int64 `protobuf:"varint,1,opt,name=client_id,json=clientId" json:"client_id,omitempty"` - Records *SegmentRecord `protobuf:"bytes,2,opt,name=records" json:"records,omitempty"` - MsgType OpType `protobuf:"varint,3,opt,name=msg_type,json=msgType,enum=suvlim.grpc.OpType" json:"msg_type,omitempty"` -} - -func (m *Key2SegMsg) Reset() { *m = Key2SegMsg{} } -func (m *Key2SegMsg) String() string { return proto.CompactTextString(m) } -func (*Key2SegMsg) ProtoMessage() {} -func (*Key2SegMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{47} } - -func (m *Key2SegMsg) GetClientId() int64 { - if m != nil { - return m.ClientId - } - return 0 -} - -func (m *Key2SegMsg) GetRecords() *SegmentRecord { - if m != nil { - return m.Records - } - return nil -} - -func (m *Key2SegMsg) GetMsgType() OpType { - if m != nil { - return m.MsgType - } - return OpType_INSERT -} - func init() { + proto.RegisterEnum("suvlim.grpc.ErrorCode", ErrorCode_name, ErrorCode_value) + proto.RegisterEnum("suvlim.grpc.DataType", DataType_name, DataType_value) + proto.RegisterEnum("suvlim.grpc.CompareOperator", CompareOperator_name, CompareOperator_value) + proto.RegisterEnum("suvlim.grpc.Occur", Occur_name, Occur_value) + proto.RegisterEnum("suvlim.grpc.OpType", OpType_name, OpType_value) + proto.RegisterEnum("suvlim.grpc.SyncType", SyncType_name, SyncType_value) proto.RegisterType((*Status)(nil), "suvlim.grpc.Status") proto.RegisterType((*KeyValuePair)(nil), "suvlim.grpc.KeyValuePair") proto.RegisterType((*CollectionName)(nil), "suvlim.grpc.CollectionName") @@ -2179,198 +3062,188 @@ func init() { proto.RegisterType((*InsertOrDeleteMsg)(nil), "suvlim.grpc.InsertOrDeleteMsg") proto.RegisterType((*SearchMsg)(nil), "suvlim.grpc.SearchMsg") proto.RegisterType((*TimeSyncMsg)(nil), "suvlim.grpc.TimeSyncMsg") - proto.RegisterType((*SegmentRecord)(nil), "suvlim.grpc.SegmentRecord") proto.RegisterType((*Key2SegMsg)(nil), "suvlim.grpc.Key2SegMsg") - proto.RegisterEnum("suvlim.grpc.ErrorCode", ErrorCode_name, ErrorCode_value) - proto.RegisterEnum("suvlim.grpc.DataType", DataType_name, DataType_value) - proto.RegisterEnum("suvlim.grpc.CompareOperator", CompareOperator_name, CompareOperator_value) - proto.RegisterEnum("suvlim.grpc.Occur", Occur_name, Occur_value) - proto.RegisterEnum("suvlim.grpc.OpType", OpType_name, OpType_value) } -func init() { proto.RegisterFile("suvlim.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 2881 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x5a, 0xcd, 0x73, 0xdb, 0xc6, - 0x15, 0x27, 0x08, 0x8a, 0x24, 0x1e, 0x28, 0x09, 0x5a, 0xcb, 0x36, 0x2d, 0xdb, 0x8d, 0x83, 0xce, - 0xb4, 0x8e, 0x3b, 0x75, 0x13, 0x25, 0xb5, 0xdd, 0x3a, 0x49, 0xc3, 0x0f, 0x48, 0x42, 0xcd, 0x0f, - 0x79, 0x09, 0x39, 0x71, 0x32, 0x1d, 0x14, 0x22, 0xd7, 0x34, 0x1a, 0x92, 0x60, 0x01, 0x50, 0xb2, - 0xae, 0xbd, 0xb7, 0x9d, 0x1e, 0x3b, 0xd3, 0x4b, 0xfb, 0x2f, 0xf4, 0xff, 0xe8, 0x35, 0x87, 0xcc, - 0xf4, 0xd8, 0xe9, 0xdf, 0xd0, 0x53, 0x67, 0x3f, 0x40, 0x02, 0x20, 0x29, 0x93, 0x51, 0x7b, 0xd2, - 0xf2, 0xed, 0xbe, 0xb7, 0xbf, 0xf7, 0xb1, 0x6f, 0xdf, 0x5b, 0x08, 0x4a, 0xc1, 0xe4, 0x6c, 0xe0, - 0x0e, 0x1f, 0x8e, 0x7d, 0x2f, 0xf4, 0x90, 0x2a, 0x7e, 0xf5, 0xfd, 0x71, 0x57, 0xff, 0x1c, 0xf2, - 0x9d, 0xd0, 0x09, 0x27, 0x01, 0xfa, 0x29, 0x00, 0xf1, 0x7d, 0xcf, 0xb7, 0xbb, 0x5e, 0x8f, 0x94, - 0xa5, 0x7b, 0xd2, 0xfd, 0xad, 0xfd, 0x1b, 0x0f, 0x63, 0x6b, 0x1f, 0x1a, 0x74, 0xba, 0xe6, 0xf5, - 0x08, 0x56, 0x48, 0x34, 0x44, 0x37, 0x20, 0xef, 0x13, 0x27, 0xf0, 0x46, 0xe5, 0xec, 0x3d, 0xe9, - 0xbe, 0x82, 0xc5, 0x2f, 0xfd, 0x11, 0x94, 0x9e, 0x91, 0x8b, 0x17, 0xce, 0x60, 0x42, 0x8e, 0x1d, - 0xd7, 0x47, 0x1a, 0xc8, 0x5f, 0x93, 0x0b, 0x26, 0x57, 0xc1, 0x74, 0x88, 0x76, 0x61, 0xe3, 0x8c, - 0x4e, 0x0b, 0x46, 0xfe, 0x43, 0xff, 0x19, 0x6c, 0xd5, 0xbc, 0xc1, 0x80, 0x74, 0x43, 0xd7, 0x1b, - 0xb5, 0x9c, 0x21, 0x41, 0x3f, 0x84, 0xed, 0xee, 0x94, 0x62, 0x8f, 0x9c, 0x21, 0x11, 0x52, 0xb6, - 0xba, 0x89, 0x85, 0xfa, 0x00, 0x50, 0x92, 0xb5, 0xe1, 0x06, 0x21, 0xfa, 0x11, 0xe4, 0x03, 0xa6, - 0x21, 0xe3, 0x52, 0xf7, 0xaf, 0x25, 0x74, 0xe2, 0xca, 0x63, 0xb1, 0x04, 0xbd, 0x07, 0x5a, 0x6a, - 0xaf, 0xa0, 0x9c, 0xbd, 0x27, 0xdf, 0x57, 0xf0, 0x76, 0x72, 0xb3, 0x40, 0xef, 0x80, 0x72, 0xe0, - 0x92, 0x41, 0x6f, 0x2d, 0x8c, 0xe8, 0x2e, 0xc0, 0x2b, 0xca, 0xc5, 0xd7, 0x70, 0xcd, 0x95, 0x57, - 0x91, 0x1c, 0xfd, 0x1f, 0x12, 0x14, 0x9a, 0xce, 0x78, 0xec, 0x8e, 0xfa, 0xeb, 0x01, 0x5f, 0x00, - 0x20, 0xbb, 0x10, 0xc0, 0x4f, 0x20, 0xcf, 0xb6, 0x0b, 0xca, 0xf2, 0x3d, 0xf9, 0xbe, 0xba, 0x7f, - 0x33, 0x21, 0x95, 0x69, 0x74, 0xec, 0xf8, 0xce, 0x10, 0x8b, 0x65, 0xe8, 0x63, 0x28, 0x91, 0x37, - 0xa1, 0xef, 0xd8, 0x63, 0x4a, 0x0e, 0xca, 0x39, 0xc6, 0x76, 0x2b, 0xc1, 0x16, 0xf7, 0x34, 0x56, - 0xd9, 0x72, 0x26, 0x24, 0xd0, 0x03, 0x50, 0x85, 0x3e, 0xeb, 0x3b, 0xe3, 0x31, 0x94, 0x86, 0x9c, - 0xd7, 0x1e, 0xb8, 0x41, 0xc8, 0x1c, 0xa1, 0xee, 0xef, 0x26, 0x58, 0x84, 0x70, 0xac, 0x0e, 0x67, - 0xbb, 0xe8, 0xcf, 0x60, 0xeb, 0xd8, 0xf1, 0x43, 0x97, 0x2a, 0xcd, 0x70, 0xac, 0xee, 0x1f, 0x0d, - 0xe4, 0xd0, 0xe9, 0x0b, 0xdb, 0xd1, 0xa1, 0x3e, 0x80, 0xcd, 0xa9, 0xb0, 0xf5, 0x75, 0x78, 0x08, - 0xd7, 0xc6, 0x11, 0xb7, 0x1d, 0x3a, 0x7d, 0xdb, 0xf1, 0x7d, 0xe7, 0x42, 0xc4, 0xd4, 0xce, 0x74, - 0xca, 0x72, 0xfa, 0x15, 0x3a, 0xa1, 0x3f, 0x87, 0xed, 0x17, 0xa4, 0x1b, 0x7a, 0x3e, 0xf6, 0xce, - 0x31, 0xe9, 0x7a, 0x7e, 0x8f, 0x85, 0xcc, 0xc0, 0x73, 0x42, 0xbb, 0xe7, 0x84, 0x4e, 0x59, 0xba, - 0x27, 0xdf, 0xcf, 0x62, 0x85, 0x51, 0xea, 0x4e, 0xe8, 0xa0, 0x77, 0x40, 0x3d, 0x75, 0x47, 0x8e, - 0x7f, 0xc1, 0xe7, 0x29, 0xf2, 0x12, 0x06, 0x4e, 0xa2, 0x0b, 0xf4, 0x5f, 0x83, 0x62, 0x8c, 0x42, - 0x37, 0xbc, 0x30, 0x7b, 0xc1, 0x7a, 0xe0, 0x7f, 0x00, 0xdb, 0x84, 0x71, 0xda, 0x6e, 0x2f, 0x06, - 0x5c, 0xc6, 0x9b, 0x44, 0x08, 0xe4, 0xa0, 0x0f, 0xa0, 0x24, 0x40, 0x73, 0xc4, 0x8f, 0xa0, 0xe0, - 0xb3, 0x51, 0xc0, 0xe0, 0xaa, 0xfb, 0x77, 0x12, 0xbb, 0xa4, 0x14, 0xc4, 0xd1, 0x62, 0xfd, 0x2b, - 0x50, 0xf9, 0x1c, 0x77, 0x1a, 0x82, 0xdc, 0x6f, 0x68, 0x62, 0xe1, 0x9e, 0x62, 0x63, 0xf4, 0x04, - 0xc0, 0xf7, 0xce, 0x6d, 0xce, 0xc1, 0x94, 0x4d, 0xc7, 0x62, 0x1c, 0x09, 0x56, 0xfc, 0x68, 0x17, - 0xbd, 0x2f, 0xce, 0x6b, 0x93, 0x84, 0x4e, 0xea, 0x18, 0x4a, 0xa9, 0x63, 0x88, 0xde, 0x83, 0x5c, - 0x78, 0x31, 0xe6, 0x47, 0x68, 0x6b, 0xff, 0x7a, 0x42, 0x3e, 0xb5, 0xa9, 0x75, 0x31, 0x26, 0x98, - 0x2d, 0xa1, 0x01, 0xd3, 0x73, 0x87, 0x65, 0xf9, 0x9e, 0x74, 0x5f, 0xc6, 0x74, 0xa8, 0x57, 0x20, - 0xdf, 0xe9, 0xbe, 0x26, 0x43, 0x07, 0x3d, 0x06, 0x95, 0xef, 0x32, 0x24, 0xa1, 0x13, 0xd9, 0xe2, - 0xc6, 0xfc, 0x81, 0xa3, 0x90, 0x30, 0x07, 0x44, 0x87, 0x81, 0x7e, 0x17, 0x0a, 0xd8, 0x3b, 0x67, - 0xee, 0x45, 0x90, 0x3b, 0x1d, 0x78, 0xa7, 0x0c, 0x63, 0x09, 0xb3, 0xb1, 0xfe, 0xd7, 0x2c, 0xa8, - 0xe6, 0x28, 0x20, 0x7e, 0xb8, 0x66, 0x74, 0x53, 0xef, 0x33, 0x68, 0xc2, 0x72, 0x29, 0xef, 0xb3, - 0x29, 0x2c, 0x96, 0xa0, 0x0f, 0x80, 0x5a, 0x2f, 0xe0, 0x61, 0x25, 0x2f, 0x38, 0x7b, 0x02, 0x22, - 0x2e, 0xd2, 0x65, 0x0c, 0xec, 0x82, 0x80, 0xc9, 0x2d, 0x08, 0x18, 0xf4, 0x7d, 0xd8, 0x4c, 0x9c, - 0x8a, 0xf2, 0x06, 0x83, 0x5b, 0x8a, 0x9f, 0x87, 0xb9, 0xc4, 0x93, 0x5f, 0x2b, 0xf1, 0xfc, 0x5b, - 0x02, 0xb5, 0x43, 0x1c, 0xbf, 0xfb, 0x7a, 0x4d, 0x1b, 0x3d, 0x85, 0xd2, 0x19, 0x0b, 0x21, 0xbe, - 0xaf, 0xc8, 0x3a, 0xe5, 0x05, 0x31, 0xc6, 0xf3, 0xa4, 0x7a, 0x16, 0x0b, 0x59, 0x1a, 0x0d, 0xc1, - 0x80, 0x45, 0x83, 0x82, 0xe9, 0x70, 0x5e, 0xd5, 0x1c, 0x3b, 0xfa, 0x97, 0xab, 0xba, 0xb1, 0x96, - 0xaa, 0xe7, 0xb0, 0xcb, 0x35, 0x35, 0x47, 0x1d, 0xd2, 0x1f, 0x92, 0x91, 0x08, 0x0b, 0x1d, 0x36, - 0x5f, 0xb9, 0x03, 0x32, 0xf3, 0x85, 0xc4, 0xb6, 0x56, 0x29, 0x31, 0xf2, 0xc4, 0x53, 0x28, 0x05, - 0x8c, 0x77, 0xaa, 0xad, 0x34, 0xa7, 0x6d, 0xcc, 0x8c, 0x58, 0x0d, 0x66, 0x3f, 0xf4, 0x3f, 0x4b, - 0x50, 0x64, 0xa9, 0xc5, 0x25, 0x6b, 0x66, 0x16, 0x0d, 0x64, 0xb7, 0x17, 0x88, 0x6c, 0x42, 0x87, - 0xe8, 0x36, 0x28, 0x67, 0xce, 0xc0, 0xed, 0xd9, 0xbe, 0x77, 0xce, 0xa2, 0xad, 0x88, 0x8b, 0x8c, - 0x80, 0xbd, 0xf3, 0x64, 0x28, 0xe6, 0x56, 0x09, 0x45, 0xfd, 0x3f, 0x12, 0xa8, 0xcf, 0x27, 0xc4, - 0xbf, 0xc0, 0x24, 0x98, 0x0c, 0xd6, 0xcc, 0xda, 0x1f, 0x40, 0x91, 0x08, 0xbd, 0x84, 0x45, 0x92, - 0x39, 0x20, 0x52, 0x1a, 0x4f, 0x97, 0xa1, 0x9b, 0x50, 0xa0, 0x89, 0x69, 0x34, 0x89, 0x72, 0x41, - 0xde, 0xf7, 0xce, 0x5b, 0x93, 0x21, 0x2d, 0x90, 0x82, 0xae, 0xe7, 0x13, 0x7e, 0x73, 0x66, 0xb1, - 0xf8, 0x85, 0xee, 0x80, 0xd2, 0x73, 0x83, 0xd0, 0x19, 0x75, 0x09, 0x77, 0x78, 0x16, 0xcf, 0x08, - 0x57, 0x0c, 0xfe, 0x5f, 0x81, 0xda, 0x09, 0x7d, 0x7a, 0x2f, 0x92, 0xf1, 0xe0, 0x62, 0x3d, 0xdd, - 0xdf, 0x85, 0x52, 0xc0, 0x78, 0x6d, 0x9f, 0x32, 0x8b, 0xab, 0x50, 0x0d, 0x66, 0xf2, 0xf4, 0xcf, - 0x41, 0xa9, 0x7a, 0xde, 0xe0, 0x3b, 0x08, 0xbf, 0x0b, 0x70, 0xea, 0x79, 0x83, 0x98, 0xe8, 0x22, - 0x56, 0x4e, 0x23, 0x59, 0x7a, 0x10, 0xaf, 0xe0, 0xb0, 0x77, 0x5e, 0xf3, 0x26, 0xa3, 0x35, 0x5d, - 0xf7, 0x3e, 0xec, 0xc6, 0xce, 0x39, 0x75, 0x49, 0x97, 0x0a, 0x61, 0x7b, 0xc9, 0x18, 0x75, 0xe7, - 0xc4, 0xeb, 0xb7, 0xa1, 0x50, 0xf3, 0x86, 0x43, 0x67, 0xd4, 0xa3, 0x61, 0xd9, 0x1d, 0xf6, 0xa2, - 0x22, 0xb5, 0x3b, 0xec, 0xe9, 0xff, 0x94, 0x00, 0xcc, 0x51, 0x8f, 0xbc, 0xe1, 0x47, 0xea, 0xff, - 0x53, 0x93, 0x25, 0x6f, 0x23, 0x39, 0x7d, 0x1b, 0xdd, 0x05, 0x70, 0x29, 0x04, 0x3e, 0x9d, 0xe3, - 0xd3, 0x8c, 0xc2, 0xa6, 0xaf, 0x96, 0x3c, 0x3e, 0x03, 0x38, 0x18, 0x4c, 0x02, 0x91, 0x25, 0xf7, - 0xe1, 0x7a, 0x0a, 0x72, 0x22, 0x75, 0x5c, 0x4b, 0x02, 0xe7, 0xb7, 0xff, 0x09, 0x94, 0x6a, 0xde, - 0x70, 0xec, 0x74, 0xd7, 0xbd, 0x8d, 0xee, 0x80, 0x12, 0xbe, 0xf6, 0x49, 0xf0, 0xda, 0x1b, 0xf0, - 0xab, 0x5c, 0xc2, 0x33, 0x82, 0x7e, 0x02, 0xdb, 0x75, 0x32, 0x20, 0x21, 0xa9, 0x5e, 0x98, 0xf5, - 0x35, 0x25, 0xdf, 0x82, 0x62, 0xaa, 0x62, 0x29, 0xb8, 0xa2, 0x56, 0xf9, 0x32, 0xde, 0x5f, 0x98, - 0xa3, 0x57, 0xde, 0x7a, 0x3e, 0xbd, 0x0d, 0x0a, 0xad, 0x43, 0x6c, 0x77, 0xf4, 0xca, 0x13, 0xde, - 0x2c, 0x52, 0x02, 0x95, 0xa4, 0x7f, 0x05, 0x3b, 0x87, 0x24, 0x14, 0xc5, 0x56, 0x3d, 0x58, 0x13, - 0xf4, 0x5d, 0x80, 0x80, 0xa7, 0x6f, 0xdb, 0xed, 0x89, 0x78, 0x55, 0x04, 0xc5, 0xec, 0xe9, 0x13, - 0xd8, 0x8a, 0xca, 0x38, 0x7e, 0x99, 0xfe, 0x2f, 0xcc, 0x41, 0xab, 0xc7, 0x59, 0xe8, 0xf1, 0x9e, - 0x40, 0x11, 0xa5, 0x08, 0x6f, 0x73, 0xde, 0x07, 0x8d, 0xdf, 0x76, 0xb3, 0xd6, 0x80, 0xa7, 0xae, - 0x21, 0x19, 0x05, 0xae, 0xa8, 0xce, 0x64, 0x3c, 0x23, 0xe8, 0x7f, 0x90, 0x44, 0xa5, 0x45, 0xab, - 0x24, 0xf4, 0x11, 0x28, 0x34, 0x6b, 0xdb, 0xac, 0x9e, 0x92, 0x2e, 0xa9, 0xa7, 0x8e, 0x32, 0xb8, - 0xd8, 0x13, 0x63, 0x54, 0x9d, 0xbb, 0x84, 0xa9, 0x67, 0xee, 0x2e, 0xb8, 0x84, 0x67, 0xb0, 0x8e, - 0x32, 0x89, 0xbb, 0xb8, 0x5a, 0x10, 0xfd, 0xa5, 0xfe, 0x8d, 0x04, 0x10, 0x43, 0xbf, 0x05, 0x59, - 0x97, 0x9f, 0xf1, 0x1c, 0xce, 0xba, 0x3d, 0x5a, 0x61, 0xc5, 0xce, 0x26, 0x1b, 0x4f, 0x0b, 0x40, - 0xf9, 0xed, 0x05, 0xe0, 0xc7, 0x50, 0xe2, 0xa7, 0x73, 0xe5, 0xfe, 0xc8, 0x9d, 0xe6, 0x93, 0xe0, - 0x8a, 0x87, 0xf7, 0x10, 0x76, 0x62, 0x56, 0x10, 0xd5, 0xf7, 0x7e, 0xd4, 0x57, 0xaf, 0x52, 0x7b, - 0x0b, 0x13, 0x7d, 0x2b, 0x81, 0x62, 0x11, 0x7f, 0xc8, 0x6e, 0xcc, 0xb7, 0x55, 0xc7, 0xb7, 0x41, - 0x71, 0x47, 0xa1, 0x1d, 0x35, 0xef, 0x34, 0x9e, 0x8a, 0xee, 0x28, 0x64, 0x18, 0xe9, 0xf5, 0xd1, - 0xf3, 0x26, 0xa7, 0x03, 0x22, 0xe6, 0x69, 0x44, 0x49, 0x58, 0xe5, 0x34, 0xbe, 0x84, 0x5f, 0xf5, - 0x13, 0xc2, 0x2e, 0xcb, 0x1c, 0x0b, 0x9f, 0x22, 0x23, 0xd0, 0xeb, 0x72, 0x17, 0x36, 0x4e, 0x3d, - 0x2f, 0x08, 0x59, 0x49, 0x98, 0xc5, 0xfc, 0xc7, 0x15, 0xaf, 0x43, 0x07, 0x54, 0x96, 0xa1, 0x7c, - 0x62, 0xbc, 0x19, 0xfb, 0xe8, 0x09, 0x14, 0xbd, 0x31, 0xf1, 0x9d, 0xd0, 0xf3, 0x45, 0x44, 0x26, - 0x6d, 0x24, 0xd6, 0xb6, 0xc5, 0x1a, 0x3c, 0x5d, 0x8d, 0xca, 0x50, 0x60, 0xe3, 0x51, 0x4f, 0x44, - 0x4b, 0xf4, 0x53, 0xff, 0xbb, 0x04, 0x80, 0x9d, 0x51, 0x9f, 0xac, 0x64, 0xc1, 0xfd, 0xb8, 0x9c, - 0xf9, 0xf2, 0x32, 0x06, 0x76, 0xba, 0xc3, 0xcc, 0x30, 0xf2, 0x65, 0x86, 0x59, 0xaf, 0x3b, 0xff, - 0x46, 0x8a, 0x3a, 0xae, 0x95, 0x60, 0xbf, 0x03, 0xea, 0x6f, 0xe9, 0x3a, 0x9b, 0x03, 0xc9, 0x32, - 0x20, 0xc0, 0x48, 0x55, 0x86, 0x26, 0xd6, 0xf8, 0xc9, 0x6b, 0x34, 0x7e, 0xf4, 0x08, 0x86, 0xde, - 0xf8, 0x6b, 0x11, 0x0c, 0x6c, 0x7c, 0xc5, 0x93, 0xf1, 0x06, 0x4a, 0xb4, 0x44, 0x21, 0xce, 0x88, - 0x6b, 0x76, 0x1f, 0x36, 0xbc, 0x6e, 0x77, 0x12, 0x39, 0x1c, 0x25, 0xc4, 0xb4, 0xe9, 0x0c, 0xe6, - 0x0b, 0xd0, 0xa7, 0xb0, 0xd9, 0x27, 0x23, 0xe2, 0x3b, 0x03, 0x9b, 0x69, 0x26, 0x3c, 0x94, 0xdc, - 0xf8, 0x90, 0xaf, 0xe0, 0x05, 0x66, 0xa9, 0x1f, 0xfb, 0xa5, 0xff, 0x3e, 0x0b, 0xa5, 0xf8, 0x34, - 0xfa, 0x0c, 0x36, 0x4f, 0x39, 0x14, 0x21, 0x50, 0x5a, 0xd0, 0xb5, 0xc6, 0xc1, 0x1e, 0x65, 0x70, - 0xe9, 0x34, 0x0e, 0xfe, 0x31, 0x40, 0x48, 0xfc, 0xe1, 0x14, 0x8f, 0x34, 0xd7, 0x46, 0x4e, 0xcf, - 0xee, 0x51, 0x06, 0x2b, 0xe1, 0xf4, 0x20, 0xff, 0x1c, 0x54, 0x9f, 0x06, 0xa5, 0xe0, 0x94, 0x19, - 0x67, 0xf2, 0xc5, 0x67, 0x16, 0xb4, 0x47, 0x19, 0x0c, 0xfe, 0x2c, 0x84, 0x3f, 0x99, 0xa6, 0x60, - 0xce, 0x9c, 0x5b, 0xd0, 0x19, 0xc4, 0x62, 0x67, 0x96, 0x7d, 0xd9, 0x4f, 0x9a, 0x7d, 0x19, 0x9f, - 0xfe, 0x2f, 0x09, 0x36, 0x63, 0x1d, 0xc4, 0x71, 0x75, 0xf5, 0x7b, 0x6b, 0xcd, 0xc7, 0x93, 0x79, - 0xd7, 0xc9, 0x0b, 0x2c, 0xbd, 0xdc, 0x75, 0x57, 0x3c, 0x4c, 0xbf, 0x93, 0x61, 0x87, 0x77, 0xe5, - 0x6d, 0x9f, 0x57, 0x2e, 0xcd, 0xa0, 0xbf, 0xba, 0xb2, 0x89, 0x1e, 0x87, 0xfb, 0xf8, 0x6d, 0xed, - 0xb6, 0x06, 0xf2, 0xc4, 0xed, 0x45, 0x6f, 0x0f, 0x13, 0xb7, 0xb7, 0xa8, 0xdb, 0x9c, 0x6f, 0xac, - 0x69, 0xdd, 0xe5, 0x0e, 0x49, 0x10, 0x3a, 0xc3, 0x31, 0x4b, 0xb3, 0x32, 0x9e, 0x11, 0x52, 0x65, - 0x48, 0x3e, 0x55, 0x86, 0xd0, 0xe9, 0xee, 0x6b, 0x67, 0x34, 0x22, 0x03, 0x3a, 0x5d, 0xe0, 0xd3, - 0x82, 0x62, 0x52, 0x00, 0x59, 0x6f, 0x5c, 0x2e, 0xb2, 0x43, 0x96, 0x2c, 0xa4, 0xda, 0x63, 0x76, - 0x69, 0x66, 0xbd, 0x31, 0xbd, 0x00, 0xba, 0x03, 0x57, 0xec, 0xa0, 0xf0, 0x0b, 0x80, 0x13, 0xcc, - 0xde, 0x9c, 0x13, 0x60, 0x2d, 0x27, 0xfc, 0x25, 0x0b, 0x0a, 0x8f, 0xb6, 0xb5, 0x8c, 0x1f, 0x4b, - 0x5c, 0xdc, 0xf4, 0x2b, 0x26, 0xae, 0x39, 0x7b, 0xcb, 0x0b, 0xec, 0x2d, 0xdc, 0x94, 0x9b, 0xb9, - 0xe9, 0x72, 0x0f, 0x24, 0xcc, 0x93, 0x7f, 0x8b, 0x79, 0x0a, 0x6b, 0x99, 0xe7, 0x0c, 0x54, 0xcb, - 0x1d, 0x92, 0xce, 0xc5, 0xa8, 0x4b, 0xed, 0xb3, 0x07, 0xc5, 0x9a, 0x10, 0x2c, 0xea, 0xb8, 0xd9, - 0x46, 0x77, 0x40, 0xb1, 0xa6, 0x18, 0xb3, 0x69, 0x8c, 0x3f, 0x86, 0x42, 0x33, 0xe8, 0x5b, 0xb3, - 0x1a, 0x69, 0xa1, 0xb3, 0x0b, 0x43, 0xbe, 0x46, 0xff, 0x8c, 0xe6, 0x00, 0x16, 0x42, 0xa2, 0x48, - 0x11, 0x36, 0x91, 0x66, 0x36, 0x49, 0x97, 0xbf, 0x72, 0xb2, 0xfc, 0xfd, 0xa3, 0x04, 0xf0, 0x8c, - 0x5c, 0xec, 0x77, 0x48, 0x9f, 0x22, 0x4f, 0xd8, 0x28, 0x0d, 0xfd, 0xa3, 0xb4, 0x37, 0xf7, 0x52, - 0xef, 0x19, 0x31, 0x24, 0x33, 0x5f, 0x3e, 0x84, 0xe2, 0x30, 0xe8, 0xdb, 0xe1, 0x8a, 0x3a, 0x3d, - 0xf8, 0x5b, 0x0e, 0x94, 0xe9, 0x27, 0x11, 0xa4, 0x42, 0xa1, 0x73, 0x52, 0xab, 0x19, 0x9d, 0x8e, - 0x96, 0x41, 0xbb, 0xa0, 0x9d, 0xb4, 0x8c, 0x2f, 0x8e, 0x8d, 0x9a, 0x65, 0xd4, 0x6d, 0x03, 0xe3, - 0x36, 0xd6, 0x24, 0x84, 0x60, 0xab, 0xd6, 0x6e, 0xb5, 0x8c, 0x9a, 0x65, 0x1f, 0x54, 0xcc, 0x86, - 0x51, 0xd7, 0xb2, 0xe8, 0x3a, 0xec, 0x1c, 0x1b, 0xb8, 0x69, 0x76, 0x3a, 0x66, 0xbb, 0x65, 0xd7, - 0x8d, 0x96, 0x69, 0xd4, 0x35, 0x19, 0xdd, 0x82, 0xeb, 0xb5, 0x76, 0xa3, 0x61, 0xd4, 0x2c, 0x4a, - 0x6e, 0xb5, 0x2d, 0xdb, 0xf8, 0xc2, 0xec, 0x58, 0x1d, 0x2d, 0x47, 0x65, 0x9b, 0x8d, 0x86, 0x71, - 0x58, 0x69, 0xd8, 0x15, 0x7c, 0x78, 0xd2, 0x34, 0x5a, 0x96, 0xb6, 0x41, 0xe5, 0x44, 0xd4, 0xba, - 0xd9, 0x34, 0x5a, 0x54, 0x9c, 0x56, 0x40, 0x37, 0x00, 0x45, 0x64, 0xb3, 0x55, 0x37, 0xbe, 0xb0, - 0xad, 0x97, 0xc7, 0x86, 0x56, 0x44, 0xb7, 0xe1, 0x66, 0x44, 0x8f, 0xef, 0x53, 0x69, 0x1a, 0x9a, - 0x82, 0x34, 0x28, 0x45, 0x93, 0x56, 0xfb, 0xf8, 0x99, 0x06, 0x71, 0xe9, 0xb8, 0xfd, 0x39, 0x36, - 0x6a, 0x6d, 0x5c, 0xd7, 0xd4, 0x38, 0xf9, 0x85, 0x51, 0xb3, 0xda, 0xd8, 0x36, 0xeb, 0x5a, 0x89, - 0x82, 0x8f, 0xc8, 0x1d, 0xa3, 0x82, 0x6b, 0x47, 0x36, 0x36, 0x3a, 0x27, 0x0d, 0x4b, 0xdb, 0xa4, - 0x26, 0x38, 0x30, 0x1b, 0x06, 0xd3, 0xe8, 0xa0, 0x7d, 0xd2, 0xaa, 0x6b, 0x5b, 0x68, 0x1b, 0xd4, - 0xa6, 0x61, 0x55, 0x22, 0x9b, 0x6c, 0xd3, 0xfd, 0x6b, 0x95, 0xda, 0x91, 0x11, 0x51, 0x34, 0x54, - 0x86, 0xdd, 0x5a, 0xa5, 0x45, 0x99, 0x6a, 0xd8, 0xa8, 0x58, 0x86, 0x7d, 0xd0, 0x6e, 0xd4, 0x0d, - 0xac, 0xed, 0x50, 0x05, 0x53, 0x33, 0x66, 0xc3, 0xd0, 0x50, 0x8c, 0xa3, 0x6e, 0x34, 0x8c, 0x19, - 0xc7, 0xb5, 0x18, 0x47, 0x34, 0x43, 0x39, 0x76, 0xa9, 0x32, 0xd5, 0x13, 0xb3, 0x51, 0x17, 0x86, - 0xe2, 0x4e, 0xbb, 0x8e, 0x76, 0x60, 0x33, 0x52, 0xa6, 0xd5, 0x30, 0x3b, 0x96, 0x76, 0x03, 0xdd, - 0x84, 0x6b, 0x11, 0xa9, 0x69, 0x58, 0xd8, 0xac, 0x71, 0xab, 0xde, 0xa4, 0x6b, 0xdb, 0x27, 0x96, - 0xdd, 0x3e, 0xb0, 0x9b, 0x46, 0xb3, 0x8d, 0x5f, 0x6a, 0xe5, 0x07, 0x7f, 0x92, 0xa0, 0x18, 0x35, - 0x0c, 0xa8, 0x08, 0xb9, 0x56, 0xbb, 0x65, 0x68, 0x19, 0x3a, 0xaa, 0xb6, 0xdb, 0x0d, 0x4d, 0xa2, - 0x23, 0xb3, 0x65, 0x3d, 0xd1, 0xb2, 0x48, 0x81, 0x0d, 0xb3, 0x65, 0x7d, 0xf0, 0x48, 0x93, 0xc5, - 0xf0, 0xc3, 0x7d, 0x2d, 0x27, 0x86, 0x8f, 0x3e, 0xd2, 0x36, 0xe8, 0xf0, 0xa0, 0xd1, 0xae, 0x58, - 0x1a, 0x20, 0x80, 0x7c, 0xbd, 0x7d, 0x52, 0x6d, 0x18, 0x9a, 0x4a, 0xc7, 0x1d, 0x0b, 0x9b, 0xad, - 0x43, 0x6d, 0x97, 0x22, 0x10, 0x9e, 0xa8, 0x9a, 0xad, 0x0a, 0x7e, 0xa9, 0xd1, 0x93, 0x56, 0x12, - 0x24, 0xce, 0x4c, 0x1e, 0xd4, 0x60, 0x3b, 0x55, 0xe2, 0xa2, 0x3c, 0x64, 0x1b, 0x96, 0x96, 0x41, - 0x05, 0x90, 0x1b, 0x96, 0xa1, 0x49, 0x94, 0x60, 0x3c, 0xd7, 0xb2, 0xf4, 0xef, 0xa1, 0xa5, 0xc9, - 0x74, 0xe2, 0xd0, 0x32, 0xb4, 0x1c, 0x25, 0xb4, 0x0c, 0x6d, 0xe3, 0xc1, 0x13, 0xd8, 0x60, 0x65, - 0x13, 0x0d, 0x7c, 0xb3, 0xf5, 0xa2, 0xd2, 0x30, 0xeb, 0x5c, 0xaf, 0xe6, 0x49, 0xc7, 0xd2, 0x24, - 0x86, 0xea, 0xa8, 0x7d, 0xd2, 0xa0, 0x41, 0x5e, 0x82, 0x22, 0xa5, 0x52, 0xaf, 0x6b, 0xf2, 0x83, - 0x2f, 0x21, 0xcf, 0x8f, 0x12, 0x5d, 0x63, 0xb6, 0x3a, 0x06, 0xa6, 0x3b, 0x53, 0x8d, 0x98, 0x3f, - 0x04, 0x2f, 0x0b, 0x1c, 0x2d, 0x4b, 0x35, 0x4a, 0x06, 0x91, 0x4c, 0x77, 0x7c, 0x66, 0xbc, 0xdc, - 0xef, 0x18, 0x87, 0x5a, 0x8e, 0xca, 0xb6, 0xcc, 0xa6, 0xd1, 0x79, 0xd9, 0xaa, 0x69, 0x1b, 0xfb, - 0xdf, 0x6e, 0xc2, 0x66, 0xd3, 0x1d, 0x9c, 0x4d, 0x82, 0x0e, 0xf1, 0xcf, 0xdc, 0x2e, 0x41, 0xbf, - 0x00, 0xad, 0xe6, 0x13, 0x27, 0x24, 0xb3, 0xae, 0x1f, 0x2d, 0xfc, 0x84, 0xb4, 0xb7, 0xa8, 0xef, - 0xd7, 0x33, 0xe8, 0x00, 0x36, 0x8f, 0x9c, 0x20, 0xc6, 0x7d, 0x3b, 0x55, 0xab, 0xc7, 0x2f, 0x92, - 0xbd, 0x1b, 0x73, 0x55, 0x1d, 0x7f, 0xd9, 0xca, 0x20, 0x13, 0x50, 0x9d, 0x04, 0x5d, 0xdf, 0x3d, - 0x25, 0xab, 0x0a, 0x5b, 0x88, 0x53, 0xcf, 0xa0, 0xe7, 0xd4, 0x81, 0x93, 0x51, 0xb8, 0xaa, 0x9c, - 0x77, 0x96, 0x4c, 0x4e, 0x9f, 0xc0, 0x32, 0xe8, 0x97, 0xb0, 0xdd, 0x79, 0x4d, 0x7f, 0x46, 0x73, - 0x41, 0xca, 0x4a, 0xe2, 0x89, 0x6c, 0xa9, 0xac, 0xe8, 0x7b, 0xab, 0x9e, 0x41, 0xc7, 0x80, 0x92, - 0xb2, 0xd8, 0x33, 0xcb, 0xa5, 0x08, 0x97, 0x4d, 0xb2, 0x67, 0x95, 0x0c, 0xaa, 0xc3, 0x56, 0xdd, - 0xf7, 0xc6, 0xab, 0xea, 0xbb, 0xc4, 0x93, 0x9f, 0x80, 0xca, 0x43, 0x81, 0x3d, 0xe8, 0xa1, 0x64, - 0x1d, 0x3c, 0x7b, 0xe4, 0x5b, 0xc6, 0x5e, 0x83, 0xcd, 0xc8, 0x81, 0x6f, 0x11, 0xb0, 0x6c, 0x42, - 0xcf, 0xa0, 0xa7, 0xa0, 0x50, 0x4d, 0xbe, 0x1b, 0x02, 0x03, 0xb6, 0xb9, 0x02, 0xd3, 0x0f, 0x92, - 0x29, 0x3b, 0x24, 0xbf, 0x7a, 0x2e, 0x17, 0x53, 0x3a, 0x72, 0x82, 0x15, 0x65, 0x2c, 0x0f, 0xe8, - 0x67, 0xb0, 0x45, 0xdd, 0x3c, 0x5d, 0x1f, 0x5c, 0xee, 0x94, 0xbd, 0xc5, 0xbb, 0x88, 0x98, 0xa1, - 0xc6, 0xf5, 0xbd, 0xf1, 0xd5, 0x14, 0xfb, 0x18, 0xf2, 0xbc, 0x00, 0x47, 0xe5, 0x94, 0x65, 0xa7, - 0xdf, 0xca, 0x52, 0xfa, 0x4c, 0x3f, 0x8c, 0x32, 0xb3, 0x6c, 0x4e, 0x5f, 0xef, 0xaa, 0x17, 0x66, - 0x3d, 0x05, 0x21, 0xf9, 0xf8, 0xb6, 0xb7, 0xf8, 0x83, 0x80, 0x9e, 0x41, 0x47, 0xb4, 0xfd, 0x9b, - 0x3d, 0x02, 0xa2, 0xef, 0xa5, 0xba, 0x8f, 0xd4, 0xfb, 0xe0, 0x25, 0x80, 0x3e, 0x85, 0x3c, 0x2f, - 0x65, 0xd1, 0xd2, 0xef, 0x31, 0x7b, 0xc9, 0x99, 0xd8, 0x07, 0x0f, 0x76, 0x0e, 0xb7, 0x53, 0xdf, - 0x85, 0xd0, 0xbb, 0x0b, 0x04, 0x25, 0xbf, 0x1a, 0x5d, 0x2a, 0xf1, 0x31, 0xc8, 0xb5, 0x61, 0x6f, - 0x49, 0x66, 0x48, 0x81, 0x8c, 0x7d, 0x2f, 0xc8, 0xa0, 0x0a, 0xc0, 0xec, 0x31, 0x17, 0x25, 0x8b, - 0xeb, 0xd4, 0x2b, 0xef, 0x32, 0xe7, 0x1e, 0xc2, 0xce, 0xb1, 0x4f, 0x06, 0x9e, 0xd3, 0xbb, 0x62, - 0x1a, 0x78, 0x0c, 0x1b, 0xec, 0xc5, 0x3b, 0x75, 0xfc, 0x66, 0xaf, 0xe0, 0xcb, 0x18, 0x9f, 0xb2, - 0x0f, 0x05, 0x63, 0xa7, 0x1b, 0xa2, 0x5b, 0xf3, 0xef, 0x35, 0xe2, 0xf9, 0x7b, 0x19, 0x73, 0x15, - 0x8a, 0xc2, 0x6f, 0x55, 0xb4, 0xb7, 0xcc, 0x9d, 0xc7, 0xd5, 0xcb, 0xcc, 0x7f, 0x9a, 0x67, 0xff, - 0xc0, 0xf3, 0xe1, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x32, 0x13, 0xfb, 0xba, 0xd0, 0x23, 0x00, - 0x00, +func init() { + proto.RegisterFile("suvlim.proto", fileDescriptor_411e9188eb859c95) +} + +var fileDescriptor_411e9188eb859c95 = []byte{ + // 2798 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x3a, 0x5b, 0x73, 0xdb, 0xc6, + 0xd5, 0xe2, 0x45, 0x12, 0x79, 0x40, 0x4a, 0xd0, 0x5a, 0xb6, 0x15, 0x27, 0xf9, 0x92, 0xe0, 0x9b, + 0x69, 0x53, 0x77, 0xc6, 0x93, 0x28, 0xa9, 0x9d, 0x36, 0x97, 0x86, 0x17, 0x48, 0x46, 0x4d, 0x11, + 0xf2, 0x92, 0x72, 0x92, 0x76, 0x3a, 0x28, 0x44, 0xae, 0x65, 0x34, 0x24, 0xc1, 0x02, 0xa4, 0x63, + 0xbd, 0xf6, 0xbd, 0x9d, 0xe9, 0x63, 0x67, 0xfa, 0xd2, 0xfe, 0x85, 0xfe, 0x8b, 0xfe, 0x81, 0x3e, + 0x64, 0xa6, 0x8f, 0x9d, 0xfe, 0x86, 0x3e, 0xf5, 0xec, 0x05, 0x20, 0x00, 0x92, 0x12, 0x19, 0xb5, + 0x4f, 0x5a, 0x9c, 0xb3, 0xe7, 0xec, 0xb9, 0x9f, 0xb3, 0x4b, 0x41, 0x25, 0x9c, 0xbe, 0x1c, 0x78, + 0xc3, 0x07, 0xe3, 0xc0, 0x9f, 0xf8, 0x44, 0x53, 0x5f, 0x17, 0xc1, 0xb8, 0x67, 0x7c, 0x01, 0x5b, + 0x9d, 0x89, 0x3b, 0x99, 0x86, 0xe4, 0x47, 0x00, 0x2c, 0x08, 0xfc, 0xc0, 0xe9, 0xf9, 0x7d, 0x76, + 0x90, 0x7b, 0x3b, 0xf7, 0xee, 0xce, 0xe1, 0x9d, 0x07, 0x89, 0xbd, 0x0f, 0x4c, 0x8e, 0x6e, 0x20, + 0x96, 0x96, 0x59, 0xb4, 0x24, 0x77, 0x60, 0x2b, 0x60, 0x6e, 0xe8, 0x8f, 0x0e, 0xf2, 0x48, 0x52, + 0xa6, 0xea, 0xcb, 0x78, 0x08, 0x95, 0x27, 0xec, 0xf2, 0x99, 0x3b, 0x98, 0xb2, 0x53, 0xd7, 0x0b, + 0x88, 0x0e, 0x85, 0xaf, 0xd9, 0xa5, 0xe0, 0x5b, 0xa6, 0x7c, 0x49, 0xf6, 0x61, 0xf3, 0x25, 0x47, + 0x2b, 0x42, 0xf9, 0x61, 0xfc, 0x18, 0x76, 0x1a, 0xfe, 0x60, 0xc0, 0x7a, 0x13, 0xcf, 0x1f, 0xb5, + 0xdd, 0x21, 0x23, 0xdf, 0x87, 0xdd, 0x5e, 0x0c, 0x71, 0x46, 0x08, 0x52, 0x5c, 0x76, 0x7a, 0xa9, + 0x8d, 0xc6, 0x00, 0x48, 0x9a, 0xb4, 0xe5, 0x85, 0x13, 0xf2, 0x43, 0xd8, 0x0a, 0x85, 0x86, 0x82, + 0x4a, 0x3b, 0xbc, 0x95, 0xd2, 0x49, 0x2a, 0x4f, 0xd5, 0x16, 0xf2, 0x03, 0xd0, 0x33, 0x67, 0x85, + 0x28, 0x5e, 0x01, 0x0f, 0xdb, 0x4d, 0x1f, 0x16, 0x1a, 0x1d, 0x28, 0x1f, 0x79, 0x6c, 0xd0, 0x5f, + 0x4b, 0x46, 0xf2, 0x26, 0xc0, 0x73, 0x4e, 0x25, 0xf7, 0x48, 0xcd, 0xcb, 0xcf, 0x23, 0x3e, 0xc6, + 0xdf, 0x72, 0xb0, 0x7d, 0xe2, 0x8e, 0xc7, 0xde, 0xe8, 0x62, 0x3d, 0xc1, 0x17, 0x08, 0x90, 0x5f, + 0x28, 0x00, 0xe7, 0xda, 0x7b, 0xc1, 0x86, 0xee, 0x41, 0x61, 0x11, 0x57, 0x81, 0xa2, 0x6a, 0x0b, + 0xf9, 0x04, 0x2a, 0xec, 0xd5, 0x24, 0x70, 0x9d, 0xb1, 0x1b, 0xb8, 0xc3, 0xf0, 0xa0, 0x88, 0xa6, + 0xd0, 0x0e, 0x5f, 0x4b, 0x91, 0x24, 0xbd, 0x4c, 0x35, 0xb1, 0xfd, 0x54, 0xec, 0x36, 0x42, 0xd0, + 0x94, 0x2e, 0xeb, 0x3b, 0xe2, 0x11, 0x54, 0x86, 0x92, 0xd6, 0x19, 0x20, 0xb1, 0x70, 0x82, 0x76, + 0xb8, 0x9f, 0x22, 0x51, 0xcc, 0xa9, 0x36, 0x9c, 0x9d, 0x62, 0x3c, 0x81, 0x1d, 0x3c, 0x7e, 0xe2, + 0x71, 0x85, 0x85, 0x1c, 0xab, 0xfb, 0x06, 0x43, 0x74, 0xe2, 0x5e, 0x28, 0xbb, 0xf1, 0x25, 0x46, + 0x54, 0x35, 0x66, 0xb6, 0xbe, 0x0e, 0x0f, 0xe0, 0xd6, 0x38, 0xa2, 0x76, 0x90, 0x9d, 0xe3, 0x06, + 0x81, 0x7b, 0xa9, 0xe2, 0x69, 0x2f, 0x46, 0x75, 0xdd, 0x8b, 0x1a, 0x47, 0x18, 0x4f, 0x61, 0xf7, + 0x19, 0x8a, 0xe3, 0x07, 0xd4, 0xff, 0x86, 0xb2, 0x9e, 0x1f, 0xf4, 0x45, 0xb8, 0x0c, 0x7c, 0x77, + 0xe2, 0xf4, 0xdd, 0x89, 0x8b, 0x67, 0x16, 0xde, 0xcd, 0x63, 0xb8, 0x70, 0x48, 0x13, 0x01, 0xe4, + 0x2d, 0xd0, 0xce, 0xbd, 0x91, 0x1b, 0x5c, 0x4a, 0x3c, 0x97, 0xbc, 0x42, 0x41, 0x82, 0xf8, 0x06, + 0xe3, 0x57, 0x50, 0x36, 0x47, 0x78, 0xcc, 0xa5, 0xd5, 0x0f, 0xd7, 0x13, 0xfe, 0x7b, 0xb0, 0xcb, + 0x04, 0xa5, 0xe3, 0xf5, 0x13, 0x82, 0x17, 0x68, 0x95, 0x29, 0x86, 0x52, 0xe8, 0x23, 0xa8, 0x28, + 0xa1, 0xa5, 0xc4, 0x0f, 0x61, 0x3b, 0x10, 0xab, 0x50, 0x88, 0xab, 0x1d, 0xbe, 0x91, 0x3a, 0x25, + 0xa3, 0x20, 0x8d, 0x36, 0x1b, 0xbf, 0x00, 0x4d, 0xe2, 0xa4, 0xd3, 0x08, 0x14, 0x7f, 0xcd, 0x8b, + 0x8a, 0xf4, 0x94, 0x58, 0x93, 0x8f, 0x00, 0x02, 0xff, 0x1b, 0x47, 0x52, 0x08, 0x65, 0xb3, 0xb1, + 0x98, 0x94, 0x84, 0x96, 0x83, 0xe8, 0x14, 0xe3, 0x42, 0xe5, 0xea, 0x09, 0x43, 0xa3, 0xa5, 0x53, + 0x30, 0x97, 0x49, 0x41, 0x2c, 0x01, 0xc5, 0xc9, 0xe5, 0x58, 0xa6, 0xcf, 0xce, 0xe1, 0xed, 0x14, + 0x7f, 0x6e, 0xd3, 0x2e, 0x22, 0xa9, 0xd8, 0xc2, 0x03, 0xa6, 0xef, 0x0d, 0x45, 0x22, 0x15, 0x28, + 0x5f, 0x1a, 0x35, 0x2c, 0xa7, 0x32, 0x75, 0x1e, 0x81, 0x26, 0x4f, 0x19, 0xe2, 0x99, 0x91, 0x2d, + 0xd2, 0xf5, 0x34, 0x16, 0x89, 0x4a, 0x81, 0xf8, 0x32, 0x34, 0xde, 0x84, 0x6d, 0x34, 0x8f, 0x70, + 0x2f, 0x1a, 0xe1, 0x7c, 0xe0, 0x9f, 0x0b, 0x19, 0x2b, 0x54, 0xac, 0x8d, 0x3f, 0xe7, 0x41, 0xb3, + 0x46, 0x21, 0x0b, 0x26, 0x6b, 0x46, 0xf7, 0x2c, 0xf1, 0xf3, 0xd7, 0x27, 0xfe, 0xfb, 0xc0, 0xad, + 0x17, 0xca, 0xb0, 0x2a, 0x2c, 0xc8, 0x3d, 0x25, 0x22, 0x2d, 0xf1, 0x6d, 0x42, 0xd8, 0x05, 0x01, + 0x53, 0x5c, 0x10, 0x30, 0xe4, 0xff, 0xa1, 0x9a, 0xca, 0x8a, 0x83, 0x4d, 0x21, 0x6e, 0x25, 0x99, + 0x0f, 0x73, 0x85, 0x67, 0x6b, 0xad, 0xc2, 0xf3, 0xaf, 0x1c, 0x68, 0x1d, 0xe6, 0x06, 0xbd, 0x17, + 0x6b, 0xda, 0xe8, 0x63, 0xa8, 0xbc, 0x14, 0x21, 0x24, 0xcf, 0x55, 0x55, 0xe7, 0x60, 0x41, 0x8c, + 0x09, 0xc6, 0x54, 0x7b, 0x99, 0x08, 0x59, 0x1e, 0x0d, 0xe1, 0x40, 0x44, 0x03, 0x96, 0x0f, 0x5c, + 0xce, 0xab, 0x5a, 0x14, 0xa9, 0x7f, 0xb5, 0xaa, 0x9b, 0x6b, 0xa9, 0xfa, 0x0d, 0xec, 0x4b, 0x4d, + 0xad, 0x51, 0x87, 0x5d, 0x0c, 0xd1, 0xd4, 0x52, 0x18, 0x03, 0xaa, 0xcf, 0xbd, 0x01, 0x9b, 0xf9, + 0x22, 0x27, 0x8e, 0xd6, 0x38, 0x30, 0xf2, 0x04, 0x6a, 0x1b, 0x0a, 0xda, 0x58, 0xdb, 0xdc, 0x9c, + 0xb6, 0x09, 0x33, 0x52, 0x2d, 0x9c, 0x7d, 0x18, 0x7f, 0xcc, 0x41, 0x49, 0x94, 0x16, 0x8f, 0xad, + 0x59, 0x59, 0xd0, 0x4e, 0x5e, 0x3f, 0x54, 0xd5, 0x84, 0x2f, 0xc9, 0xeb, 0x50, 0xc6, 0xe6, 0x8f, + 0xa2, 0x62, 0x30, 0x89, 0x68, 0x2b, 0xd1, 0x92, 0x00, 0x60, 0x94, 0xa5, 0x43, 0xb1, 0xb8, 0x4a, + 0x28, 0x1a, 0xff, 0x46, 0xff, 0x3f, 0x9d, 0xb2, 0xe0, 0x92, 0xb2, 0x70, 0x3a, 0x58, 0xb3, 0x6a, + 0xbf, 0x0f, 0x25, 0xa6, 0xf4, 0x52, 0x16, 0x49, 0xd7, 0x80, 0x48, 0x69, 0x1a, 0x6f, 0x23, 0x77, + 0xb1, 0xe6, 0x61, 0x61, 0x1a, 0x4d, 0xa3, 0x5a, 0xb0, 0x85, 0x9f, 0xed, 0xe9, 0x90, 0x0f, 0x47, + 0x21, 0x16, 0x20, 0x26, 0x3b, 0x67, 0x9e, 0xaa, 0x2f, 0xf2, 0x06, 0x94, 0xfb, 0xd8, 0x4e, 0xdc, + 0x51, 0x8f, 0x49, 0x87, 0x63, 0x55, 0x8f, 0x01, 0x37, 0x0c, 0xfe, 0x5f, 0x62, 0xec, 0x4f, 0x02, + 0xde, 0x17, 0xd9, 0x78, 0x70, 0xb9, 0x9e, 0xee, 0xef, 0x60, 0x44, 0x08, 0x5a, 0x2c, 0xb2, 0x48, + 0xac, 0x5a, 0xa1, 0x16, 0xce, 0xf8, 0xe1, 0xc0, 0x58, 0xae, 0xfb, 0xfe, 0xe0, 0x3b, 0x30, 0xc7, + 0xba, 0x7b, 0x8e, 0x94, 0x09, 0xd6, 0x25, 0x5a, 0x3e, 0x8f, 0x78, 0xe1, 0xb4, 0x90, 0x98, 0xde, + 0xd0, 0xa7, 0x0d, 0x7f, 0x3a, 0x5a, 0xd3, 0x75, 0xef, 0xc1, 0x7e, 0x22, 0xcf, 0xb9, 0x4b, 0x7a, + 0x9c, 0x89, 0x38, 0xab, 0x40, 0x49, 0x6f, 0x8e, 0xbd, 0xf1, 0x3a, 0x6c, 0x37, 0xfc, 0xe1, 0xd0, + 0x1d, 0xf5, 0x79, 0x58, 0xf6, 0x86, 0xfd, 0x68, 0x40, 0xc5, 0xa5, 0xf1, 0x8f, 0x1c, 0x80, 0x35, + 0xea, 0xb3, 0x57, 0x32, 0xa5, 0xfe, 0x37, 0xf3, 0x58, 0xba, 0x1b, 0x15, 0xb2, 0xdd, 0x08, 0xd1, + 0x1e, 0x17, 0x41, 0xa2, 0x8b, 0x12, 0x2d, 0x20, 0x02, 0x7d, 0xb3, 0xe2, 0xf1, 0x39, 0xc0, 0xd1, + 0x60, 0x1a, 0xaa, 0x2a, 0x79, 0x08, 0xb7, 0x33, 0x22, 0xa7, 0x4a, 0xc7, 0xad, 0xb4, 0xe0, 0xb2, + 0xfb, 0x9f, 0x41, 0x05, 0xed, 0x37, 0x76, 0x7b, 0xeb, 0x76, 0x23, 0xcc, 0x80, 0xc9, 0x0b, 0x4c, + 0x85, 0x17, 0xfe, 0x40, 0xb6, 0xf2, 0x1c, 0x9d, 0x01, 0x90, 0xed, 0x6e, 0x93, 0x0d, 0xd8, 0x84, + 0xd5, 0x2f, 0xad, 0xe6, 0x9a, 0x9c, 0x5f, 0x83, 0x52, 0x66, 0x62, 0xd9, 0xf6, 0xd4, 0xac, 0xf2, + 0xf3, 0xe4, 0xdd, 0xc2, 0x1a, 0x3d, 0xf7, 0xd7, 0xf3, 0x29, 0x96, 0x29, 0x3e, 0x87, 0x38, 0x1e, + 0x52, 0x2a, 0x6f, 0x96, 0x38, 0x80, 0x73, 0xc2, 0xf9, 0x65, 0xef, 0x98, 0x4d, 0xd4, 0xb0, 0xd5, + 0x0c, 0xd7, 0x14, 0x1a, 0xdd, 0x1c, 0xca, 0xf2, 0x8d, 0x15, 0x5b, 0xc5, 0x6b, 0x59, 0x41, 0xac, + 0xbe, 0x31, 0x85, 0x9d, 0x68, 0x8c, 0x93, 0xcd, 0xf4, 0xbf, 0x61, 0x0e, 0x3e, 0x3d, 0xce, 0x42, + 0x2f, 0x14, 0x85, 0xb7, 0xac, 0x46, 0x11, 0x79, 0xc5, 0x79, 0x0f, 0x74, 0xd9, 0xed, 0xc4, 0xa4, + 0x22, 0x55, 0x12, 0xa5, 0x0b, 0xc5, 0x0a, 0x3d, 0x35, 0x9d, 0x15, 0xe8, 0x0c, 0x60, 0xfc, 0x3e, + 0xa7, 0x26, 0x2d, 0x3e, 0x25, 0x91, 0x0f, 0x71, 0x2f, 0xd6, 0x63, 0x47, 0xcc, 0x53, 0xb9, 0x2b, + 0xe6, 0xa9, 0xc7, 0x1b, 0xb4, 0xd4, 0x57, 0x6b, 0x52, 0x9f, 0x6b, 0xc2, 0xdc, 0x33, 0x6f, 0x2e, + 0x68, 0xc2, 0x33, 0xb1, 0x90, 0x41, 0xb2, 0x17, 0xd7, 0xb7, 0xd5, 0xdd, 0xd2, 0xf8, 0x3b, 0xe6, + 0x70, 0x42, 0xfa, 0x1d, 0xc8, 0x7b, 0x32, 0xc7, 0x8b, 0x14, 0x57, 0x7c, 0xc2, 0x4a, 0xe4, 0xa6, + 0x58, 0xc7, 0x03, 0x60, 0xe1, 0xfa, 0x01, 0x10, 0xd3, 0x4f, 0x66, 0xe7, 0xca, 0xf7, 0x23, 0x2f, + 0xae, 0x27, 0xe1, 0x0d, 0x93, 0xf7, 0x18, 0xf6, 0x12, 0x56, 0x50, 0xd3, 0xf7, 0x61, 0x74, 0xa7, + 0x5e, 0x65, 0xf6, 0x56, 0x26, 0xfa, 0x16, 0x7d, 0xd6, 0x65, 0xc1, 0x50, 0x74, 0xcc, 0xeb, 0xa6, + 0x63, 0xcc, 0x01, 0x0f, 0x83, 0x34, 0xba, 0xb8, 0xf3, 0x78, 0x2a, 0x21, 0x40, 0xc8, 0xc8, 0xdb, + 0x47, 0xdf, 0x9f, 0x9e, 0xe3, 0xd8, 0x21, 0xf1, 0x3c, 0xa2, 0x72, 0x54, 0x93, 0x30, 0xb9, 0x45, + 0xb6, 0xfa, 0x29, 0x13, 0xcd, 0xb2, 0x28, 0xc2, 0xa7, 0x24, 0x00, 0xbc, 0x5d, 0xee, 0xc3, 0x26, + 0xf6, 0x03, 0xbc, 0xed, 0xf1, 0x91, 0x30, 0x4f, 0xe5, 0xc7, 0x0d, 0xdb, 0xa1, 0x0b, 0x9a, 0xa8, + 0x50, 0x01, 0x33, 0x5f, 0x8d, 0x03, 0xbc, 0x43, 0x94, 0xfc, 0x31, 0x0b, 0x5c, 0x34, 0x84, 0x8a, + 0xc8, 0xb4, 0x8d, 0xd4, 0x5e, 0x5b, 0xed, 0xa1, 0xf1, 0x6e, 0x72, 0x00, 0xdb, 0x62, 0x3d, 0xea, + 0xab, 0x68, 0x89, 0x3e, 0x8d, 0xbf, 0x62, 0x8c, 0x51, 0x77, 0x74, 0xc1, 0x56, 0xb2, 0xe0, 0x61, + 0x92, 0xcf, 0xfc, 0x78, 0x99, 0x10, 0x36, 0x3e, 0x61, 0x66, 0x98, 0xc2, 0x55, 0x86, 0x59, 0xef, + 0x76, 0x8e, 0x99, 0xa1, 0x6e, 0x5c, 0x2b, 0x89, 0x8d, 0xc5, 0xe2, 0x37, 0x7c, 0x9f, 0x23, 0x05, + 0xc9, 0x0b, 0x41, 0x40, 0x80, 0xea, 0x42, 0x9a, 0xc4, 0xc5, 0xaf, 0xb0, 0xc6, 0xc5, 0x8f, 0xa7, + 0xe0, 0xc4, 0x1f, 0x7f, 0xad, 0x82, 0x41, 0xac, 0x6f, 0x98, 0x19, 0xaf, 0xa0, 0xc2, 0x47, 0x14, + 0xe6, 0x8e, 0xa4, 0x66, 0xef, 0xc2, 0xa6, 0xdf, 0xeb, 0x4d, 0x23, 0x87, 0x93, 0x14, 0x1b, 0x9b, + 0x63, 0xa8, 0xdc, 0x40, 0x3e, 0x83, 0xea, 0x05, 0x1b, 0xa1, 0xcd, 0x07, 0x8e, 0xd0, 0x4c, 0x79, + 0x28, 0x7d, 0xf0, 0xb1, 0xdc, 0x21, 0x07, 0xcc, 0xca, 0x45, 0xe2, 0xcb, 0xf8, 0x5d, 0x1e, 0x2a, + 0x49, 0x34, 0xf9, 0x1c, 0xaa, 0xe7, 0x52, 0x14, 0xc5, 0x30, 0xb7, 0xe0, 0xd6, 0x9a, 0x14, 0x16, + 0x0b, 0x59, 0xe5, 0x3c, 0x29, 0xfc, 0x23, 0x80, 0x09, 0x26, 0x67, 0x2c, 0x4f, 0x6e, 0xee, 0x1a, + 0x19, 0xe7, 0x2e, 0xd2, 0x96, 0x27, 0x71, 0x22, 0xff, 0x04, 0xb4, 0x80, 0x07, 0xa5, 0xa2, 0x94, + 0xaf, 0x3d, 0x77, 0xd3, 0x93, 0x73, 0x1c, 0xb4, 0x48, 0x0a, 0xc1, 0x2c, 0x84, 0x3f, 0x8d, 0x4b, + 0xb0, 0x24, 0x2e, 0x2e, 0xb8, 0x19, 0x24, 0x62, 0x67, 0x56, 0x7d, 0xc5, 0x27, 0xaf, 0xbe, 0x82, + 0xce, 0xf8, 0x67, 0x0e, 0xaa, 0x89, 0x1b, 0xc4, 0x69, 0x7d, 0xf5, 0xbe, 0xb5, 0xe6, 0xe3, 0xc9, + 0xbc, 0xeb, 0x0a, 0x0b, 0x2c, 0xbd, 0xdc, 0x75, 0x37, 0x4c, 0xa6, 0xdf, 0x16, 0x60, 0x4f, 0xde, + 0xca, 0xed, 0x40, 0x4e, 0x2e, 0x27, 0xe1, 0xc5, 0xea, 0xca, 0xa6, 0xee, 0x38, 0xd2, 0xc7, 0xd7, + 0x5d, 0xb7, 0x71, 0x5c, 0x9d, 0x62, 0x2b, 0x53, 0x6f, 0x0f, 0xb8, 0x5c, 0x74, 0xdb, 0x9c, 0xbf, + 0x58, 0xf3, 0xb9, 0x0b, 0xbb, 0x35, 0x4e, 0x34, 0xc3, 0xb1, 0x28, 0xb3, 0xd8, 0xbe, 0x63, 0x40, + 0x66, 0x0c, 0xd9, 0xca, 0x8c, 0x21, 0x1c, 0xdd, 0x7b, 0xe1, 0x8e, 0x46, 0x6c, 0xc0, 0xd1, 0xdb, + 0x12, 0xad, 0x20, 0x16, 0x17, 0x20, 0xef, 0x8f, 0x0f, 0x4a, 0x22, 0xc9, 0xd2, 0x83, 0x94, 0x3d, + 0x16, 0x4d, 0x13, 0xd1, 0xbc, 0x01, 0xf4, 0x06, 0x9e, 0x3a, 0xa1, 0x2c, 0x1b, 0x80, 0x04, 0x20, + 0x87, 0xac, 0x13, 0x60, 0x2d, 0x27, 0xfc, 0x29, 0x0f, 0x65, 0x19, 0x6d, 0x6b, 0x19, 0x3f, 0x51, + 0xb8, 0xa4, 0xe9, 0x57, 0x2c, 0x5c, 0x73, 0xf6, 0x2e, 0x2c, 0xb0, 0xb7, 0x72, 0x53, 0x71, 0xe6, + 0xa6, 0xab, 0x3d, 0x90, 0x32, 0xcf, 0xd6, 0x35, 0xe6, 0xd9, 0x5e, 0xb3, 0x2c, 0x6a, 0x5d, 0x3c, + 0xa7, 0x73, 0x39, 0xea, 0x71, 0xfb, 0xe0, 0xa5, 0x75, 0xcc, 0x58, 0xe0, 0x58, 0x7d, 0x35, 0xc6, + 0x6d, 0xf1, 0x4f, 0x4b, 0x08, 0xd8, 0x8d, 0x05, 0x54, 0xa3, 0x68, 0x0c, 0xc0, 0xf6, 0x55, 0x0e, + 0x91, 0x83, 0xb3, 0x74, 0x44, 0xe2, 0xfc, 0x85, 0xb7, 0x4b, 0xa1, 0x5a, 0x19, 0x9f, 0x02, 0xa0, + 0x58, 0x87, 0x1d, 0x76, 0xc1, 0x0f, 0x56, 0x26, 0xc9, 0xcd, 0x4c, 0x92, 0x9d, 0x7e, 0x0b, 0xa9, + 0xb0, 0xbb, 0xff, 0x97, 0x22, 0x94, 0xe3, 0xdf, 0x1e, 0x88, 0x06, 0xdb, 0x9d, 0xb3, 0x46, 0xc3, + 0xec, 0x74, 0xf4, 0x0d, 0x6c, 0x8c, 0xfa, 0x59, 0xdb, 0xfc, 0xf2, 0xd4, 0x6c, 0x74, 0xcd, 0xa6, + 0x63, 0x52, 0x6a, 0x53, 0x3d, 0x87, 0x2d, 0x65, 0xa7, 0x61, 0xb7, 0xdb, 0x08, 0x74, 0x8e, 0x6a, + 0x56, 0xcb, 0x6c, 0xea, 0x79, 0x72, 0x1b, 0xf6, 0x4e, 0x4d, 0x7a, 0x62, 0x75, 0x3a, 0x96, 0xdd, + 0x76, 0x9a, 0x66, 0xdb, 0x42, 0x70, 0x01, 0xc7, 0xe3, 0xdb, 0x0d, 0xbb, 0xd5, 0xc2, 0xad, 0x1c, + 0xdc, 0xb6, 0xbb, 0x8e, 0xf9, 0xa5, 0xd5, 0xe9, 0x76, 0xf4, 0x22, 0xe7, 0x6d, 0x21, 0xe6, 0xb8, + 0xd6, 0x72, 0x6a, 0xf4, 0xf8, 0xec, 0xc4, 0x6c, 0x77, 0xf5, 0x4d, 0xce, 0x27, 0x82, 0x36, 0x2d, + 0x84, 0x71, 0x76, 0xfa, 0x36, 0xde, 0xf4, 0x49, 0x04, 0xb6, 0xda, 0x4d, 0xf3, 0x4b, 0xa7, 0xfb, + 0xd5, 0xa9, 0xa9, 0x97, 0xd0, 0x9f, 0x77, 0x23, 0x78, 0xf2, 0x9c, 0xda, 0x89, 0xa9, 0x97, 0xd1, + 0x12, 0x95, 0x08, 0xd9, 0xb5, 0x4f, 0x9f, 0xe8, 0x90, 0xe4, 0x4e, 0xed, 0x2f, 0xa8, 0xd9, 0xb0, + 0x69, 0x53, 0xd7, 0x92, 0xe0, 0x67, 0xc8, 0xc2, 0xa6, 0x8e, 0xd5, 0xd4, 0x2b, 0x5c, 0xf8, 0x08, + 0xdc, 0x31, 0x6b, 0xb4, 0xf1, 0xd8, 0xa1, 0x66, 0xe7, 0xac, 0xd5, 0xd5, 0xab, 0xdc, 0x04, 0x47, + 0xa8, 0xb9, 0xd0, 0xe8, 0xc8, 0x3e, 0x6b, 0x37, 0xf5, 0x1d, 0xb2, 0x0b, 0xda, 0x89, 0xd9, 0xad, + 0x45, 0x36, 0xd9, 0xe5, 0xe7, 0x37, 0x6a, 0x8d, 0xc7, 0x66, 0x04, 0xd1, 0x71, 0xc8, 0xd9, 0x6f, + 0xd4, 0xda, 0x9c, 0xa8, 0x41, 0xcd, 0x5a, 0x17, 0x31, 0x76, 0xab, 0x69, 0x52, 0x7d, 0x8f, 0x2b, + 0x98, 0xc1, 0x20, 0x89, 0x4e, 0x12, 0x14, 0x4d, 0xb3, 0x65, 0xce, 0x28, 0x6e, 0x25, 0x28, 0x22, + 0x0c, 0xa7, 0xd8, 0xe7, 0xca, 0xd4, 0xcf, 0xac, 0x56, 0x53, 0x19, 0x4a, 0x3a, 0xed, 0x36, 0xd9, + 0x83, 0x6a, 0xa4, 0x4c, 0xbb, 0x85, 0x2e, 0xd0, 0xef, 0x60, 0x88, 0xde, 0x8a, 0x40, 0x28, 0x38, + 0xb5, 0x1a, 0xd2, 0xaa, 0x77, 0xf9, 0x5e, 0xfb, 0xac, 0xeb, 0xd8, 0x47, 0x08, 0x3f, 0xb1, 0xe9, + 0x57, 0xfa, 0xc1, 0xfd, 0x3f, 0xe4, 0xa0, 0x14, 0x4d, 0xe7, 0xa4, 0x04, 0xc5, 0xb6, 0xdd, 0x36, + 0x31, 0x40, 0x70, 0x55, 0xb7, 0xed, 0x16, 0x06, 0x05, 0xae, 0xac, 0x76, 0xf7, 0x23, 0x0c, 0x85, + 0x32, 0x6c, 0xe2, 0xea, 0xfd, 0x87, 0xe8, 0x7e, 0xb9, 0xfc, 0xe0, 0x10, 0xdd, 0x2d, 0x97, 0x0f, + 0x3f, 0x44, 0x1f, 0xe3, 0xf2, 0xa8, 0x65, 0xd7, 0xba, 0xe8, 0x10, 0x80, 0xad, 0xa6, 0x7d, 0x56, + 0x47, 0xc1, 0x35, 0xbe, 0xee, 0xa0, 0x14, 0xed, 0x63, 0x54, 0x02, 0x25, 0x50, 0x9e, 0xa8, 0x5b, + 0xed, 0x1a, 0x4a, 0xc0, 0x1f, 0x10, 0x2a, 0x0a, 0x24, 0x89, 0xd9, 0xfd, 0x06, 0xec, 0x66, 0xe6, + 0x49, 0xb2, 0x05, 0x79, 0xf4, 0xcf, 0x06, 0xd9, 0x86, 0x42, 0xab, 0x6b, 0xa2, 0x58, 0x08, 0x30, + 0x9f, 0xa2, 0x50, 0xf8, 0xf7, 0xb8, 0x8b, 0x12, 0x21, 0xe2, 0x18, 0x11, 0x45, 0x0e, 0x40, 0x0d, + 0x36, 0xef, 0x7f, 0x04, 0x9b, 0x62, 0x46, 0xe1, 0x81, 0x6f, 0xb5, 0x9f, 0xd5, 0x5a, 0xe8, 0x7a, + 0xa1, 0xd7, 0xc9, 0x19, 0x1a, 0x29, 0x27, 0xa4, 0x7a, 0x6c, 0x9f, 0xb5, 0x78, 0x90, 0x57, 0xa0, + 0xc4, 0xa1, 0xdc, 0xeb, 0x7a, 0xe1, 0xfe, 0xdb, 0xb0, 0x25, 0x0b, 0x2f, 0xdf, 0x63, 0xb5, 0x3b, + 0x26, 0xe5, 0x27, 0x73, 0x8d, 0x84, 0x3f, 0xf4, 0xdc, 0xfd, 0xb7, 0xa0, 0x14, 0xa5, 0x2b, 0xe7, + 0x88, 0x8e, 0xe5, 0xbc, 0x51, 0xfd, 0x2f, 0xa8, 0xc5, 0x37, 0x1c, 0x7e, 0x5b, 0x85, 0xea, 0x89, + 0x37, 0x78, 0x39, 0x0d, 0x3b, 0x2c, 0x78, 0xe9, 0xf5, 0x18, 0xf9, 0x29, 0xe8, 0x8d, 0x80, 0xb9, + 0x13, 0x36, 0xbb, 0x49, 0x93, 0x85, 0x3f, 0xcb, 0xdc, 0x5b, 0x74, 0x97, 0x36, 0x36, 0xc8, 0x11, + 0x54, 0x1f, 0xbb, 0x61, 0x82, 0xfa, 0xf5, 0xcc, 0xfc, 0x9b, 0x2c, 0xce, 0xf7, 0xee, 0xcc, 0x4d, + 0x4a, 0xf2, 0xb5, 0x68, 0x83, 0x58, 0x40, 0x9a, 0x2c, 0xec, 0x05, 0xde, 0x39, 0x5b, 0x95, 0xd9, + 0x42, 0x39, 0x91, 0xd5, 0x53, 0xee, 0xa7, 0xe9, 0x68, 0xb2, 0x2a, 0x9f, 0xb7, 0x96, 0x20, 0xe3, + 0x67, 0xa5, 0x0d, 0xf2, 0x33, 0xd8, 0xed, 0xbc, 0xe0, 0x9f, 0x11, 0x2e, 0xcc, 0x58, 0x49, 0x3d, + 0x3b, 0x2d, 0xe5, 0x15, 0xfd, 0x7e, 0x89, 0xbc, 0x4e, 0x81, 0xa4, 0x79, 0x89, 0xa7, 0x8b, 0x2b, + 0x25, 0x5c, 0x86, 0x14, 0x4f, 0x15, 0x1b, 0xa4, 0x09, 0x3b, 0xcd, 0xc0, 0x1f, 0xaf, 0xaa, 0xef, + 0x12, 0x4f, 0x7e, 0x8a, 0x57, 0x2b, 0x11, 0x0a, 0xe2, 0x91, 0x8c, 0xa4, 0x67, 0xcb, 0xd9, 0xc3, + 0xd9, 0x32, 0xf2, 0x06, 0x54, 0x23, 0x07, 0x5e, 0xc3, 0x60, 0x19, 0x02, 0x99, 0x7c, 0x0c, 0x65, + 0xae, 0xc9, 0x77, 0x93, 0xc0, 0x44, 0xbf, 0x0b, 0x05, 0xe2, 0x1f, 0xf9, 0x32, 0x76, 0x48, 0xff, + 0x92, 0xb8, 0x9c, 0x4d, 0x05, 0x23, 0x7a, 0x45, 0x1e, 0xcb, 0x03, 0xfa, 0x09, 0xec, 0x70, 0x37, + 0xc7, 0xfb, 0xc3, 0xab, 0x9d, 0x72, 0x6f, 0xf1, 0x29, 0x2a, 0x66, 0xb8, 0x71, 0xd1, 0x2e, 0x37, + 0x53, 0xec, 0x13, 0x2c, 0x1b, 0x62, 0xa8, 0x25, 0x07, 0x19, 0xcb, 0xc6, 0xbf, 0x3f, 0x65, 0xf4, + 0x89, 0x7f, 0x6c, 0x14, 0x66, 0xa9, 0xc6, 0x2f, 0x62, 0xfc, 0x1d, 0x2f, 0x23, 0x42, 0xfa, 0x41, + 0xeb, 0xde, 0xe2, 0x47, 0x76, 0x64, 0xf3, 0x98, 0x5f, 0xa9, 0x66, 0x0f, 0x6b, 0xe4, 0xff, 0x32, + 0x13, 0x7d, 0xe6, 0xcd, 0xed, 0x0a, 0x81, 0x3e, 0xc3, 0x4a, 0x29, 0xc6, 0x43, 0xb2, 0xf4, 0x37, + 0x8e, 0x7b, 0x69, 0x4c, 0xe2, 0x47, 0x04, 0x91, 0x87, 0xbb, 0x99, 0xdf, 0x5a, 0xc8, 0x3b, 0x0b, + 0x18, 0xa5, 0x7f, 0x89, 0xb9, 0x92, 0xe3, 0x23, 0x28, 0x34, 0x86, 0xfd, 0x25, 0x95, 0x21, 0x23, + 0x64, 0xe2, 0x0d, 0x7e, 0x83, 0xd4, 0x00, 0x66, 0x0f, 0xa4, 0x24, 0x3d, 0xb0, 0x66, 0x5e, 0x4e, + 0x97, 0x39, 0xf7, 0x18, 0x07, 0xa2, 0x80, 0x0d, 0x7c, 0xb7, 0x7f, 0xc3, 0x32, 0xf0, 0x08, 0xbb, + 0x25, 0x7f, 0x45, 0xce, 0xa4, 0xdf, 0xec, 0x65, 0x79, 0x19, 0xe1, 0xc7, 0xe2, 0xf1, 0x9d, 0x3f, + 0x1e, 0x93, 0xd7, 0xe6, 0xdf, 0x40, 0xd4, 0x93, 0xf2, 0x32, 0xe2, 0x3a, 0xb6, 0x2e, 0xe9, 0xb7, + 0x3a, 0xb9, 0xb7, 0xcc, 0x9d, 0xa7, 0xf5, 0xab, 0xcc, 0x7f, 0xbe, 0x25, 0xfe, 0x21, 0xe6, 0x83, + 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x58, 0x11, 0x1e, 0x45, 0x20, 0x23, 0x00, 0x00, } diff --git a/writer/pb/suvlim.proto b/writer/pb/suvlim.proto index 272efbff59..df00785400 100644 --- a/writer/pb/suvlim.proto +++ b/writer/pb/suvlim.proto @@ -705,12 +705,7 @@ message TimeSyncMsg{ SyncType sync_type = 3; } -message SegmentRecord { +message Key2SegMsg { int64 uid = 1; repeated int64 segment_id = 2; -} - -message Key2SegMsg { - int64 client_id = 1; - SegmentRecord records = 2; } \ No newline at end of file diff --git a/writer/test/key2seg_test.go b/writer/test/key2seg_test.go new file mode 100644 index 0000000000..2ebde9163d --- /dev/null +++ b/writer/test/key2seg_test.go @@ -0,0 +1,38 @@ +package test + +import ( + "context" + "github.com/apache/pulsar/pulsar-client-go/pulsar" + "github.com/czs007/suvlim/writer/pb" + "github.com/gogo/protobuf/proto" + "github.com/stretchr/testify/assert" + "log" + "testing" +) + +func TestKey2Seg(t *testing.T) { + lookupUrl := "pulsar://localhost:6650" + client, err := pulsar.NewClient(pulsar.ClientOptions{ + URL: lookupUrl, + }) + if err != nil { + log.Fatal(err) + } + + consumer, err := client.Subscribe(pulsar.ConsumerOptions{ + Topic: "Key2Seg", + SubscriptionName: "sub-1", + }) + + obj := pb.Key2SegMsg{} + msg, err := consumer.Receive(context.Background()) + proto.Unmarshal(msg.Payload(), &obj) + assert.Equal(t, obj.Uid, int64(0)) + consumer.Ack(msg) + msg, err = consumer.Receive(context.Background()) + proto.Unmarshal(msg.Payload(), &obj) + assert.Equal(t, obj.Uid, int64(0)) + consumer.Ack(msg) + consumer.Close() + client.Close() +} diff --git a/writer/write_node/writer_node.go b/writer/write_node/writer_node.go index 628fe7d663..e10b44b4a0 100644 --- a/writer/write_node/writer_node.go +++ b/writer/write_node/writer_node.go @@ -14,7 +14,7 @@ import ( type SegmentIdInfo struct { CollectionName string EntityId int64 - SegmentIds [][]string + SegmentIds []string } type WriteNode struct { @@ -64,27 +64,41 @@ func (wn *WriteNode) InsertBatchData(ctx context.Context, data []*pb.InsertOrDel } func (wn *WriteNode) DeleteBatchData(ctx context.Context, data []*pb.InsertOrDeleteMsg, wg *sync.WaitGroup) error { - var segmentInfos []*SegmentIdInfo + //var segmentInfos []*SegmentIdInfo var prefixKey string var prefixKeys [][]byte var timeStamps []uint64 - var segmentIds [][]string + //var segmentIds []string for i := 0; i < len(data); i++ { prefixKey = data[i].CollectionName + "-" + strconv.FormatUint(uint64(data[i].Uid), 10) prefixKeys = append(prefixKeys, []byte(prefixKey)) timeStamps = append(timeStamps, uint64(data[i].Timestamp)) - segmentId, _ := (*wn.KvStore).GetSegments(ctx, []byte(prefixKey), uint64(data[i].Timestamp)) - segmentIds = append(segmentIds, segmentId) + segmentString, _ := (*wn.KvStore).GetSegments(ctx, []byte(prefixKey), uint64(data[i].Timestamp)) + var segmentIds []int64 + for _, str := range segmentString { + id, err := strconv.ParseInt(str, 10, 64) + if err != nil { + fmt.Println(str, " is not an integer.") + } + segmentIds = append(segmentIds, id) + } + + segmentInfo := pb.Key2SegMsg{ + Uid: data[i].Uid, + SegmentId: segmentIds, + } + wn.MessageClient.Send(ctx, segmentInfo) + //segmentIds = append(segmentIds, segmentId) } - for i := 0; i < len(prefixKeys); i++ { - segmentInfos = append(segmentInfos, &SegmentIdInfo{ - CollectionName: data[i].CollectionName, - EntityId: data[i].Uid, - SegmentIds: segmentIds, - }) - } + //for i := 0; i < len(prefixKeys); i++ { + // segmentInfos = append(segmentInfos, &SegmentIdInfo{ + // CollectionName: data[i].CollectionName, + // EntityId: data[i].Uid, + // SegmentIds: segmentIds, + // }) + //} err := (*wn.KvStore).DeleteRows(ctx, prefixKeys, timeStamps) if err != nil { fmt.Println("Can't delete data")