diff --git a/.gitignore b/.gitignore index 54d598a1f9..fa3661548b 100644 --- a/.gitignore +++ b/.gitignore @@ -27,6 +27,10 @@ proxy/cmake_build proxy/cmake-build-debug proxy/thirdparty/grpc-src proxy/thirdparty/grpc-build +proxy/milvus/ +proxy/milvus/* +proxy/suvlim/ +proxy/suvlim/* # Compiled source *.a diff --git a/go.sum b/go.sum index 9e7e45058e..34c37f6a17 100644 --- a/go.sum +++ b/go.sum @@ -44,6 +44,7 @@ github.com/apache/pulsar/pulsar-client-go v0.0.0-20200901051823-800681aaa9af h1: github.com/apache/pulsar/pulsar-client-go v0.0.0-20200901051823-800681aaa9af/go.mod h1:QdYxU2iG99VVU6cvoBRkCgkazfJSL9WwPZ20PZR6aUk= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973 h1:xJ4a3vCFaGF/jqvzLMYoU8P317H5OQ+Via4RmuPwCS0= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= +github.com/beorn7/perks v1.0.0 h1:HWo1m869IqiPhD389kmkxeTalrjNbbJTC8LXupb+sl0= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -118,8 +119,10 @@ github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvq github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= github.com/golang/protobuf v1.4.2 h1:+Z5KGCizgyZCbGh1KZqA0fcLLkwbsjIzS4aV2v7wJX0= github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/snappy v0.0.1 h1:Qgr9rKW7uDUkrbSmQeiDsGa8SjGyCOGtuasMWwvp2P4= github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/btree v1.0.0 h1:0udJVsspx3VBr5FwtLhQQtuAsVc79tTq0ocGIPAU6qo= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= @@ -140,6 +143,7 @@ github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hf github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +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= @@ -148,7 +152,9 @@ github.com/gorilla/mux v1.7.0/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2z github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= 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= github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= +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/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= @@ -160,6 +166,7 @@ github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANyt 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= +github.com/json-iterator/go v1.1.10 h1:Kz6Cvnvv2wGdaG/V8yMvfkmNiXq9Ya2KUv4rouJJr68= 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= @@ -169,6 +176,7 @@ github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvW github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/klauspost/cpuid v1.2.3/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= +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/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= @@ -176,18 +184,26 @@ github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFB 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/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= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= +github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/minio/md5-simd v1.1.0 h1:QPfiOqlZH+Cj9teu0t9b1nTBfPbyTl16Of5MeuShdK4= github.com/minio/md5-simd v1.1.0/go.mod h1:XpBqgZULrMYD3R+M28PcmP0CkI7PEMzB3U77ZrKZ0Gw= +github.com/minio/minio-go/v7 v7.0.5 h1:I2NIJ2ojwJqD/YByemC1M59e1b4FW9kS7NlOar7HPV4= github.com/minio/minio-go/v7 v7.0.5/go.mod h1:TA0CQCjJZHM5SJj9IjqR0NmpmQJ6bCbXifAJ3mUU6Hw= +github.com/minio/sha256-simd v0.1.1 h1:5QHSlgo3nt5yKOJrC7W8w7X+NFl8cMPZm96iu8kKUJU= github.com/minio/sha256-simd v0.1.1/go.mod h1:B5e1o+1/KgNmWrSQK08Y6Z1Vb5pwIktudl0J58iy0KM= +github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 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/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc= github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= @@ -196,6 +212,7 @@ github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+W github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= 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= github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= github.com/pingcap/check v0.0.0-20190102082844-67f458068fc8/go.mod h1:B1+S9LNcuMyLH/4HMTViQOJevkGiik3wW2AN9zb2fNQ= github.com/pingcap/check v0.0.0-20200212061837-5e12011dc712 h1:R8gStypOBmpnHEx1qi//SaqxJVI4inOqljg/Aj5/390= @@ -204,29 +221,37 @@ github.com/pingcap/errors v0.11.0/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTw github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8= github.com/pingcap/gofail v0.0.0-20181217135706-6a951c1e42c3/go.mod h1:DazNTg0PTldtpsQiT9I5tVJwV1onHMKBBgXzmJUlMns= 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= github.com/pingcap/log v0.0.0-20191012051959-b742a5d432e9/go.mod h1:4rbK1p9ILyIfb6hU7OG2CiWSqMXnp3JMbiaVJ6mvoY8= github.com/pingcap/log v0.0.0-20200828042413-fce0951f1463 h1:Jboj+s4jSCp5E1WDgmRUv5rIFKFHaaSWuSZ4wMwXIcc= 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/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/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= +github.com/prometheus/client_golang v1.0.0 h1:vrDKnkGzuGvhNAL56c7DBz29ZL+KxnoR0x7enabFceM= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4 h1:gQz4mCbXsO+nc9n1hCxHcGA3Zx3Eo+UHZoInFGUIXNM= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/common v0.0.0-20181126121408-4724e9255275/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= +github.com/prometheus/common v0.4.1 h1:K0MGApIoQvMw27RTdJkPbr3JZ7DNbtxQNyi5STVM6Kw= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= 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/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= +github.com/rs/xid v1.2.1 h1:mhH9Nq+C1fY2l1XIpgxIiUOfNpRBYH1kKcr+qfKgjRc= github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.3.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= @@ -244,6 +269,7 @@ github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXf 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/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/go.mod h1:v6C/D7ONC49SgjI4jbGnooSizvijaO/bdIm62DVR4tI= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= @@ -285,6 +311,7 @@ golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899 h1:DZhuSZLsGlFL4CmhA8BcRA0mnthyA/nZ00AqCUo7vHg= golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -347,6 +374,7 @@ golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/ golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200822124328-c89045814202 h1:VvcQYSHwXgi7W+TpUR6A9g6Up98WAHf3f/ulnJ62IyA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -398,6 +426,7 @@ golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fq golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= 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= @@ -504,6 +533,7 @@ google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEY google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200806141610-86f49bd18e98 h1:LCO0fg4kb6WwkXQXRQQgUYsFeFb5taTX5WAx5O/Vt28= google.golang.org/genproto v0.0.0-20200806141610-86f49bd18e98/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/grpc v0.0.0-20180607172857-7a6a684ca69e/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= @@ -539,6 +569,7 @@ gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8 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/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/go.mod h1:Aw5GdAbizjOEl0kAMHV9iHmA8reZzW/OKuJAl4Hb9F0= gopkg.in/natefinch/lumberjack.v2 v2.0.0 h1:1Lc07Kr7qY4U2YPouBjpCLxpiyxIVoxqXgkXLknAOE8= diff --git a/proxy/milvus/bin/milvus_server b/proxy/milvus/bin/milvus_server deleted file mode 100755 index 1d3babcf3e..0000000000 Binary files a/proxy/milvus/bin/milvus_server and /dev/null differ diff --git a/proxy/src/CMakeLists.txt b/proxy/src/CMakeLists.txt index ab482ec3ae..8c8ac1bd88 100644 --- a/proxy/src/CMakeLists.txt +++ b/proxy/src/CMakeLists.txt @@ -25,7 +25,8 @@ add_subdirectory( query ) add_subdirectory( db ) # target milvus_engine add_subdirectory( log ) add_subdirectory( server ) -add_subdirectory( pulsar ) +add_subdirectory( message_client ) +add_subdirectory( test ) set(link_lib milvus_engine diff --git a/proxy/src/main.cpp b/proxy/src/main.cpp index f609ebaf89..c9a7b490d8 100644 --- a/proxy/src/main.cpp +++ b/proxy/src/main.cpp @@ -21,7 +21,7 @@ #include "src/version.h" #include "utils/SignalHandler.h" #include "utils/Status.h" -#include "pulsar/message_client/Client.h" +#include "message_client/Client.h" INITIALIZE_EASYLOGGINGPP diff --git a/proxy/src/pulsar/message_client/CMakeLists.txt b/proxy/src/message_client/CMakeLists.txt similarity index 77% rename from proxy/src/pulsar/message_client/CMakeLists.txt rename to proxy/src/message_client/CMakeLists.txt index 9a8b9b0829..fc927efe0f 100644 --- a/proxy/src/pulsar/message_client/CMakeLists.txt +++ b/proxy/src/message_client/CMakeLists.txt @@ -3,11 +3,14 @@ set(src-cpp ClientV2.cpp Consumer.cpp Producer.cpp + ../grpc/gen-milvus/suvlim.pb.cc + ../grpc/gen-status/status.pb.cc ) -add_library(message_client_cpp SHARED +add_library(message_client_cpp ${src-cpp} ) + target_include_directories(message_client_cpp PUBLIC ${PROJECT_BINARY_DIR}/thirdparty/pulsar/pulsar-src/pulsar-client-cpp/include) target_link_libraries(message_client_cpp pulsarStatic libprotobuf) diff --git a/proxy/src/pulsar/message_client/Client.cpp b/proxy/src/message_client/Client.cpp similarity index 100% rename from proxy/src/pulsar/message_client/Client.cpp rename to proxy/src/message_client/Client.cpp diff --git a/proxy/src/pulsar/message_client/Client.h b/proxy/src/message_client/Client.h similarity index 100% rename from proxy/src/pulsar/message_client/Client.h rename to proxy/src/message_client/Client.h diff --git a/proxy/src/pulsar/message_client/ClientV2.cpp b/proxy/src/message_client/ClientV2.cpp similarity index 71% rename from proxy/src/pulsar/message_client/ClientV2.cpp rename to proxy/src/message_client/ClientV2.cpp index b12a13eb58..308db29c4b 100644 --- a/proxy/src/pulsar/message_client/ClientV2.cpp +++ b/proxy/src/message_client/ClientV2.cpp @@ -21,14 +21,19 @@ MsgClientV2 &MsgClientV2::GetInstance() { MsgClientV2::MsgClientV2(int64_t client_id, std::string &service_url, const pulsar::ClientConfiguration &config) : client_id_(client_id), service_url_(service_url) {} -Status MsgClientV2::Init(const std::string &mut_topic, const std::string &query_topic, - const std::string &result_topic) { - auto pulsar_client = std::make_shared(service_url_); - mut_producer_ = std::make_shared(pulsar_client, mut_topic); - query_producer_ = std::make_shared(pulsar_client, mut_topic); - consumer_ = std::make_shared(pulsar_client, result_topic); +Status MsgClientV2::Init(const std::string &insert_delete, + const std::string &search, + const std::string &time_sync, + const std::string &search_by_id, + const std::string &search_result) { + 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); + time_sync_producer_ = std::make_shared(pulsar_client, time_sync); + consumer_ = std::make_shared(pulsar_client, search_result); - auto result = consumer_->subscribe(result_topic); + auto result = consumer_->subscribe(search_result); if (result != pulsar::Result::ResultOk) { return Status(SERVER_UNEXPECTED_ERROR, "Pulsar message client init occur error, " + std::string(pulsar::strResult(result))); } @@ -57,7 +62,7 @@ Status MsgClientV2::SendMutMessage(const milvus::grpc::InsertParam &request) { mut_msg.mutable_rows_data()->CopyFrom(request.rows_data(i)); mut_msg.mutable_extra_params()->CopyFrom(request.extra_params()); - auto result = mut_producer_->send(mut_msg); + auto result = insert_delete_producer_->send(mut_msg); if (result != pulsar::ResultOk) { // TODO: error code return Status(DB_ERROR, pulsar::strResult(result)); @@ -75,7 +80,7 @@ Status MsgClientV2::SendMutMessage(const milvus::grpc::DeleteByIDParam &request) mut_msg.set_uid(id); mut_msg.set_collection_name(request.collection_name()); - auto result = mut_producer_->send(mut_msg); + auto result = insert_delete_producer_->send(mut_msg); if (result != pulsar::ResultOk) { // TODO: error code return Status(DB_ERROR, pulsar::strResult(result)); @@ -85,8 +90,10 @@ Status MsgClientV2::SendMutMessage(const milvus::grpc::DeleteByIDParam &request) } MsgClientV2::~MsgClientV2() { - mut_producer_->close(); - query_producer_->close(); + insert_delete_producer_->close(); + search_producer_->close(); + search_by_id_producer_->close(); + time_sync_producer_->close(); consumer_->close(); } } \ No newline at end of file diff --git a/proxy/src/pulsar/message_client/ClientV2.h b/proxy/src/message_client/ClientV2.h similarity index 68% rename from proxy/src/pulsar/message_client/ClientV2.h rename to proxy/src/message_client/ClientV2.h index aa4c7cfb20..85780e6ba9 100644 --- a/proxy/src/pulsar/message_client/ClientV2.h +++ b/proxy/src/message_client/ClientV2.h @@ -1,6 +1,6 @@ #pragma once -#include "src/utils/Status.h" +#include "utils/Status.h" #include "Producer.h" #include "Consumer.h" #include "grpc/gen-milvus/suvlim.pb.h" @@ -12,8 +12,11 @@ class MsgClientV2 { ~MsgClientV2(); // When using MsgClient, make sure it init successfully - Status Init(const std::string &mut_topic, - const std::string &query_topic, const std::string &result_topic); + Status Init(const std::string &insert_delete, + const std::string &search, + const std::string &time_sync, + const std::string &search_by_id, + const std::string &search_result); // unpackage batch insert or delete request, and delivery message to pulsar per row Status SendMutMessage(const milvus::grpc::InsertParam &request); @@ -40,7 +43,9 @@ class MsgClientV2 { int64_t client_id_; std::string service_url_; std::shared_ptr consumer_; - std::shared_ptr mut_producer_; - std::shared_ptr query_producer_; + std::shared_ptr insert_delete_producer_; + std::shared_ptr search_producer_; + std::shared_ptr time_sync_producer_; + std::shared_ptr search_by_id_producer_; }; } \ No newline at end of file diff --git a/proxy/src/message_client/Consumer.cpp b/proxy/src/message_client/Consumer.cpp new file mode 100644 index 0000000000..d5b9df4905 --- /dev/null +++ b/proxy/src/message_client/Consumer.cpp @@ -0,0 +1,72 @@ + +#include "Consumer.h" +#include "grpc/gen-milvus/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); +} + +Result MsgConsumer::receive(milvus::grpc::QueryResult &res) { + Message msg; + auto result = consumer_.receive(msg); + if (result == pulsar::ResultOk) { + res.ParseFromString(msg.getDataAsString()); + } + return result; +} + +Result MsgConsumer::receive(milvus::grpc::Entities &res) { + Message msg; + auto result = consumer_.receive(msg); + if (result == pulsar::ResultOk) { + res.ParseFromString(msg.getDataAsString()); + } + return result; +} + +Result MsgConsumer::receive(milvus::grpc::EntityIds &res) { + Message msg; + auto result = consumer_.receive(msg); + if (result == pulsar::ResultOk) { + res.ParseFromString(msg.getDataAsString()); + } + return result; +} + +Result MsgConsumer::receive(milvus::grpc::Status &res) { + Message msg; + auto result = consumer_.receive(msg); + if (result == pulsar::ResultOk) { + res.ParseFromString(msg.getDataAsString()); + } + return result; +} + +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/proxy/src/message_client/Consumer.h similarity index 63% rename from pulsar/client-cpp/src/consumer.h rename to proxy/src/message_client/Consumer.h index 2f6fcf421b..d56e64a4e6 100644 --- a/pulsar/client-cpp/src/consumer.h +++ b/proxy/src/message_client/Consumer.h @@ -1,15 +1,17 @@ #pragma once #include "pulsar/Consumer.h" -#include "client.h" +#include "Client.h" +#include "grpc/gen-milvus/suvlim.pb.h" +#include "grpc/gen-status/status.pb.h" +namespace milvus { namespace message_client { enum ConsumerType { INSERT = 0, DELETE = 1, SEARCH_RESULT = 2, - TEST = 3, }; using Consumer = pulsar::Consumer; @@ -17,14 +19,17 @@ using ConsumerConfiguration = pulsar::ConsumerConfiguration; class MsgConsumer{ public: - MsgConsumer(std::shared_ptr &client, std::string consumer_name, + MsgConsumer(std::shared_ptr &client, std::string consumer_name, const pulsar::ConsumerConfiguration conf = ConsumerConfiguration()); Result subscribe(const std::string& topic); Result subscribe(const std::vector& topics); Result unsubscribe(); Result receive(Message& msg); - std::shared_ptr receive_proto(ConsumerType consumer_type); + Result receive(milvus::grpc::QueryResult &res); + Result receive(milvus::grpc::EntityIds &res); + Result receive(milvus::grpc::Entities &res); + Result receive(milvus::grpc::Status &res); Result acknowledge(const Message& message); Result close(); @@ -33,9 +38,10 @@ public: private: Consumer consumer_; - std::shared_ptr client_; + std::shared_ptr client_; ConsumerConfiguration config_; std::string subscription_name_; }; +} } \ No newline at end of file diff --git a/proxy/src/message_client/Producer.cpp b/proxy/src/message_client/Producer.cpp new file mode 100644 index 0000000000..df86bcd944 --- /dev/null +++ b/proxy/src/message_client/Producer.cpp @@ -0,0 +1,50 @@ + +#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/proxy/src/message_client/Producer.h b/proxy/src/message_client/Producer.h new file mode 100644 index 0000000000..f2ea886bfa --- /dev/null +++ b/proxy/src/message_client/Producer.h @@ -0,0 +1,37 @@ +#pragma once + +#include "pulsar/Producer.h" +#include "Client.h" +#include "grpc/gen-milvus/suvlim.pb.h" + +namespace milvus { +namespace message_client { + +using Producer = pulsar::Producer; +using ProducerConfiguration = pulsar::ProducerConfiguration; + +class MsgProducer { + public: + MsgProducer(std::shared_ptr &client, const std::string &topic, + const ProducerConfiguration &conf = ProducerConfiguration()); + + 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/proxy/src/pulsar/CMakeLists.txt b/proxy/src/pulsar/CMakeLists.txt deleted file mode 100644 index 2f3c0cf761..0000000000 --- a/proxy/src/pulsar/CMakeLists.txt +++ /dev/null @@ -1,2 +0,0 @@ -add_subdirectory(message_client) -#add_subdirectory(unittest) diff --git a/proxy/src/pulsar/unittest/CMakeLists.txt b/proxy/src/pulsar/unittest/CMakeLists.txt deleted file mode 100644 index 5bf43b79fd..0000000000 --- a/proxy/src/pulsar/unittest/CMakeLists.txt +++ /dev/null @@ -1,14 +0,0 @@ -enable_testing() -set(unittest_srcs - unittest_entry.cpp - consumer_test.cpp producer_test.cpp) - -add_executable(test ${unittest_srcs}) - -target_link_libraries(test - message_client_cpp - pulsar - gtest - gtest_main) - -install(TARGETS test DESTINATION unittest) \ No newline at end of file diff --git a/proxy/src/pulsar/unittest/consumer_test.cpp b/proxy/src/pulsar/unittest/consumer_test.cpp deleted file mode 100644 index f925706aca..0000000000 --- a/proxy/src/pulsar/unittest/consumer_test.cpp +++ /dev/null @@ -1,14 +0,0 @@ -#include -#include "pulsar/message_client/Consumer.h" -#include "pulsar/message_client/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/proxy/src/pulsar/unittest/producer_test.cpp b/proxy/src/pulsar/unittest/producer_test.cpp deleted file mode 100644 index 02e295e5bb..0000000000 --- a/proxy/src/pulsar/unittest/producer_test.cpp +++ /dev/null @@ -1,15 +0,0 @@ -#include -#include "pulsar/message_client/Producer.h" -#include "pulsar/message_client/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("test"); - data.set_name("hahah"); - std::string to_string = data.SerializeAsString(); - producer.send(to_string); - producer.close(); - client->close(); -} diff --git a/proxy/src/server/CMakeLists.txt b/proxy/src/server/CMakeLists.txt index 7ca570447e..c3d2922f42 100644 --- a/proxy/src/server/CMakeLists.txt +++ b/proxy/src/server/CMakeLists.txt @@ -26,6 +26,7 @@ aux_source_directory( ${MILVUS_ENGINE_SRC}/server/init SERVER_INIT_ aux_source_directory( ${MILVUS_ENGINE_SRC}/server/delivery/request DELIVERY_REQUEST_FILES ) aux_source_directory( ${MILVUS_ENGINE_SRC}/server/delivery/strategy DELIVERY_STRATEGY_FILES ) aux_source_directory( ${MILVUS_ENGINE_SRC}/server/delivery DELIVERY_FILES ) +aux_source_directory( ${MILVUS_ENGINE_SRC}/server/timesync TIME_SYNC_FILES ) aux_source_directory( ${MILVUS_ENGINE_SRC}/server/tso TSO_FILES) set( SERVER_FILES ${SERVER_INIT_FILES} @@ -34,6 +35,7 @@ set( SERVER_FILES ${SERVER_INIT_FILES} ${DELIVERY_REQUEST_FILES} ${DELIVERY_STRATEGY_FILES} ${DELIVERY_FILES} + ${TIME_SYNC_FILES} ${TSO_FILES} ) diff --git a/proxy/src/server/Server.cpp b/proxy/src/server/Server.cpp index 9874084eac..017fc1381f 100644 --- a/proxy/src/server/Server.cpp +++ b/proxy/src/server/Server.cpp @@ -28,7 +28,7 @@ #include "server/init/StorageChecker.h" #include "src/version.h" #include -#include "src/pulsar/message_client/ClientV2.h" +#include "message_client/ClientV2.h" #include "utils/Log.h" #include "utils/SignalHandler.h" #include "utils/TimeRecorder.h" @@ -291,7 +291,7 @@ Server::StartService() { grpc::GrpcServer::GetInstance().Start(); - stat = message_client::MsgClientV2::GetInstance().Init("topic-insert","topic-query","topic-result"); + stat = message_client::MsgClientV2::GetInstance().Init("InsertOrDelete", "Search", "TimeSync", "SearchById", "SearchResult"); if (!stat.ok()) { LOG_SERVER_ERROR_ << "Pulsar message client start service fail: " << stat.message(); goto FAIL; diff --git a/proxy/src/server/delivery/request/BaseReq.h b/proxy/src/server/delivery/request/BaseReq.h index 99f47a673f..065c9acd82 100644 --- a/proxy/src/server/delivery/request/BaseReq.h +++ b/proxy/src/server/delivery/request/BaseReq.h @@ -14,7 +14,7 @@ #include "server/context/Context.h" #include "server/delivery/request/Types.h" #include "utils/Status.h" -#include "pulsar/message_client/ClientV2.h" +#include "message_client/ClientV2.h" #include #include diff --git a/proxy/src/server/grpc_impl/GrpcRequestHandler.h b/proxy/src/server/grpc_impl/GrpcRequestHandler.h index 16ea8bedf0..b28ca01473 100644 --- a/proxy/src/server/grpc_impl/GrpcRequestHandler.h +++ b/proxy/src/server/grpc_impl/GrpcRequestHandler.h @@ -27,9 +27,9 @@ #include "server/delivery/ReqHandler.h" #include "server/grpc_impl/interceptor/GrpcInterceptorHookHandler.h" #include "src/utils/Status.h" -#include "pulsar/message_client/Consumer.h" -#include "pulsar/message_client/Producer.h" -#include "pulsar/message_client/ClientV2.h" +#include "message_client/Consumer.h" +#include "message_client/Producer.h" +#include "message_client/ClientV2.h" namespace milvus { namespace server { diff --git a/proxy/src/server/grpc_impl/GrpcServer.cpp b/proxy/src/server/grpc_impl/GrpcServer.cpp index 284b80a838..c1ca7867ac 100644 --- a/proxy/src/server/grpc_impl/GrpcServer.cpp +++ b/proxy/src/server/grpc_impl/GrpcServer.cpp @@ -38,7 +38,7 @@ // #include "server/DBWrapper.h" #include "server/grpc_impl/interceptor/SpanInterceptor.h" #include "utils/Log.h" -#include "pulsar/message_client/ClientV2.h" +#include "message_client/ClientV2.h" namespace milvus { namespace server { diff --git a/proxy/src/server/timesync/TimeSync.cpp b/proxy/src/server/timesync/TimeSync.cpp new file mode 100644 index 0000000000..3eabccd25c --- /dev/null +++ b/proxy/src/server/timesync/TimeSync.cpp @@ -0,0 +1,67 @@ +// 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 "TimeSync.h" +#include "message_client/Producer.h" + +namespace milvus { +namespace timesync { + +TimeSync::TimeSync(int64_t id, + std::function timestamp, + const int interval, + const std::string &pulsar_addr, + const std::string &time_sync_topic) : + timestamp_(timestamp), interval_(interval), pulsar_addr_(pulsar_addr), time_sync_topic_(time_sync_topic) { + sync_msg_.set_peer_id(id); + auto timer = [&]() { + std::shared_ptr + client = std::make_shared(this->pulsar_addr_); + milvus::message_client::MsgProducer producer(client, this->time_sync_topic_); + + for (;;) { + if (this->stop_) break; + this->sync_msg_.set_timestamp(this->timestamp_()); + this->sync_msg_.set_sync_type(milvus::grpc::READ); + auto rst = producer.send(sync_msg_.SerializeAsString()); + if (rst != pulsar::ResultOk) { + //TODO, add log + } + std::this_thread::sleep_for(std::chrono::milliseconds(this->interval_)); + } + auto rst = producer.close(); + if (rst != pulsar::ResultOk) { + //TODO, add log or throw exception + } + rst = client->close(); + if (rst != pulsar::ResultOk) { + //TODO, add log or throw exception + } + }; + timer_ = std::thread(timer); +} + +TimeSync::~TimeSync() { + stop_ = true; + timer_.join(); +} + +void TimeSync::Stop() { + stop_ = true; +} + +bool TimeSync::IsStop() const { + return stop_; +} + +} // namespace timesync +} // namespace milvus \ No newline at end of file diff --git a/proxy/src/server/timesync/TimeSync.h b/proxy/src/server/timesync/TimeSync.h new file mode 100644 index 0000000000..44b58837b4 --- /dev/null +++ b/proxy/src/server/timesync/TimeSync.h @@ -0,0 +1,45 @@ +// 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. + +#pragma once + +#include +#include +#include +#include +#include "suvlim.pb.h" + +namespace milvus { +namespace timesync { + +class TimeSync { + public: + TimeSync(int64_t id, + std::function timestamp, + const int interval, + const std::string &pulsar_addr, + const std::string &time_sync_topic); + virtual ~TimeSync(); + + void Stop(); + bool IsStop() const; + private: + std::function timestamp_; + const int interval_; + const std::string pulsar_addr_; + const std::string time_sync_topic_; + bool stop_ = false; + std::thread timer_; + milvus::grpc::TimeSyncMsg sync_msg_; +}; + +} // namespace timesync +} // namespace milvus \ No newline at end of file diff --git a/proxy/src/test/CMakeLists.txt b/proxy/src/test/CMakeLists.txt index c5c8edb60e..4e7a6c365d 100644 --- a/proxy/src/test/CMakeLists.txt +++ b/proxy/src/test/CMakeLists.txt @@ -1,26 +1,26 @@ -AUX_SOURCE_DIRECTORY(. TEST) +#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}) +#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) -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) - - -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 +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/test/message_client_test/CMakeLists.txt b/proxy/src/test/message_client_test/CMakeLists.txt new file mode 100644 index 0000000000..fab2e31b21 --- /dev/null +++ b/proxy/src/test/message_client_test/CMakeLists.txt @@ -0,0 +1,26 @@ +enable_testing() +set(unittest_srcs + unittest_entry.cpp + consumer_test.cpp producer_test.cpp) + +add_executable(test_pulsar ${unittest_srcs}) + +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_executable(test_pulsar ${unittest_srcs}) + +target_link_libraries(test_pulsar + message_client_cpp + pulsarStatic + gtest + gtest_main + libprotobuf + grpc++_reflection + grpc++ + libboost_system.a + libboost_filesystem.a + libboost_serialization.a + ) + +install(TARGETS test_pulsar DESTINATION unittest) \ No newline at end of file diff --git a/proxy/src/test/message_client_test/consumer_test.cpp b/proxy/src/test/message_client_test/consumer_test.cpp new file mode 100644 index 0000000000..1e2f7640c9 --- /dev/null +++ b/proxy/src/test/message_client_test/consumer_test.cpp @@ -0,0 +1,16 @@ +#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"); + milvus::message_client::MsgConsumer consumer(client, "my_consumer"); + consumer.subscribe("test"); + milvus::grpc::Status msg; + auto res = consumer.receive(msg); +// pb::TestData* data = (pb::TestData*)(msg.get()); + std::cout << "Received: with payload reason" << msg.reason(); + consumer.close(); + client->close(); +} diff --git a/proxy/src/test/message_client_test/producer_test.cpp b/proxy/src/test/message_client_test/producer_test.cpp new file mode 100644 index 0000000000..ac3bdc6cd0 --- /dev/null +++ b/proxy/src/test/message_client_test/producer_test.cpp @@ -0,0 +1,43 @@ +#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"); + milvus::message_client::MsgProducer producer(client,"test"); + milvus::grpc::Status msg; + msg.set_error_code(::milvus::grpc::SUCCESS); + msg.set_reason("no reason"); + std::string to_string = msg.SerializeAsString(); + producer.send(to_string); + producer.close(); + client->close(); +} + +TEST(CLIENT_CPP, PRODUCE_INSERT) { + auto client= std::make_shared("pulsar://localhost:6650"); + milvus::message_client::MsgProducer producer(client,"InsertOrDelete"); + int64_t offset = 1; + milvus::grpc::RowData data; + milvus::grpc::InsertOrDeleteMsg msg; + while (offset <= 100000) { + data.set_blob("a blob"); + msg.set_collection_name("zilliz"); + msg.set_partition_tag("milvus"); + msg.set_segment_id(0); + msg.set_channel_id(0); + msg.set_client_id(0); + msg.set_uid(offset); + msg.set_timestamp(offset); + msg.set_op(milvus::grpc::INSERT); + + std::string to_string = msg.SerializeAsString(); + producer.send(to_string); + if (offset % 20 == 0) + usleep(200000); + offset++; + } +// producer.close(); + client->close(); +} diff --git a/proxy/src/test/test_pulsar.cpp b/proxy/src/test/message_client_test/test_pulsar.cpp similarity index 100% rename from proxy/src/test/test_pulsar.cpp rename to proxy/src/test/message_client_test/test_pulsar.cpp diff --git a/proxy/src/pulsar/unittest/unittest_entry.cpp b/proxy/src/test/message_client_test/unittest_entry.cpp similarity index 100% rename from proxy/src/pulsar/unittest/unittest_entry.cpp rename to proxy/src/test/message_client_test/unittest_entry.cpp diff --git a/proxy/src/version.h b/proxy/src/version.h index d55216cbc6..78c17f88d1 100644 --- a/proxy/src/version.h +++ b/proxy/src/version.h @@ -11,6 +11,5 @@ #define MILVUS_VERSION "0.10.0" #define BUILD_TYPE "Debug" - -#define BUILD_TIME "2020-09-03 16:41.13" -#define LAST_COMMIT_ID "a97d3e925e993f4a2a7409a9734dcc788f109767" \ No newline at end of file +#define BUILD_TIME "2020-09-06 15:30.38" +#define LAST_COMMIT_ID "f569a5f01205b6b2eb9d8fb7442c5c12c57309fe" diff --git a/pulsar/client-cpp/src/CMakeLists.txt b/pulsar/client-cpp/src/CMakeLists.txt index 0da27e6ae7..a9382beca3 100644 --- a/pulsar/client-cpp/src/CMakeLists.txt +++ b/pulsar/client-cpp/src/CMakeLists.txt @@ -1,8 +1,9 @@ set(src-cpp - client.cpp - consumer.cpp - producer.cpp - pb/pulsar.pb.cc) + Consumer.cpp + Producer.cpp + Client.cpp + pb/suvlim.pb.cc + pb/status.pb.cc) add_library(client_cpp SHARED ${src-cpp} diff --git a/pulsar/client-cpp/src/client.cpp b/pulsar/client-cpp/src/Client.cpp similarity index 55% rename from pulsar/client-cpp/src/client.cpp rename to pulsar/client-cpp/src/Client.cpp index 8c0a1fecaa..2d537c49cf 100644 --- a/pulsar/client-cpp/src/client.cpp +++ b/pulsar/client-cpp/src/Client.cpp @@ -1,11 +1,13 @@ -#include "client.h" +#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) {} +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 similarity index 88% rename from pulsar/client-cpp/src/client.h rename to pulsar/client-cpp/src/Client.h index a7f0a1ee58..e5f945ca32 100644 --- a/pulsar/client-cpp/src/client.h +++ b/pulsar/client-cpp/src/Client.h @@ -1,8 +1,9 @@ #pragma once #include "pulsar/Client.h" -#include +#include "pulsar/ClientConfiguration.h" +namespace milvus { namespace message_client { using Result = pulsar::Result; @@ -22,3 +23,4 @@ private: }; } +} \ No newline at end of file diff --git a/proxy/src/pulsar/message_client/Consumer.cpp b/pulsar/client-cpp/src/Consumer.cpp similarity index 97% rename from proxy/src/pulsar/message_client/Consumer.cpp rename to pulsar/client-cpp/src/Consumer.cpp index 8c9ea720a3..9e9a297fbf 100644 --- a/proxy/src/pulsar/message_client/Consumer.cpp +++ b/pulsar/client-cpp/src/Consumer.cpp @@ -1,6 +1,6 @@ #include "Consumer.h" -#include "src/grpc/gen-milvus/suvlim.pb.h" +#include "pb/suvlim.pb.h" namespace milvus { namespace message_client { diff --git a/proxy/src/pulsar/message_client/Consumer.h b/pulsar/client-cpp/src/Consumer.h similarity index 100% rename from proxy/src/pulsar/message_client/Consumer.h rename to pulsar/client-cpp/src/Consumer.h diff --git a/proxy/src/pulsar/message_client/Producer.cpp b/pulsar/client-cpp/src/Producer.cpp similarity index 100% rename from proxy/src/pulsar/message_client/Producer.cpp rename to pulsar/client-cpp/src/Producer.cpp diff --git a/proxy/src/pulsar/message_client/Producer.h b/pulsar/client-cpp/src/Producer.h similarity index 95% rename from proxy/src/pulsar/message_client/Producer.h rename to pulsar/client-cpp/src/Producer.h index 903c3b54ca..1eb9522992 100644 --- a/proxy/src/pulsar/message_client/Producer.h +++ b/pulsar/client-cpp/src/Producer.h @@ -2,7 +2,7 @@ #include "pulsar/Producer.h" #include "Client.h" -#include "src/grpc/gen-milvus/suvlim.pb.h" +#include "pb/suvlim.pb.h" namespace milvus { namespace message_client { diff --git a/pulsar/client-cpp/src/consumer.cpp b/pulsar/client-cpp/src/consumer.cpp deleted file mode 100644 index abe3dc03c4..0000000000 --- a/pulsar/client-cpp/src/consumer.cpp +++ /dev/null @@ -1,66 +0,0 @@ - -#include "consumer.h" -#include "pb/pulsar.pb.h" - -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) { - 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/pb/build.sh b/pulsar/client-cpp/src/pb/build.sh index c6519cde44..fa9b3f47f0 100755 --- a/pulsar/client-cpp/src/pb/build.sh +++ b/pulsar/client-cpp/src/pb/build.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash -protoc -I=./ --cpp_out=./ pulsar.proto \ No newline at end of file +protoc -I=./ --cpp_out=./ suvlim.proto \ No newline at end of file diff --git a/pulsar/client-cpp/src/pb/pulsar.pb.cc b/pulsar/client-cpp/src/pb/pulsar.pb.cc deleted file mode 100644 index c004019c48..0000000000 --- a/pulsar/client-cpp/src/pb/pulsar.pb.cc +++ /dev/null @@ -1,5540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: pulsar.proto - -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION -#include "pulsar.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) - -namespace pb { - -namespace { - -const ::google::protobuf::Descriptor* Status_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - Status_reflection_ = NULL; -const ::google::protobuf::Descriptor* SegmentRecord_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SegmentRecord_reflection_ = NULL; -const ::google::protobuf::Descriptor* VectorRowRecord_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - VectorRowRecord_reflection_ = NULL; -const ::google::protobuf::Descriptor* AttrRecord_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AttrRecord_reflection_ = NULL; -const ::google::protobuf::Descriptor* VectorRecord_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - VectorRecord_reflection_ = NULL; -const ::google::protobuf::Descriptor* VectorParam_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - VectorParam_reflection_ = NULL; -const ::google::protobuf::Descriptor* FieldValue_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - FieldValue_reflection_ = NULL; -const ::google::protobuf::Descriptor* PulsarMessage_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - PulsarMessage_reflection_ = NULL; -const ::google::protobuf::Descriptor* TestData_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - TestData_reflection_ = NULL; -const ::google::protobuf::Descriptor* InsertMsg_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - InsertMsg_reflection_ = NULL; -const ::google::protobuf::Descriptor* DeleteMsg_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - DeleteMsg_reflection_ = NULL; -const ::google::protobuf::Descriptor* SearchMsg_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SearchMsg_reflection_ = NULL; -const ::google::protobuf::Descriptor* SearchResultMsg_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SearchResultMsg_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* ErrorCode_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* DataType_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* OpType_descriptor_ = NULL; - -} // namespace - - -void protobuf_AssignDesc_pulsar_2eproto() GOOGLE_ATTRIBUTE_COLD; -void protobuf_AssignDesc_pulsar_2eproto() { - protobuf_AddDesc_pulsar_2eproto(); - const ::google::protobuf::FileDescriptor* file = - ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( - "pulsar.proto"); - GOOGLE_CHECK(file != NULL); - Status_descriptor_ = file->message_type(0); - static const int Status_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Status, error_code_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Status, reason_), - }; - Status_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - Status_descriptor_, - Status::default_instance_, - Status_offsets_, - -1, - -1, - -1, - sizeof(Status), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Status, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Status, _is_default_instance_)); - SegmentRecord_descriptor_ = file->message_type(1); - static const int SegmentRecord_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SegmentRecord, seg_info_), - }; - SegmentRecord_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - SegmentRecord_descriptor_, - SegmentRecord::default_instance_, - SegmentRecord_offsets_, - -1, - -1, - -1, - sizeof(SegmentRecord), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SegmentRecord, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SegmentRecord, _is_default_instance_)); - VectorRowRecord_descriptor_ = file->message_type(2); - static const int VectorRowRecord_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRowRecord, float_data_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRowRecord, binary_data_), - }; - VectorRowRecord_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - VectorRowRecord_descriptor_, - VectorRowRecord::default_instance_, - VectorRowRecord_offsets_, - -1, - -1, - -1, - sizeof(VectorRowRecord), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRowRecord, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRowRecord, _is_default_instance_)); - AttrRecord_descriptor_ = file->message_type(3); - static const int AttrRecord_offsets_[4] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttrRecord, int32_value_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttrRecord, int64_value_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttrRecord, float_value_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttrRecord, double_value_), - }; - AttrRecord_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - AttrRecord_descriptor_, - AttrRecord::default_instance_, - AttrRecord_offsets_, - -1, - -1, - -1, - sizeof(AttrRecord), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttrRecord, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttrRecord, _is_default_instance_)); - VectorRecord_descriptor_ = file->message_type(4); - static const int VectorRecord_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRecord, records_), - }; - VectorRecord_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - VectorRecord_descriptor_, - VectorRecord::default_instance_, - VectorRecord_offsets_, - -1, - -1, - -1, - sizeof(VectorRecord), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRecord, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorRecord, _is_default_instance_)); - VectorParam_descriptor_ = file->message_type(5); - static const int VectorParam_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorParam, json_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorParam, row_record_), - }; - VectorParam_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - VectorParam_descriptor_, - VectorParam::default_instance_, - VectorParam_offsets_, - -1, - -1, - -1, - sizeof(VectorParam), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorParam, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VectorParam, _is_default_instance_)); - FieldValue_descriptor_ = file->message_type(6); - static const int FieldValue_offsets_[4] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldValue, field_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldValue, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldValue, attr_record_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldValue, vector_record_), - }; - FieldValue_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - FieldValue_descriptor_, - FieldValue::default_instance_, - FieldValue_offsets_, - -1, - -1, - -1, - sizeof(FieldValue), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldValue, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldValue, _is_default_instance_)); - PulsarMessage_descriptor_ = file->message_type(7); - static const int PulsarMessage_offsets_[11] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, collection_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, fields_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, entity_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, partition_tag_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, vector_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, segments_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, timestamp_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, client_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, msg_type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, topic_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, partition_id_), - }; - PulsarMessage_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - PulsarMessage_descriptor_, - PulsarMessage::default_instance_, - PulsarMessage_offsets_, - -1, - -1, - -1, - sizeof(PulsarMessage), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PulsarMessage, _is_default_instance_)); - TestData_descriptor_ = file->message_type(8); - static const int TestData_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TestData, id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TestData, name_), - }; - TestData_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - TestData_descriptor_, - TestData::default_instance_, - TestData_offsets_, - -1, - -1, - -1, - sizeof(TestData), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TestData, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TestData, _is_default_instance_)); - InsertMsg_descriptor_ = file->message_type(9); - static const int InsertMsg_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertMsg, client_id_), - }; - InsertMsg_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - InsertMsg_descriptor_, - InsertMsg::default_instance_, - InsertMsg_offsets_, - -1, - -1, - -1, - sizeof(InsertMsg), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertMsg, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InsertMsg, _is_default_instance_)); - DeleteMsg_descriptor_ = file->message_type(10); - static const int DeleteMsg_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteMsg, client_id_), - }; - DeleteMsg_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - DeleteMsg_descriptor_, - DeleteMsg::default_instance_, - DeleteMsg_offsets_, - -1, - -1, - -1, - sizeof(DeleteMsg), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteMsg, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteMsg, _is_default_instance_)); - SearchMsg_descriptor_ = file->message_type(11); - static const int SearchMsg_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchMsg, client_id_), - }; - SearchMsg_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - SearchMsg_descriptor_, - SearchMsg::default_instance_, - SearchMsg_offsets_, - -1, - -1, - -1, - sizeof(SearchMsg), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchMsg, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchMsg, _is_default_instance_)); - SearchResultMsg_descriptor_ = file->message_type(12); - static const int SearchResultMsg_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchResultMsg, client_id_), - }; - SearchResultMsg_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - SearchResultMsg_descriptor_, - SearchResultMsg::default_instance_, - SearchResultMsg_offsets_, - -1, - -1, - -1, - sizeof(SearchResultMsg), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchResultMsg, _internal_metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchResultMsg, _is_default_instance_)); - ErrorCode_descriptor_ = file->enum_type(0); - DataType_descriptor_ = file->enum_type(1); - OpType_descriptor_ = file->enum_type(2); -} - -namespace { - -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); -inline void protobuf_AssignDescriptorsOnce() { - ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, - &protobuf_AssignDesc_pulsar_2eproto); -} - -void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; -void protobuf_RegisterTypes(const ::std::string&) { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - Status_descriptor_, &Status::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SegmentRecord_descriptor_, &SegmentRecord::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - VectorRowRecord_descriptor_, &VectorRowRecord::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AttrRecord_descriptor_, &AttrRecord::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - VectorRecord_descriptor_, &VectorRecord::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - VectorParam_descriptor_, &VectorParam::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - FieldValue_descriptor_, &FieldValue::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - PulsarMessage_descriptor_, &PulsarMessage::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - TestData_descriptor_, &TestData::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - InsertMsg_descriptor_, &InsertMsg::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - DeleteMsg_descriptor_, &DeleteMsg::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SearchMsg_descriptor_, &SearchMsg::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SearchResultMsg_descriptor_, &SearchResultMsg::default_instance()); -} - -} // namespace - -void protobuf_ShutdownFile_pulsar_2eproto() { - delete Status::default_instance_; - delete Status_reflection_; - delete SegmentRecord::default_instance_; - delete SegmentRecord_reflection_; - delete VectorRowRecord::default_instance_; - delete VectorRowRecord_reflection_; - delete AttrRecord::default_instance_; - delete AttrRecord_reflection_; - delete VectorRecord::default_instance_; - delete VectorRecord_reflection_; - delete VectorParam::default_instance_; - delete VectorParam_reflection_; - delete FieldValue::default_instance_; - delete FieldValue_reflection_; - delete PulsarMessage::default_instance_; - delete PulsarMessage_reflection_; - delete TestData::default_instance_; - delete TestData_reflection_; - delete InsertMsg::default_instance_; - delete InsertMsg_reflection_; - delete DeleteMsg::default_instance_; - delete DeleteMsg_reflection_; - delete SearchMsg::default_instance_; - delete SearchMsg_reflection_; - delete SearchResultMsg::default_instance_; - delete SearchResultMsg_reflection_; -} - -void protobuf_AddDesc_pulsar_2eproto() GOOGLE_ATTRIBUTE_COLD; -void protobuf_AddDesc_pulsar_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; - GOOGLE_PROTOBUF_VERIFY_VERSION; - - ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\014pulsar.proto\022\002pb\";\n\006Status\022!\n\nerror_co" - "de\030\001 \001(\0162\r.pb.ErrorCode\022\016\n\006reason\030\002 \001(\t\"" - "!\n\rSegmentRecord\022\020\n\010seg_info\030\001 \003(\t\":\n\017Ve" - "ctorRowRecord\022\022\n\nfloat_data\030\001 \003(\002\022\023\n\013bin" - "ary_data\030\002 \001(\014\"a\n\nAttrRecord\022\023\n\013int32_va" - "lue\030\001 \003(\005\022\023\n\013int64_value\030\002 \003(\003\022\023\n\013float_" - "value\030\003 \003(\002\022\024\n\014double_value\030\004 \003(\001\"4\n\014Vec" - "torRecord\022$\n\007records\030\001 \003(\0132\023.pb.VectorRo" - "wRecord\"A\n\013VectorParam\022\014\n\004json\030\001 \001(\t\022$\n\n" - "row_record\030\002 \001(\0132\020.pb.VectorRecord\"\212\001\n\nF" - "ieldValue\022\022\n\nfield_name\030\001 \001(\t\022\032\n\004type\030\002 " - "\001(\0162\014.pb.DataType\022#\n\013attr_record\030\003 \001(\0132\016" - ".pb.AttrRecord\022\'\n\rvector_record\030\004 \001(\0132\020." - "pb.VectorRecord\"\254\002\n\rPulsarMessage\022\027\n\017col" - "lection_name\030\001 \001(\t\022\036\n\006fields\030\002 \003(\0132\016.pb." - "FieldValue\022\021\n\tentity_id\030\003 \001(\003\022\025\n\rpartiti" - "on_tag\030\004 \001(\t\022%\n\014vector_param\030\005 \001(\0132\017.pb." - "VectorParam\022#\n\010segments\030\006 \001(\0132\021.pb.Segme" - "ntRecord\022\021\n\ttimestamp\030\007 \001(\003\022\021\n\tclient_id" - "\030\010 \001(\003\022\034\n\010msg_type\030\t \001(\0162\n.pb.OpType\022\022\n\n" - "topic_name\030\n \001(\t\022\024\n\014partition_id\030\013 \001(\003\"$" - "\n\010TestData\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\"\036\n\t" - "InsertMsg\022\021\n\tclient_id\030\001 \001(\003\"\036\n\tDeleteMs" - "g\022\021\n\tclient_id\030\001 \001(\003\"\036\n\tSearchMsg\022\021\n\tcli" - "ent_id\030\001 \001(\003\"$\n\017SearchResultMsg\022\021\n\tclien" - "t_id\030\001 \001(\003*\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*W\n\006OpType\022\n\n" - "\006Insert\020\000\022\n\n\006Delete\020\001\022\n\n\006Search\020\002\022\014\n\010Tim" - "eSync\020\003\022\013\n\007Key2Seg\020\004\022\016\n\nStatistics\020\005b\006pr" - "oto3", 1804); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( - "pulsar.proto", &protobuf_RegisterTypes); - Status::default_instance_ = new Status(); - SegmentRecord::default_instance_ = new SegmentRecord(); - VectorRowRecord::default_instance_ = new VectorRowRecord(); - AttrRecord::default_instance_ = new AttrRecord(); - VectorRecord::default_instance_ = new VectorRecord(); - VectorParam::default_instance_ = new VectorParam(); - FieldValue::default_instance_ = new FieldValue(); - PulsarMessage::default_instance_ = new PulsarMessage(); - TestData::default_instance_ = new TestData(); - InsertMsg::default_instance_ = new InsertMsg(); - DeleteMsg::default_instance_ = new DeleteMsg(); - SearchMsg::default_instance_ = new SearchMsg(); - SearchResultMsg::default_instance_ = new SearchResultMsg(); - Status::default_instance_->InitAsDefaultInstance(); - SegmentRecord::default_instance_->InitAsDefaultInstance(); - VectorRowRecord::default_instance_->InitAsDefaultInstance(); - AttrRecord::default_instance_->InitAsDefaultInstance(); - VectorRecord::default_instance_->InitAsDefaultInstance(); - VectorParam::default_instance_->InitAsDefaultInstance(); - FieldValue::default_instance_->InitAsDefaultInstance(); - PulsarMessage::default_instance_->InitAsDefaultInstance(); - TestData::default_instance_->InitAsDefaultInstance(); - InsertMsg::default_instance_->InitAsDefaultInstance(); - DeleteMsg::default_instance_->InitAsDefaultInstance(); - SearchMsg::default_instance_->InitAsDefaultInstance(); - SearchResultMsg::default_instance_->InitAsDefaultInstance(); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_pulsar_2eproto); -} - -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_pulsar_2eproto { - StaticDescriptorInitializer_pulsar_2eproto() { - protobuf_AddDesc_pulsar_2eproto(); - } -} static_descriptor_initializer_pulsar_2eproto_; -const ::google::protobuf::EnumDescriptor* ErrorCode_descriptor() { - protobuf_AssignDescriptorsOnce(); - return ErrorCode_descriptor_; -} -bool ErrorCode_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 23: - case 24: - return true; - default: - return false; - } -} - -const ::google::protobuf::EnumDescriptor* DataType_descriptor() { - protobuf_AssignDescriptorsOnce(); - return DataType_descriptor_; -} -bool DataType_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 10: - case 11: - case 20: - case 100: - case 101: - return true; - default: - return false; - } -} - -const ::google::protobuf::EnumDescriptor* OpType_descriptor() { - protobuf_AssignDescriptorsOnce(); - return OpType_descriptor_; -} -bool OpType_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - return true; - default: - return false; - } -} - - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Status::kErrorCodeFieldNumber; -const int Status::kReasonFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Status::Status() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.Status) -} - -void Status::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -Status::Status(const Status& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.Status) -} - -void Status::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - error_code_ = 0; - reason_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -Status::~Status() { - // @@protoc_insertion_point(destructor:pb.Status) - SharedDtor(); -} - -void Status::SharedDtor() { - reason_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void Status::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* Status::descriptor() { - protobuf_AssignDescriptorsOnce(); - return Status_descriptor_; -} - -const Status& Status::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -Status* Status::default_instance_ = NULL; - -Status* Status::New(::google::protobuf::Arena* arena) const { - Status* n = new Status; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void Status::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.Status) - error_code_ = 0; - reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -bool Status::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.Status) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .pb.ErrorCode error_code = 1; - case 1: { - if (tag == 8) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_error_code(static_cast< ::pb::ErrorCode >(value)); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_reason; - break; - } - - // optional string reason = 2; - case 2: { - if (tag == 18) { - parse_reason: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_reason())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), this->reason().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.Status.reason")); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.Status) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.Status) - return false; -#undef DO_ -} - -void Status::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.Status) - // optional .pb.ErrorCode error_code = 1; - if (this->error_code() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->error_code(), output); - } - - // optional string reason = 2; - if (this->reason().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), this->reason().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.Status.reason"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->reason(), output); - } - - // @@protoc_insertion_point(serialize_end:pb.Status) -} - -::google::protobuf::uint8* Status::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.Status) - // optional .pb.ErrorCode error_code = 1; - if (this->error_code() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->error_code(), target); - } - - // optional string reason = 2; - if (this->reason().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), this->reason().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.Status.reason"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->reason(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.Status) - return target; -} - -int Status::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.Status) - int total_size = 0; - - // optional .pb.ErrorCode error_code = 1; - if (this->error_code() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->error_code()); - } - - // optional string reason = 2; - if (this->reason().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->reason()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void Status::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.Status) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const Status* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Status) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Status) - MergeFrom(*source); - } -} - -void Status::MergeFrom(const Status& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.Status) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.error_code() != 0) { - set_error_code(from.error_code()); - } - if (from.reason().size() > 0) { - - reason_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_); - } -} - -void Status::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.Status) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Status::CopyFrom(const Status& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.Status) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Status::IsInitialized() const { - - return true; -} - -void Status::Swap(Status* other) { - if (other == this) return; - InternalSwap(other); -} -void Status::InternalSwap(Status* other) { - std::swap(error_code_, other->error_code_); - reason_.Swap(&other->reason_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata Status::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = Status_descriptor_; - metadata.reflection = Status_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// Status - -// optional .pb.ErrorCode error_code = 1; -void Status::clear_error_code() { - error_code_ = 0; -} - ::pb::ErrorCode Status::error_code() const { - // @@protoc_insertion_point(field_get:pb.Status.error_code) - return static_cast< ::pb::ErrorCode >(error_code_); -} - void Status::set_error_code(::pb::ErrorCode value) { - - error_code_ = value; - // @@protoc_insertion_point(field_set:pb.Status.error_code) -} - -// optional string reason = 2; -void Status::clear_reason() { - reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& Status::reason() const { - // @@protoc_insertion_point(field_get:pb.Status.reason) - return reason_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void Status::set_reason(const ::std::string& value) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.Status.reason) -} - void Status::set_reason(const char* value) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.Status.reason) -} - void Status::set_reason(const char* value, size_t size) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.Status.reason) -} - ::std::string* Status::mutable_reason() { - - // @@protoc_insertion_point(field_mutable:pb.Status.reason) - return reason_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* Status::release_reason() { - // @@protoc_insertion_point(field_release:pb.Status.reason) - - return reason_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void Status::set_allocated_reason(::std::string* reason) { - if (reason != NULL) { - - } else { - - } - reason_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reason); - // @@protoc_insertion_point(field_set_allocated:pb.Status.reason) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SegmentRecord::kSegInfoFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SegmentRecord::SegmentRecord() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.SegmentRecord) -} - -void SegmentRecord::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -SegmentRecord::SegmentRecord(const SegmentRecord& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.SegmentRecord) -} - -void SegmentRecord::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; -} - -SegmentRecord::~SegmentRecord() { - // @@protoc_insertion_point(destructor:pb.SegmentRecord) - SharedDtor(); -} - -void SegmentRecord::SharedDtor() { - if (this != default_instance_) { - } -} - -void SegmentRecord::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* SegmentRecord::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SegmentRecord_descriptor_; -} - -const SegmentRecord& SegmentRecord::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -SegmentRecord* SegmentRecord::default_instance_ = NULL; - -SegmentRecord* SegmentRecord::New(::google::protobuf::Arena* arena) const { - SegmentRecord* n = new SegmentRecord; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void SegmentRecord::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.SegmentRecord) - seg_info_.Clear(); -} - -bool SegmentRecord::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.SegmentRecord) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated string seg_info = 1; - case 1: { - if (tag == 10) { - parse_seg_info: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_seg_info())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->seg_info(this->seg_info_size() - 1).data(), - this->seg_info(this->seg_info_size() - 1).length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.SegmentRecord.seg_info")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_seg_info; - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.SegmentRecord) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.SegmentRecord) - return false; -#undef DO_ -} - -void SegmentRecord::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.SegmentRecord) - // repeated string seg_info = 1; - for (int i = 0; i < this->seg_info_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->seg_info(i).data(), this->seg_info(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.SegmentRecord.seg_info"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->seg_info(i), output); - } - - // @@protoc_insertion_point(serialize_end:pb.SegmentRecord) -} - -::google::protobuf::uint8* SegmentRecord::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.SegmentRecord) - // repeated string seg_info = 1; - for (int i = 0; i < this->seg_info_size(); i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->seg_info(i).data(), this->seg_info(i).length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.SegmentRecord.seg_info"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(1, this->seg_info(i), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.SegmentRecord) - return target; -} - -int SegmentRecord::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.SegmentRecord) - int total_size = 0; - - // repeated string seg_info = 1; - total_size += 1 * this->seg_info_size(); - for (int i = 0; i < this->seg_info_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->seg_info(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SegmentRecord::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.SegmentRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const SegmentRecord* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.SegmentRecord) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.SegmentRecord) - MergeFrom(*source); - } -} - -void SegmentRecord::MergeFrom(const SegmentRecord& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.SegmentRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - seg_info_.MergeFrom(from.seg_info_); -} - -void SegmentRecord::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.SegmentRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SegmentRecord::CopyFrom(const SegmentRecord& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.SegmentRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SegmentRecord::IsInitialized() const { - - return true; -} - -void SegmentRecord::Swap(SegmentRecord* other) { - if (other == this) return; - InternalSwap(other); -} -void SegmentRecord::InternalSwap(SegmentRecord* other) { - seg_info_.UnsafeArenaSwap(&other->seg_info_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata SegmentRecord::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SegmentRecord_descriptor_; - metadata.reflection = SegmentRecord_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SegmentRecord - -// repeated string seg_info = 1; -int SegmentRecord::seg_info_size() const { - return seg_info_.size(); -} -void SegmentRecord::clear_seg_info() { - seg_info_.Clear(); -} - const ::std::string& SegmentRecord::seg_info(int index) const { - // @@protoc_insertion_point(field_get:pb.SegmentRecord.seg_info) - return seg_info_.Get(index); -} - ::std::string* SegmentRecord::mutable_seg_info(int index) { - // @@protoc_insertion_point(field_mutable:pb.SegmentRecord.seg_info) - return seg_info_.Mutable(index); -} - void SegmentRecord::set_seg_info(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:pb.SegmentRecord.seg_info) - seg_info_.Mutable(index)->assign(value); -} - void SegmentRecord::set_seg_info(int index, const char* value) { - seg_info_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:pb.SegmentRecord.seg_info) -} - void SegmentRecord::set_seg_info(int index, const char* value, size_t size) { - seg_info_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:pb.SegmentRecord.seg_info) -} - ::std::string* SegmentRecord::add_seg_info() { - // @@protoc_insertion_point(field_add_mutable:pb.SegmentRecord.seg_info) - return seg_info_.Add(); -} - void SegmentRecord::add_seg_info(const ::std::string& value) { - seg_info_.Add()->assign(value); - // @@protoc_insertion_point(field_add:pb.SegmentRecord.seg_info) -} - void SegmentRecord::add_seg_info(const char* value) { - seg_info_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:pb.SegmentRecord.seg_info) -} - void SegmentRecord::add_seg_info(const char* value, size_t size) { - seg_info_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:pb.SegmentRecord.seg_info) -} - const ::google::protobuf::RepeatedPtrField< ::std::string>& -SegmentRecord::seg_info() const { - // @@protoc_insertion_point(field_list:pb.SegmentRecord.seg_info) - return seg_info_; -} - ::google::protobuf::RepeatedPtrField< ::std::string>* -SegmentRecord::mutable_seg_info() { - // @@protoc_insertion_point(field_mutable_list:pb.SegmentRecord.seg_info) - return &seg_info_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VectorRowRecord::kFloatDataFieldNumber; -const int VectorRowRecord::kBinaryDataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -VectorRowRecord::VectorRowRecord() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.VectorRowRecord) -} - -void VectorRowRecord::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -VectorRowRecord::VectorRowRecord(const VectorRowRecord& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.VectorRowRecord) -} - -void VectorRowRecord::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - binary_data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -VectorRowRecord::~VectorRowRecord() { - // @@protoc_insertion_point(destructor:pb.VectorRowRecord) - SharedDtor(); -} - -void VectorRowRecord::SharedDtor() { - binary_data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void VectorRowRecord::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* VectorRowRecord::descriptor() { - protobuf_AssignDescriptorsOnce(); - return VectorRowRecord_descriptor_; -} - -const VectorRowRecord& VectorRowRecord::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -VectorRowRecord* VectorRowRecord::default_instance_ = NULL; - -VectorRowRecord* VectorRowRecord::New(::google::protobuf::Arena* arena) const { - VectorRowRecord* n = new VectorRowRecord; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void VectorRowRecord::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.VectorRowRecord) - binary_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - float_data_.Clear(); -} - -bool VectorRowRecord::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.VectorRowRecord) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated float float_data = 1; - case 1: { - if (tag == 10) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_float_data()))); - } else if (tag == 13) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 10, input, this->mutable_float_data()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_binary_data; - break; - } - - // optional bytes binary_data = 2; - case 2: { - if (tag == 18) { - parse_binary_data: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_binary_data())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.VectorRowRecord) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.VectorRowRecord) - return false; -#undef DO_ -} - -void VectorRowRecord::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.VectorRowRecord) - // repeated float float_data = 1; - if (this->float_data_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_float_data_cached_byte_size_); - } - for (int i = 0; i < this->float_data_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloatNoTag( - this->float_data(i), output); - } - - // optional bytes binary_data = 2; - if (this->binary_data().size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 2, this->binary_data(), output); - } - - // @@protoc_insertion_point(serialize_end:pb.VectorRowRecord) -} - -::google::protobuf::uint8* VectorRowRecord::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.VectorRowRecord) - // repeated float float_data = 1; - if (this->float_data_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 1, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _float_data_cached_byte_size_, target); - } - for (int i = 0; i < this->float_data_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatNoTagToArray(this->float_data(i), target); - } - - // optional bytes binary_data = 2; - if (this->binary_data().size() > 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 2, this->binary_data(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.VectorRowRecord) - return target; -} - -int VectorRowRecord::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.VectorRowRecord) - int total_size = 0; - - // optional bytes binary_data = 2; - if (this->binary_data().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->binary_data()); - } - - // repeated float float_data = 1; - { - int data_size = 0; - data_size = 4 * this->float_data_size(); - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _float_data_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void VectorRowRecord::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.VectorRowRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const VectorRowRecord* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.VectorRowRecord) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.VectorRowRecord) - MergeFrom(*source); - } -} - -void VectorRowRecord::MergeFrom(const VectorRowRecord& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.VectorRowRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - float_data_.MergeFrom(from.float_data_); - if (from.binary_data().size() > 0) { - - binary_data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.binary_data_); - } -} - -void VectorRowRecord::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.VectorRowRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VectorRowRecord::CopyFrom(const VectorRowRecord& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.VectorRowRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VectorRowRecord::IsInitialized() const { - - return true; -} - -void VectorRowRecord::Swap(VectorRowRecord* other) { - if (other == this) return; - InternalSwap(other); -} -void VectorRowRecord::InternalSwap(VectorRowRecord* other) { - float_data_.UnsafeArenaSwap(&other->float_data_); - binary_data_.Swap(&other->binary_data_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata VectorRowRecord::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = VectorRowRecord_descriptor_; - metadata.reflection = VectorRowRecord_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// VectorRowRecord - -// repeated float float_data = 1; -int VectorRowRecord::float_data_size() const { - return float_data_.size(); -} -void VectorRowRecord::clear_float_data() { - float_data_.Clear(); -} - float VectorRowRecord::float_data(int index) const { - // @@protoc_insertion_point(field_get:pb.VectorRowRecord.float_data) - return float_data_.Get(index); -} - void VectorRowRecord::set_float_data(int index, float value) { - float_data_.Set(index, value); - // @@protoc_insertion_point(field_set:pb.VectorRowRecord.float_data) -} - void VectorRowRecord::add_float_data(float value) { - float_data_.Add(value); - // @@protoc_insertion_point(field_add:pb.VectorRowRecord.float_data) -} - const ::google::protobuf::RepeatedField< float >& -VectorRowRecord::float_data() const { - // @@protoc_insertion_point(field_list:pb.VectorRowRecord.float_data) - return float_data_; -} - ::google::protobuf::RepeatedField< float >* -VectorRowRecord::mutable_float_data() { - // @@protoc_insertion_point(field_mutable_list:pb.VectorRowRecord.float_data) - return &float_data_; -} - -// optional bytes binary_data = 2; -void VectorRowRecord::clear_binary_data() { - binary_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& VectorRowRecord::binary_data() const { - // @@protoc_insertion_point(field_get:pb.VectorRowRecord.binary_data) - return binary_data_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void VectorRowRecord::set_binary_data(const ::std::string& value) { - - binary_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.VectorRowRecord.binary_data) -} - void VectorRowRecord::set_binary_data(const char* value) { - - binary_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.VectorRowRecord.binary_data) -} - void VectorRowRecord::set_binary_data(const void* value, size_t size) { - - binary_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.VectorRowRecord.binary_data) -} - ::std::string* VectorRowRecord::mutable_binary_data() { - - // @@protoc_insertion_point(field_mutable:pb.VectorRowRecord.binary_data) - return binary_data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* VectorRowRecord::release_binary_data() { - // @@protoc_insertion_point(field_release:pb.VectorRowRecord.binary_data) - - return binary_data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void VectorRowRecord::set_allocated_binary_data(::std::string* binary_data) { - if (binary_data != NULL) { - - } else { - - } - binary_data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), binary_data); - // @@protoc_insertion_point(field_set_allocated:pb.VectorRowRecord.binary_data) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AttrRecord::kInt32ValueFieldNumber; -const int AttrRecord::kInt64ValueFieldNumber; -const int AttrRecord::kFloatValueFieldNumber; -const int AttrRecord::kDoubleValueFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AttrRecord::AttrRecord() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.AttrRecord) -} - -void AttrRecord::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -AttrRecord::AttrRecord(const AttrRecord& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.AttrRecord) -} - -void AttrRecord::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; -} - -AttrRecord::~AttrRecord() { - // @@protoc_insertion_point(destructor:pb.AttrRecord) - SharedDtor(); -} - -void AttrRecord::SharedDtor() { - if (this != default_instance_) { - } -} - -void AttrRecord::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AttrRecord::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AttrRecord_descriptor_; -} - -const AttrRecord& AttrRecord::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -AttrRecord* AttrRecord::default_instance_ = NULL; - -AttrRecord* AttrRecord::New(::google::protobuf::Arena* arena) const { - AttrRecord* n = new AttrRecord; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void AttrRecord::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.AttrRecord) - int32_value_.Clear(); - int64_value_.Clear(); - float_value_.Clear(); - double_value_.Clear(); -} - -bool AttrRecord::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.AttrRecord) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated int32 int32_value = 1; - case 1: { - if (tag == 10) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, this->mutable_int32_value()))); - } else if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - 1, 10, input, this->mutable_int32_value()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_int64_value; - break; - } - - // repeated int64 int64_value = 2; - case 2: { - if (tag == 18) { - parse_int64_value: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, this->mutable_int64_value()))); - } else if (tag == 16) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - 1, 18, input, this->mutable_int64_value()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_float_value; - break; - } - - // repeated float float_value = 3; - case 3: { - if (tag == 26) { - parse_float_value: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_float_value()))); - } else if (tag == 29) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 26, input, this->mutable_float_value()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_double_value; - break; - } - - // repeated double double_value = 4; - case 4: { - if (tag == 34) { - parse_double_value: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, this->mutable_double_value()))); - } else if (tag == 33) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - 1, 34, input, this->mutable_double_value()))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.AttrRecord) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.AttrRecord) - return false; -#undef DO_ -} - -void AttrRecord::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.AttrRecord) - // repeated int32 int32_value = 1; - if (this->int32_value_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_int32_value_cached_byte_size_); - } - for (int i = 0; i < this->int32_value_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( - this->int32_value(i), output); - } - - // repeated int64 int64_value = 2; - if (this->int64_value_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_int64_value_cached_byte_size_); - } - for (int i = 0; i < this->int64_value_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag( - this->int64_value(i), output); - } - - // repeated float float_value = 3; - if (this->float_value_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_float_value_cached_byte_size_); - } - for (int i = 0; i < this->float_value_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloatNoTag( - this->float_value(i), output); - } - - // repeated double double_value = 4; - if (this->double_value_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_double_value_cached_byte_size_); - } - for (int i = 0; i < this->double_value_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteDoubleNoTag( - this->double_value(i), output); - } - - // @@protoc_insertion_point(serialize_end:pb.AttrRecord) -} - -::google::protobuf::uint8* AttrRecord::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.AttrRecord) - // repeated int32 int32_value = 1; - if (this->int32_value_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 1, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _int32_value_cached_byte_size_, target); - } - for (int i = 0; i < this->int32_value_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32NoTagToArray(this->int32_value(i), target); - } - - // repeated int64 int64_value = 2; - if (this->int64_value_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 2, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _int64_value_cached_byte_size_, target); - } - for (int i = 0; i < this->int64_value_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->int64_value(i), target); - } - - // repeated float float_value = 3; - if (this->float_value_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 3, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _float_value_cached_byte_size_, target); - } - for (int i = 0; i < this->float_value_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatNoTagToArray(this->float_value(i), target); - } - - // repeated double double_value = 4; - if (this->double_value_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 4, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _double_value_cached_byte_size_, target); - } - for (int i = 0; i < this->double_value_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->double_value(i), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.AttrRecord) - return target; -} - -int AttrRecord::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.AttrRecord) - int total_size = 0; - - // repeated int32 int32_value = 1; - { - int data_size = 0; - for (int i = 0; i < this->int32_value_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int32Size(this->int32_value(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _int32_value_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated int64 int64_value = 2; - { - int data_size = 0; - for (int i = 0; i < this->int64_value_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int64Size(this->int64_value(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _int64_value_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated float float_value = 3; - { - int data_size = 0; - data_size = 4 * this->float_value_size(); - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _float_value_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated double double_value = 4; - { - int data_size = 0; - data_size = 8 * this->double_value_size(); - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _double_value_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AttrRecord::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.AttrRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const AttrRecord* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.AttrRecord) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.AttrRecord) - MergeFrom(*source); - } -} - -void AttrRecord::MergeFrom(const AttrRecord& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.AttrRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - int32_value_.MergeFrom(from.int32_value_); - int64_value_.MergeFrom(from.int64_value_); - float_value_.MergeFrom(from.float_value_); - double_value_.MergeFrom(from.double_value_); -} - -void AttrRecord::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.AttrRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AttrRecord::CopyFrom(const AttrRecord& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.AttrRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AttrRecord::IsInitialized() const { - - return true; -} - -void AttrRecord::Swap(AttrRecord* other) { - if (other == this) return; - InternalSwap(other); -} -void AttrRecord::InternalSwap(AttrRecord* other) { - int32_value_.UnsafeArenaSwap(&other->int32_value_); - int64_value_.UnsafeArenaSwap(&other->int64_value_); - float_value_.UnsafeArenaSwap(&other->float_value_); - double_value_.UnsafeArenaSwap(&other->double_value_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata AttrRecord::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AttrRecord_descriptor_; - metadata.reflection = AttrRecord_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// AttrRecord - -// repeated int32 int32_value = 1; -int AttrRecord::int32_value_size() const { - return int32_value_.size(); -} -void AttrRecord::clear_int32_value() { - int32_value_.Clear(); -} - ::google::protobuf::int32 AttrRecord::int32_value(int index) const { - // @@protoc_insertion_point(field_get:pb.AttrRecord.int32_value) - return int32_value_.Get(index); -} - void AttrRecord::set_int32_value(int index, ::google::protobuf::int32 value) { - int32_value_.Set(index, value); - // @@protoc_insertion_point(field_set:pb.AttrRecord.int32_value) -} - void AttrRecord::add_int32_value(::google::protobuf::int32 value) { - int32_value_.Add(value); - // @@protoc_insertion_point(field_add:pb.AttrRecord.int32_value) -} - const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -AttrRecord::int32_value() const { - // @@protoc_insertion_point(field_list:pb.AttrRecord.int32_value) - return int32_value_; -} - ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -AttrRecord::mutable_int32_value() { - // @@protoc_insertion_point(field_mutable_list:pb.AttrRecord.int32_value) - return &int32_value_; -} - -// repeated int64 int64_value = 2; -int AttrRecord::int64_value_size() const { - return int64_value_.size(); -} -void AttrRecord::clear_int64_value() { - int64_value_.Clear(); -} - ::google::protobuf::int64 AttrRecord::int64_value(int index) const { - // @@protoc_insertion_point(field_get:pb.AttrRecord.int64_value) - return int64_value_.Get(index); -} - void AttrRecord::set_int64_value(int index, ::google::protobuf::int64 value) { - int64_value_.Set(index, value); - // @@protoc_insertion_point(field_set:pb.AttrRecord.int64_value) -} - void AttrRecord::add_int64_value(::google::protobuf::int64 value) { - int64_value_.Add(value); - // @@protoc_insertion_point(field_add:pb.AttrRecord.int64_value) -} - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -AttrRecord::int64_value() const { - // @@protoc_insertion_point(field_list:pb.AttrRecord.int64_value) - return int64_value_; -} - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -AttrRecord::mutable_int64_value() { - // @@protoc_insertion_point(field_mutable_list:pb.AttrRecord.int64_value) - return &int64_value_; -} - -// repeated float float_value = 3; -int AttrRecord::float_value_size() const { - return float_value_.size(); -} -void AttrRecord::clear_float_value() { - float_value_.Clear(); -} - float AttrRecord::float_value(int index) const { - // @@protoc_insertion_point(field_get:pb.AttrRecord.float_value) - return float_value_.Get(index); -} - void AttrRecord::set_float_value(int index, float value) { - float_value_.Set(index, value); - // @@protoc_insertion_point(field_set:pb.AttrRecord.float_value) -} - void AttrRecord::add_float_value(float value) { - float_value_.Add(value); - // @@protoc_insertion_point(field_add:pb.AttrRecord.float_value) -} - const ::google::protobuf::RepeatedField< float >& -AttrRecord::float_value() const { - // @@protoc_insertion_point(field_list:pb.AttrRecord.float_value) - return float_value_; -} - ::google::protobuf::RepeatedField< float >* -AttrRecord::mutable_float_value() { - // @@protoc_insertion_point(field_mutable_list:pb.AttrRecord.float_value) - return &float_value_; -} - -// repeated double double_value = 4; -int AttrRecord::double_value_size() const { - return double_value_.size(); -} -void AttrRecord::clear_double_value() { - double_value_.Clear(); -} - double AttrRecord::double_value(int index) const { - // @@protoc_insertion_point(field_get:pb.AttrRecord.double_value) - return double_value_.Get(index); -} - void AttrRecord::set_double_value(int index, double value) { - double_value_.Set(index, value); - // @@protoc_insertion_point(field_set:pb.AttrRecord.double_value) -} - void AttrRecord::add_double_value(double value) { - double_value_.Add(value); - // @@protoc_insertion_point(field_add:pb.AttrRecord.double_value) -} - const ::google::protobuf::RepeatedField< double >& -AttrRecord::double_value() const { - // @@protoc_insertion_point(field_list:pb.AttrRecord.double_value) - return double_value_; -} - ::google::protobuf::RepeatedField< double >* -AttrRecord::mutable_double_value() { - // @@protoc_insertion_point(field_mutable_list:pb.AttrRecord.double_value) - return &double_value_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VectorRecord::kRecordsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -VectorRecord::VectorRecord() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.VectorRecord) -} - -void VectorRecord::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -VectorRecord::VectorRecord(const VectorRecord& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.VectorRecord) -} - -void VectorRecord::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; -} - -VectorRecord::~VectorRecord() { - // @@protoc_insertion_point(destructor:pb.VectorRecord) - SharedDtor(); -} - -void VectorRecord::SharedDtor() { - if (this != default_instance_) { - } -} - -void VectorRecord::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* VectorRecord::descriptor() { - protobuf_AssignDescriptorsOnce(); - return VectorRecord_descriptor_; -} - -const VectorRecord& VectorRecord::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -VectorRecord* VectorRecord::default_instance_ = NULL; - -VectorRecord* VectorRecord::New(::google::protobuf::Arena* arena) const { - VectorRecord* n = new VectorRecord; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void VectorRecord::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.VectorRecord) - records_.Clear(); -} - -bool VectorRecord::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.VectorRecord) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .pb.VectorRowRecord records = 1; - case 1: { - if (tag == 10) { - DO_(input->IncrementRecursionDepth()); - parse_loop_records: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_records())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_loop_records; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.VectorRecord) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.VectorRecord) - return false; -#undef DO_ -} - -void VectorRecord::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.VectorRecord) - // repeated .pb.VectorRowRecord records = 1; - for (unsigned int i = 0, n = this->records_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->records(i), output); - } - - // @@protoc_insertion_point(serialize_end:pb.VectorRecord) -} - -::google::protobuf::uint8* VectorRecord::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.VectorRecord) - // repeated .pb.VectorRowRecord records = 1; - for (unsigned int i = 0, n = this->records_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, this->records(i), false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.VectorRecord) - return target; -} - -int VectorRecord::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.VectorRecord) - int total_size = 0; - - // repeated .pb.VectorRowRecord records = 1; - total_size += 1 * this->records_size(); - for (int i = 0; i < this->records_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->records(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void VectorRecord::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.VectorRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const VectorRecord* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.VectorRecord) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.VectorRecord) - MergeFrom(*source); - } -} - -void VectorRecord::MergeFrom(const VectorRecord& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.VectorRecord) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - records_.MergeFrom(from.records_); -} - -void VectorRecord::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.VectorRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VectorRecord::CopyFrom(const VectorRecord& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.VectorRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VectorRecord::IsInitialized() const { - - return true; -} - -void VectorRecord::Swap(VectorRecord* other) { - if (other == this) return; - InternalSwap(other); -} -void VectorRecord::InternalSwap(VectorRecord* other) { - records_.UnsafeArenaSwap(&other->records_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata VectorRecord::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = VectorRecord_descriptor_; - metadata.reflection = VectorRecord_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// VectorRecord - -// repeated .pb.VectorRowRecord records = 1; -int VectorRecord::records_size() const { - return records_.size(); -} -void VectorRecord::clear_records() { - records_.Clear(); -} -const ::pb::VectorRowRecord& VectorRecord::records(int index) const { - // @@protoc_insertion_point(field_get:pb.VectorRecord.records) - return records_.Get(index); -} -::pb::VectorRowRecord* VectorRecord::mutable_records(int index) { - // @@protoc_insertion_point(field_mutable:pb.VectorRecord.records) - return records_.Mutable(index); -} -::pb::VectorRowRecord* VectorRecord::add_records() { - // @@protoc_insertion_point(field_add:pb.VectorRecord.records) - return records_.Add(); -} -::google::protobuf::RepeatedPtrField< ::pb::VectorRowRecord >* -VectorRecord::mutable_records() { - // @@protoc_insertion_point(field_mutable_list:pb.VectorRecord.records) - return &records_; -} -const ::google::protobuf::RepeatedPtrField< ::pb::VectorRowRecord >& -VectorRecord::records() const { - // @@protoc_insertion_point(field_list:pb.VectorRecord.records) - return records_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VectorParam::kJsonFieldNumber; -const int VectorParam::kRowRecordFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -VectorParam::VectorParam() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.VectorParam) -} - -void VectorParam::InitAsDefaultInstance() { - _is_default_instance_ = true; - row_record_ = const_cast< ::pb::VectorRecord*>(&::pb::VectorRecord::default_instance()); -} - -VectorParam::VectorParam(const VectorParam& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.VectorParam) -} - -void VectorParam::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - json_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - row_record_ = NULL; -} - -VectorParam::~VectorParam() { - // @@protoc_insertion_point(destructor:pb.VectorParam) - SharedDtor(); -} - -void VectorParam::SharedDtor() { - json_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - delete row_record_; - } -} - -void VectorParam::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* VectorParam::descriptor() { - protobuf_AssignDescriptorsOnce(); - return VectorParam_descriptor_; -} - -const VectorParam& VectorParam::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -VectorParam* VectorParam::default_instance_ = NULL; - -VectorParam* VectorParam::New(::google::protobuf::Arena* arena) const { - VectorParam* n = new VectorParam; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void VectorParam::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.VectorParam) - json_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && row_record_ != NULL) delete row_record_; - row_record_ = NULL; -} - -bool VectorParam::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.VectorParam) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string json = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_json())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->json().data(), this->json().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.VectorParam.json")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_row_record; - break; - } - - // optional .pb.VectorRecord row_record = 2; - case 2: { - if (tag == 18) { - parse_row_record: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_row_record())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.VectorParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.VectorParam) - return false; -#undef DO_ -} - -void VectorParam::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.VectorParam) - // optional string json = 1; - if (this->json().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->json().data(), this->json().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.VectorParam.json"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->json(), output); - } - - // optional .pb.VectorRecord row_record = 2; - if (this->has_row_record()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *this->row_record_, output); - } - - // @@protoc_insertion_point(serialize_end:pb.VectorParam) -} - -::google::protobuf::uint8* VectorParam::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.VectorParam) - // optional string json = 1; - if (this->json().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->json().data(), this->json().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.VectorParam.json"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->json(), target); - } - - // optional .pb.VectorRecord row_record = 2; - if (this->has_row_record()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *this->row_record_, false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.VectorParam) - return target; -} - -int VectorParam::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.VectorParam) - int total_size = 0; - - // optional string json = 1; - if (this->json().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->json()); - } - - // optional .pb.VectorRecord row_record = 2; - if (this->has_row_record()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->row_record_); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void VectorParam::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.VectorParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const VectorParam* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.VectorParam) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.VectorParam) - MergeFrom(*source); - } -} - -void VectorParam::MergeFrom(const VectorParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.VectorParam) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.json().size() > 0) { - - json_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.json_); - } - if (from.has_row_record()) { - mutable_row_record()->::pb::VectorRecord::MergeFrom(from.row_record()); - } -} - -void VectorParam::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.VectorParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VectorParam::CopyFrom(const VectorParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.VectorParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VectorParam::IsInitialized() const { - - return true; -} - -void VectorParam::Swap(VectorParam* other) { - if (other == this) return; - InternalSwap(other); -} -void VectorParam::InternalSwap(VectorParam* other) { - json_.Swap(&other->json_); - std::swap(row_record_, other->row_record_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata VectorParam::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = VectorParam_descriptor_; - metadata.reflection = VectorParam_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// VectorParam - -// optional string json = 1; -void VectorParam::clear_json() { - json_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& VectorParam::json() const { - // @@protoc_insertion_point(field_get:pb.VectorParam.json) - return json_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void VectorParam::set_json(const ::std::string& value) { - - json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.VectorParam.json) -} - void VectorParam::set_json(const char* value) { - - json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.VectorParam.json) -} - void VectorParam::set_json(const char* value, size_t size) { - - json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.VectorParam.json) -} - ::std::string* VectorParam::mutable_json() { - - // @@protoc_insertion_point(field_mutable:pb.VectorParam.json) - return json_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* VectorParam::release_json() { - // @@protoc_insertion_point(field_release:pb.VectorParam.json) - - return json_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void VectorParam::set_allocated_json(::std::string* json) { - if (json != NULL) { - - } else { - - } - json_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json); - // @@protoc_insertion_point(field_set_allocated:pb.VectorParam.json) -} - -// optional .pb.VectorRecord row_record = 2; -bool VectorParam::has_row_record() const { - return !_is_default_instance_ && row_record_ != NULL; -} -void VectorParam::clear_row_record() { - if (GetArenaNoVirtual() == NULL && row_record_ != NULL) delete row_record_; - row_record_ = NULL; -} -const ::pb::VectorRecord& VectorParam::row_record() const { - // @@protoc_insertion_point(field_get:pb.VectorParam.row_record) - return row_record_ != NULL ? *row_record_ : *default_instance_->row_record_; -} -::pb::VectorRecord* VectorParam::mutable_row_record() { - - if (row_record_ == NULL) { - row_record_ = new ::pb::VectorRecord; - } - // @@protoc_insertion_point(field_mutable:pb.VectorParam.row_record) - return row_record_; -} -::pb::VectorRecord* VectorParam::release_row_record() { - // @@protoc_insertion_point(field_release:pb.VectorParam.row_record) - - ::pb::VectorRecord* temp = row_record_; - row_record_ = NULL; - return temp; -} -void VectorParam::set_allocated_row_record(::pb::VectorRecord* row_record) { - delete row_record_; - row_record_ = row_record; - if (row_record) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pb.VectorParam.row_record) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int FieldValue::kFieldNameFieldNumber; -const int FieldValue::kTypeFieldNumber; -const int FieldValue::kAttrRecordFieldNumber; -const int FieldValue::kVectorRecordFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -FieldValue::FieldValue() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.FieldValue) -} - -void FieldValue::InitAsDefaultInstance() { - _is_default_instance_ = true; - attr_record_ = const_cast< ::pb::AttrRecord*>(&::pb::AttrRecord::default_instance()); - vector_record_ = const_cast< ::pb::VectorRecord*>(&::pb::VectorRecord::default_instance()); -} - -FieldValue::FieldValue(const FieldValue& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.FieldValue) -} - -void FieldValue::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - field_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_ = 0; - attr_record_ = NULL; - vector_record_ = NULL; -} - -FieldValue::~FieldValue() { - // @@protoc_insertion_point(destructor:pb.FieldValue) - SharedDtor(); -} - -void FieldValue::SharedDtor() { - field_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - delete attr_record_; - delete vector_record_; - } -} - -void FieldValue::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* FieldValue::descriptor() { - protobuf_AssignDescriptorsOnce(); - return FieldValue_descriptor_; -} - -const FieldValue& FieldValue::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -FieldValue* FieldValue::default_instance_ = NULL; - -FieldValue* FieldValue::New(::google::protobuf::Arena* arena) const { - FieldValue* n = new FieldValue; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void FieldValue::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.FieldValue) - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_ = 0; - if (GetArenaNoVirtual() == NULL && attr_record_ != NULL) delete attr_record_; - attr_record_ = NULL; - if (GetArenaNoVirtual() == NULL && vector_record_ != NULL) delete vector_record_; - vector_record_ = NULL; -} - -bool FieldValue::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.FieldValue) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string field_name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_field_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.FieldValue.field_name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_type; - break; - } - - // optional .pb.DataType type = 2; - case 2: { - if (tag == 16) { - parse_type: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_type(static_cast< ::pb::DataType >(value)); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_attr_record; - break; - } - - // optional .pb.AttrRecord attr_record = 3; - case 3: { - if (tag == 26) { - parse_attr_record: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_attr_record())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_vector_record; - break; - } - - // optional .pb.VectorRecord vector_record = 4; - case 4: { - if (tag == 34) { - parse_vector_record: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_vector_record())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.FieldValue) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.FieldValue) - return false; -#undef DO_ -} - -void FieldValue::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.FieldValue) - // optional string field_name = 1; - if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.FieldValue.field_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->field_name(), output); - } - - // optional .pb.DataType type = 2; - if (this->type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->type(), output); - } - - // optional .pb.AttrRecord attr_record = 3; - if (this->has_attr_record()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, *this->attr_record_, output); - } - - // optional .pb.VectorRecord vector_record = 4; - if (this->has_vector_record()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, *this->vector_record_, output); - } - - // @@protoc_insertion_point(serialize_end:pb.FieldValue) -} - -::google::protobuf::uint8* FieldValue::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.FieldValue) - // optional string field_name = 1; - if (this->field_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->field_name().data(), this->field_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.FieldValue.field_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->field_name(), target); - } - - // optional .pb.DataType type = 2; - if (this->type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->type(), target); - } - - // optional .pb.AttrRecord attr_record = 3; - if (this->has_attr_record()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, *this->attr_record_, false, target); - } - - // optional .pb.VectorRecord vector_record = 4; - if (this->has_vector_record()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, *this->vector_record_, false, target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.FieldValue) - return target; -} - -int FieldValue::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.FieldValue) - int total_size = 0; - - // optional string field_name = 1; - if (this->field_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->field_name()); - } - - // optional .pb.DataType type = 2; - if (this->type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - // optional .pb.AttrRecord attr_record = 3; - if (this->has_attr_record()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->attr_record_); - } - - // optional .pb.VectorRecord vector_record = 4; - if (this->has_vector_record()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->vector_record_); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void FieldValue::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.FieldValue) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const FieldValue* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.FieldValue) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.FieldValue) - MergeFrom(*source); - } -} - -void FieldValue::MergeFrom(const FieldValue& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.FieldValue) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.field_name().size() > 0) { - - field_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.field_name_); - } - if (from.type() != 0) { - set_type(from.type()); - } - if (from.has_attr_record()) { - mutable_attr_record()->::pb::AttrRecord::MergeFrom(from.attr_record()); - } - if (from.has_vector_record()) { - mutable_vector_record()->::pb::VectorRecord::MergeFrom(from.vector_record()); - } -} - -void FieldValue::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.FieldValue) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FieldValue::CopyFrom(const FieldValue& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.FieldValue) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FieldValue::IsInitialized() const { - - return true; -} - -void FieldValue::Swap(FieldValue* other) { - if (other == this) return; - InternalSwap(other); -} -void FieldValue::InternalSwap(FieldValue* other) { - field_name_.Swap(&other->field_name_); - std::swap(type_, other->type_); - std::swap(attr_record_, other->attr_record_); - std::swap(vector_record_, other->vector_record_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata FieldValue::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = FieldValue_descriptor_; - metadata.reflection = FieldValue_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// FieldValue - -// optional string field_name = 1; -void FieldValue::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& FieldValue::field_name() const { - // @@protoc_insertion_point(field_get:pb.FieldValue.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void FieldValue::set_field_name(const ::std::string& value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.FieldValue.field_name) -} - void FieldValue::set_field_name(const char* value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.FieldValue.field_name) -} - void FieldValue::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.FieldValue.field_name) -} - ::std::string* FieldValue::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:pb.FieldValue.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* FieldValue::release_field_name() { - // @@protoc_insertion_point(field_release:pb.FieldValue.field_name) - - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void FieldValue::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:pb.FieldValue.field_name) -} - -// optional .pb.DataType type = 2; -void FieldValue::clear_type() { - type_ = 0; -} - ::pb::DataType FieldValue::type() const { - // @@protoc_insertion_point(field_get:pb.FieldValue.type) - return static_cast< ::pb::DataType >(type_); -} - void FieldValue::set_type(::pb::DataType value) { - - type_ = value; - // @@protoc_insertion_point(field_set:pb.FieldValue.type) -} - -// optional .pb.AttrRecord attr_record = 3; -bool FieldValue::has_attr_record() const { - return !_is_default_instance_ && attr_record_ != NULL; -} -void FieldValue::clear_attr_record() { - if (GetArenaNoVirtual() == NULL && attr_record_ != NULL) delete attr_record_; - attr_record_ = NULL; -} -const ::pb::AttrRecord& FieldValue::attr_record() const { - // @@protoc_insertion_point(field_get:pb.FieldValue.attr_record) - return attr_record_ != NULL ? *attr_record_ : *default_instance_->attr_record_; -} -::pb::AttrRecord* FieldValue::mutable_attr_record() { - - if (attr_record_ == NULL) { - attr_record_ = new ::pb::AttrRecord; - } - // @@protoc_insertion_point(field_mutable:pb.FieldValue.attr_record) - return attr_record_; -} -::pb::AttrRecord* FieldValue::release_attr_record() { - // @@protoc_insertion_point(field_release:pb.FieldValue.attr_record) - - ::pb::AttrRecord* temp = attr_record_; - attr_record_ = NULL; - return temp; -} -void FieldValue::set_allocated_attr_record(::pb::AttrRecord* attr_record) { - delete attr_record_; - attr_record_ = attr_record; - if (attr_record) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pb.FieldValue.attr_record) -} - -// optional .pb.VectorRecord vector_record = 4; -bool FieldValue::has_vector_record() const { - return !_is_default_instance_ && vector_record_ != NULL; -} -void FieldValue::clear_vector_record() { - if (GetArenaNoVirtual() == NULL && vector_record_ != NULL) delete vector_record_; - vector_record_ = NULL; -} -const ::pb::VectorRecord& FieldValue::vector_record() const { - // @@protoc_insertion_point(field_get:pb.FieldValue.vector_record) - return vector_record_ != NULL ? *vector_record_ : *default_instance_->vector_record_; -} -::pb::VectorRecord* FieldValue::mutable_vector_record() { - - if (vector_record_ == NULL) { - vector_record_ = new ::pb::VectorRecord; - } - // @@protoc_insertion_point(field_mutable:pb.FieldValue.vector_record) - return vector_record_; -} -::pb::VectorRecord* FieldValue::release_vector_record() { - // @@protoc_insertion_point(field_release:pb.FieldValue.vector_record) - - ::pb::VectorRecord* temp = vector_record_; - vector_record_ = NULL; - return temp; -} -void FieldValue::set_allocated_vector_record(::pb::VectorRecord* vector_record) { - delete vector_record_; - vector_record_ = vector_record; - if (vector_record) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pb.FieldValue.vector_record) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PulsarMessage::kCollectionNameFieldNumber; -const int PulsarMessage::kFieldsFieldNumber; -const int PulsarMessage::kEntityIdFieldNumber; -const int PulsarMessage::kPartitionTagFieldNumber; -const int PulsarMessage::kVectorParamFieldNumber; -const int PulsarMessage::kSegmentsFieldNumber; -const int PulsarMessage::kTimestampFieldNumber; -const int PulsarMessage::kClientIdFieldNumber; -const int PulsarMessage::kMsgTypeFieldNumber; -const int PulsarMessage::kTopicNameFieldNumber; -const int PulsarMessage::kPartitionIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PulsarMessage::PulsarMessage() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.PulsarMessage) -} - -void PulsarMessage::InitAsDefaultInstance() { - _is_default_instance_ = true; - vector_param_ = const_cast< ::pb::VectorParam*>(&::pb::VectorParam::default_instance()); - segments_ = const_cast< ::pb::SegmentRecord*>(&::pb::SegmentRecord::default_instance()); -} - -PulsarMessage::PulsarMessage(const PulsarMessage& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.PulsarMessage) -} - -void PulsarMessage::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - collection_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - entity_id_ = GOOGLE_LONGLONG(0); - partition_tag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - vector_param_ = NULL; - segments_ = NULL; - timestamp_ = GOOGLE_LONGLONG(0); - client_id_ = GOOGLE_LONGLONG(0); - msg_type_ = 0; - topic_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - partition_id_ = GOOGLE_LONGLONG(0); -} - -PulsarMessage::~PulsarMessage() { - // @@protoc_insertion_point(destructor:pb.PulsarMessage) - SharedDtor(); -} - -void PulsarMessage::SharedDtor() { - collection_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - partition_tag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - topic_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - delete vector_param_; - delete segments_; - } -} - -void PulsarMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* PulsarMessage::descriptor() { - protobuf_AssignDescriptorsOnce(); - return PulsarMessage_descriptor_; -} - -const PulsarMessage& PulsarMessage::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -PulsarMessage* PulsarMessage::default_instance_ = NULL; - -PulsarMessage* PulsarMessage::New(::google::protobuf::Arena* arena) const { - PulsarMessage* n = new PulsarMessage; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void PulsarMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.PulsarMessage) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(PulsarMessage, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&first, 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - ZR_(timestamp_, client_id_); - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - entity_id_ = GOOGLE_LONGLONG(0); - partition_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && vector_param_ != NULL) delete vector_param_; - vector_param_ = NULL; - if (GetArenaNoVirtual() == NULL && segments_ != NULL) delete segments_; - segments_ = NULL; - ZR_(partition_id_, msg_type_); - topic_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - -#undef ZR_HELPER_ -#undef ZR_ - - fields_.Clear(); -} - -bool PulsarMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.PulsarMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string collection_name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.PulsarMessage.collection_name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_fields; - break; - } - - // repeated .pb.FieldValue fields = 2; - case 2: { - if (tag == 18) { - parse_fields: - DO_(input->IncrementRecursionDepth()); - parse_loop_fields: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_fields())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_loop_fields; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectTag(24)) goto parse_entity_id; - break; - } - - // optional int64 entity_id = 3; - case 3: { - if (tag == 24) { - parse_entity_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &entity_id_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_partition_tag; - break; - } - - // optional string partition_tag = 4; - case 4: { - if (tag == 34) { - parse_partition_tag: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_partition_tag())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), this->partition_tag().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.PulsarMessage.partition_tag")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_vector_param; - break; - } - - // optional .pb.VectorParam vector_param = 5; - case 5: { - if (tag == 42) { - parse_vector_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_vector_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_segments; - break; - } - - // optional .pb.SegmentRecord segments = 6; - case 6: { - if (tag == 50) { - parse_segments: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_segments())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_timestamp; - break; - } - - // optional int64 timestamp = 7; - case 7: { - if (tag == 56) { - parse_timestamp: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, ×tamp_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(64)) goto parse_client_id; - break; - } - - // optional int64 client_id = 8; - case 8: { - if (tag == 64) { - parse_client_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &client_id_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(72)) goto parse_msg_type; - break; - } - - // optional .pb.OpType msg_type = 9; - case 9: { - if (tag == 72) { - parse_msg_type: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_msg_type(static_cast< ::pb::OpType >(value)); - } else { - goto handle_unusual; - } - if (input->ExpectTag(82)) goto parse_topic_name; - break; - } - - // optional string topic_name = 10; - case 10: { - if (tag == 82) { - parse_topic_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_topic_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->topic_name().data(), this->topic_name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.PulsarMessage.topic_name")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(88)) goto parse_partition_id; - break; - } - - // optional int64 partition_id = 11; - case 11: { - if (tag == 88) { - parse_partition_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &partition_id_))); - - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.PulsarMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.PulsarMessage) - return false; -#undef DO_ -} - -void PulsarMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.PulsarMessage) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.PulsarMessage.collection_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // repeated .pb.FieldValue fields = 2; - for (unsigned int i = 0, n = this->fields_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->fields(i), output); - } - - // optional int64 entity_id = 3; - if (this->entity_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->entity_id(), output); - } - - // optional string partition_tag = 4; - if (this->partition_tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), this->partition_tag().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.PulsarMessage.partition_tag"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->partition_tag(), output); - } - - // optional .pb.VectorParam vector_param = 5; - if (this->has_vector_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, *this->vector_param_, output); - } - - // optional .pb.SegmentRecord segments = 6; - if (this->has_segments()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, *this->segments_, output); - } - - // optional int64 timestamp = 7; - if (this->timestamp() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(7, this->timestamp(), output); - } - - // optional int64 client_id = 8; - if (this->client_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(8, this->client_id(), output); - } - - // optional .pb.OpType msg_type = 9; - if (this->msg_type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 9, this->msg_type(), output); - } - - // optional string topic_name = 10; - if (this->topic_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->topic_name().data(), this->topic_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.PulsarMessage.topic_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 10, this->topic_name(), output); - } - - // optional int64 partition_id = 11; - if (this->partition_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(11, this->partition_id(), output); - } - - // @@protoc_insertion_point(serialize_end:pb.PulsarMessage) -} - -::google::protobuf::uint8* PulsarMessage::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.PulsarMessage) - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), this->collection_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.PulsarMessage.collection_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // repeated .pb.FieldValue fields = 2; - for (unsigned int i = 0, n = this->fields_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, this->fields(i), false, target); - } - - // optional int64 entity_id = 3; - if (this->entity_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->entity_id(), target); - } - - // optional string partition_tag = 4; - if (this->partition_tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag().data(), this->partition_tag().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.PulsarMessage.partition_tag"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->partition_tag(), target); - } - - // optional .pb.VectorParam vector_param = 5; - if (this->has_vector_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 5, *this->vector_param_, false, target); - } - - // optional .pb.SegmentRecord segments = 6; - if (this->has_segments()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 6, *this->segments_, false, target); - } - - // optional int64 timestamp = 7; - if (this->timestamp() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(7, this->timestamp(), target); - } - - // optional int64 client_id = 8; - if (this->client_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(8, this->client_id(), target); - } - - // optional .pb.OpType msg_type = 9; - if (this->msg_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 9, this->msg_type(), target); - } - - // optional string topic_name = 10; - if (this->topic_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->topic_name().data(), this->topic_name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.PulsarMessage.topic_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 10, this->topic_name(), target); - } - - // optional int64 partition_id = 11; - if (this->partition_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(11, this->partition_id(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.PulsarMessage) - return target; -} - -int PulsarMessage::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.PulsarMessage) - int total_size = 0; - - // optional string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // optional int64 entity_id = 3; - if (this->entity_id() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->entity_id()); - } - - // optional string partition_tag = 4; - if (this->partition_tag().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->partition_tag()); - } - - // optional .pb.VectorParam vector_param = 5; - if (this->has_vector_param()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->vector_param_); - } - - // optional .pb.SegmentRecord segments = 6; - if (this->has_segments()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->segments_); - } - - // optional int64 timestamp = 7; - if (this->timestamp() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->timestamp()); - } - - // optional int64 client_id = 8; - if (this->client_id() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->client_id()); - } - - // optional .pb.OpType msg_type = 9; - if (this->msg_type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->msg_type()); - } - - // optional string topic_name = 10; - if (this->topic_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->topic_name()); - } - - // optional int64 partition_id = 11; - if (this->partition_id() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->partition_id()); - } - - // repeated .pb.FieldValue fields = 2; - total_size += 1 * this->fields_size(); - for (int i = 0; i < this->fields_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->fields(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void PulsarMessage::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.PulsarMessage) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const PulsarMessage* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.PulsarMessage) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.PulsarMessage) - MergeFrom(*source); - } -} - -void PulsarMessage::MergeFrom(const PulsarMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.PulsarMessage) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - fields_.MergeFrom(from.fields_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.entity_id() != 0) { - set_entity_id(from.entity_id()); - } - if (from.partition_tag().size() > 0) { - - partition_tag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); - } - if (from.has_vector_param()) { - mutable_vector_param()->::pb::VectorParam::MergeFrom(from.vector_param()); - } - if (from.has_segments()) { - mutable_segments()->::pb::SegmentRecord::MergeFrom(from.segments()); - } - if (from.timestamp() != 0) { - set_timestamp(from.timestamp()); - } - if (from.client_id() != 0) { - set_client_id(from.client_id()); - } - if (from.msg_type() != 0) { - set_msg_type(from.msg_type()); - } - if (from.topic_name().size() > 0) { - - topic_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.topic_name_); - } - if (from.partition_id() != 0) { - set_partition_id(from.partition_id()); - } -} - -void PulsarMessage::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.PulsarMessage) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PulsarMessage::CopyFrom(const PulsarMessage& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.PulsarMessage) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PulsarMessage::IsInitialized() const { - - return true; -} - -void PulsarMessage::Swap(PulsarMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void PulsarMessage::InternalSwap(PulsarMessage* other) { - collection_name_.Swap(&other->collection_name_); - fields_.UnsafeArenaSwap(&other->fields_); - std::swap(entity_id_, other->entity_id_); - partition_tag_.Swap(&other->partition_tag_); - std::swap(vector_param_, other->vector_param_); - std::swap(segments_, other->segments_); - std::swap(timestamp_, other->timestamp_); - std::swap(client_id_, other->client_id_); - std::swap(msg_type_, other->msg_type_); - topic_name_.Swap(&other->topic_name_); - std::swap(partition_id_, other->partition_id_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata PulsarMessage::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = PulsarMessage_descriptor_; - metadata.reflection = PulsarMessage_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// PulsarMessage - -// optional string collection_name = 1; -void PulsarMessage::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& PulsarMessage::collection_name() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void PulsarMessage::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.PulsarMessage.collection_name) -} - void PulsarMessage::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.PulsarMessage.collection_name) -} - void PulsarMessage::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.PulsarMessage.collection_name) -} - ::std::string* PulsarMessage::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* PulsarMessage::release_collection_name() { - // @@protoc_insertion_point(field_release:pb.PulsarMessage.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void PulsarMessage::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:pb.PulsarMessage.collection_name) -} - -// repeated .pb.FieldValue fields = 2; -int PulsarMessage::fields_size() const { - return fields_.size(); -} -void PulsarMessage::clear_fields() { - fields_.Clear(); -} -const ::pb::FieldValue& PulsarMessage::fields(int index) const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.fields) - return fields_.Get(index); -} -::pb::FieldValue* PulsarMessage::mutable_fields(int index) { - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.fields) - return fields_.Mutable(index); -} -::pb::FieldValue* PulsarMessage::add_fields() { - // @@protoc_insertion_point(field_add:pb.PulsarMessage.fields) - return fields_.Add(); -} -::google::protobuf::RepeatedPtrField< ::pb::FieldValue >* -PulsarMessage::mutable_fields() { - // @@protoc_insertion_point(field_mutable_list:pb.PulsarMessage.fields) - return &fields_; -} -const ::google::protobuf::RepeatedPtrField< ::pb::FieldValue >& -PulsarMessage::fields() const { - // @@protoc_insertion_point(field_list:pb.PulsarMessage.fields) - return fields_; -} - -// optional int64 entity_id = 3; -void PulsarMessage::clear_entity_id() { - entity_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 PulsarMessage::entity_id() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.entity_id) - return entity_id_; -} - void PulsarMessage::set_entity_id(::google::protobuf::int64 value) { - - entity_id_ = value; - // @@protoc_insertion_point(field_set:pb.PulsarMessage.entity_id) -} - -// optional string partition_tag = 4; -void PulsarMessage::clear_partition_tag() { - partition_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& PulsarMessage::partition_tag() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.partition_tag) - return partition_tag_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void PulsarMessage::set_partition_tag(const ::std::string& value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.PulsarMessage.partition_tag) -} - void PulsarMessage::set_partition_tag(const char* value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.PulsarMessage.partition_tag) -} - void PulsarMessage::set_partition_tag(const char* value, size_t size) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.PulsarMessage.partition_tag) -} - ::std::string* PulsarMessage::mutable_partition_tag() { - - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.partition_tag) - return partition_tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* PulsarMessage::release_partition_tag() { - // @@protoc_insertion_point(field_release:pb.PulsarMessage.partition_tag) - - return partition_tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void PulsarMessage::set_allocated_partition_tag(::std::string* partition_tag) { - if (partition_tag != NULL) { - - } else { - - } - partition_tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), partition_tag); - // @@protoc_insertion_point(field_set_allocated:pb.PulsarMessage.partition_tag) -} - -// optional .pb.VectorParam vector_param = 5; -bool PulsarMessage::has_vector_param() const { - return !_is_default_instance_ && vector_param_ != NULL; -} -void PulsarMessage::clear_vector_param() { - if (GetArenaNoVirtual() == NULL && vector_param_ != NULL) delete vector_param_; - vector_param_ = NULL; -} -const ::pb::VectorParam& PulsarMessage::vector_param() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.vector_param) - return vector_param_ != NULL ? *vector_param_ : *default_instance_->vector_param_; -} -::pb::VectorParam* PulsarMessage::mutable_vector_param() { - - if (vector_param_ == NULL) { - vector_param_ = new ::pb::VectorParam; - } - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.vector_param) - return vector_param_; -} -::pb::VectorParam* PulsarMessage::release_vector_param() { - // @@protoc_insertion_point(field_release:pb.PulsarMessage.vector_param) - - ::pb::VectorParam* temp = vector_param_; - vector_param_ = NULL; - return temp; -} -void PulsarMessage::set_allocated_vector_param(::pb::VectorParam* vector_param) { - delete vector_param_; - vector_param_ = vector_param; - if (vector_param) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pb.PulsarMessage.vector_param) -} - -// optional .pb.SegmentRecord segments = 6; -bool PulsarMessage::has_segments() const { - return !_is_default_instance_ && segments_ != NULL; -} -void PulsarMessage::clear_segments() { - if (GetArenaNoVirtual() == NULL && segments_ != NULL) delete segments_; - segments_ = NULL; -} -const ::pb::SegmentRecord& PulsarMessage::segments() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.segments) - return segments_ != NULL ? *segments_ : *default_instance_->segments_; -} -::pb::SegmentRecord* PulsarMessage::mutable_segments() { - - if (segments_ == NULL) { - segments_ = new ::pb::SegmentRecord; - } - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.segments) - return segments_; -} -::pb::SegmentRecord* PulsarMessage::release_segments() { - // @@protoc_insertion_point(field_release:pb.PulsarMessage.segments) - - ::pb::SegmentRecord* temp = segments_; - segments_ = NULL; - return temp; -} -void PulsarMessage::set_allocated_segments(::pb::SegmentRecord* segments) { - delete segments_; - segments_ = segments; - if (segments) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pb.PulsarMessage.segments) -} - -// optional int64 timestamp = 7; -void PulsarMessage::clear_timestamp() { - timestamp_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 PulsarMessage::timestamp() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.timestamp) - return timestamp_; -} - void PulsarMessage::set_timestamp(::google::protobuf::int64 value) { - - timestamp_ = value; - // @@protoc_insertion_point(field_set:pb.PulsarMessage.timestamp) -} - -// optional int64 client_id = 8; -void PulsarMessage::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 PulsarMessage::client_id() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.client_id) - return client_id_; -} - void PulsarMessage::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:pb.PulsarMessage.client_id) -} - -// optional .pb.OpType msg_type = 9; -void PulsarMessage::clear_msg_type() { - msg_type_ = 0; -} - ::pb::OpType PulsarMessage::msg_type() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.msg_type) - return static_cast< ::pb::OpType >(msg_type_); -} - void PulsarMessage::set_msg_type(::pb::OpType value) { - - msg_type_ = value; - // @@protoc_insertion_point(field_set:pb.PulsarMessage.msg_type) -} - -// optional string topic_name = 10; -void PulsarMessage::clear_topic_name() { - topic_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& PulsarMessage::topic_name() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.topic_name) - return topic_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void PulsarMessage::set_topic_name(const ::std::string& value) { - - topic_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.PulsarMessage.topic_name) -} - void PulsarMessage::set_topic_name(const char* value) { - - topic_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.PulsarMessage.topic_name) -} - void PulsarMessage::set_topic_name(const char* value, size_t size) { - - topic_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.PulsarMessage.topic_name) -} - ::std::string* PulsarMessage::mutable_topic_name() { - - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.topic_name) - return topic_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* PulsarMessage::release_topic_name() { - // @@protoc_insertion_point(field_release:pb.PulsarMessage.topic_name) - - return topic_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void PulsarMessage::set_allocated_topic_name(::std::string* topic_name) { - if (topic_name != NULL) { - - } else { - - } - topic_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), topic_name); - // @@protoc_insertion_point(field_set_allocated:pb.PulsarMessage.topic_name) -} - -// optional int64 partition_id = 11; -void PulsarMessage::clear_partition_id() { - partition_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 PulsarMessage::partition_id() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.partition_id) - return partition_id_; -} - void PulsarMessage::set_partition_id(::google::protobuf::int64 value) { - - partition_id_ = value; - // @@protoc_insertion_point(field_set:pb.PulsarMessage.partition_id) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TestData::kIdFieldNumber; -const int TestData::kNameFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TestData::TestData() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.TestData) -} - -void TestData::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -TestData::TestData(const TestData& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.TestData) -} - -void TestData::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -TestData::~TestData() { - // @@protoc_insertion_point(destructor:pb.TestData) - SharedDtor(); -} - -void TestData::SharedDtor() { - id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != default_instance_) { - } -} - -void TestData::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* TestData::descriptor() { - protobuf_AssignDescriptorsOnce(); - return TestData_descriptor_; -} - -const TestData& TestData::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -TestData* TestData::default_instance_ = NULL; - -TestData* TestData::New(::google::protobuf::Arena* arena) const { - TestData* n = new TestData; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void TestData::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.TestData) - id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -bool TestData::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.TestData) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), this->id().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.TestData.id")); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_name; - break; - } - - // optional string name = 2; - case 2: { - if (tag == 18) { - parse_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.TestData.name")); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.TestData) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.TestData) - return false; -#undef DO_ -} - -void TestData::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.TestData) - // optional string id = 1; - if (this->id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), this->id().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.TestData.id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->id(), output); - } - - // optional string name = 2; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.TestData.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->name(), output); - } - - // @@protoc_insertion_point(serialize_end:pb.TestData) -} - -::google::protobuf::uint8* TestData::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.TestData) - // optional string id = 1; - if (this->id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), this->id().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.TestData.id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->id(), target); - } - - // optional string name = 2; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.TestData.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->name(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.TestData) - return target; -} - -int TestData::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.TestData) - int total_size = 0; - - // optional string id = 1; - if (this->id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->id()); - } - - // optional string name = 2; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void TestData::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.TestData) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const TestData* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.TestData) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.TestData) - MergeFrom(*source); - } -} - -void TestData::MergeFrom(const TestData& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.TestData) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.id().size() > 0) { - - id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); - } - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } -} - -void TestData::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.TestData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TestData::CopyFrom(const TestData& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.TestData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TestData::IsInitialized() const { - - return true; -} - -void TestData::Swap(TestData* other) { - if (other == this) return; - InternalSwap(other); -} -void TestData::InternalSwap(TestData* other) { - id_.Swap(&other->id_); - name_.Swap(&other->name_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata TestData::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = TestData_descriptor_; - metadata.reflection = TestData_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// TestData - -// optional string id = 1; -void TestData::clear_id() { - id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& TestData::id() const { - // @@protoc_insertion_point(field_get:pb.TestData.id) - return id_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void TestData::set_id(const ::std::string& value) { - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.TestData.id) -} - void TestData::set_id(const char* value) { - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.TestData.id) -} - void TestData::set_id(const char* value, size_t size) { - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.TestData.id) -} - ::std::string* TestData::mutable_id() { - - // @@protoc_insertion_point(field_mutable:pb.TestData.id) - return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* TestData::release_id() { - // @@protoc_insertion_point(field_release:pb.TestData.id) - - return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void TestData::set_allocated_id(::std::string* id) { - if (id != NULL) { - - } else { - - } - id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); - // @@protoc_insertion_point(field_set_allocated:pb.TestData.id) -} - -// optional string name = 2; -void TestData::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - const ::std::string& TestData::name() const { - // @@protoc_insertion_point(field_get:pb.TestData.name) - return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void TestData::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.TestData.name) -} - void TestData::set_name(const char* value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.TestData.name) -} - void TestData::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.TestData.name) -} - ::std::string* TestData::mutable_name() { - - // @@protoc_insertion_point(field_mutable:pb.TestData.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - ::std::string* TestData::release_name() { - // @@protoc_insertion_point(field_release:pb.TestData.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - void TestData::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:pb.TestData.name) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int InsertMsg::kClientIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -InsertMsg::InsertMsg() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.InsertMsg) -} - -void InsertMsg::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -InsertMsg::InsertMsg(const InsertMsg& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.InsertMsg) -} - -void InsertMsg::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - client_id_ = GOOGLE_LONGLONG(0); -} - -InsertMsg::~InsertMsg() { - // @@protoc_insertion_point(destructor:pb.InsertMsg) - SharedDtor(); -} - -void InsertMsg::SharedDtor() { - if (this != default_instance_) { - } -} - -void InsertMsg::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* InsertMsg::descriptor() { - protobuf_AssignDescriptorsOnce(); - return InsertMsg_descriptor_; -} - -const InsertMsg& InsertMsg::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -InsertMsg* InsertMsg::default_instance_ = NULL; - -InsertMsg* InsertMsg::New(::google::protobuf::Arena* arena) const { - InsertMsg* n = new InsertMsg; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void InsertMsg::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.InsertMsg) - client_id_ = GOOGLE_LONGLONG(0); -} - -bool InsertMsg::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.InsertMsg) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int64 client_id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &client_id_))); - - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.InsertMsg) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.InsertMsg) - return false; -#undef DO_ -} - -void InsertMsg::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.InsertMsg) - // optional int64 client_id = 1; - if (this->client_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->client_id(), output); - } - - // @@protoc_insertion_point(serialize_end:pb.InsertMsg) -} - -::google::protobuf::uint8* InsertMsg::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.InsertMsg) - // optional int64 client_id = 1; - if (this->client_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->client_id(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.InsertMsg) - return target; -} - -int InsertMsg::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.InsertMsg) - int total_size = 0; - - // optional int64 client_id = 1; - if (this->client_id() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->client_id()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void InsertMsg::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.InsertMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const InsertMsg* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.InsertMsg) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.InsertMsg) - MergeFrom(*source); - } -} - -void InsertMsg::MergeFrom(const InsertMsg& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.InsertMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.client_id() != 0) { - set_client_id(from.client_id()); - } -} - -void InsertMsg::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.InsertMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void InsertMsg::CopyFrom(const InsertMsg& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.InsertMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool InsertMsg::IsInitialized() const { - - return true; -} - -void InsertMsg::Swap(InsertMsg* other) { - if (other == this) return; - InternalSwap(other); -} -void InsertMsg::InternalSwap(InsertMsg* other) { - std::swap(client_id_, other->client_id_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata InsertMsg::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = InsertMsg_descriptor_; - metadata.reflection = InsertMsg_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// InsertMsg - -// optional int64 client_id = 1; -void InsertMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 InsertMsg::client_id() const { - // @@protoc_insertion_point(field_get:pb.InsertMsg.client_id) - return client_id_; -} - void InsertMsg::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:pb.InsertMsg.client_id) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DeleteMsg::kClientIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DeleteMsg::DeleteMsg() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.DeleteMsg) -} - -void DeleteMsg::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -DeleteMsg::DeleteMsg(const DeleteMsg& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.DeleteMsg) -} - -void DeleteMsg::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - client_id_ = GOOGLE_LONGLONG(0); -} - -DeleteMsg::~DeleteMsg() { - // @@protoc_insertion_point(destructor:pb.DeleteMsg) - SharedDtor(); -} - -void DeleteMsg::SharedDtor() { - if (this != default_instance_) { - } -} - -void DeleteMsg::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* DeleteMsg::descriptor() { - protobuf_AssignDescriptorsOnce(); - return DeleteMsg_descriptor_; -} - -const DeleteMsg& DeleteMsg::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -DeleteMsg* DeleteMsg::default_instance_ = NULL; - -DeleteMsg* DeleteMsg::New(::google::protobuf::Arena* arena) const { - DeleteMsg* n = new DeleteMsg; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void DeleteMsg::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.DeleteMsg) - client_id_ = GOOGLE_LONGLONG(0); -} - -bool DeleteMsg::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.DeleteMsg) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int64 client_id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &client_id_))); - - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.DeleteMsg) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.DeleteMsg) - return false; -#undef DO_ -} - -void DeleteMsg::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.DeleteMsg) - // optional int64 client_id = 1; - if (this->client_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->client_id(), output); - } - - // @@protoc_insertion_point(serialize_end:pb.DeleteMsg) -} - -::google::protobuf::uint8* DeleteMsg::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.DeleteMsg) - // optional int64 client_id = 1; - if (this->client_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->client_id(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.DeleteMsg) - return target; -} - -int DeleteMsg::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.DeleteMsg) - int total_size = 0; - - // optional int64 client_id = 1; - if (this->client_id() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->client_id()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void DeleteMsg::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.DeleteMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const DeleteMsg* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.DeleteMsg) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.DeleteMsg) - MergeFrom(*source); - } -} - -void DeleteMsg::MergeFrom(const DeleteMsg& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.DeleteMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.client_id() != 0) { - set_client_id(from.client_id()); - } -} - -void DeleteMsg::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.DeleteMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DeleteMsg::CopyFrom(const DeleteMsg& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.DeleteMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DeleteMsg::IsInitialized() const { - - return true; -} - -void DeleteMsg::Swap(DeleteMsg* other) { - if (other == this) return; - InternalSwap(other); -} -void DeleteMsg::InternalSwap(DeleteMsg* other) { - std::swap(client_id_, other->client_id_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata DeleteMsg::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = DeleteMsg_descriptor_; - metadata.reflection = DeleteMsg_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// DeleteMsg - -// optional int64 client_id = 1; -void DeleteMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 DeleteMsg::client_id() const { - // @@protoc_insertion_point(field_get:pb.DeleteMsg.client_id) - return client_id_; -} - void DeleteMsg::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:pb.DeleteMsg.client_id) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SearchMsg::kClientIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SearchMsg::SearchMsg() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.SearchMsg) -} - -void SearchMsg::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -SearchMsg::SearchMsg(const SearchMsg& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.SearchMsg) -} - -void SearchMsg::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - client_id_ = GOOGLE_LONGLONG(0); -} - -SearchMsg::~SearchMsg() { - // @@protoc_insertion_point(destructor:pb.SearchMsg) - SharedDtor(); -} - -void SearchMsg::SharedDtor() { - if (this != default_instance_) { - } -} - -void SearchMsg::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* SearchMsg::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SearchMsg_descriptor_; -} - -const SearchMsg& SearchMsg::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -SearchMsg* SearchMsg::default_instance_ = NULL; - -SearchMsg* SearchMsg::New(::google::protobuf::Arena* arena) const { - SearchMsg* n = new SearchMsg; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void SearchMsg::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.SearchMsg) - client_id_ = GOOGLE_LONGLONG(0); -} - -bool SearchMsg::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.SearchMsg) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int64 client_id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &client_id_))); - - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.SearchMsg) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.SearchMsg) - return false; -#undef DO_ -} - -void SearchMsg::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.SearchMsg) - // optional int64 client_id = 1; - if (this->client_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->client_id(), output); - } - - // @@protoc_insertion_point(serialize_end:pb.SearchMsg) -} - -::google::protobuf::uint8* SearchMsg::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.SearchMsg) - // optional int64 client_id = 1; - if (this->client_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->client_id(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.SearchMsg) - return target; -} - -int SearchMsg::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.SearchMsg) - int total_size = 0; - - // optional int64 client_id = 1; - if (this->client_id() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->client_id()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SearchMsg::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.SearchMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const SearchMsg* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.SearchMsg) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.SearchMsg) - MergeFrom(*source); - } -} - -void SearchMsg::MergeFrom(const SearchMsg& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.SearchMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.client_id() != 0) { - set_client_id(from.client_id()); - } -} - -void SearchMsg::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.SearchMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SearchMsg::CopyFrom(const SearchMsg& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.SearchMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SearchMsg::IsInitialized() const { - - return true; -} - -void SearchMsg::Swap(SearchMsg* other) { - if (other == this) return; - InternalSwap(other); -} -void SearchMsg::InternalSwap(SearchMsg* other) { - std::swap(client_id_, other->client_id_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata SearchMsg::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SearchMsg_descriptor_; - metadata.reflection = SearchMsg_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SearchMsg - -// optional int64 client_id = 1; -void SearchMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 SearchMsg::client_id() const { - // @@protoc_insertion_point(field_get:pb.SearchMsg.client_id) - return client_id_; -} - void SearchMsg::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:pb.SearchMsg.client_id) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SearchResultMsg::kClientIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SearchResultMsg::SearchResultMsg() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:pb.SearchResultMsg) -} - -void SearchResultMsg::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -SearchResultMsg::SearchResultMsg(const SearchResultMsg& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:pb.SearchResultMsg) -} - -void SearchResultMsg::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - client_id_ = GOOGLE_LONGLONG(0); -} - -SearchResultMsg::~SearchResultMsg() { - // @@protoc_insertion_point(destructor:pb.SearchResultMsg) - SharedDtor(); -} - -void SearchResultMsg::SharedDtor() { - if (this != default_instance_) { - } -} - -void SearchResultMsg::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* SearchResultMsg::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SearchResultMsg_descriptor_; -} - -const SearchResultMsg& SearchResultMsg::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_pulsar_2eproto(); - return *default_instance_; -} - -SearchResultMsg* SearchResultMsg::default_instance_ = NULL; - -SearchResultMsg* SearchResultMsg::New(::google::protobuf::Arena* arena) const { - SearchResultMsg* n = new SearchResultMsg; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void SearchResultMsg::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.SearchResultMsg) - client_id_ = GOOGLE_LONGLONG(0); -} - -bool SearchResultMsg::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:pb.SearchResultMsg) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int64 client_id = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &client_id_))); - - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:pb.SearchResultMsg) - return true; -failure: - // @@protoc_insertion_point(parse_failure:pb.SearchResultMsg) - return false; -#undef DO_ -} - -void SearchResultMsg::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.SearchResultMsg) - // optional int64 client_id = 1; - if (this->client_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->client_id(), output); - } - - // @@protoc_insertion_point(serialize_end:pb.SearchResultMsg) -} - -::google::protobuf::uint8* SearchResultMsg::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.SearchResultMsg) - // optional int64 client_id = 1; - if (this->client_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->client_id(), target); - } - - // @@protoc_insertion_point(serialize_to_array_end:pb.SearchResultMsg) - return target; -} - -int SearchResultMsg::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:pb.SearchResultMsg) - int total_size = 0; - - // optional int64 client_id = 1; - if (this->client_id() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->client_id()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SearchResultMsg::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.SearchResultMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - const SearchResultMsg* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.SearchResultMsg) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.SearchResultMsg) - MergeFrom(*source); - } -} - -void SearchResultMsg::MergeFrom(const SearchResultMsg& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.SearchResultMsg) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); - } - if (from.client_id() != 0) { - set_client_id(from.client_id()); - } -} - -void SearchResultMsg::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.SearchResultMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SearchResultMsg::CopyFrom(const SearchResultMsg& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:pb.SearchResultMsg) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SearchResultMsg::IsInitialized() const { - - return true; -} - -void SearchResultMsg::Swap(SearchResultMsg* other) { - if (other == this) return; - InternalSwap(other); -} -void SearchResultMsg::InternalSwap(SearchResultMsg* other) { - std::swap(client_id_, other->client_id_); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata SearchResultMsg::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SearchResultMsg_descriptor_; - metadata.reflection = SearchResultMsg_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SearchResultMsg - -// optional int64 client_id = 1; -void SearchResultMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} - ::google::protobuf::int64 SearchResultMsg::client_id() const { - // @@protoc_insertion_point(field_get:pb.SearchResultMsg.client_id) - return client_id_; -} - void SearchResultMsg::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:pb.SearchResultMsg.client_id) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// @@protoc_insertion_point(namespace_scope) - -} // namespace pb - -// @@protoc_insertion_point(global_scope) diff --git a/pulsar/client-cpp/src/pb/pulsar.pb.h b/pulsar/client-cpp/src/pb/pulsar.pb.h deleted file mode 100644 index cd685332e0..0000000000 --- a/pulsar/client-cpp/src/pb/pulsar.pb.h +++ /dev/null @@ -1,2592 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: pulsar.proto - -#ifndef PROTOBUF_pulsar_2eproto__INCLUDED -#define PROTOBUF_pulsar_2eproto__INCLUDED - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3000000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) - -namespace pb { - -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_pulsar_2eproto(); -void protobuf_AssignDesc_pulsar_2eproto(); -void protobuf_ShutdownFile_pulsar_2eproto(); - -class AttrRecord; -class DeleteMsg; -class FieldValue; -class InsertMsg; -class PulsarMessage; -class SearchMsg; -class SearchResultMsg; -class SegmentRecord; -class Status; -class TestData; -class VectorParam; -class VectorRecord; -class VectorRowRecord; - -enum ErrorCode { - SUCCESS = 0, - UNEXPECTED_ERROR = 1, - CONNECT_FAILED = 2, - PERMISSION_DENIED = 3, - COLLECTION_NOT_EXISTS = 4, - ILLEGAL_ARGUMENT = 5, - ILLEGAL_DIMENSION = 7, - ILLEGAL_INDEX_TYPE = 8, - ILLEGAL_COLLECTION_NAME = 9, - ILLEGAL_TOPK = 10, - ILLEGAL_ROWRECORD = 11, - ILLEGAL_VECTOR_ID = 12, - ILLEGAL_SEARCH_RESULT = 13, - FILE_NOT_FOUND = 14, - META_FAILED = 15, - CACHE_FAILED = 16, - CANNOT_CREATE_FOLDER = 17, - CANNOT_CREATE_FILE = 18, - CANNOT_DELETE_FOLDER = 19, - CANNOT_DELETE_FILE = 20, - BUILD_INDEX_ERROR = 21, - ILLEGAL_NLIST = 22, - ILLEGAL_METRIC_TYPE = 23, - OUT_OF_MEMORY = 24, - ErrorCode_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - ErrorCode_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool ErrorCode_IsValid(int value); -const ErrorCode ErrorCode_MIN = SUCCESS; -const ErrorCode ErrorCode_MAX = OUT_OF_MEMORY; -const int ErrorCode_ARRAYSIZE = ErrorCode_MAX + 1; - -const ::google::protobuf::EnumDescriptor* ErrorCode_descriptor(); -inline const ::std::string& ErrorCode_Name(ErrorCode value) { - return ::google::protobuf::internal::NameOfEnum( - ErrorCode_descriptor(), value); -} -inline bool ErrorCode_Parse( - const ::std::string& name, ErrorCode* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ErrorCode_descriptor(), name, value); -} -enum DataType { - NONE = 0, - BOOL = 1, - INT8 = 2, - INT16 = 3, - INT32 = 4, - INT64 = 5, - FLOAT = 10, - DOUBLE = 11, - STRING = 20, - VECTOR_BINARY = 100, - VECTOR_FLOAT = 101, - DataType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - DataType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool DataType_IsValid(int value); -const DataType DataType_MIN = NONE; -const DataType DataType_MAX = VECTOR_FLOAT; -const int DataType_ARRAYSIZE = DataType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* DataType_descriptor(); -inline const ::std::string& DataType_Name(DataType value) { - return ::google::protobuf::internal::NameOfEnum( - DataType_descriptor(), value); -} -inline bool DataType_Parse( - const ::std::string& name, DataType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - DataType_descriptor(), name, value); -} -enum OpType { - Insert = 0, - Delete = 1, - Search = 2, - TimeSync = 3, - Key2Seg = 4, - Statistics = 5, - OpType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - OpType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool OpType_IsValid(int value); -const OpType OpType_MIN = Insert; -const OpType OpType_MAX = Statistics; -const int OpType_ARRAYSIZE = OpType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* OpType_descriptor(); -inline const ::std::string& OpType_Name(OpType value) { - return ::google::protobuf::internal::NameOfEnum( - OpType_descriptor(), value); -} -inline bool OpType_Parse( - const ::std::string& name, OpType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - OpType_descriptor(), name, value); -} -// =================================================================== - -class Status : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.Status) */ { - public: - Status(); - virtual ~Status(); - - Status(const Status& from); - - inline Status& operator=(const Status& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const Status& default_instance(); - - void Swap(Status* other); - - // implements Message ---------------------------------------------- - - inline Status* New() const { return New(NULL); } - - Status* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Status& from); - void MergeFrom(const Status& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Status* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .pb.ErrorCode error_code = 1; - void clear_error_code(); - static const int kErrorCodeFieldNumber = 1; - ::pb::ErrorCode error_code() const; - void set_error_code(::pb::ErrorCode value); - - // optional string reason = 2; - void clear_reason(); - static const int kReasonFieldNumber = 2; - const ::std::string& reason() const; - void set_reason(const ::std::string& value); - void set_reason(const char* value); - void set_reason(const char* value, size_t size); - ::std::string* mutable_reason(); - ::std::string* release_reason(); - void set_allocated_reason(::std::string* reason); - - // @@protoc_insertion_point(class_scope:pb.Status) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr reason_; - int error_code_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static Status* default_instance_; -}; -// ------------------------------------------------------------------- - -class SegmentRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.SegmentRecord) */ { - public: - SegmentRecord(); - virtual ~SegmentRecord(); - - SegmentRecord(const SegmentRecord& from); - - inline SegmentRecord& operator=(const SegmentRecord& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const SegmentRecord& default_instance(); - - void Swap(SegmentRecord* other); - - // implements Message ---------------------------------------------- - - inline SegmentRecord* New() const { return New(NULL); } - - SegmentRecord* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SegmentRecord& from); - void MergeFrom(const SegmentRecord& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SegmentRecord* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated string seg_info = 1; - int seg_info_size() const; - void clear_seg_info(); - static const int kSegInfoFieldNumber = 1; - const ::std::string& seg_info(int index) const; - ::std::string* mutable_seg_info(int index); - void set_seg_info(int index, const ::std::string& value); - void set_seg_info(int index, const char* value); - void set_seg_info(int index, const char* value, size_t size); - ::std::string* add_seg_info(); - void add_seg_info(const ::std::string& value); - void add_seg_info(const char* value); - void add_seg_info(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& seg_info() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_seg_info(); - - // @@protoc_insertion_point(class_scope:pb.SegmentRecord) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::RepeatedPtrField< ::std::string> seg_info_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static SegmentRecord* default_instance_; -}; -// ------------------------------------------------------------------- - -class VectorRowRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.VectorRowRecord) */ { - public: - VectorRowRecord(); - virtual ~VectorRowRecord(); - - VectorRowRecord(const VectorRowRecord& from); - - inline VectorRowRecord& operator=(const VectorRowRecord& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const VectorRowRecord& default_instance(); - - void Swap(VectorRowRecord* other); - - // implements Message ---------------------------------------------- - - inline VectorRowRecord* New() const { return New(NULL); } - - VectorRowRecord* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const VectorRowRecord& from); - void MergeFrom(const VectorRowRecord& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(VectorRowRecord* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated float float_data = 1; - int float_data_size() const; - void clear_float_data(); - static const int kFloatDataFieldNumber = 1; - float float_data(int index) const; - void set_float_data(int index, float value); - void add_float_data(float value); - const ::google::protobuf::RepeatedField< float >& - float_data() const; - ::google::protobuf::RepeatedField< float >* - mutable_float_data(); - - // optional bytes binary_data = 2; - void clear_binary_data(); - static const int kBinaryDataFieldNumber = 2; - const ::std::string& binary_data() const; - void set_binary_data(const ::std::string& value); - void set_binary_data(const char* value); - void set_binary_data(const void* value, size_t size); - ::std::string* mutable_binary_data(); - ::std::string* release_binary_data(); - void set_allocated_binary_data(::std::string* binary_data); - - // @@protoc_insertion_point(class_scope:pb.VectorRowRecord) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::RepeatedField< float > float_data_; - mutable int _float_data_cached_byte_size_; - ::google::protobuf::internal::ArenaStringPtr binary_data_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static VectorRowRecord* default_instance_; -}; -// ------------------------------------------------------------------- - -class AttrRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.AttrRecord) */ { - public: - AttrRecord(); - virtual ~AttrRecord(); - - AttrRecord(const AttrRecord& from); - - inline AttrRecord& operator=(const AttrRecord& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const AttrRecord& default_instance(); - - void Swap(AttrRecord* other); - - // implements Message ---------------------------------------------- - - inline AttrRecord* New() const { return New(NULL); } - - AttrRecord* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AttrRecord& from); - void MergeFrom(const AttrRecord& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(AttrRecord* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated int32 int32_value = 1; - int int32_value_size() const; - void clear_int32_value(); - static const int kInt32ValueFieldNumber = 1; - ::google::protobuf::int32 int32_value(int index) const; - void set_int32_value(int index, ::google::protobuf::int32 value); - void add_int32_value(::google::protobuf::int32 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& - int32_value() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* - mutable_int32_value(); - - // repeated int64 int64_value = 2; - int int64_value_size() const; - void clear_int64_value(); - static const int kInt64ValueFieldNumber = 2; - ::google::protobuf::int64 int64_value(int index) const; - void set_int64_value(int index, ::google::protobuf::int64 value); - void add_int64_value(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - int64_value() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_int64_value(); - - // repeated float float_value = 3; - int float_value_size() const; - void clear_float_value(); - static const int kFloatValueFieldNumber = 3; - float float_value(int index) const; - void set_float_value(int index, float value); - void add_float_value(float value); - const ::google::protobuf::RepeatedField< float >& - float_value() const; - ::google::protobuf::RepeatedField< float >* - mutable_float_value(); - - // repeated double double_value = 4; - int double_value_size() const; - void clear_double_value(); - static const int kDoubleValueFieldNumber = 4; - double double_value(int index) const; - void set_double_value(int index, double value); - void add_double_value(double value); - const ::google::protobuf::RepeatedField< double >& - double_value() const; - ::google::protobuf::RepeatedField< double >* - mutable_double_value(); - - // @@protoc_insertion_point(class_scope:pb.AttrRecord) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 > int32_value_; - mutable int _int32_value_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > int64_value_; - mutable int _int64_value_cached_byte_size_; - ::google::protobuf::RepeatedField< float > float_value_; - mutable int _float_value_cached_byte_size_; - ::google::protobuf::RepeatedField< double > double_value_; - mutable int _double_value_cached_byte_size_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static AttrRecord* default_instance_; -}; -// ------------------------------------------------------------------- - -class VectorRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.VectorRecord) */ { - public: - VectorRecord(); - virtual ~VectorRecord(); - - VectorRecord(const VectorRecord& from); - - inline VectorRecord& operator=(const VectorRecord& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const VectorRecord& default_instance(); - - void Swap(VectorRecord* other); - - // implements Message ---------------------------------------------- - - inline VectorRecord* New() const { return New(NULL); } - - VectorRecord* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const VectorRecord& from); - void MergeFrom(const VectorRecord& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(VectorRecord* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .pb.VectorRowRecord records = 1; - int records_size() const; - void clear_records(); - static const int kRecordsFieldNumber = 1; - const ::pb::VectorRowRecord& records(int index) const; - ::pb::VectorRowRecord* mutable_records(int index); - ::pb::VectorRowRecord* add_records(); - ::google::protobuf::RepeatedPtrField< ::pb::VectorRowRecord >* - mutable_records(); - const ::google::protobuf::RepeatedPtrField< ::pb::VectorRowRecord >& - records() const; - - // @@protoc_insertion_point(class_scope:pb.VectorRecord) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::RepeatedPtrField< ::pb::VectorRowRecord > records_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static VectorRecord* default_instance_; -}; -// ------------------------------------------------------------------- - -class VectorParam : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.VectorParam) */ { - public: - VectorParam(); - virtual ~VectorParam(); - - VectorParam(const VectorParam& from); - - inline VectorParam& operator=(const VectorParam& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const VectorParam& default_instance(); - - void Swap(VectorParam* other); - - // implements Message ---------------------------------------------- - - inline VectorParam* New() const { return New(NULL); } - - VectorParam* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const VectorParam& from); - void MergeFrom(const VectorParam& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(VectorParam* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string json = 1; - void clear_json(); - static const int kJsonFieldNumber = 1; - const ::std::string& json() const; - void set_json(const ::std::string& value); - void set_json(const char* value); - void set_json(const char* value, size_t size); - ::std::string* mutable_json(); - ::std::string* release_json(); - void set_allocated_json(::std::string* json); - - // optional .pb.VectorRecord row_record = 2; - bool has_row_record() const; - void clear_row_record(); - static const int kRowRecordFieldNumber = 2; - const ::pb::VectorRecord& row_record() const; - ::pb::VectorRecord* mutable_row_record(); - ::pb::VectorRecord* release_row_record(); - void set_allocated_row_record(::pb::VectorRecord* row_record); - - // @@protoc_insertion_point(class_scope:pb.VectorParam) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr json_; - ::pb::VectorRecord* row_record_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static VectorParam* default_instance_; -}; -// ------------------------------------------------------------------- - -class FieldValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.FieldValue) */ { - public: - FieldValue(); - virtual ~FieldValue(); - - FieldValue(const FieldValue& from); - - inline FieldValue& operator=(const FieldValue& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const FieldValue& default_instance(); - - void Swap(FieldValue* other); - - // implements Message ---------------------------------------------- - - inline FieldValue* New() const { return New(NULL); } - - FieldValue* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const FieldValue& from); - void MergeFrom(const FieldValue& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(FieldValue* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string field_name = 1; - void clear_field_name(); - static const int kFieldNameFieldNumber = 1; - const ::std::string& field_name() const; - void set_field_name(const ::std::string& value); - void set_field_name(const char* value); - void set_field_name(const char* value, size_t size); - ::std::string* mutable_field_name(); - ::std::string* release_field_name(); - void set_allocated_field_name(::std::string* field_name); - - // optional .pb.DataType type = 2; - void clear_type(); - static const int kTypeFieldNumber = 2; - ::pb::DataType type() const; - void set_type(::pb::DataType value); - - // optional .pb.AttrRecord attr_record = 3; - bool has_attr_record() const; - void clear_attr_record(); - static const int kAttrRecordFieldNumber = 3; - const ::pb::AttrRecord& attr_record() const; - ::pb::AttrRecord* mutable_attr_record(); - ::pb::AttrRecord* release_attr_record(); - void set_allocated_attr_record(::pb::AttrRecord* attr_record); - - // optional .pb.VectorRecord vector_record = 4; - bool has_vector_record() const; - void clear_vector_record(); - static const int kVectorRecordFieldNumber = 4; - const ::pb::VectorRecord& vector_record() const; - ::pb::VectorRecord* mutable_vector_record(); - ::pb::VectorRecord* release_vector_record(); - void set_allocated_vector_record(::pb::VectorRecord* vector_record); - - // @@protoc_insertion_point(class_scope:pb.FieldValue) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr field_name_; - ::pb::AttrRecord* attr_record_; - ::pb::VectorRecord* vector_record_; - int type_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static FieldValue* default_instance_; -}; -// ------------------------------------------------------------------- - -class PulsarMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.PulsarMessage) */ { - public: - PulsarMessage(); - virtual ~PulsarMessage(); - - PulsarMessage(const PulsarMessage& from); - - inline PulsarMessage& operator=(const PulsarMessage& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const PulsarMessage& default_instance(); - - void Swap(PulsarMessage* other); - - // implements Message ---------------------------------------------- - - inline PulsarMessage* New() const { return New(NULL); } - - PulsarMessage* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const PulsarMessage& from); - void MergeFrom(const PulsarMessage& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(PulsarMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string collection_name = 1; - void clear_collection_name(); - static const int kCollectionNameFieldNumber = 1; - const ::std::string& collection_name() const; - void set_collection_name(const ::std::string& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - ::std::string* mutable_collection_name(); - ::std::string* release_collection_name(); - void set_allocated_collection_name(::std::string* collection_name); - - // repeated .pb.FieldValue fields = 2; - int fields_size() const; - void clear_fields(); - static const int kFieldsFieldNumber = 2; - const ::pb::FieldValue& fields(int index) const; - ::pb::FieldValue* mutable_fields(int index); - ::pb::FieldValue* add_fields(); - ::google::protobuf::RepeatedPtrField< ::pb::FieldValue >* - mutable_fields(); - const ::google::protobuf::RepeatedPtrField< ::pb::FieldValue >& - fields() const; - - // optional int64 entity_id = 3; - void clear_entity_id(); - static const int kEntityIdFieldNumber = 3; - ::google::protobuf::int64 entity_id() const; - void set_entity_id(::google::protobuf::int64 value); - - // optional string partition_tag = 4; - void clear_partition_tag(); - static const int kPartitionTagFieldNumber = 4; - const ::std::string& partition_tag() const; - void set_partition_tag(const ::std::string& value); - void set_partition_tag(const char* value); - void set_partition_tag(const char* value, size_t size); - ::std::string* mutable_partition_tag(); - ::std::string* release_partition_tag(); - void set_allocated_partition_tag(::std::string* partition_tag); - - // optional .pb.VectorParam vector_param = 5; - bool has_vector_param() const; - void clear_vector_param(); - static const int kVectorParamFieldNumber = 5; - const ::pb::VectorParam& vector_param() const; - ::pb::VectorParam* mutable_vector_param(); - ::pb::VectorParam* release_vector_param(); - void set_allocated_vector_param(::pb::VectorParam* vector_param); - - // optional .pb.SegmentRecord segments = 6; - bool has_segments() const; - void clear_segments(); - static const int kSegmentsFieldNumber = 6; - const ::pb::SegmentRecord& segments() const; - ::pb::SegmentRecord* mutable_segments(); - ::pb::SegmentRecord* release_segments(); - void set_allocated_segments(::pb::SegmentRecord* segments); - - // optional int64 timestamp = 7; - void clear_timestamp(); - static const int kTimestampFieldNumber = 7; - ::google::protobuf::int64 timestamp() const; - void set_timestamp(::google::protobuf::int64 value); - - // optional int64 client_id = 8; - void clear_client_id(); - static const int kClientIdFieldNumber = 8; - ::google::protobuf::int64 client_id() const; - void set_client_id(::google::protobuf::int64 value); - - // optional .pb.OpType msg_type = 9; - void clear_msg_type(); - static const int kMsgTypeFieldNumber = 9; - ::pb::OpType msg_type() const; - void set_msg_type(::pb::OpType value); - - // optional string topic_name = 10; - void clear_topic_name(); - static const int kTopicNameFieldNumber = 10; - const ::std::string& topic_name() const; - void set_topic_name(const ::std::string& value); - void set_topic_name(const char* value); - void set_topic_name(const char* value, size_t size); - ::std::string* mutable_topic_name(); - ::std::string* release_topic_name(); - void set_allocated_topic_name(::std::string* topic_name); - - // optional int64 partition_id = 11; - void clear_partition_id(); - static const int kPartitionIdFieldNumber = 11; - ::google::protobuf::int64 partition_id() const; - void set_partition_id(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:pb.PulsarMessage) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr collection_name_; - ::google::protobuf::RepeatedPtrField< ::pb::FieldValue > fields_; - ::google::protobuf::int64 entity_id_; - ::google::protobuf::internal::ArenaStringPtr partition_tag_; - ::pb::VectorParam* vector_param_; - ::pb::SegmentRecord* segments_; - ::google::protobuf::int64 timestamp_; - ::google::protobuf::int64 client_id_; - ::google::protobuf::internal::ArenaStringPtr topic_name_; - ::google::protobuf::int64 partition_id_; - int msg_type_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static PulsarMessage* default_instance_; -}; -// ------------------------------------------------------------------- - -class TestData : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.TestData) */ { - public: - TestData(); - virtual ~TestData(); - - TestData(const TestData& from); - - inline TestData& operator=(const TestData& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const TestData& default_instance(); - - void Swap(TestData* other); - - // implements Message ---------------------------------------------- - - inline TestData* New() const { return New(NULL); } - - TestData* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const TestData& from); - void MergeFrom(const TestData& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(TestData* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string id = 1; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::std::string& id() const; - void set_id(const ::std::string& value); - void set_id(const char* value); - void set_id(const char* value, size_t size); - ::std::string* mutable_id(); - ::std::string* release_id(); - void set_allocated_id(::std::string* id); - - // optional string name = 2; - void clear_name(); - static const int kNameFieldNumber = 2; - const ::std::string& name() const; - void set_name(const ::std::string& value); - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // @@protoc_insertion_point(class_scope:pb.TestData) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr name_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static TestData* default_instance_; -}; -// ------------------------------------------------------------------- - -class InsertMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.InsertMsg) */ { - public: - InsertMsg(); - virtual ~InsertMsg(); - - InsertMsg(const InsertMsg& from); - - inline InsertMsg& operator=(const InsertMsg& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const InsertMsg& default_instance(); - - void Swap(InsertMsg* other); - - // implements Message ---------------------------------------------- - - inline InsertMsg* New() const { return New(NULL); } - - InsertMsg* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const InsertMsg& from); - void MergeFrom(const InsertMsg& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(InsertMsg* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional int64 client_id = 1; - void clear_client_id(); - static const int kClientIdFieldNumber = 1; - ::google::protobuf::int64 client_id() const; - void set_client_id(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:pb.InsertMsg) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::int64 client_id_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static InsertMsg* default_instance_; -}; -// ------------------------------------------------------------------- - -class DeleteMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.DeleteMsg) */ { - public: - DeleteMsg(); - virtual ~DeleteMsg(); - - DeleteMsg(const DeleteMsg& from); - - inline DeleteMsg& operator=(const DeleteMsg& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const DeleteMsg& default_instance(); - - void Swap(DeleteMsg* other); - - // implements Message ---------------------------------------------- - - inline DeleteMsg* New() const { return New(NULL); } - - DeleteMsg* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const DeleteMsg& from); - void MergeFrom(const DeleteMsg& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(DeleteMsg* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional int64 client_id = 1; - void clear_client_id(); - static const int kClientIdFieldNumber = 1; - ::google::protobuf::int64 client_id() const; - void set_client_id(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:pb.DeleteMsg) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::int64 client_id_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static DeleteMsg* default_instance_; -}; -// ------------------------------------------------------------------- - -class SearchMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.SearchMsg) */ { - public: - SearchMsg(); - virtual ~SearchMsg(); - - SearchMsg(const SearchMsg& from); - - inline SearchMsg& operator=(const SearchMsg& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const SearchMsg& default_instance(); - - void Swap(SearchMsg* other); - - // implements Message ---------------------------------------------- - - inline SearchMsg* New() const { return New(NULL); } - - SearchMsg* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SearchMsg& from); - void MergeFrom(const SearchMsg& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SearchMsg* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional int64 client_id = 1; - void clear_client_id(); - static const int kClientIdFieldNumber = 1; - ::google::protobuf::int64 client_id() const; - void set_client_id(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:pb.SearchMsg) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::int64 client_id_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static SearchMsg* default_instance_; -}; -// ------------------------------------------------------------------- - -class SearchResultMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.SearchResultMsg) */ { - public: - SearchResultMsg(); - virtual ~SearchResultMsg(); - - SearchResultMsg(const SearchResultMsg& from); - - inline SearchResultMsg& operator=(const SearchResultMsg& from) { - CopyFrom(from); - return *this; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const SearchResultMsg& default_instance(); - - void Swap(SearchResultMsg* other); - - // implements Message ---------------------------------------------- - - inline SearchResultMsg* New() const { return New(NULL); } - - SearchResultMsg* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SearchResultMsg& from); - void MergeFrom(const SearchResultMsg& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SearchResultMsg* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional int64 client_id = 1; - void clear_client_id(); - static const int kClientIdFieldNumber = 1; - ::google::protobuf::int64 client_id() const; - void set_client_id(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:pb.SearchResultMsg) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool _is_default_instance_; - ::google::protobuf::int64 client_id_; - mutable int _cached_size_; - friend void protobuf_AddDesc_pulsar_2eproto(); - friend void protobuf_AssignDesc_pulsar_2eproto(); - friend void protobuf_ShutdownFile_pulsar_2eproto(); - - void InitAsDefaultInstance(); - static SearchResultMsg* default_instance_; -}; -// =================================================================== - - -// =================================================================== - -#if !PROTOBUF_INLINE_NOT_IN_HEADERS -// Status - -// optional .pb.ErrorCode error_code = 1; -inline void Status::clear_error_code() { - error_code_ = 0; -} -inline ::pb::ErrorCode Status::error_code() const { - // @@protoc_insertion_point(field_get:pb.Status.error_code) - return static_cast< ::pb::ErrorCode >(error_code_); -} -inline void Status::set_error_code(::pb::ErrorCode value) { - - error_code_ = value; - // @@protoc_insertion_point(field_set:pb.Status.error_code) -} - -// optional string reason = 2; -inline void Status::clear_reason() { - reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Status::reason() const { - // @@protoc_insertion_point(field_get:pb.Status.reason) - return reason_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Status::set_reason(const ::std::string& value) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.Status.reason) -} -inline void Status::set_reason(const char* value) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.Status.reason) -} -inline void Status::set_reason(const char* value, size_t size) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.Status.reason) -} -inline ::std::string* Status::mutable_reason() { - - // @@protoc_insertion_point(field_mutable:pb.Status.reason) - return reason_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Status::release_reason() { - // @@protoc_insertion_point(field_release:pb.Status.reason) - - return reason_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Status::set_allocated_reason(::std::string* reason) { - if (reason != NULL) { - - } else { - - } - reason_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reason); - // @@protoc_insertion_point(field_set_allocated:pb.Status.reason) -} - -// ------------------------------------------------------------------- - -// SegmentRecord - -// repeated string seg_info = 1; -inline int SegmentRecord::seg_info_size() const { - return seg_info_.size(); -} -inline void SegmentRecord::clear_seg_info() { - seg_info_.Clear(); -} -inline const ::std::string& SegmentRecord::seg_info(int index) const { - // @@protoc_insertion_point(field_get:pb.SegmentRecord.seg_info) - return seg_info_.Get(index); -} -inline ::std::string* SegmentRecord::mutable_seg_info(int index) { - // @@protoc_insertion_point(field_mutable:pb.SegmentRecord.seg_info) - return seg_info_.Mutable(index); -} -inline void SegmentRecord::set_seg_info(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:pb.SegmentRecord.seg_info) - seg_info_.Mutable(index)->assign(value); -} -inline void SegmentRecord::set_seg_info(int index, const char* value) { - seg_info_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:pb.SegmentRecord.seg_info) -} -inline void SegmentRecord::set_seg_info(int index, const char* value, size_t size) { - seg_info_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:pb.SegmentRecord.seg_info) -} -inline ::std::string* SegmentRecord::add_seg_info() { - // @@protoc_insertion_point(field_add_mutable:pb.SegmentRecord.seg_info) - return seg_info_.Add(); -} -inline void SegmentRecord::add_seg_info(const ::std::string& value) { - seg_info_.Add()->assign(value); - // @@protoc_insertion_point(field_add:pb.SegmentRecord.seg_info) -} -inline void SegmentRecord::add_seg_info(const char* value) { - seg_info_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:pb.SegmentRecord.seg_info) -} -inline void SegmentRecord::add_seg_info(const char* value, size_t size) { - seg_info_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:pb.SegmentRecord.seg_info) -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -SegmentRecord::seg_info() const { - // @@protoc_insertion_point(field_list:pb.SegmentRecord.seg_info) - return seg_info_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -SegmentRecord::mutable_seg_info() { - // @@protoc_insertion_point(field_mutable_list:pb.SegmentRecord.seg_info) - return &seg_info_; -} - -// ------------------------------------------------------------------- - -// VectorRowRecord - -// repeated float float_data = 1; -inline int VectorRowRecord::float_data_size() const { - return float_data_.size(); -} -inline void VectorRowRecord::clear_float_data() { - float_data_.Clear(); -} -inline float VectorRowRecord::float_data(int index) const { - // @@protoc_insertion_point(field_get:pb.VectorRowRecord.float_data) - return float_data_.Get(index); -} -inline void VectorRowRecord::set_float_data(int index, float value) { - float_data_.Set(index, value); - // @@protoc_insertion_point(field_set:pb.VectorRowRecord.float_data) -} -inline void VectorRowRecord::add_float_data(float value) { - float_data_.Add(value); - // @@protoc_insertion_point(field_add:pb.VectorRowRecord.float_data) -} -inline const ::google::protobuf::RepeatedField< float >& -VectorRowRecord::float_data() const { - // @@protoc_insertion_point(field_list:pb.VectorRowRecord.float_data) - return float_data_; -} -inline ::google::protobuf::RepeatedField< float >* -VectorRowRecord::mutable_float_data() { - // @@protoc_insertion_point(field_mutable_list:pb.VectorRowRecord.float_data) - return &float_data_; -} - -// optional bytes binary_data = 2; -inline void VectorRowRecord::clear_binary_data() { - binary_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& VectorRowRecord::binary_data() const { - // @@protoc_insertion_point(field_get:pb.VectorRowRecord.binary_data) - return binary_data_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void VectorRowRecord::set_binary_data(const ::std::string& value) { - - binary_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.VectorRowRecord.binary_data) -} -inline void VectorRowRecord::set_binary_data(const char* value) { - - binary_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.VectorRowRecord.binary_data) -} -inline void VectorRowRecord::set_binary_data(const void* value, size_t size) { - - binary_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.VectorRowRecord.binary_data) -} -inline ::std::string* VectorRowRecord::mutable_binary_data() { - - // @@protoc_insertion_point(field_mutable:pb.VectorRowRecord.binary_data) - return binary_data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* VectorRowRecord::release_binary_data() { - // @@protoc_insertion_point(field_release:pb.VectorRowRecord.binary_data) - - return binary_data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void VectorRowRecord::set_allocated_binary_data(::std::string* binary_data) { - if (binary_data != NULL) { - - } else { - - } - binary_data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), binary_data); - // @@protoc_insertion_point(field_set_allocated:pb.VectorRowRecord.binary_data) -} - -// ------------------------------------------------------------------- - -// AttrRecord - -// repeated int32 int32_value = 1; -inline int AttrRecord::int32_value_size() const { - return int32_value_.size(); -} -inline void AttrRecord::clear_int32_value() { - int32_value_.Clear(); -} -inline ::google::protobuf::int32 AttrRecord::int32_value(int index) const { - // @@protoc_insertion_point(field_get:pb.AttrRecord.int32_value) - return int32_value_.Get(index); -} -inline void AttrRecord::set_int32_value(int index, ::google::protobuf::int32 value) { - int32_value_.Set(index, value); - // @@protoc_insertion_point(field_set:pb.AttrRecord.int32_value) -} -inline void AttrRecord::add_int32_value(::google::protobuf::int32 value) { - int32_value_.Add(value); - // @@protoc_insertion_point(field_add:pb.AttrRecord.int32_value) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -AttrRecord::int32_value() const { - // @@protoc_insertion_point(field_list:pb.AttrRecord.int32_value) - return int32_value_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -AttrRecord::mutable_int32_value() { - // @@protoc_insertion_point(field_mutable_list:pb.AttrRecord.int32_value) - return &int32_value_; -} - -// repeated int64 int64_value = 2; -inline int AttrRecord::int64_value_size() const { - return int64_value_.size(); -} -inline void AttrRecord::clear_int64_value() { - int64_value_.Clear(); -} -inline ::google::protobuf::int64 AttrRecord::int64_value(int index) const { - // @@protoc_insertion_point(field_get:pb.AttrRecord.int64_value) - return int64_value_.Get(index); -} -inline void AttrRecord::set_int64_value(int index, ::google::protobuf::int64 value) { - int64_value_.Set(index, value); - // @@protoc_insertion_point(field_set:pb.AttrRecord.int64_value) -} -inline void AttrRecord::add_int64_value(::google::protobuf::int64 value) { - int64_value_.Add(value); - // @@protoc_insertion_point(field_add:pb.AttrRecord.int64_value) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -AttrRecord::int64_value() const { - // @@protoc_insertion_point(field_list:pb.AttrRecord.int64_value) - return int64_value_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -AttrRecord::mutable_int64_value() { - // @@protoc_insertion_point(field_mutable_list:pb.AttrRecord.int64_value) - return &int64_value_; -} - -// repeated float float_value = 3; -inline int AttrRecord::float_value_size() const { - return float_value_.size(); -} -inline void AttrRecord::clear_float_value() { - float_value_.Clear(); -} -inline float AttrRecord::float_value(int index) const { - // @@protoc_insertion_point(field_get:pb.AttrRecord.float_value) - return float_value_.Get(index); -} -inline void AttrRecord::set_float_value(int index, float value) { - float_value_.Set(index, value); - // @@protoc_insertion_point(field_set:pb.AttrRecord.float_value) -} -inline void AttrRecord::add_float_value(float value) { - float_value_.Add(value); - // @@protoc_insertion_point(field_add:pb.AttrRecord.float_value) -} -inline const ::google::protobuf::RepeatedField< float >& -AttrRecord::float_value() const { - // @@protoc_insertion_point(field_list:pb.AttrRecord.float_value) - return float_value_; -} -inline ::google::protobuf::RepeatedField< float >* -AttrRecord::mutable_float_value() { - // @@protoc_insertion_point(field_mutable_list:pb.AttrRecord.float_value) - return &float_value_; -} - -// repeated double double_value = 4; -inline int AttrRecord::double_value_size() const { - return double_value_.size(); -} -inline void AttrRecord::clear_double_value() { - double_value_.Clear(); -} -inline double AttrRecord::double_value(int index) const { - // @@protoc_insertion_point(field_get:pb.AttrRecord.double_value) - return double_value_.Get(index); -} -inline void AttrRecord::set_double_value(int index, double value) { - double_value_.Set(index, value); - // @@protoc_insertion_point(field_set:pb.AttrRecord.double_value) -} -inline void AttrRecord::add_double_value(double value) { - double_value_.Add(value); - // @@protoc_insertion_point(field_add:pb.AttrRecord.double_value) -} -inline const ::google::protobuf::RepeatedField< double >& -AttrRecord::double_value() const { - // @@protoc_insertion_point(field_list:pb.AttrRecord.double_value) - return double_value_; -} -inline ::google::protobuf::RepeatedField< double >* -AttrRecord::mutable_double_value() { - // @@protoc_insertion_point(field_mutable_list:pb.AttrRecord.double_value) - return &double_value_; -} - -// ------------------------------------------------------------------- - -// VectorRecord - -// repeated .pb.VectorRowRecord records = 1; -inline int VectorRecord::records_size() const { - return records_.size(); -} -inline void VectorRecord::clear_records() { - records_.Clear(); -} -inline const ::pb::VectorRowRecord& VectorRecord::records(int index) const { - // @@protoc_insertion_point(field_get:pb.VectorRecord.records) - return records_.Get(index); -} -inline ::pb::VectorRowRecord* VectorRecord::mutable_records(int index) { - // @@protoc_insertion_point(field_mutable:pb.VectorRecord.records) - return records_.Mutable(index); -} -inline ::pb::VectorRowRecord* VectorRecord::add_records() { - // @@protoc_insertion_point(field_add:pb.VectorRecord.records) - return records_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::pb::VectorRowRecord >* -VectorRecord::mutable_records() { - // @@protoc_insertion_point(field_mutable_list:pb.VectorRecord.records) - return &records_; -} -inline const ::google::protobuf::RepeatedPtrField< ::pb::VectorRowRecord >& -VectorRecord::records() const { - // @@protoc_insertion_point(field_list:pb.VectorRecord.records) - return records_; -} - -// ------------------------------------------------------------------- - -// VectorParam - -// optional string json = 1; -inline void VectorParam::clear_json() { - json_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& VectorParam::json() const { - // @@protoc_insertion_point(field_get:pb.VectorParam.json) - return json_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void VectorParam::set_json(const ::std::string& value) { - - json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.VectorParam.json) -} -inline void VectorParam::set_json(const char* value) { - - json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.VectorParam.json) -} -inline void VectorParam::set_json(const char* value, size_t size) { - - json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.VectorParam.json) -} -inline ::std::string* VectorParam::mutable_json() { - - // @@protoc_insertion_point(field_mutable:pb.VectorParam.json) - return json_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* VectorParam::release_json() { - // @@protoc_insertion_point(field_release:pb.VectorParam.json) - - return json_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void VectorParam::set_allocated_json(::std::string* json) { - if (json != NULL) { - - } else { - - } - json_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json); - // @@protoc_insertion_point(field_set_allocated:pb.VectorParam.json) -} - -// optional .pb.VectorRecord row_record = 2; -inline bool VectorParam::has_row_record() const { - return !_is_default_instance_ && row_record_ != NULL; -} -inline void VectorParam::clear_row_record() { - if (GetArenaNoVirtual() == NULL && row_record_ != NULL) delete row_record_; - row_record_ = NULL; -} -inline const ::pb::VectorRecord& VectorParam::row_record() const { - // @@protoc_insertion_point(field_get:pb.VectorParam.row_record) - return row_record_ != NULL ? *row_record_ : *default_instance_->row_record_; -} -inline ::pb::VectorRecord* VectorParam::mutable_row_record() { - - if (row_record_ == NULL) { - row_record_ = new ::pb::VectorRecord; - } - // @@protoc_insertion_point(field_mutable:pb.VectorParam.row_record) - return row_record_; -} -inline ::pb::VectorRecord* VectorParam::release_row_record() { - // @@protoc_insertion_point(field_release:pb.VectorParam.row_record) - - ::pb::VectorRecord* temp = row_record_; - row_record_ = NULL; - return temp; -} -inline void VectorParam::set_allocated_row_record(::pb::VectorRecord* row_record) { - delete row_record_; - row_record_ = row_record; - if (row_record) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pb.VectorParam.row_record) -} - -// ------------------------------------------------------------------- - -// FieldValue - -// optional string field_name = 1; -inline void FieldValue::clear_field_name() { - field_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& FieldValue::field_name() const { - // @@protoc_insertion_point(field_get:pb.FieldValue.field_name) - return field_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void FieldValue::set_field_name(const ::std::string& value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.FieldValue.field_name) -} -inline void FieldValue::set_field_name(const char* value) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.FieldValue.field_name) -} -inline void FieldValue::set_field_name(const char* value, size_t size) { - - field_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.FieldValue.field_name) -} -inline ::std::string* FieldValue::mutable_field_name() { - - // @@protoc_insertion_point(field_mutable:pb.FieldValue.field_name) - return field_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* FieldValue::release_field_name() { - // @@protoc_insertion_point(field_release:pb.FieldValue.field_name) - - return field_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void FieldValue::set_allocated_field_name(::std::string* field_name) { - if (field_name != NULL) { - - } else { - - } - field_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_name); - // @@protoc_insertion_point(field_set_allocated:pb.FieldValue.field_name) -} - -// optional .pb.DataType type = 2; -inline void FieldValue::clear_type() { - type_ = 0; -} -inline ::pb::DataType FieldValue::type() const { - // @@protoc_insertion_point(field_get:pb.FieldValue.type) - return static_cast< ::pb::DataType >(type_); -} -inline void FieldValue::set_type(::pb::DataType value) { - - type_ = value; - // @@protoc_insertion_point(field_set:pb.FieldValue.type) -} - -// optional .pb.AttrRecord attr_record = 3; -inline bool FieldValue::has_attr_record() const { - return !_is_default_instance_ && attr_record_ != NULL; -} -inline void FieldValue::clear_attr_record() { - if (GetArenaNoVirtual() == NULL && attr_record_ != NULL) delete attr_record_; - attr_record_ = NULL; -} -inline const ::pb::AttrRecord& FieldValue::attr_record() const { - // @@protoc_insertion_point(field_get:pb.FieldValue.attr_record) - return attr_record_ != NULL ? *attr_record_ : *default_instance_->attr_record_; -} -inline ::pb::AttrRecord* FieldValue::mutable_attr_record() { - - if (attr_record_ == NULL) { - attr_record_ = new ::pb::AttrRecord; - } - // @@protoc_insertion_point(field_mutable:pb.FieldValue.attr_record) - return attr_record_; -} -inline ::pb::AttrRecord* FieldValue::release_attr_record() { - // @@protoc_insertion_point(field_release:pb.FieldValue.attr_record) - - ::pb::AttrRecord* temp = attr_record_; - attr_record_ = NULL; - return temp; -} -inline void FieldValue::set_allocated_attr_record(::pb::AttrRecord* attr_record) { - delete attr_record_; - attr_record_ = attr_record; - if (attr_record) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pb.FieldValue.attr_record) -} - -// optional .pb.VectorRecord vector_record = 4; -inline bool FieldValue::has_vector_record() const { - return !_is_default_instance_ && vector_record_ != NULL; -} -inline void FieldValue::clear_vector_record() { - if (GetArenaNoVirtual() == NULL && vector_record_ != NULL) delete vector_record_; - vector_record_ = NULL; -} -inline const ::pb::VectorRecord& FieldValue::vector_record() const { - // @@protoc_insertion_point(field_get:pb.FieldValue.vector_record) - return vector_record_ != NULL ? *vector_record_ : *default_instance_->vector_record_; -} -inline ::pb::VectorRecord* FieldValue::mutable_vector_record() { - - if (vector_record_ == NULL) { - vector_record_ = new ::pb::VectorRecord; - } - // @@protoc_insertion_point(field_mutable:pb.FieldValue.vector_record) - return vector_record_; -} -inline ::pb::VectorRecord* FieldValue::release_vector_record() { - // @@protoc_insertion_point(field_release:pb.FieldValue.vector_record) - - ::pb::VectorRecord* temp = vector_record_; - vector_record_ = NULL; - return temp; -} -inline void FieldValue::set_allocated_vector_record(::pb::VectorRecord* vector_record) { - delete vector_record_; - vector_record_ = vector_record; - if (vector_record) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pb.FieldValue.vector_record) -} - -// ------------------------------------------------------------------- - -// PulsarMessage - -// optional string collection_name = 1; -inline void PulsarMessage::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& PulsarMessage::collection_name() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.collection_name) - return collection_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PulsarMessage::set_collection_name(const ::std::string& value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.PulsarMessage.collection_name) -} -inline void PulsarMessage::set_collection_name(const char* value) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.PulsarMessage.collection_name) -} -inline void PulsarMessage::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.PulsarMessage.collection_name) -} -inline ::std::string* PulsarMessage::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.collection_name) - return collection_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* PulsarMessage::release_collection_name() { - // @@protoc_insertion_point(field_release:pb.PulsarMessage.collection_name) - - return collection_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PulsarMessage::set_allocated_collection_name(::std::string* collection_name) { - if (collection_name != NULL) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:pb.PulsarMessage.collection_name) -} - -// repeated .pb.FieldValue fields = 2; -inline int PulsarMessage::fields_size() const { - return fields_.size(); -} -inline void PulsarMessage::clear_fields() { - fields_.Clear(); -} -inline const ::pb::FieldValue& PulsarMessage::fields(int index) const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.fields) - return fields_.Get(index); -} -inline ::pb::FieldValue* PulsarMessage::mutable_fields(int index) { - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.fields) - return fields_.Mutable(index); -} -inline ::pb::FieldValue* PulsarMessage::add_fields() { - // @@protoc_insertion_point(field_add:pb.PulsarMessage.fields) - return fields_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::pb::FieldValue >* -PulsarMessage::mutable_fields() { - // @@protoc_insertion_point(field_mutable_list:pb.PulsarMessage.fields) - return &fields_; -} -inline const ::google::protobuf::RepeatedPtrField< ::pb::FieldValue >& -PulsarMessage::fields() const { - // @@protoc_insertion_point(field_list:pb.PulsarMessage.fields) - return fields_; -} - -// optional int64 entity_id = 3; -inline void PulsarMessage::clear_entity_id() { - entity_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 PulsarMessage::entity_id() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.entity_id) - return entity_id_; -} -inline void PulsarMessage::set_entity_id(::google::protobuf::int64 value) { - - entity_id_ = value; - // @@protoc_insertion_point(field_set:pb.PulsarMessage.entity_id) -} - -// optional string partition_tag = 4; -inline void PulsarMessage::clear_partition_tag() { - partition_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& PulsarMessage::partition_tag() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.partition_tag) - return partition_tag_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PulsarMessage::set_partition_tag(const ::std::string& value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.PulsarMessage.partition_tag) -} -inline void PulsarMessage::set_partition_tag(const char* value) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.PulsarMessage.partition_tag) -} -inline void PulsarMessage::set_partition_tag(const char* value, size_t size) { - - partition_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.PulsarMessage.partition_tag) -} -inline ::std::string* PulsarMessage::mutable_partition_tag() { - - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.partition_tag) - return partition_tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* PulsarMessage::release_partition_tag() { - // @@protoc_insertion_point(field_release:pb.PulsarMessage.partition_tag) - - return partition_tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PulsarMessage::set_allocated_partition_tag(::std::string* partition_tag) { - if (partition_tag != NULL) { - - } else { - - } - partition_tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), partition_tag); - // @@protoc_insertion_point(field_set_allocated:pb.PulsarMessage.partition_tag) -} - -// optional .pb.VectorParam vector_param = 5; -inline bool PulsarMessage::has_vector_param() const { - return !_is_default_instance_ && vector_param_ != NULL; -} -inline void PulsarMessage::clear_vector_param() { - if (GetArenaNoVirtual() == NULL && vector_param_ != NULL) delete vector_param_; - vector_param_ = NULL; -} -inline const ::pb::VectorParam& PulsarMessage::vector_param() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.vector_param) - return vector_param_ != NULL ? *vector_param_ : *default_instance_->vector_param_; -} -inline ::pb::VectorParam* PulsarMessage::mutable_vector_param() { - - if (vector_param_ == NULL) { - vector_param_ = new ::pb::VectorParam; - } - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.vector_param) - return vector_param_; -} -inline ::pb::VectorParam* PulsarMessage::release_vector_param() { - // @@protoc_insertion_point(field_release:pb.PulsarMessage.vector_param) - - ::pb::VectorParam* temp = vector_param_; - vector_param_ = NULL; - return temp; -} -inline void PulsarMessage::set_allocated_vector_param(::pb::VectorParam* vector_param) { - delete vector_param_; - vector_param_ = vector_param; - if (vector_param) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pb.PulsarMessage.vector_param) -} - -// optional .pb.SegmentRecord segments = 6; -inline bool PulsarMessage::has_segments() const { - return !_is_default_instance_ && segments_ != NULL; -} -inline void PulsarMessage::clear_segments() { - if (GetArenaNoVirtual() == NULL && segments_ != NULL) delete segments_; - segments_ = NULL; -} -inline const ::pb::SegmentRecord& PulsarMessage::segments() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.segments) - return segments_ != NULL ? *segments_ : *default_instance_->segments_; -} -inline ::pb::SegmentRecord* PulsarMessage::mutable_segments() { - - if (segments_ == NULL) { - segments_ = new ::pb::SegmentRecord; - } - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.segments) - return segments_; -} -inline ::pb::SegmentRecord* PulsarMessage::release_segments() { - // @@protoc_insertion_point(field_release:pb.PulsarMessage.segments) - - ::pb::SegmentRecord* temp = segments_; - segments_ = NULL; - return temp; -} -inline void PulsarMessage::set_allocated_segments(::pb::SegmentRecord* segments) { - delete segments_; - segments_ = segments; - if (segments) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pb.PulsarMessage.segments) -} - -// optional int64 timestamp = 7; -inline void PulsarMessage::clear_timestamp() { - timestamp_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 PulsarMessage::timestamp() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.timestamp) - return timestamp_; -} -inline void PulsarMessage::set_timestamp(::google::protobuf::int64 value) { - - timestamp_ = value; - // @@protoc_insertion_point(field_set:pb.PulsarMessage.timestamp) -} - -// optional int64 client_id = 8; -inline void PulsarMessage::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 PulsarMessage::client_id() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.client_id) - return client_id_; -} -inline void PulsarMessage::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:pb.PulsarMessage.client_id) -} - -// optional .pb.OpType msg_type = 9; -inline void PulsarMessage::clear_msg_type() { - msg_type_ = 0; -} -inline ::pb::OpType PulsarMessage::msg_type() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.msg_type) - return static_cast< ::pb::OpType >(msg_type_); -} -inline void PulsarMessage::set_msg_type(::pb::OpType value) { - - msg_type_ = value; - // @@protoc_insertion_point(field_set:pb.PulsarMessage.msg_type) -} - -// optional string topic_name = 10; -inline void PulsarMessage::clear_topic_name() { - topic_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& PulsarMessage::topic_name() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.topic_name) - return topic_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PulsarMessage::set_topic_name(const ::std::string& value) { - - topic_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.PulsarMessage.topic_name) -} -inline void PulsarMessage::set_topic_name(const char* value) { - - topic_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.PulsarMessage.topic_name) -} -inline void PulsarMessage::set_topic_name(const char* value, size_t size) { - - topic_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.PulsarMessage.topic_name) -} -inline ::std::string* PulsarMessage::mutable_topic_name() { - - // @@protoc_insertion_point(field_mutable:pb.PulsarMessage.topic_name) - return topic_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* PulsarMessage::release_topic_name() { - // @@protoc_insertion_point(field_release:pb.PulsarMessage.topic_name) - - return topic_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PulsarMessage::set_allocated_topic_name(::std::string* topic_name) { - if (topic_name != NULL) { - - } else { - - } - topic_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), topic_name); - // @@protoc_insertion_point(field_set_allocated:pb.PulsarMessage.topic_name) -} - -// optional int64 partition_id = 11; -inline void PulsarMessage::clear_partition_id() { - partition_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 PulsarMessage::partition_id() const { - // @@protoc_insertion_point(field_get:pb.PulsarMessage.partition_id) - return partition_id_; -} -inline void PulsarMessage::set_partition_id(::google::protobuf::int64 value) { - - partition_id_ = value; - // @@protoc_insertion_point(field_set:pb.PulsarMessage.partition_id) -} - -// ------------------------------------------------------------------- - -// TestData - -// optional string id = 1; -inline void TestData::clear_id() { - id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TestData::id() const { - // @@protoc_insertion_point(field_get:pb.TestData.id) - return id_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TestData::set_id(const ::std::string& value) { - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.TestData.id) -} -inline void TestData::set_id(const char* value) { - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.TestData.id) -} -inline void TestData::set_id(const char* value, size_t size) { - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.TestData.id) -} -inline ::std::string* TestData::mutable_id() { - - // @@protoc_insertion_point(field_mutable:pb.TestData.id) - return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TestData::release_id() { - // @@protoc_insertion_point(field_release:pb.TestData.id) - - return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TestData::set_allocated_id(::std::string* id) { - if (id != NULL) { - - } else { - - } - id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); - // @@protoc_insertion_point(field_set_allocated:pb.TestData.id) -} - -// optional string name = 2; -inline void TestData::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TestData::name() const { - // @@protoc_insertion_point(field_get:pb.TestData.name) - return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TestData::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.TestData.name) -} -inline void TestData::set_name(const char* value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pb.TestData.name) -} -inline void TestData::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.TestData.name) -} -inline ::std::string* TestData::mutable_name() { - - // @@protoc_insertion_point(field_mutable:pb.TestData.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TestData::release_name() { - // @@protoc_insertion_point(field_release:pb.TestData.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TestData::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:pb.TestData.name) -} - -// ------------------------------------------------------------------- - -// InsertMsg - -// optional int64 client_id = 1; -inline void InsertMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 InsertMsg::client_id() const { - // @@protoc_insertion_point(field_get:pb.InsertMsg.client_id) - return client_id_; -} -inline void InsertMsg::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:pb.InsertMsg.client_id) -} - -// ------------------------------------------------------------------- - -// DeleteMsg - -// optional int64 client_id = 1; -inline void DeleteMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 DeleteMsg::client_id() const { - // @@protoc_insertion_point(field_get:pb.DeleteMsg.client_id) - return client_id_; -} -inline void DeleteMsg::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:pb.DeleteMsg.client_id) -} - -// ------------------------------------------------------------------- - -// SearchMsg - -// optional int64 client_id = 1; -inline void SearchMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 SearchMsg::client_id() const { - // @@protoc_insertion_point(field_get:pb.SearchMsg.client_id) - return client_id_; -} -inline void SearchMsg::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:pb.SearchMsg.client_id) -} - -// ------------------------------------------------------------------- - -// SearchResultMsg - -// optional int64 client_id = 1; -inline void SearchResultMsg::clear_client_id() { - client_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 SearchResultMsg::client_id() const { - // @@protoc_insertion_point(field_get:pb.SearchResultMsg.client_id) - return client_id_; -} -inline void SearchResultMsg::set_client_id(::google::protobuf::int64 value) { - - client_id_ = value; - // @@protoc_insertion_point(field_set:pb.SearchResultMsg.client_id) -} - -#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace pb - -#ifndef SWIG -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::pb::ErrorCode> : ::google::protobuf::internal::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pb::ErrorCode>() { - return ::pb::ErrorCode_descriptor(); -} -template <> struct is_proto_enum< ::pb::DataType> : ::google::protobuf::internal::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pb::DataType>() { - return ::pb::DataType_descriptor(); -} -template <> struct is_proto_enum< ::pb::OpType> : ::google::protobuf::internal::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pb::OpType>() { - return ::pb::OpType_descriptor(); -} - -} // namespace protobuf -} // namespace google -#endif // SWIG - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_pulsar_2eproto__INCLUDED diff --git a/pulsar/client-cpp/src/pb/pulsar.proto b/pulsar/client-cpp/src/pb/pulsar.proto deleted file mode 100644 index 1623983f83..0000000000 --- a/pulsar/client-cpp/src/pb/pulsar.proto +++ /dev/null @@ -1,143 +0,0 @@ - -syntax = "proto3"; - -package pb; - -enum ErrorCode { - SUCCESS = 0; - UNEXPECTED_ERROR = 1; - CONNECT_FAILED = 2; - PERMISSION_DENIED = 3; - COLLECTION_NOT_EXISTS = 4; - ILLEGAL_ARGUMENT = 5; - ILLEGAL_DIMENSION = 7; - ILLEGAL_INDEX_TYPE = 8; - ILLEGAL_COLLECTION_NAME = 9; - ILLEGAL_TOPK = 10; - ILLEGAL_ROWRECORD = 11; - ILLEGAL_VECTOR_ID = 12; - ILLEGAL_SEARCH_RESULT = 13; - FILE_NOT_FOUND = 14; - META_FAILED = 15; - CACHE_FAILED = 16; - CANNOT_CREATE_FOLDER = 17; - CANNOT_CREATE_FILE = 18; - CANNOT_DELETE_FOLDER = 19; - CANNOT_DELETE_FILE = 20; - BUILD_INDEX_ERROR = 21; - ILLEGAL_NLIST = 22; - ILLEGAL_METRIC_TYPE = 23; - OUT_OF_MEMORY = 24; -} - -message Status { - ErrorCode error_code = 1; - string reason = 2; -} - -enum DataType { - NONE = 0; - BOOL = 1; - INT8 = 2; - INT16 = 3; - INT32 = 4; - INT64 = 5; - - FLOAT = 10; - DOUBLE = 11; - - STRING = 20; - - VECTOR_BINARY = 100; - VECTOR_FLOAT = 101; -} - -enum OpType { - Insert = 0; - Delete = 1; - Search = 2; - TimeSync = 3; - Key2Seg = 4; - Statistics = 5; -} - -message SegmentRecord { - repeated string seg_info = 1; -} - -message VectorRowRecord { - repeated float float_data = 1; //float vector data - bytes binary_data = 2; //binary vector data -} - -message AttrRecord { - repeated int32 int32_value = 1; - repeated int64 int64_value = 2; - repeated float float_value = 3; - repeated double double_value = 4; -} - -message VectorRecord { - repeated VectorRowRecord records = 1; -} - -message VectorParam { - string json = 1; - VectorRecord row_record = 2; -} - -message FieldValue { - string field_name = 1; - DataType type = 2; - AttrRecord attr_record = 3; - VectorRecord vector_record = 4; -} - -message PulsarMessage { - string collection_name = 1; - repeated FieldValue fields = 2; - int64 entity_id = 3; - string partition_tag = 4; - VectorParam vector_param =5; - SegmentRecord segments = 6; - int64 timestamp = 7; - int64 client_id = 8; - OpType msg_type = 9; - string topic_name = 10; - int64 partition_id = 11; -} - -//message PulsarMessages { -// string collection_name = 1; -// repeated FieldValue fields = 2; -// repeated int64 entity_id = 3; -// string partition_tag = 4; -// repeated VectorParam vector_param =5; -// repeated SegmentRecord segments = 6; -// repeated int64 timestamp = 7; -// repeated int64 client_id = 8; -// OpType msg_type = 9; -// repeated string topic_name = 10; -// repeated int64 partition_id = 11; -//} -message TestData { - string id = 1; - string name = 2; -} - -message InsertMsg { - int64 client_id = 1; -} - -message DeleteMsg { - int64 client_id = 1; -} - -message SearchMsg { - int64 client_id = 1; -} - -message SearchResultMsg { - int64 client_id = 1; -} - diff --git a/pulsar/client-cpp/src/pb/status.pb.cc b/pulsar/client-cpp/src/pb/status.pb.cc new file mode 100644 index 0000000000..32aedec9d2 --- /dev/null +++ b/pulsar/client-cpp/src/pb/status.pb.cc @@ -0,0 +1,461 @@ +// 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 new file mode 100644 index 0000000000..94be8740cc --- /dev/null +++ b/pulsar/client-cpp/src/pb/status.pb.h @@ -0,0 +1,360 @@ +// 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 new file mode 100644 index 0000000000..a4f018a5fc --- /dev/null +++ b/pulsar/client-cpp/src/pb/status.proto @@ -0,0 +1,35 @@ +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 new file mode 100644 index 0000000000..0402105ebf --- /dev/null +++ b/pulsar/client-cpp/src/pb/suvlim.pb.cc @@ -0,0 +1,14406 @@ +// 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 new file mode 100644 index 0000000000..313dcd6795 --- /dev/null +++ b/pulsar/client-cpp/src/pb/suvlim.pb.h @@ -0,0 +1,14901 @@ +// 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/milvus.proto b/pulsar/client-cpp/src/pb/suvlim.proto similarity index 71% rename from pulsar/client-cpp/src/pb/milvus.proto rename to pulsar/client-cpp/src/pb/suvlim.proto index a88894e644..cafaf0eb10 100644 --- a/pulsar/client-cpp/src/pb/milvus.proto +++ b/pulsar/client-cpp/src/pb/suvlim.proto @@ -1,38 +1,40 @@ syntax = "proto3"; -package pb; +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 @@ -97,7 +99,7 @@ message FieldName { message Mapping { Status status = 1; string collection_name = 2; - repeated FieldParam fields = 3; + Schema schema = 3; repeated KeyValuePair extra_params = 4; } @@ -133,147 +135,70 @@ message VectorRowRecord { 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 VectorRecord { + repeated VectorRowRecord records = 1; +} + message VectorParam { string json = 1; VectorRecord row_record = 2; } +//////////////////////////row schema and data/////////////////////////////////// /** - * @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"] - * } + * @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 string partition_tag_array = 2; - repeated VectorParam vector_param = 3; - string dsl = 4; + repeated VectorParam vector_param = 2; + string dsl = 3; //optional + repeated string partition_tag = 4; //why 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; + repeated RowData rows_data = 4; } + +///////////////////////////milvus-server/////////////////////////// /** * @brief Query result */ @@ -743,92 +668,51 @@ service MilvusService { rpc SearchPB(SearchParamPB) returns (QueryResult) {} } -/////////////////////////////////////////////////////////////////// +////////////////////pulsar////////////////////////////////////// enum OpType { - Insert = 0; - Delete = 1; - Search = 2; - TimeSync = 3; - Key2Seg = 4; - Statistics = 5; + INSERT = 0; + DELETE = 1; } -message Key2SegmentRecord { - repeated uint64 segment_id = 1; -} - -message AttrRowRecord { - int32 int32_value = 1; - int64 int64_value = 2; - float float_value = 3; - double double_value = 4; -} - -message VectorRowParam { - string json = 1; - VectorRowRecord row_record = 2; -} - -message FieldRowValue { - string field_name = 1; - DataType type = 2; - AttrRowRecord attr_record = 3; - VectorRowRecord vector_record = 4; -} - -message PulsarMessage { +message InsertOrDeleteMsg { string collection_name = 1; - repeated FieldRowValue fields = 2; - uint64 entity_id = 3; + RowData rows_data = 2; + int64 uid = 3; //optional string partition_tag = 4; - VectorRowParam vector_param =5; - Key2SegmentRecord segments = 6; - int64 timestamp = 7; - int64 client_id = 8; - OpType msg_type = 9; - string topic_name = 10; - int64 partition_id = 11; - uint64 segment_id = 12; -} - -message InsertMsg { - string collection_name = 1; - repeated FieldRowValue fields = 2; - uint64 entity_id = 3; - string partition_tag = 4; - int64 timestamp = 5; - int64 client_id = 6; - OpType msg_type = 7; - string topic_name = 8; - int64 partition_id = 9; - uint64 segment_id = 10; -} - -message DeleteMsg { - string collection_name = 1; - uint64 entity_id = 3; - int64 timestamp = 5; - int64 client_id = 6; - OpType msg_type = 7; + 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; - string partition_tag = 2; - VectorRowParam vector_param = 3; - int64 timestamp = 4; - int64 client_id = 5; - OpType msg_type = 6; + VectorRowRecord records = 2; + string partition_tag = 3; + int64 uid = 4; + uint64 timestamp =5; + int64 client_id = 6; + repeated KeyValuePair extra_params = 7; } -message TimeSyncMsg { - int64 timestamp = 1; - int64 client_id = 2; - OpType msg_type = 3; - } +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; - Key2SegmentRecord segments = 2; - OpType msg_type = 3; -} \ No newline at end of file + SegmentRecord records = 2; +} diff --git a/pulsar/client-cpp/src/producer.cpp b/pulsar/client-cpp/src/producer.cpp deleted file mode 100644 index c61400ea7d..0000000000 --- a/pulsar/client-cpp/src/producer.cpp +++ /dev/null @@ -1,27 +0,0 @@ - -#include "producer.h" - -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::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 40bb9cf0b4..0000000000 --- a/pulsar/client-cpp/src/producer.h +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once - -#include "pulsar/Producer.h" -#include "client.h" - -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 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/storage/internal/minio/minio_store.go b/storage/internal/minio/minio_store.go index 46f27fadea..3cc02cdab0 100644 --- a/storage/internal/minio/minio_store.go +++ b/storage/internal/minio/minio_store.go @@ -15,7 +15,7 @@ type minioDriver struct { func NewMinioDriver(ctx context.Context) (*minioDriver, error) { // to-do read conf - var endPoint = "127.0.0.1:9000" + var endPoint = "192.168.2.28:9000" var accessKeyID = "testminio" var secretAccessKey = "testminio" var useSSL = false diff --git a/writer/main.go b/writer/main.go index f4e8d34f06..857d44d8b0 100644 --- a/writer/main.go +++ b/writer/main.go @@ -3,51 +3,33 @@ package main import ( "context" "fmt" + "github.com/czs007/suvlim/storage/pkg" + "github.com/czs007/suvlim/storage/pkg/types" + "github.com/czs007/suvlim/writer/message_client" + "github.com/czs007/suvlim/writer/write_node" "log" "sync" "time" - "writer/message_client" - "writer/mock" - "writer/pb" - "writer/write_node" ) -func GetInsertMsg(collectionName string, partitionTag string, entityId int64) *pb.InsertOrDeleteMsg { - return &pb.InsertOrDeleteMsg{ - CollectionName: collectionName, - PartitionTag: partitionTag, - SegmentId: int64(entityId / 100), - Uid: int64(entityId), - Timestamp: int64(entityId), - ClientId: 0, - } -} - -func GetDeleteMsg(collectionName string, entityId int64) *pb.InsertOrDeleteMsg { - return &pb.InsertOrDeleteMsg{ - CollectionName: collectionName, - Uid: entityId, - Timestamp: int64(entityId + 100), - } -} - func main() { mc := message_client.MessageClient{} mc.InitClient("pulsar://localhost:6650") + //mc.InitClient("pulsar://192.168.2.18:6650") //TODO::close client / consumer/ producer //mc.Close() go mc.ReceiveMessage() wg := sync.WaitGroup{} - kv, err := mock.NewTikvStore() + kv, err := storage.NewStore(context.Background(), types.MinIODriver) if err != nil { log.Fatal(err) } wn := write_node.WriteNode{ - KvStore: kv, + KvStore: &kv, MessageClient: &mc, TimeSync: 100, } @@ -56,12 +38,13 @@ func main() { for { time.Sleep(200 * time.Millisecond) msgLength := wn.MessageClient.PrepareBatchMsg() - readyDo := true + readyDo := false for _, len := range msgLength { - if len <= 0 { readyDo = false } + if len > 0 { readyDo = true } } if readyDo { - wn.DoWriteNode(ctx, 100, wg) + wn.DoWriteNode(ctx, 100, &wg) + fmt.Println("write node do a batch message, storage len: ") } fmt.Println("do a batch in 200ms") } diff --git a/writer/message_client/message_client.go b/writer/message_client/message_client.go index 5e4f15fc87..bf7205f999 100644 --- a/writer/message_client/message_client.go +++ b/writer/message_client/message_client.go @@ -3,35 +3,34 @@ package message_client import ( "context" "github.com/apache/pulsar/pulsar-client-go/pulsar" + "github.com/czs007/suvlim/writer/pb" "github.com/golang/protobuf/proto" "log" - "writer/pb" ) - type MessageClient struct { //message channel insertOrDeleteChan chan *pb.InsertOrDeleteMsg - searchChan chan *pb.SearchMsg - timeSyncChan chan *pb.TimeSyncMsg + searchByIdChan chan *pb.EntityIdentity + timeSyncChan chan *pb.TimeSyncMsg // pulsar - client pulsar.Client - key2segProducer pulsar.Producer - writeSyncProducer pulsar.Producer + client pulsar.Client + key2segProducer pulsar.Producer + writeSyncProducer pulsar.Producer insertOrDeleteConsumer pulsar.Consumer - searchConsumer pulsar.Consumer - timeSyncConsumer pulsar.Consumer + searchByIdConsumer pulsar.Consumer + timeSyncConsumer pulsar.Consumer // batch messages - InsertMsg []*pb.InsertOrDeleteMsg - DeleteMsg []*pb.InsertOrDeleteMsg - SearchMsg []*pb.SearchMsg - timeSyncMsg []*pb.TimeSyncMsg + InsertMsg []*pb.InsertOrDeleteMsg + DeleteMsg []*pb.InsertOrDeleteMsg + SearchByIdMsg []*pb.EntityIdentity + timeSyncMsg []*pb.TimeSyncMsg } -func (mc *MessageClient)ReceiveInsertOrDeleteMsg() { +func (mc *MessageClient) ReceiveInsertOrDeleteMsg() { for { insetOrDeleteMsg := pb.InsertOrDeleteMsg{} msg, err := mc.insertOrDeleteConsumer.Receive(context.Background()) @@ -40,40 +39,43 @@ func (mc *MessageClient)ReceiveInsertOrDeleteMsg() { log.Fatal(err) } mc.insertOrDeleteChan <- &insetOrDeleteMsg + mc.insertOrDeleteConsumer.Ack(msg) } } -func (mc *MessageClient)ReceiveSearchMsg() { +func (mc *MessageClient) ReceiveSearchByIdMsg() { for { - searchMsg := pb.SearchMsg{} - msg, err := mc.insertOrDeleteConsumer.Receive(context.Background()) - err = proto.Unmarshal(msg.Payload(), &searchMsg) + searchByIdMsg := pb.EntityIdentity{} + msg, err := mc.searchByIdConsumer.Receive(context.Background()) + err = proto.Unmarshal(msg.Payload(), &searchByIdMsg) if err != nil { log.Fatal(err) } - mc.searchChan <- &searchMsg + mc.searchByIdChan <- &searchByIdMsg + mc.searchByIdConsumer.Ack(msg) } } -func (mc *MessageClient)ReceiveTimeSyncMsg() { +func (mc *MessageClient) ReceiveTimeSyncMsg() { for { timeSyncMsg := pb.TimeSyncMsg{} - msg, err := mc.insertOrDeleteConsumer.Receive(context.Background()) + msg, err := mc.timeSyncConsumer.Receive(context.Background()) err = proto.Unmarshal(msg.Payload(), &timeSyncMsg) if err != nil { log.Fatal(err) } mc.timeSyncChan <- &timeSyncMsg + mc.timeSyncConsumer.Ack(msg) } } func (mc *MessageClient) ReceiveMessage() { go mc.ReceiveInsertOrDeleteMsg() - go mc.ReceiveSearchMsg() + go mc.ReceiveSearchByIdMsg() go mc.ReceiveTimeSyncMsg() } -func (mc *MessageClient) CreatProducer(topicName string) pulsar.Producer{ +func (mc *MessageClient) CreatProducer(topicName string) pulsar.Producer { producer, err := mc.client.CreateProducer(pulsar.ProducerOptions{ Topic: topicName, }) @@ -86,7 +88,7 @@ func (mc *MessageClient) CreatProducer(topicName string) pulsar.Producer{ func (mc *MessageClient) CreateConsumer(topicName string) pulsar.Consumer { consumer, err := mc.client.Subscribe(pulsar.ConsumerOptions{ - Topic: topicName, + Topic: topicName, SubscriptionName: "multi-topic-sub", }) @@ -118,13 +120,18 @@ func (mc *MessageClient) InitClient(url string) { //create consumer mc.insertOrDeleteConsumer = mc.CreateConsumer("InsertOrDelete") - mc.searchConsumer = mc.CreateConsumer("Search") + mc.searchByIdConsumer = mc.CreateConsumer("SearchById") mc.timeSyncConsumer = mc.CreateConsumer("TimeSync") // init channel mc.insertOrDeleteChan = make(chan *pb.InsertOrDeleteMsg, 1000) - mc.searchChan = make(chan *pb.SearchMsg, 1000) + mc.searchByIdChan = make(chan *pb.EntityIdentity, 1000) mc.timeSyncChan = make(chan *pb.TimeSyncMsg, 1000) + + mc.InsertMsg = make([]*pb.InsertOrDeleteMsg, 1000) + mc.DeleteMsg = make([]*pb.InsertOrDeleteMsg, 1000) + mc.SearchByIdMsg = make([]*pb.EntityIdentity, 1000) + mc.timeSyncMsg = make([]*pb.TimeSyncMsg, 1000) } func (mc *MessageClient) Close() { @@ -132,21 +139,23 @@ func (mc *MessageClient) Close() { defer mc.key2segProducer.Close() defer mc.writeSyncProducer.Close() defer mc.insertOrDeleteConsumer.Close() - defer mc.searchConsumer.Close() + defer mc.searchByIdConsumer.Close() defer mc.timeSyncConsumer.Close() } type JobType int + const ( OpInQueryNode JobType = 0 OpInWriteNode JobType = 1 ) type MessageType int + const ( InsertOrDelete MessageType = 0 Delete MessageType = 1 - Search MessageType = 2 + SearchById MessageType = 2 TimeSync MessageType = 3 Key2Seg MessageType = 4 Statistics MessageType = 5 @@ -158,40 +167,40 @@ func (mc *MessageClient) PrepareMsg(messageType MessageType, msgLen int) { for i := 0; i < msgLen; i++ { msg := <-mc.insertOrDeleteChan if msg.Op == pb.OpType_INSERT { - mc.InsertMsg[i] = msg + mc.InsertMsg = append(mc.InsertMsg, msg) } else { - mc.DeleteMsg[i] = msg + mc.DeleteMsg = append(mc.DeleteMsg, msg) } } - case Search: + case SearchById: for i := 0; i < msgLen; i++ { - msg := <-mc.searchChan - mc.SearchMsg[i] = msg + msg := <-mc.searchByIdChan + mc.SearchByIdMsg = append(mc.SearchByIdMsg, msg) } case TimeSync: for i := 0; i < msgLen; i++ { msg := <-mc.timeSyncChan - mc.timeSyncMsg[i] = msg + mc.timeSyncMsg = append(mc.timeSyncMsg, msg) } } } -func (mc *MessageClient)PrepareBatchMsg() []int{ +func (mc *MessageClient) PrepareBatchMsg() []int { // assume the channel not full - mc.InsertMsg = make([]*pb.InsertOrDeleteMsg, 1000) - mc.DeleteMsg = make([]*pb.InsertOrDeleteMsg, 1000) - mc.SearchMsg = make([]*pb.SearchMsg, 1000) - mc.timeSyncMsg = make([]*pb.TimeSyncMsg, 1000) + mc.InsertMsg = mc.InsertMsg[:0] + mc.DeleteMsg = mc.DeleteMsg[:0] + mc.SearchByIdMsg = mc.SearchByIdMsg[:0] + mc.timeSyncMsg = mc.timeSyncMsg[:0] // get the length of every channel insertOrDeleteLen := len(mc.insertOrDeleteChan) - searchLen := len(mc.searchChan) + searchLen := len(mc.searchByIdChan) timeLen := len(mc.timeSyncChan) // get message from channel to slice mc.PrepareMsg(InsertOrDelete, insertOrDeleteLen) - mc.PrepareMsg(Search, searchLen) + mc.PrepareMsg(SearchById, searchLen) mc.PrepareMsg(TimeSync, timeLen) return []int{insertOrDeleteLen, searchLen, timeLen} -} \ No newline at end of file +} diff --git a/writer/test/insert_test.go b/writer/test/insert_test.go index 06d4cc4d17..57edbae76b 100644 --- a/writer/test/insert_test.go +++ b/writer/test/insert_test.go @@ -2,10 +2,10 @@ package test import ( "context" + "github.com/czs007/suvlim/writer/pb" + "github.com/czs007/suvlim/writer/write_node" "sync" "testing" - "writer/pb" - "writer/write_node" ) func GetInsertMsg(collectionName string, partitionTag string, entityId int64) *pb.InsertOrDeleteMsg { @@ -40,22 +40,14 @@ func TestInsert(t *testing.T) { wg := sync.WaitGroup{} wg.Add(3) //var wg sync.WaitGroup - writerNode.InsertBatchData(ctx, insertMsgs, wg) - data1 := writerNode.KvStore.GetData(ctx) - //gtInsertBuffer := writerNode.GetInsertBuffer() - println(len(data1)) - + writerNode.InsertBatchData(ctx, insertMsgs, &wg) var insertMsgs2 []*pb.InsertOrDeleteMsg for i := 120; i < 200; i++ { insertMsgs2 = append(insertMsgs2, GetInsertMsg("collection0", "tag02", int64(i))) } - writerNode.InsertBatchData(ctx, insertMsgs2, wg) - data2 := writerNode.KvStore.GetData(ctx) - println(len(data2)) + writerNode.InsertBatchData(ctx, insertMsgs2, &wg) var deleteMsgs []*pb.InsertOrDeleteMsg deleteMsgs = append(deleteMsgs, GetDeleteMsg("collection0", 2)) deleteMsgs = append(deleteMsgs, GetDeleteMsg("collection0", 120)) - writerNode.DeleteBatchData(ctx, deleteMsgs, wg) - data3 := writerNode.KvStore.GetData(ctx) - println(len(data3)) + writerNode.DeleteBatchData(ctx, deleteMsgs, &wg) } diff --git a/writer/write_node/writer_node.go b/writer/write_node/writer_node.go index 78a3222257..628fe7d663 100644 --- a/writer/write_node/writer_node.go +++ b/writer/write_node/writer_node.go @@ -3,21 +3,22 @@ package write_node import ( "context" "fmt" + storage "github.com/czs007/suvlim/storage/pkg" + "github.com/czs007/suvlim/storage/pkg/types" + "github.com/czs007/suvlim/writer/message_client" + "github.com/czs007/suvlim/writer/pb" "strconv" "sync" - "writer/message_client" - "writer/mock" - "writer/pb" ) type SegmentIdInfo struct { CollectionName string EntityId int64 - SegmentIds *[]string + SegmentIds [][]string } type WriteNode struct { - KvStore *mock.TikvStore + KvStore *types.Store MessageClient *message_client.MessageClient TimeSync uint64 } @@ -26,20 +27,20 @@ func NewWriteNode(ctx context.Context, address string, topics []string, timeSync uint64) (*WriteNode, error) { - kv, err := mock.NewTikvStore() - mc := &message_client.MessageClient{} + kv, err := storage.NewStore(context.Background(), types.MinIODriver) + mc := message_client.MessageClient{} return &WriteNode{ - KvStore: kv, - MessageClient: mc, + KvStore: &kv, + MessageClient: &mc, TimeSync: timeSync, }, err } -func (wn *WriteNode) InsertBatchData(ctx context.Context, data []*pb.InsertOrDeleteMsg, wg sync.WaitGroup) error { +func (wn *WriteNode) InsertBatchData(ctx context.Context, data []*pb.InsertOrDeleteMsg, wg *sync.WaitGroup) error { var prefixKey string var suffixKey string var prefixKeys [][]byte - var suffixKeys [][]byte + var suffixKeys []string var binaryData [][]byte var timeStamp []uint64 @@ -47,32 +48,36 @@ func (wn *WriteNode) InsertBatchData(ctx context.Context, data []*pb.InsertOrDel prefixKey = data[i].CollectionName + "-" + strconv.FormatUint(uint64(data[i].Uid), 10) suffixKey = strconv.FormatUint(uint64(data[i].SegmentId), 10) prefixKeys = append(prefixKeys, []byte(prefixKey)) - suffixKeys = append(suffixKeys, []byte(suffixKey)) + suffixKeys = append(suffixKeys, suffixKey) binaryData = append(binaryData, []byte(data[i].String())) timeStamp = append(timeStamp, uint64(data[i].Timestamp)) } - error := (*wn.KvStore).PutRows(ctx, prefixKeys, timeStamp, suffixKeys, binaryData) + error := (*wn.KvStore).PutRows(ctx, prefixKeys, binaryData, suffixKeys, timeStamp) if error != nil { fmt.Println("Can't insert data!") + wg.Done() return error } wg.Done() return nil } -func (wn *WriteNode) DeleteBatchData(ctx context.Context, data []*pb.InsertOrDeleteMsg, wg sync.WaitGroup) error { +func (wn *WriteNode) DeleteBatchData(ctx context.Context, data []*pb.InsertOrDeleteMsg, wg *sync.WaitGroup) error { var segmentInfos []*SegmentIdInfo var prefixKey string var prefixKeys [][]byte var timeStamps []uint64 + 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) } - segmentIds := (*wn.KvStore).GetSegment(ctx, prefixKeys) + for i := 0; i < len(prefixKeys); i++ { segmentInfos = append(segmentInfos, &SegmentIdInfo{ CollectionName: data[i].CollectionName, @@ -83,6 +88,8 @@ func (wn *WriteNode) DeleteBatchData(ctx context.Context, data []*pb.InsertOrDel err := (*wn.KvStore).DeleteRows(ctx, prefixKeys, timeStamps) if err != nil { fmt.Println("Can't delete data") + wg.Done() + return err } wg.Done() return nil @@ -92,7 +99,7 @@ func (wn *WriteNode) UpdateTimeSync(timeSync uint64) { wn.TimeSync = timeSync } -func (wn *WriteNode) DoWriteNode(ctx context.Context, timeSync uint64, wg sync.WaitGroup) { +func (wn *WriteNode) DoWriteNode(ctx context.Context, timeSync uint64, wg *sync.WaitGroup) { wg.Add(2) go wn.InsertBatchData(ctx, wn.MessageClient.InsertMsg, wg) go wn.DeleteBatchData(ctx, wn.MessageClient.DeleteMsg, wg)